Big Endian build cleanups
cover Big Endian build cleanups
Vineet Gupta (2):
ARC: [BE] Select correct CROSS_COMPILE prefix
ARC: [*defconfig] No need to specify CONFIG_CROSS_COMPILE
arch/arc/Makefile | 4 ++++ arch/arc/configs/axs101_defconfig | 1 - arch/arc/configs/axs103_defconfig | 1 - arch/arc/configs/axs103_smp_defconfig | 1 - arch/arc/configs/nsim_700_defconfig | 1 - arch/arc/configs/nsim_hs_defconfig | 1 - arch/arc/configs/nsim_hs_smp_defconfig | 1 - arch/arc/configs/nsimosci_defconfig | 1 - arch/arc/configs/nsimosci_hs_defconfig | 1 - arch/arc/configs/nsimosci_hs_smp_defconfig | 1 - arch/arc/configs/tb10x_defconfig | 1 - arch/arc/configs/vdk_hs38_defconfig | 1 - arch/arc/configs/vdk_hs38_smp_defconfig | 1 - 13 files changed, 4 insertions(+), 12 deletions(-)
Signature · 1 line
2.5.0
PATCH 1/2 ARC: [BE] Select correct CROSS_COMPILE prefix
This allows CONFIG_CPU_BIG_ENDIAN=y to build correctly out of the box, w/o any other tweaks.
--- arch/arc/Makefile | 4 ++++ 1 file changed, 4 insertions(+)
arch/arc/Makefile +4 -0
@@ -9,7 +9,11 @@ UTS_MACHINE := arc ifeq ($(CROSS_COMPILE),) +ifndef CONFIG_CPU_BIG_ENDIAN CROSS_COMPILE := arc-linux- +else +CROSS_COMPILE := arceb-linux- +endif endif KBUILD_DEFCONFIG := nsim_700_defconfig
Signature · 1 line
2.5.0
Re: [PATCH 1/2] ARC: [BE] Select correct CROSS_COMPILE prefix
Hi Vineet,
Quoted 8 lines · Vineet Gupta
This allows
CONFIG_CPU_BIG_ENDIAN=yto build correctly out of the box, w/o any other tweaks.Cc Noam Camus <noamc at ezchip.com>Cc Alexey Brodkin <abrodkin at synopsys.com>Cc Anton Kolesov <akolesov at synosys.com>Signed-off-by Vineet Gupta <vgupta at synopsys.com>---
PATCH 2/2 ARC: [*defconfig] No need to specify CONFIG_CROSS_COMPILE
In reply to Vineet GuptaThe problem is with CONFIG_CPU_BIG_ENDIAN=y we still needed .config fixup to override the the defconfig prefix to arceb-linux-
So remove these from defconfig and let user pass this via CROSS_COMPILE environment var or use the default for ENDIAN (per previous patch)
No other arch carries them in defconfigs anyways !
--- arch/arc/configs/axs101_defconfig | 1 - arch/arc/configs/axs103_defconfig | 1 - arch/arc/configs/axs103_smp_defconfig | 1 - arch/arc/configs/nsim_700_defconfig | 1 - arch/arc/configs/nsim_hs_defconfig | 1 - arch/arc/configs/nsim_hs_smp_defconfig | 1 - arch/arc/configs/nsimosci_defconfig | 1 - arch/arc/configs/nsimosci_hs_defconfig | 1 - arch/arc/configs/nsimosci_hs_smp_defconfig | 1 - arch/arc/configs/tb10x_defconfig | 1 - arch/arc/configs/vdk_hs38_defconfig | 1 - arch/arc/configs/vdk_hs38_smp_defconfig | 1 - 12 files changed, 12 deletions(-)
arch/arc/configs/axs101_defconfig +0 -1
@@ -1,4 +1,3 @@ -CONFIG_CROSS_COMPILE="arc-linux-" CONFIG_DEFAULT_HOSTNAME="ARCLinux" # CONFIG_SWAP is not set CONFIG_SYSVIPC=y
arch/arc/configs/axs103_defconfig +0 -1
@@ -1,4 +1,3 @@ -CONFIG_CROSS_COMPILE="arc-linux-" CONFIG_DEFAULT_HOSTNAME="ARCLinux" # CONFIG_SWAP is not set CONFIG_SYSVIPC=y
arch/arc/configs/axs103_smp_defconfig +0 -1
@@ -1,4 +1,3 @@ -CONFIG_CROSS_COMPILE="arc-linux-" CONFIG_DEFAULT_HOSTNAME="ARCLinux" # CONFIG_SWAP is not set CONFIG_SYSVIPC=y
arch/arc/configs/nsim_700_defconfig +0 -1
@@ -1,4 +1,3 @@ -CONFIG_CROSS_COMPILE="arc-linux-" # CONFIG_LOCALVERSION_AUTO is not set CONFIG_DEFAULT_HOSTNAME="ARCLinux" # CONFIG_SWAP is not set
arch/arc/configs/nsim_hs_defconfig +0 -1
@@ -1,4 +1,3 @@ -CONFIG_CROSS_COMPILE="arc-linux-" # CONFIG_LOCALVERSION_AUTO is not set CONFIG_DEFAULT_HOSTNAME="ARCLinux" # CONFIG_SWAP is not set
arch/arc/configs/nsim_hs_smp_defconfig +0 -1
@@ -1,4 +1,3 @@ -CONFIG_CROSS_COMPILE="arc-linux-" # CONFIG_LOCALVERSION_AUTO is not set CONFIG_DEFAULT_HOSTNAME="ARCLinux" # CONFIG_SWAP is not set
arch/arc/configs/nsimosci_defconfig +0 -1
@@ -1,4 +1,3 @@ -CONFIG_CROSS_COMPILE="arc-linux-" # CONFIG_LOCALVERSION_AUTO is not set CONFIG_DEFAULT_HOSTNAME="ARCLinux" # CONFIG_SWAP is not set
arch/arc/configs/nsimosci_hs_defconfig +0 -1
@@ -1,4 +1,3 @@ -CONFIG_CROSS_COMPILE="arc-linux-" # CONFIG_LOCALVERSION_AUTO is not set CONFIG_DEFAULT_HOSTNAME="ARCLinux" # CONFIG_SWAP is not set
arch/arc/configs/nsimosci_hs_smp_defconfig +0 -1
@@ -1,4 +1,3 @@ -CONFIG_CROSS_COMPILE="arc-linux-" CONFIG_DEFAULT_HOSTNAME="ARCLinux" # CONFIG_SWAP is not set CONFIG_SYSVIPC=y
arch/arc/configs/tb10x_defconfig +0 -1
@@ -1,4 +1,3 @@ -CONFIG_CROSS_COMPILE="arc-linux-" # CONFIG_LOCALVERSION_AUTO is not set CONFIG_DEFAULT_HOSTNAME="tb10x" CONFIG_SYSVIPC=y
arch/arc/configs/vdk_hs38_defconfig +0 -1
@@ -1,4 +1,3 @@ -CONFIG_CROSS_COMPILE="arc-linux-" # CONFIG_LOCALVERSION_AUTO is not set CONFIG_DEFAULT_HOSTNAME="ARCLinux" # CONFIG_CROSS_MEMORY_ATTACH is not set
arch/arc/configs/vdk_hs38_smp_defconfig +0 -1
@@ -1,4 +1,3 @@ -CONFIG_CROSS_COMPILE="arc-linux-" # CONFIG_LOCALVERSION_AUTO is not set CONFIG_DEFAULT_HOSTNAME="ARCLinux" # CONFIG_CROSS_MEMORY_ATTACH is not set
Signature · 1 line
2.5.0
Re: [PATCH 2/2] ARC: [*defconfig] No need to specify CONFIG_CROSS_COMPILE
Hi Vineet,
Quoted 6 lines · Vineet Gupta
The problem is with
CONFIG_CPU_BIG_ENDIAN=ywe still needed .config fixup to override the the defconfig prefix to arceb-linux-So remove these from defconfig and let user pass this via
CROSS_COMPILEenvironment var or use the default for ENDIAN (per previous patch)
Quoted 7 lines
No other arch carries them in defconfigs anyways !
Cc Noam Camus <noamc at ezchip.com>Cc Alexey Brodkin <abrodkin at synopsys.com>Cc Anton Kolesov <akolesov at synosys.com>Signed-off-by Vineet Gupta <vgupta at synopsys.com>---