mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-12 22:42:54 +02:00
build/roms: Make coreboot crossgcc usable for payloads and modules
Add the coreboot-built cross-architecture toolchains to the PATH so that modules and payloads can use them. When building for a foreign-arch board, also export CROSS_COMPILE pointing to the appropriate prefix. Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
This commit is contained in:
@@ -94,14 +94,6 @@ for board in "$@"; do
|
||||
continue
|
||||
fi
|
||||
|
||||
if [ "${arch}" = "x86_32" ] || [ "${arch}" = "x86_64" ]; then
|
||||
export CROSS_COMPILE=x86_64-linux-
|
||||
elif [ "${arch}" = "ARMv7" ]; then
|
||||
export CROSS_COMPILE=arm-linux-gnueabi-
|
||||
elif [ "${arch}" = "AArch64" ]; then
|
||||
export CROSS_COMPILE=aarch64-linux-gnu-
|
||||
fi
|
||||
|
||||
for config in "${board_dir}/config"/*; do
|
||||
if [ ! -f "${config}" ]; then
|
||||
printf "%s: Target %s has no configs to build for. Skipping build.\n" \
|
||||
|
||||
Reference in New Issue
Block a user