[PATCH v2 7/7] buildscript: remove kernel config
Tim Niemeyer
tim.niemeyer at mastersword.de
So Dez 6 13:42:22 CET 2015
This part was broken, as the stored .config doesn't contain the
arch/version anymore.
Signed-off-by: Tim Niemeyer <tim.niemeyer at mastersword.de>
---
Changes in v2:
- new patch
buildscript | 21 ++-------------------
1 file changed, 2 insertions(+), 19 deletions(-)
diff --git a/buildscript b/buildscript
index 1b5f873..84124cf 100755
--- a/buildscript
+++ b/buildscript
@@ -177,12 +177,6 @@ prebuild() {
cp -r ./bsp/"$machine"/root_file_system/* "$target"/files/
cp ./bsp/"$machine"/.config "$target"/.config
- arch=$(awk -F= '/^CONFIG_TARGET_BOARD/{print gsub(/"/,"",$2); print $2;}' ./bsp/"$machine"/.config)
- version=$(awk '/^CONFIG_LINUX/ { sub(/CONFIG_LINUX_/,""); sub(/=y/,""); gsub(/_/,"."); print; }' ./bsp/"$machine"/.config)
- test -f ./bsp/"$machine"/.kernelconfig-"$version" && \
- cp ./bsp/"$machine"/.kernelconfig-"$version" \
- "$target"/target/linux/"$arch"/config-"$version"
-
board_prebuild
shopt -s globstar nullglob
@@ -249,9 +243,6 @@ config() {
"openwrt")
make menuconfig
;;
- "kernel")
- make kernel_menuconfig
- ;;
esac
save=""
@@ -268,11 +259,6 @@ config() {
echo "#" >> "$opath"/bsp/"$machine"/.config
./scripts/diffconfig.sh | grep -v '^#' >> "$opath"/bsp/"$machine"/.config
;;
- "kernel")
- 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; }' "$opath"/bsp/"$machine"/.config)
- grep '^CON\|^# CON' target/linux/"$arch"/config-"$version" | sort > "$opath"/bsp/"$machine"/.kernelconfig-"$version"
- ;;
esac
fi
@@ -387,13 +373,10 @@ case "$1" in
openwrt)
config openwrt
;;
- kernel)
- config kernel
- ;;
*)
echo "This open the OpenWRT menuconfig dialog"
echo
- echo "Usage: $0 $1 openwrt|kernel"
+ echo "Usage: $0 $1 openwrt"
;;
esac
;;
@@ -422,7 +405,7 @@ case "$1" in
echo " selectcommunity [communityfile]"
echo " selectbsp [bsp file]"
echo " prepare"
- echo " config <openwrt|kernel>"
+ echo " config <openwrt>"
echo " build [<fast|debug>]"
echo " buildall <community> [<fast>]"
echo " clean"
--
2.1.4
Mehr Informationen über die Mailingliste franken-dev