X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/54ca5395e8b95e06ad81e8f94a754b42adb59319..f08f0691af7bd6dc266fff403ca4ac8b48fa62cb:/include/package-ipkg.mk diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index 36f030375..cc9a78014 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -60,7 +60,7 @@ ifeq ($(DUMP),) $($(1)_COMMANDS) \ ) - $$(IPKG_$(1)): $(PKG_BUILD_DIR)/.built $$(IDIR_$(1))/CONTROL/control + $$(IPKG_$(1)): $(STAGING_DIR)/etc/ipkg.conf $(PKG_BUILD_DIR)/.built $$(IDIR_$(1))/CONTROL/control $(call Package/$(1)/install,$$(IDIR_$(1))) mkdir -p $(PACKAGE_DIR) -find $$(IDIR_$(1)) -name 'CVS' -o -name '.svn' -o -name '.#*' | $(XARGS) rm -rf @@ -83,4 +83,10 @@ ifeq ($(DUMP),) $$(eval $$(call Build/DefaultTargets,$(1))) endef + + $(STAGING_DIR)/etc/ipkg.conf: + mkdir -p $(STAGING_DIR)/etc + echo "dest root /" > $(STAGING_DIR)/etc/ipkg.conf + echo "option offline_root $(TARGET_DIR)" >> $(STAGING_DIR)/etc/ipkg.conf + endif