From 9b186e0ffef42bd1ef673bcada7d7cf5d5220d49 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 13 Jul 2023 11:29:39 +0200 Subject: util/xcompile: Add NASM to xcompile Reason: opensil uses nasm code. Signed-off-by: Arthur Heymans Change-Id: Ib8d89354bfd21113f77927186e418e2ec3eab44c Reviewed-on: https://review.coreboot.org/c/coreboot/+/76465 Reviewed-by: Felix Singer Reviewed-by: Felix Held Tested-by: build bot (Jenkins) --- util/xcompile/xcompile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'util') diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index a3f9be73f8..bebf5ff3e8 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -58,6 +58,12 @@ elif [ "$(iasl 2>/dev/null | grep -c ACPI)" -gt 0 ]; then IASL=iasl fi +if program_exists "${XGCCPATH}/nasm" ; then + NASM="${XGCCPATH}/nasm" +elif program_exists nasm; then + NASM=nasm +fi + if program_exists "${XGCCPATH}/gcc"; then HOSTCC="${XGCCPATH}/gcc" elif program_exists gcc; then @@ -103,6 +109,7 @@ fi cat <