summaryrefslogtreecommitdiff
path: root/script/build
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-10-20 00:17:30 +0100
committerLeah Rowe <leah@libreboot.org>2023-10-20 01:00:38 +0100
commit8d9aeef3de28bcb908e33b804517bdeacce7be38 (patch)
treeda6c27fa43780232300898052005617ea155aba2 /script/build
parent0b98c9b00c6b99940555cff25f7c6858745a560c (diff)
lbmk: use 2-level directory structure in script/
as opposed to the current 3-level structure. recent build system simplifications have enabled this change, thus: ./build fw coreboot -> ./build roms ./build fw grub -> ./build grub ./build fw serprog -> ./build serprog ./update project release -> ./update release ./update project trees -> ./update trees ./update vendor download -> ./vendor download ./update vendor inject -> ./vendor inject alper criticised that the commands were too long, so i made them shorter! Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/build')
-rwxr-xr-xscript/build/grub (renamed from script/build/fw/grub)2
-rwxr-xr-xscript/build/roms (renamed from script/build/fw/coreboot)24
-rwxr-xr-xscript/build/serprog (renamed from script/build/fw/serprog)4
3 files changed, 15 insertions, 15 deletions
diff --git a/script/build/fw/grub b/script/build/grub
index 66286732..ba0845d3 100755
--- a/script/build/fw/grub
+++ b/script/build/grub
@@ -23,7 +23,7 @@ main()
handle_dependencies()
{
- [ -d "src/grub" ] || x_ ./update project trees -f grub
+ [ -d "src/grub" ] || x_ ./update 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/coreboot b/script/build/roms
index 8853f749..2f7b93da 100755
--- a/script/build/fw/coreboot
+++ b/script/build/roms
@@ -128,13 +128,13 @@ prepare_target()
cbrom="${cbdir}/build/coreboot.rom"
[ -f "${cbfstool}" ] || \
- x_ ./update project trees -b coreboot utils ${tree}
+ x_ ./update trees -b coreboot utils ${tree}
build_dependency_seabios
memtest_bin="memtest86plus/build64/memtest.bin"
[ "${payload_memtest}" != "y" ] || [ -f "src/${memtest_bin}" ] || \
- x_ ./update project trees -b memtest86plus
+ x_ ./update trees -b memtest86plus
x_ rm -f "${romdir}/"*
@@ -151,7 +151,7 @@ build_dependency_seabios()
[ -f elf/seabios/default/vgarom/bios.bin.elf ] && \
[ -f elf/seabios/default/normal/bios.bin.elf ] && return 0
- x_ ./update project trees -b seabios
+ x_ ./update trees -b seabios
}
build_dependency_grub()
@@ -171,14 +171,14 @@ build_dependency_grub()
rebuild_grub="y" && break
done
[ "${rebuild_grub}" = "y" ] || return 0
- x_ ./build fw grub
+ x_ ./build grub
}
build_dependency_uboot()
{
[ "${payload_uboot}" = "y" ] || return 0
- x_ ./update project trees -b u-boot ${board}
+ x_ ./update trees -b u-boot ${board}
ubdir="elf/u-boot/${board}/${uboot_config}"
ubootelf="${ubdir}/u-boot.elf"
[ ! -f "${ubootelf}" ] && [ -f "${ubdir}/u-boot" ] && \
@@ -215,7 +215,7 @@ build_roms()
"${cbcfg}" "${board}" "${displaymode}" "${initmode}" \
1>&2 && return 0
- x_ ./update project trees -b coreboot ${board}
+ x_ ./update trees -b coreboot ${board}
_cbrom="elf/coreboot_nopayload_DO_NOT_FLASH/${board}/${initmode}_${displaymode}"
[ "${initmode}" = "normal" ] && \
@@ -391,9 +391,9 @@ moverom() {
usage()
{
cat <<- EOF
- USAGE: ./build fw coreboot targetname
- To build *all* boards, do this: ./build fw coreboot all
- To list *all* boards, do this: ./build fw coreboot list
+ USAGE: ./build roms targetname
+ To build *all* boards, do this: ./build roms all
+ To list *all* boards, do this: ./build roms list
Optional Flags:
-d: displaymode
@@ -402,9 +402,9 @@ usage()
Example commands:
- ./build fw coreboot x60
- ./build fw coreboot x200_8mb x60
- ./build fw coreboot x60 -p grub -d corebootfb -k usqwerty
+ ./build roms x60
+ ./build roms x200_8mb x60
+ ./build roms x60 -p grub -d corebootfb -k usqwerty
possible values for 'target':
$(items "config/coreboot")
diff --git a/script/build/fw/serprog b/script/build/serprog
index eb0e5ede..43251acd 100755
--- a/script/build/fw/serprog
+++ b/script/build/serprog
@@ -22,12 +22,12 @@ main()
platform="rp2040"
boards_dir=${pico_sdk_dir}/src/boards/include/boards
[ -d "${pico_src_dir}/" ] || \
- x_ ./update project trees -f "rpi-pico-serprog"
+ x_ ./update trees -f "rpi-pico-serprog"
elif [ "${1}" = "stm32" ]; then
platform="stm32"
boards_dir=${stm32_src_dir}/boards
[ -d "${stm32_src_dir}/" ] || \
- x_ ./update project trees -f "stm32-vserprog"
+ x_ ./update trees -f "stm32-vserprog"
else
err "${usage}"
fi