build: skip opkg host dependency within the SDK
authorFelix Fietkau <nbd@nbd.name>
Tue, 21 Feb 2017 19:43:35 +0000 (20:43 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 21 Feb 2017 19:43:40 +0000 (20:43 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/Makefile

index 1ef501736b5db5e243c5371cb9dcb1a633b26724..ac8faecef29bcc7f150b2686d8d3c592e507c9eb 100644 (file)
@@ -56,7 +56,9 @@ $(curdir)/merge:
 $(curdir)/merge-index: $(curdir)/merge
        (cd $(PACKAGE_DIR_ALL) && $(SCRIPT_DIR)/ipkg-make-index.sh . 2>&1 > Packages; )
 
-$(curdir)/compile: $(curdir)/system/opkg/host/compile
+ifndef SDK
+  $(curdir)/compile: $(curdir)/system/opkg/host/compile
+endif
 
 $(curdir)/install: $(TMP_DIR)/.build $(curdir)/merge $(if $(CONFIG_TARGET_PER_DEVICE_ROOTFS),$(curdir)/merge-index)
        - find $(STAGING_DIR_ROOT) -type d | $(XARGS) chmod 0755