X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/8e7e55ae9d68f1deb619b2c46beec321a54078b0..d6a7552aad4537d1dc32c5e92c5159d7211372c2:/include/package-ipkg.mk?ds=sidebyside diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 4409f239a..1ddd80a8d 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -36,6 +36,7 @@ ifeq ($(DUMP),) IDIR_$(1):=$(PKG_BUILD_DIR)/ipkg-$(PKGARCH)/$(1) INFO_$(1):=$(IPKG_STATE_DIR)/info/$(1).list + ifeq ($(if $(VARIANT),$(BUILD_VARIANT)),$(VARIANT)) ifdef Package/$(1)/install ifneq ($(CONFIG_PACKAGE_$(1))$(SDK)$(DEVELOPER),) compile: $$(IPKG_$(1)) $(STAGING_DIR_ROOT)/stamp/.$(1)_installed @@ -49,6 +50,7 @@ ifeq ($(DUMP),) @echo "WARNING: skipping $(1) -- package not selected" endif endif + endif IDEPEND_$(1):=$$(call filter_deps,$$(DEPENDS)) @@ -59,10 +61,11 @@ ifeq ($(DUMP),) $(eval $(call BuildIPKGVariable,$(1),postrm)) $(STAGING_DIR_ROOT)/stamp/.$(1)_installed: $(STAMP_BUILT) + rm -rf $(STAGING_DIR_ROOT)/tmp-$(1) mkdir -p $(STAGING_DIR_ROOT)/stamp $(STAGING_DIR_ROOT)/tmp-$(1) $(call Package/$(1)/install,$(STAGING_DIR_ROOT)/tmp-$(1)) $(call Package/$(1)/install_lib,$(STAGING_DIR_ROOT)/tmp-$(1)) - $(CP) $(STAGING_DIR_ROOT)/tmp-$(1)/* $(STAGING_DIR_ROOT)/ + $(CP) $(STAGING_DIR_ROOT)/tmp-$(1)/. $(STAGING_DIR_ROOT)/ rm -rf $(STAGING_DIR_ROOT)/tmp-$(1) touch $$@