forked from freifunk-franken/firmware
buildscript: use diffconfig.sh to store .config
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de> Reviewed-by: Steffen Pankratz <kratz00@gmx.de>
This commit is contained in:
parent
ece5c0fb2e
commit
854b686935
15
buildscript
15
buildscript
|
@ -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() {
|
||||||
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() {
|
||||||
|
|
Loading…
Reference in New Issue