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.
Unified · Split
| @@ -31,7 +31,11 @@ ifdef CONFIG_64BIT · 30 unmodified lines | ||
| 31 | 31 | UTS_MACHINE := parisc64 |
| 32 | 32 | CHECKFLAGS += -D__LP64__=1 -m64 |
| 33 | 33 | WIDTH := 64 |
| 34 | + | |
| 35 | +# FIXME: if no default set, should really try to locate dynamically | |
| 36 | +ifeq ($(CROSS_COMPILE),) | |
| 34 | 37 | CROSS_COMPILE := hppa64-linux-gnu- |
| 38 | +endif | |
| 35 | 39 | else # 32-bit |
| 36 | 40 | WIDTH := |
| 37 | 41 | endif |