[PATCH v2 1/4] parisc: Makefile: move CROSS_COMPILE detection before CROSS32CC one
Thomas Weißschuh <[email protected]>
| Newsgroups | org.kernel.vger.linux-parisc,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
An upcoming patch will define CROSS32CC in terms of CROSS_COMPILE, so make sure their order allows this. Signed-off-by: Thomas Weißschuh <[email protected]> --- arch/parisc/Makefile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile index 48ae3c79557a..92b769f4bbe7 100644 --- a/arch/parisc/Makefile +++ b/arch/parisc/Makefile @@ -39,6 +39,16 @@ endif export LD_BFD +# Set default cross compiler for kernel build +ifdef cross_compiling + ifeq ($(CROSS_COMPILE),) + CC_SUFFIXES = linux linux-gnu unknown-linux-gnu suse-linux + CROSS_COMPILE := $(call cc-cross-prefix, \ + $(foreach a,$(CC_ARCHES), \ + $(foreach s,$(CC_SUFFIXES),$(a)-$(s)-))) + endif +endif + # Set default 32 bits cross compilers for vdso. # This means that for 64BIT, both the 64-bit tools and the 32-bit tools # need to be in the path. @@ -50,16 +60,6 @@ CROSS32_COMPILE := $(call cc-cross-prefix, \ CROSS32CC := $(CROSS32_COMPILE)gcc export CROSS32CC -# Set default cross compiler for kernel build -ifdef cross_compiling - ifeq ($(CROSS_COMPILE),) - CC_SUFFIXES = linux linux-gnu unknown-linux-gnu suse-linux - CROSS_COMPILE := $(call cc-cross-prefix, \ - $(foreach a,$(CC_ARCHES), \ - $(foreach s,$(CC_SUFFIXES),$(a)-$(s)-))) - endif -endif - ifdef CONFIG_DYNAMIC_FTRACE ifdef CONFIG_64BIT NOP_COUNT := 8 -- 2.53.0