projects/linux·commit aabb70dc

[PARISC] don't unconditionally override CROSS_COMPILE for 64 bit.

aabb70dc · James Bottomley <[email protected]> · 2012-02-27 21:41:05 +00:00

The user may wish to set their own value (for real cross compiles).  Since the
top level Makefile initialises CROSS_COMPILE to empty by default, we must
check it for being empty (rather than for being defined) before we override.

Reported-by: Paul Gortmaker <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Commit
aabb70dc23799e09d69d528756471d854f993136
Parents
650275db

Changes

1 files changed · +4 −0

FileStatusAddDelContent
arch/parisc/Makefilemodified+4−0View file

arch/parisc/Makefile

View file
diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile
index 55cca1d..19ab7b2 100644
--- a/arch/parisc/Makefile
+++ b/arch/parisc/Makefile
@@ -31,7 +31,11 @@ ifdef CONFIG_64BIT
UTS_MACHINE := parisc64
CHECKFLAGS += -D__LP64__=1 -m64
WIDTH := 64
+
+# FIXME: if no default set, should really try to locate dynamically
+ifeq ($(CROSS_COMPILE),)
CROSS_COMPILE := hppa64-linux-gnu-
+endif
else # 32-bit
WIDTH :=
endif