diff options
author | Leah Rowe <leah@libreboot.org> | 2023-10-07 06:55:10 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-10-07 10:26:11 +0100 |
commit | 1e89264ce326997f95391e00f1fa71319f1bb226 (patch) | |
tree | f1a577604f4ff74fe7f122b1f511e93499adac27 /script/build/fw | |
parent | a413c01a3ef90f7befc5805b233b67b9352ee727 (diff) |
update/project/*: merge to update/project/trees
Just one script.
Just one!
Well, two, but the 2nd one already existed:
logic in update/project/trees and
update/project/repo was merged into
include/git.sh and update/project/build
was renamed to update/project/trees; an -f
option was added, which calls the functions
under git.sh
so git clones are now handled by the main build
script (for handling makefiles and defconfigs)
but the logic there is a stub, where git.sh
does all the actual heavy lifting
this cuts the file count down by two, and reduces
sloccount a reasonable amount because much of
the logic already exists in the build script, when
it comes to handling targets. git.sh was adjusted
to integrate with this, rather than act standalone
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/build/fw')
-rwxr-xr-x | script/build/fw/coreboot | 10 | ||||
-rwxr-xr-x | script/build/fw/grub | 2 | ||||
-rwxr-xr-x | script/build/fw/serprog | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/script/build/fw/coreboot b/script/build/fw/coreboot index 7c89bb35..7479caae 100755 --- a/script/build/fw/coreboot +++ b/script/build/fw/coreboot @@ -125,13 +125,13 @@ prepare_target() cbfstool="cbutils/${tree}/cbfstool" cbrom="${cbdir}/build/coreboot.rom" - x_ ./update project build -b coreboot utils ${tree} + x_ ./update project trees -b coreboot utils ${tree} build_dependency_seabios memtest_bin="memtest86plus/build${arch#*_}/memtest.bin" [ "${payload_memtest}" != "y" ] || [ -f "src/${memtest_bin}" ] || \ - x_ ./update project build -b memtest86plus + x_ ./update project trees -b memtest86plus x_ rm -f "${romdir}/"* @@ -148,7 +148,7 @@ build_dependency_seabios() || [ ! -f elf/seabios/default/libgfxinit/bios.bin.elf ] \ || [ ! -f elf/seabios/default/vgarom/bios.bin.elf ] \ || [ ! -f elf/seabios/default/normal/bios.bin.elf ]; then - x_ ./update project build -b seabios + x_ ./update project trees -b seabios fi } @@ -176,7 +176,7 @@ build_dependency_uboot() { [ "${payload_uboot}" = "y" ] || return 0 - x_ ./update project build -b u-boot ${board} + x_ ./update project trees -b u-boot ${board} ubdir="elf/u-boot/${board}/${uboot_config}" ubootelf="${ubdir}/u-boot.elf" [ ! -f "${ubootelf}" ] && [ -f "${ubdir}/u-boot.bin" ] && \ @@ -213,7 +213,7 @@ build_roms() "${cbcfg}" "${board}" "${displaymode}" "${initmode}" \ 1>&2 && return 0 - x_ ./update project build -b coreboot ${board} + x_ ./update project trees -b coreboot ${board} _cbrom="elf/coreboot/${board}/${initmode}_${displaymode}" [ "${initmode}" = "normal" ] && \ diff --git a/script/build/fw/grub b/script/build/fw/grub index 1ae7ba9c..66286732 100755 --- a/script/build/fw/grub +++ b/script/build/fw/grub @@ -23,7 +23,7 @@ main() handle_dependencies() { - [ -d "src/grub" ] || x_ ./update project repo grub + [ -d "src/grub" ] || x_ ./update project trees -f grub [ -f "src/grub/grub-mkstandalone" ] || build_grub_utils x_ mkdir -p "${elfdir}" x_ rm -f "${elfdir}/"* diff --git a/script/build/fw/serprog b/script/build/fw/serprog index bb6952e2..0525962d 100755 --- a/script/build/fw/serprog +++ b/script/build/fw/serprog @@ -23,12 +23,12 @@ main() platform="rp2040" boards_dir=${pico_sdk_dir}/src/boards/include/boards [ -d "${pico_src_dir}/" ] || \ - x_ ./update project repo "rpi-pico-serprog" + x_ ./update project trees -f "rpi-pico-serprog" elif [ "${1}" = "stm32" ]; then platform="stm32" boards_dir=${stm32_src_dir}/boards [ -d "${stm32_src_dir}/" ] || \ - x_ ./update project repo "stm32-vserprog" + x_ ./update project trees -f "stm32-vserprog" else err "${usage}" fi |