diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-04-28 23:40:57 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-05-03 00:00:08 +0200 |
commit | 65e80a0b0bf275e0ffdbb611706bec4b1b4719b1 (patch) | |
tree | 9dcc2edbb0388c9f852ea5abcf5ab82bbaad2179 /package | |
parent | 7eeb1ccef74d5bac274dd43b9c02e2c13f472815 (diff) |
Remove BR2_GNU_TARGET_SUFFIX and compute GNU_TARGET_NAME
Instead of asking the user about the GNU target suffix, just compute
it automatically from the other configuration options.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r-- | package/Makefile.in | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/package/Makefile.in b/package/Makefile.in index 5f7af99ce..acba382b3 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -96,19 +96,32 @@ TARGET_LDFLAGS=--sysroot $(STAGING_DIR)/ endif ######################################################################### +# Compute GNU_TARGET_NAME and REAL_GNU_TARGET_NAME +GNU_TARGET_NAME=$(ARCH)-linux + +ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y) +LIBC=uclibc +else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_UCLIBC),y) +LIBC=uclibc +else +LIBC=glibc +endif + +ifeq ($(BR2_ARM_EABI),y) +ABI=gnueabi +endif + +REAL_GNU_TARGET_NAME=$(ARCH)-unknown-linux-$(LIBC)$(ABI) + ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y) # Quotes are needed for spaces et al in path components. TARGET_PATH="$(TOOLCHAIN_DIR)/bin:$(HOST_DIR)/bin:$(HOST_DIR)/usr/bin:$(HOST_DIR)/usr/sbin/:$(STAGING_DIR)/bin:$(STAGING_DIR)/usr/bin:$(PATH)" -GNU_TARGET_NAME=$(ARCH)-linux -REAL_GNU_TARGET_NAME=$(ARCH)$(GNU_TARGET_SUFFIX) TARGET_CROSS=$(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)- else ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y) TOOLCHAIN_EXTERNAL_PREFIX:=$(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PREFIX)) TOOLCHAIN_EXTERNAL_PATH:=$(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PATH)) TARGET_PATH="$(HOST_DIR)/bin:$(HOST_DIR)/usr/bin:$(HOST_DIR)/usr/sbin/:$(TOOLCHAIN_DIR)/bin:$(TOOLCHAIN_EXTERNAL_PATH)/bin:$(PATH)" -REAL_GNU_TARGET_NAME=$(TOOLCHAIN_EXTERNAL_PREFIX) -GNU_TARGET_NAME=$(TOOLCHAIN_EXTERNAL_PREFIX) TARGET_CROSS=$(TOOLCHAIN_EXTERNAL_PATH)/bin/$(TOOLCHAIN_EXTERNAL_PREFIX)- endif TARGET_AR=$(TARGET_CROSS)ar |