[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[for 0.1 release, 2nd patchset v2 04/11] cache cbfstool and ifdtool buil
From: |
Leah Rowe |
Subject: |
[for 0.1 release, 2nd patchset v2 04/11] cache cbfstool and ifdtool builds |
Date: |
Tue, 16 Jan 2024 12:18:42 +0000 |
From: Leah Rowe <leah@libreboot.org>
coreboot's build system regularly purges these, when
executed, and parts of gnuboot expect the builds to
be there, where it currently uses them directly from
the coreboot build system.
this patch copies them to a dedicated directory within
the gnuboot build system, instead of coreboot's, and
that version is called.
this causes the roms build script to be more robust in
general, preventing build errors under certain edge cases.
Signed-off-by: Leah Rowe <leah@libreboot.org>
---
.gitignore | 1 +
resources/packages/cbutils/clean | 2 ++
resources/packages/cbutils/module | 8 ++++----
resources/packages/roms_helper/boot | 2 +-
4 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/.gitignore b/.gitignore
index bfc3cf2..c852b91 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,7 @@
/bin/
/bucts/
/build_error
+/cbutils/
/coreboot/
/crossgcc/
*.date
diff --git a/resources/packages/cbutils/clean b/resources/packages/cbutils/clean
index 98095ea..3edfbd4 100755
--- a/resources/packages/cbutils/clean
+++ b/resources/packages/cbutils/clean
@@ -28,6 +28,8 @@ set -u -e
printf "Cleaning the previous build of coreboot and its utilities\n"
+[ ! -d "cbutils" ] || rm -Rf "cbutils" || exit 1
+
[ ! -d "coreboot/" ] && exit 0
for board in coreboot/*; do
diff --git a/resources/packages/cbutils/module
b/resources/packages/cbutils/module
index 15d9721..5e59878 100755
--- a/resources/packages/cbutils/module
+++ b/resources/packages/cbutils/module
@@ -35,10 +35,10 @@ buildutils() {
return 1
fi
for util in {cbfs,ifd}tool; do
- (
- cd "coreboot/${cbtree}/util/${util}/"
- make -j$(nproc) || return 1
- )
+ [ -f "cbutils/$cbtree/$util" ] && continue
+ make -C coreboot/${cbtree}/util/${util}/ || return 1
+ mkdir -p cbutils/$cbtree || return 1
+ cp coreboot/${cbtree}/util/${util}/${util} cbutils/$cbtree || return 1
done
return 0
}
diff --git a/resources/packages/roms_helper/boot
b/resources/packages/roms_helper/boot
index 03d9409..39aa520 100755
--- a/resources/packages/roms_helper/boot
+++ b/resources/packages/roms_helper/boot
@@ -137,7 +137,7 @@ cbdir="coreboot/${board}"
if [ "${board}" != "${cbtree}" ]; then
cbdir="coreboot/${cbtree}"
fi
-cbfstool="${cbdir}/util/cbfstool/cbfstool"
+cbfstool="cbutils/$cbtree/cbfstool"
corebootrom="${cbdir}/build/coreboot.rom"
seavgabiosrom="payload/seabios/seavgabios.bin"
--
2.39.2
- [for 0.1 release, 2nd patchset v2 01/11] crossgcc/default: fix build errors on host gcc 13.x, Leah Rowe, 2024/01/16
- [for 0.1 release, 2nd patchset v2 05/11] build/module/grub: disable -Werror on builds, Leah Rowe, 2024/01/16
- [for 0.1 release, 2nd patchset v2 04/11] cache cbfstool and ifdtool builds,
Leah Rowe <=
- [for 0.1 release, 2nd patchset v2 03/11] build/boot/roms: skip building gnat on fam15h, Leah Rowe, 2024/01/16
- [for 0.1 release, 2nd patchset v2 02/11] grub.cfg: support ESP, btrfs subvols and extlinux, Leah Rowe, 2024/01/16
- [for 0.1 release, 2nd patchset v2 06/11] coreboot/fam15h: fix binutils build error on gcc13, Leah Rowe, 2024/01/16
- [for 0.1 release, 2nd patchset v2 07/11] GRUB: Force scancode set 2 with translation, Leah Rowe, 2024/01/16
- [for 0.1 release, 2nd patchset v2 08/11] GRUB: Don't spew "Unknown key 0xFF", Leah Rowe, 2024/01/16
- [for 0.1 release, 2nd patchset v2 10/11] add .log files to .gitignore, Leah Rowe, 2024/01/16
- [for 0.1 release, 2nd patchset v2 09/11] NEW MAINBOARD: Dell Latitude E6400, Leah Rowe, 2024/01/16
- [for 0.1 release, 2nd patchset v2 11/11] Add support for google gru_bob and gru_kevin, Leah Rowe, 2024/01/16