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