Skip to content
Snippets Groups Projects
Commit 854b6869 authored by Tim Niemeyer's avatar Tim Niemeyer Committed by Steffen Pankratz
Browse files

buildscript: use diffconfig.sh to store .config


Signed-off-by: default avatarTim Niemeyer <tim.niemeyer@mastersword.de>
Reviewed-by: default avatarSteffen Pankratz <kratz00@gmx.de>
parent ece5c0fb
No related branches found
No related tags found
No related merge requests found
...@@ -252,8 +252,6 @@ config() { ...@@ -252,8 +252,6 @@ config() {
;; ;;
esac esac
cd "$opath"
save="" save=""
until [ "$save" = "y" -o "$save" = "n" ]; do until [ "$save" = "y" -o "$save" = "n" ]; do
echo "Do you want to save the generated config? (y/n)" echo "Do you want to save the generated config? (y/n)"
...@@ -263,15 +261,20 @@ config() { ...@@ -263,15 +261,20 @@ config() {
if [ "$save" = "y" ]; then if [ "$save" = "y" ]; then
case "$1" in case "$1" in
"openwrt") "openwrt")
grep '^CON\|^# CON' "$target"/.config | sort > ./bsp/"$machine"/.config echo "# Generated using \"./buildscript config openwrt\"." > "$opath"/bsp/"$machine"/.config
echo "# Do no edit manually" >> "$opath"/bsp/"$machine"/.config
echo "#" >> "$opath"/bsp/"$machine"/.config
./scripts/diffconfig.sh >> "$opath"/bsp/"$machine"/.config
;; ;;
"kernel") "kernel")
arch=$(awk -F= '/^CONFIG_TARGET_BOARD/{gsub(/"/,"",$2); print $2;}' ./bsp/"$machine"/.config) arch=$(awk -F= '/^CONFIG_TARGET_BOARD/{gsub(/"/,"",$2); print $2;}' "$opath"/bsp/"$machine"/.config)
version=$(awk '/^CONFIG_LINUX/ { sub(/CONFIG_LINUX_/,""); sub(/=y/,""); gsub(/_/,"."); print; }' ./bsp/"$machine"/.config) version=$(awk '/^CONFIG_LINUX/ { sub(/CONFIG_LINUX_/,""); sub(/=y/,""); gsub(/_/,"."); print; }' "$opath"/bsp/"$machine"/.config)
grep '^CON\|^# CON' "$target"/target/linux/"$arch"/config-"$version" | sort > ./bsp/"$machine"/.kernelconfig-"$version" grep '^CON\|^# CON' target/linux/"$arch"/config-"$version" | sort > "$opath"/bsp/"$machine"/.kernelconfig-"$version"
;; ;;
esac esac
fi fi
cd "$opath"
} }
postbuild() { postbuild() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment