fix unknown arch in ipkg: use our ARCH instead of busybox's TARGET_ARCH (closes:...
[openwrt.git] / package / busybox / Makefile
index 9e30492..c87701a 100644 (file)
@@ -46,11 +46,21 @@ define Build/Configure
                oldconfig
 endef
 
+define Build/Compile
+       $(MAKE) -C $(PKG_BUILD_DIR) \
+               CC="$(TARGET_CC)" \
+               CROSS="$(TARGET_CROSS)" \
+               EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
+               IPKG_ARCH="$(ARCH)" \
+               all
+endef
+
 define Package/busybox/install
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CC="$(TARGET_CC)" \
                CROSS="$(TARGET_CROSS)" \
                EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
+               IPKG_ARCH="$(ARCH)" \
                PREFIX="$(1)" \
                install
        -rm -rf $(1)/lib64