- pass the target (kernel-) arch in.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 7 Dec 2006 16:31:21 +0000 (16:31 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 7 Dec 2006 16:31:21 +0000 (16:31 -0000)
package/busybox/busybox.mk

index f7f108db67a8a4277075e396da2b1d453967af37..e57c7ea788c6520e861b9e2ec08f1aa00800ef49 100644 (file)
@@ -18,7 +18,7 @@ endif
 BUSYBOX_UNZIP=$(BZCAT)
 
 BUSYBOX_CONFIG_FILE=$(subst ",, $(strip $(BR2_PACKAGE_BUSYBOX_CONFIG)))
-#"
+#")
 
 $(DL_DIR)/$(BUSYBOX_SOURCE):
         $(WGET) -P $(DL_DIR) $(BUSYBOX_SITE)/$(BUSYBOX_SOURCE)
@@ -59,12 +59,14 @@ endif
 $(BUSYBOX_DIR)/busybox: $(BUSYBOX_DIR)/.configured
        $(MAKE) CC=$(TARGET_CC) CROSS_COMPILE="$(TARGET_CROSS)" \
                CROSS="$(TARGET_CROSS)" PREFIX="$(TARGET_DIR)" \
+               ARCH=$(KERNEL_ARCH) \
                EXTRA_CFLAGS="$(TARGET_CFLAGS)" -C $(BUSYBOX_DIR)
 
 $(TARGET_DIR)/bin/busybox: $(BUSYBOX_DIR)/busybox
 ifeq ($(BR2_PACKAGE_BUSYBOX_INSTALL_SYMLINKS),y)
        $(MAKE) CC=$(TARGET_CC) CROSS_COMPILE="$(TARGET_CROSS)" \
                CROSS="$(TARGET_CROSS)" PREFIX="$(TARGET_DIR)" \
+               ARCH=$(KERNEL_ARCH) \
                EXTRA_CFLAGS="$(TARGET_CFLAGS)" -C $(BUSYBOX_DIR) install
 else
        install -D -m 0755 $(BUSYBOX_DIR)/busybox $(TARGET_DIR)/bin/busybox