summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2016-01-05 14:56:13 -0700
committerMartin Roth <martinroth@google.com>2016-01-07 17:23:02 +0100
commitaf0216f1b87b22580bb652bb7ad5071d57e63ad6 (patch)
treecb3c5448689d832ace0a2135cf4036af7a6d2021
parentc4b684ebee0ccbf1b67064317f68f5287e720642 (diff)
xcompile: Only include arm64 erratum check in arm64 section
Clean up the output file a bit by only including the erratum for arm64 into the that architecture section instead of every architecture. Change-Id: Ib6276f12aee5deb92a03e1c4fa2ad57db46bdc8f Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/12842 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
-rwxr-xr-xutil/xcompile/xcompile12
1 files changed, 11 insertions, 1 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index be08f740a7..c8cf6e9066 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -227,9 +227,19 @@ endif
CPP_${TARCH}:=${GCCPREFIX}cpp
AS_${TARCH}:=${GCCPREFIX}as ${ASFLAGS}
LD_${TARCH}:=${GCCPREFIX}ld${LINKER_SUFFIX} ${LDFLAGS}
+EOF
+
+ if [ "${TARCH}" = "arm64" ]; then
+ cat <<EOF
+
ifeq (\$(CONFIG_ARM64_A53_ERRATUM_843419)\$(CONFIG_LP_ARM64_A53_ERRATUM_843419),y)
-LD_${TARCH}+=${LDFLAGS_ARM64_A53_ERRATUM_843419}
+ LD_${TARCH}+=${LDFLAGS_ARM64_A53_ERRATUM_843419}
endif
+
+EOF
+ fi # if [ "${TARCH}" = "arm64" ]
+
+ cat <<EOF
NM_${TARCH}:=${GCCPREFIX}nm
OBJCOPY_${TARCH}:=${GCCPREFIX}objcopy
OBJDUMP_${TARCH}:=${GCCPREFIX}objdump