diff options
author | Leah Rowe <leah@libreboot.org> | 2023-08-21 00:40:35 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-08-21 00:58:26 +0100 |
commit | 7be4706552845824888b58054120dfac99bfdf63 (patch) | |
tree | fb173e704061b8193f97fd67472e31a6b79b53c4 /resources/scripts/build/boot | |
parent | 0faf2a0c6f3e6a52885e1669751c96c2b7265052 (diff) |
unify build/defconfig and modify/defconfig
they fundamentally perform the same action: copy
the .config file and run make, but build runs
make-all, while modify runs make-oldconfig or
make-menuconfig
merge this functionality together
also:
./handle config file
^ this is the new syntax, not:
./build defconfig for
for example:
./handle config file -b coreboot x200_8mb <-- build x200 rom
./handle config file -m coreboot x200_8mb <-- modify configs
./handle config file -u coreboot x200_8mb <-- make-oldconfig
./handle config file -u seabios
./handle config file -b u-boot
yes, 1 script and a sloccount reduction of 52. and the audit?
it continues.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'resources/scripts/build/boot')
-rwxr-xr-x | resources/scripts/build/boot/roms_helper | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/resources/scripts/build/boot/roms_helper b/resources/scripts/build/boot/roms_helper index 8fcc81b6..5e2085d9 100755 --- a/resources/scripts/build/boot/roms_helper +++ b/resources/scripts/build/boot/roms_helper @@ -166,7 +166,7 @@ if [ ! -f "${seavgabiosrom}" ] \ || [ ! -f elf/seabios/default/vgarom/bios.bin.elf ] \ || [ ! -f elf/seabios/default/normal/bios.bin.elf ]; then [ "${payload_seabios}" = "y" ] && \ - ./build defconfig for seabios + ./handle config file -b seabios fi [ "${payload_memtest}" = "y" ] && [ ! -f "memtest86plus/memtest" ] && \ @@ -211,7 +211,7 @@ if [ "${payload_grub}" = "y" ] \ fi if [ "${payload_uboot}" = "y" ]; then - ./build defconfig for u-boot ${board} + ./handle config file -b u-boot ${board} ubdir="elf/u-boot/${board}/${uboot_config}" ubootelf="${ubdir}/u-boot.elf" [ ! -f "${ubootelf}" ] && [ -f "${ubdir}/u-boot.bin" ] && \ @@ -497,7 +497,8 @@ mkRoms() return 0 fi - ./build defconfig for coreboot ${board} + ./handle config file -b coreboot ${board} + _corebootrom="elf/coreboot/${board}/${initmode}_${displaymode}" [ "${initmode}" = "normal" ] && \ _corebootrom="${_corebootrom%_${displaymode}}" |