summaryrefslogtreecommitdiff
path: root/resources/scripts
diff options
context:
space:
mode:
authorAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-08-26 15:06:45 +0300
committerAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-08-28 13:09:52 +0300
commit769f18f2f601dbf666d0f52f67f79b82e582909a (patch)
treec9bdcfe9d252bf672c126189a5ec273a9339ba15 /resources/scripts
parent9bfbdb598df0ce46d0f124b5739861fa50a81eed (diff)
build/roms: Fix building for ARMv7 and AArch64 boards
The code that compiles coreboot crossgcc changes the working directory to the coreboot directory, and the following code cannot find the lbmk scripts that it needs to run. Compile ARMv7 and AArch64 cross compilers in a subshell like in the x86 case so the rest of the script can work. Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Diffstat (limited to 'resources/scripts')
-rwxr-xr-xresources/scripts/build/boot/roms_helper17
1 files changed, 11 insertions, 6 deletions
diff --git a/resources/scripts/build/boot/roms_helper b/resources/scripts/build/boot/roms_helper
index a6b64316..28053367 100755
--- a/resources/scripts/build/boot/roms_helper
+++ b/resources/scripts/build/boot/roms_helper
@@ -4,6 +4,7 @@
#
# Copyright (C) 2020,2021 Leah Rowe <info@minifree.org>
# Copyright (C) 2021 Vitali64 <vitali64pmemail@protonmail.com>
+# Copyright (C) 2022 Alper Nebi Yasak <alpernebiyasak@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -150,13 +151,17 @@ if [ "${arch}" = "x86_32" ] || [ "${arch}" = "x86_64" ]; then
)
fi
elif [ "${arch}" = "ARMv7" ]; then
- cat version > "${cbdir}/.coreboot-version"
- cd "${cbdir}"
- make crossgcc-arm CPUS=$(nproc) # This is for armv7, doesn't apply to aarch64
+ (
+ cat version > "${cbdir}/.coreboot-version"
+ cd "${cbdir}"
+ make crossgcc-arm CPUS=$(nproc) # This is for armv7, doesn't apply to aarch64
+ )
elif [ "${arch}" = "AArch64" ]; then
- cat version > "${cbdir}/.coreboot-version"
- cd "${cbdir}"
- make crossgcc-aarch64 CPUS=$(nproc) # This is for aarch64, doesn't apply to armv7
+ (
+ cat version > "${cbdir}/.coreboot-version"
+ cd "${cbdir}"
+ make crossgcc-aarch64 CPUS=$(nproc) # This is for aarch64, doesn't apply to armv7
+ )
fi
if [ ! -f "${cbfstool}" ]; then