From ca5dbd4823e90501c5b3f02d0f84cd1cafb8bbf9 Mon Sep 17 00:00:00 2001 From: xSmurf Date: Mon, 5 Oct 2015 03:59:56 +0000 Subject: [PATCH] Fixed saved script for multiple config files --- scripts/save.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/save.sh b/scripts/save.sh index 3d1360b..6f91088 100755 --- a/scripts/save.sh +++ b/scripts/save.sh @@ -4,7 +4,13 @@ make busybox-update-config make linux-update-config make savedefconfig -echo 'BR2_DEFCONFIG="$(BR2_EXTERNAL)/configs/coreboot_defconfig"' >> ../builddir/configs/coreboot_defconfig +for fconf in ../builddir/configs/*_defconfig; do + fgrep -q BR2_DEFCONFIG "$fconf" + if [ $? -gt 0 ]; then + echo 'BR2_DEFCONFIG="$(BR2_EXTERNAL)/configs/'${fconf##*/}'"' >> "$fconf" + #echo 'BR2_DEFCONFIG="$(BR2_EXTERNAL)/configs/coreboot_defconfig"' >> ../builddir/configs/coreboot_defconfig + fi +done echo 'Saved!' echo