Get rid of KERNEL_CROSS
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 28 Apr 2010 21:40:53 +0000 (23:40 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 2 May 2010 22:00:06 +0000 (00:00 +0200)
In both internal and external toolchain cases, KERNEL_CROSS was
defined to *exactly* the same value as TARGET_CROSS. It isn't modified
anywhere, and is just used by kernel compilation and pcmcia
compilation.

Therefore, get rid of KERNEL_CROSS and use TARGET_CROSS instead.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Makefile.in
package/pcmcia/pcmcia.mk
target/linux/Makefile.in
target/linux/Makefile.in.advanced

index 396187d3be6e8d8b167e7527c5e58d48d1d5c935..adc645ee788eb049c134b1ffb659b46911f64876 100644 (file)
@@ -111,14 +111,12 @@ TARGET_PATH="$(TOOLCHAIN_DIR)/bin:$(HOST_DIR)/bin:$(HOST_DIR)/usr/bin:$(HOST_DIR
 GNU_TARGET_NAME=$(ARCH)-linux
 REAL_GNU_TARGET_NAME=$(ARCH)$(GNU_TARGET_SUFFIX)
 TARGET_CROSS=$(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-
-KERNEL_CROSS=$(TARGET_CROSS)
 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)
-KERNEL_CROSS=$(TOOLCHAIN_EXTERNAL_PATH)/bin/$(TOOLCHAIN_EXTERNAL_PREFIX)-
 TARGET_CROSS=$(TOOLCHAIN_EXTERNAL_PATH)/bin/$(TOOLCHAIN_EXTERNAL_PREFIX)-
 endif
 TARGET_AR=$(TARGET_CROSS)ar
index 7cea886a89fddaad39eb91335fcfeaba5b6227d1..00ee3583d5ebcb4579db8e6bbc929e51b2f067f7 100644 (file)
@@ -42,7 +42,7 @@ $(PCMCIA_DIR)/.patched: $(PCMCIA_DIR)/.unpacked
 $(PCMCIA_DIR)/.configured: $(PCMCIA_DIR)/.patched
        ( cd $(PCMCIA_DIR); ./Configure --kernel=$(LINUX26_DIR) --noprompt \
                --rcdir=/etc --arch=$(ARCH) --trust --srctree --nocardbus \
-               --sysv --kcc=$(KERNEL_CROSS)gcc --ucc=$(TARGET_CC) --ld=$(TARGET_CROSS)ld \
+               --sysv --kcc=$(TARGET_CROSS)gcc --ucc=$(TARGET_CC) --ld=$(TARGET_CROSS)ld \
                --target=$(TARGET_DIR))
        $(SED) "s/pump/udhcpc/" $(PCMCIA_DIR)/etc/network
        $(SED) "s/ide_cs/ide-cs/" $(PCMCIA_DIR)/etc/config
index 41e482131010b6b326c600b0c4ab4f33f43878ec..ea7440944784b83a4f71dcfe649417810a21ed06 100644 (file)
@@ -85,7 +85,7 @@ endif
 LINUX26_MAKE_FLAGS = HOSTCC="$(HOSTCC)" HOSTCFLAGS="$(HOSTCFLAGS)" \
        ARCH=$(KERNEL_ARCH) \
        INSTALL_MOD_PATH=$(TARGET_DIR) \
-       CROSS_COMPILE=$(KERNEL_CROSS) \
+       CROSS_COMPILE=$(TARGET_CROSS) \
        LDFLAGS="$(TARGET_LDFLAGS)" \
        LZMA="$(LZMA)"
 
index 745224d3fc199ef97f8439a7a32e49af4f34c756..a95852de7678a0830ad1c12e91b106818a8610b4 100644 (file)
@@ -179,7 +179,7 @@ LINUX26_BZCAT:=$(BZCAT)
 LINUX26_MAKE_FLAGS = HOSTCC="$(HOSTCC)" HOSTCFLAGS="$(HOSTCFLAGS)" \
        ARCH=$(KERNEL_ARCH) \
        INSTALL_MOD_PATH=$(TARGET_DIR) \
-       CROSS_COMPILE=$(KERNEL_CROSS) \
+       CROSS_COMPILE=$(TARGET_CROSS) \
        LDFLAGS="$(TARGET_LDFLAGS)" \
        LZMA="$(LZMA)" \
        PATH=$(LINUX26_MKIMAGE_DIR):$(PATH)