X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/a4d8c8e5caa11cb5301bedeb4aa29c880f599a2c..1149c7bf04cc2ffb4317c0fbe375f23dce9b3567:/toolchain/ipkg-utils/Makefile?ds=sidebyside diff --git a/toolchain/ipkg-utils/Makefile b/toolchain/ipkg-utils/Makefile index 9568e8f75..d46e4f365 100644 --- a/toolchain/ipkg-utils/Makefile +++ b/toolchain/ipkg-utils/Makefile @@ -18,7 +18,7 @@ PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_SOURCE_DIR) $(DL_DIR)/$(PKG_SOURCE_FILE): mkdir -p $(DL_DIR) - $(WGET) -P $(DL_DIR) $(PKG_SOURCE_SITE)/$(PKG_SOURCE_FILE) + $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE_FILE) x $(PKG_SOURCE_SITE) $(PKG_BUILD_DIR)/.unpacked: $(DL_DIR)/$(PKG_SOURCE_FILE) mkdir -p $(TOOL_BUILD_DIR) @@ -31,9 +31,9 @@ $(PKG_BUILD_DIR)/.patched: $(PKG_BUILD_DIR)/.unpacked $(STAGING_DIR)/usr/bin/ipkg-build: $(PKG_BUILD_DIR)/.patched mkdir -p $(STAGING_DIR)/etc - echo "dest root $(TARGET_DIR)" > $(STAGING_DIR)/etc/ipkg.conf + echo "dest root /" > $(STAGING_DIR)/etc/ipkg.conf + echo "option offline_root $(TARGET_DIR)" >> $(STAGING_DIR)/etc/ipkg.conf mkdir -p $(STAGING_DIR)/usr/bin - install -m0755 $(TARGET_DIR)/bin/ipkg $(STAGING_DIR)/usr/bin install -m0755 $(PKG_BUILD_DIR)/ipkg-build $(STAGING_DIR)/usr/bin install -m0755 $(PKG_BUILD_DIR)/ipkg-buildpackage $(STAGING_DIR)/usr/bin install -m0755 $(PKG_BUILD_DIR)/ipkg-make-index $(STAGING_DIR)/usr/bin