mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-13 00:29:50 +00:00
parisc: enhance automatic CONFIG_CROSS_COMPILE detection
The current Makefile will only choose the hppa64 cross compiler when running natively on hppa in a 32bit userspace. This patch additionally chooses the correct 32/64 bit hppa compiler even when doing real cross compiling to hppa/hppa64 from another architecture. Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
26ad19d8eb
commit
0e39718b98
@ -32,11 +32,6 @@ ifdef CONFIG_64BIT
|
|||||||
UTS_MACHINE := parisc64
|
UTS_MACHINE := parisc64
|
||||||
CHECKFLAGS += -D__LP64__=1 -m64
|
CHECKFLAGS += -D__LP64__=1 -m64
|
||||||
WIDTH := 64
|
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
|
else # 32-bit
|
||||||
WIDTH :=
|
WIDTH :=
|
||||||
endif
|
endif
|
||||||
@ -44,6 +39,10 @@ endif
|
|||||||
# attempt to help out folks who are cross-compiling
|
# attempt to help out folks who are cross-compiling
|
||||||
ifeq ($(NATIVE),1)
|
ifeq ($(NATIVE),1)
|
||||||
CROSS_COMPILE := hppa$(WIDTH)-linux-
|
CROSS_COMPILE := hppa$(WIDTH)-linux-
|
||||||
|
else
|
||||||
|
ifeq ($(CROSS_COMPILE),)
|
||||||
|
CROSS_COMPILE := hppa$(WIDTH)-linux-gnu-
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OBJCOPY_FLAGS =-O binary -R .note -R .comment -S
|
OBJCOPY_FLAGS =-O binary -R .note -R .comment -S
|
||||||
|
Loading…
x
Reference in New Issue
Block a user