buildroot: factor knowledge of a 64bits architecture

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 36204
This commit is contained in:
Florian Fainelli 2013-04-05 12:36:19 +00:00
parent 46dfa04a08
commit 348cae15d2
3 changed files with 9 additions and 2 deletions

View file

@ -132,7 +132,7 @@ endif
LIBRPC=-lrpc LIBRPC=-lrpc
LIBRPC_DEPENDS=+librpc LIBRPC_DEPENDS=+librpc
ifneq ($(findstring $(ARCH) , mips64 x86_64 ),) ifeq ($(CONFIG_ARCH_64BIT),y)
LIB_SUFFIX:=64 LIB_SUFFIX:=64
endif endif

View file

@ -70,6 +70,9 @@ config HAS_MIPS16
depends (mips || mipsel || mips64 || mips64el) depends (mips || mipsel || mips64 || mips64el)
bool bool
config ARCH_64BIT
bool
# Architecture selection # Architecture selection
config arm config arm
@ -104,9 +107,11 @@ config mipsel
config mips64 config mips64
select BIG_ENDIAN select BIG_ENDIAN
select ARCH_64BIT
bool bool
config mips64el config mips64el
select ARCH_64BIT
bool bool
config powerpc config powerpc
@ -115,6 +120,7 @@ config powerpc
config powerpc64 config powerpc64
select BIG_ENDIAN select BIG_ENDIAN
select ARCH_64BIT
bool bool
config sh3 config sh3
@ -136,6 +142,7 @@ config sparc
bool bool
config x86_64 config x86_64
select ARCH_64BIT
bool bool
config ARCH config ARCH

View file

@ -35,7 +35,7 @@ define CleanupToolchain
ln -sf ../include $(TOOLCHAIN_DIR)/$(REAL_GNU_TARGET_NAME)/sys-include ln -sf ../include $(TOOLCHAIN_DIR)/$(REAL_GNU_TARGET_NAME)/sys-include
rm -rf $(TOOLCHAIN_DIR)/$(REAL_GNU_TARGET_NAME)/lib rm -rf $(TOOLCHAIN_DIR)/$(REAL_GNU_TARGET_NAME)/lib
ln -sf ../lib $(TOOLCHAIN_DIR)/$(REAL_GNU_TARGET_NAME)/lib ln -sf ../lib $(TOOLCHAIN_DIR)/$(REAL_GNU_TARGET_NAME)/lib
$(if $(CONFIG_mips64)$(CONFIG_mips64el)$(CONFIG_x86_64),ln -sf ../lib64 $(TOOLCHAIN_DIR)/$(REAL_GNU_TARGET_NAME)/lib64) $(if $(CONFIG_ARCH_64BIT),ln -sf ../lib64 $(TOOLCHAIN_DIR)/$(REAL_GNU_TARGET_NAME)/lib64)
endef endef
define Host/Configure define Host/Configure