- Adjust the install prefix for current busybox.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 17 Nov 2006 12:57:21 +0000 (12:57 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 17 Nov 2006 12:57:21 +0000 (12:57 -0000)
package/busybox/busybox.mk

index 1fed332764d4be9e3ecde90c785b0eab6edbba18..6e5301f75196742643bec898b2680abc7cabbbe4 100644 (file)
@@ -40,6 +40,11 @@ $(BUSYBOX_DIR)/.configured: $(BUSYBOX_DIR)/.unpacked $(BUSYBOX_CONFIG_FILE)
        if [ -f $(BUSYBOX_DIR)/Rules.mak ]; then \
                $(SED) "s,^CROSS.*,CROSS=$(TARGET_CROSS)\n\
                PREFIX=$(TARGET_DIR),;" $(BUSYBOX_DIR)/Rules.mak ; \
+       else \
+               $(SED) s,^CONFIG_PREFIX=.*,CONFIG_PREFIX=\"$(TARGET_DIR)\", \
+                       $(BUSYBOX_DIR)/.config ; \
+               $(SED) s,^PREFIX=.*,CONFIG_PREFIX=\"$(TARGET_DIR)\", \
+                       $(BUSYBOX_DIR)/.config ; \
        fi
 ifeq ($(BR2_LARGEFILE),y)
        $(SED) "s/^.*CONFIG_LFS.*/CONFIG_LFS=y/;" $(BUSYBOX_DIR)/.config