summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-28 02:18:16 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-28 02:18:16 +0000
commit55da36a1f29df8831b834beb8684e374005df241 (patch)
tree86fb2049c2b8714f2ac101dd0f7144d1a63007fc /include
parentb31d05c970845efc9522d05294efd2da1db3d942 (diff)
[buildsystem] revert r22372 and r22405, dependency on host libtool causes problems
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22406 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/package-ipkg.mk22
1 files changed, 8 insertions, 14 deletions
diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk
index 57b06c86d8..87b142aa59 100644
--- a/include/package-ipkg.mk
+++ b/include/package-ipkg.mk
@@ -1,20 +1,17 @@
#
-# Copyright (C) 2006-2010 OpenWrt.org
+# Copyright (C) 2006,2007 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# where to build (and put) .ipk packages
-OPKG:= \
+IPKG:= \
IPKG_TMP=$(TMP_DIR)/ipkg \
IPKG_INSTROOT=$(TARGET_DIR) \
IPKG_CONF_DIR=$(STAGING_DIR)/etc \
IPKG_OFFLINE_ROOT=$(TARGET_DIR) \
- $(STAGING_DIR_HOST)/bin/opkg \
- -f $(STAGING_DIR)/etc/opkg.conf \
- --force-depends \
- --force-overwrite
+ $(SCRIPT_DIR)/ipkg -force-defaults -force-depends
# invoke ipkg-build with some default options
IPKG_BUILD:= \
@@ -79,7 +76,7 @@ ifeq ($(DUMP),)
rm -rf $(STAGING_DIR_ROOT)/tmp-$(1)
touch $$@
- $$(IPKG_$(1)): $(STAGING_DIR)/etc/opkg.conf $(STAMP_BUILT)
+ $$(IPKG_$(1)): $(STAGING_DIR)/etc/ipkg.conf $(STAMP_BUILT)
@rm -f $(PACKAGE_DIR)/$(1)_*
rm -rf $$(IDIR_$(1))
mkdir -p $$(IDIR_$(1))/CONTROL
@@ -114,8 +111,7 @@ ifeq ($(DUMP),)
@[ -f $$(IPKG_$(1)) ] || false
$$(INFO_$(1)): $$(IPKG_$(1))
- @[ -d $(TARGET_DIR)/tmp ] || mkdir -p $(TARGET_DIR)/tmp
- $(OPKG) install $$(IPKG_$(1))
+ $(IPKG) install $$(IPKG_$(1))
$(1)-clean:
rm -f $(PACKAGE_DIR)/$(1)_*
@@ -124,11 +120,9 @@ ifeq ($(DUMP),)
endef
- $(STAGING_DIR)/etc/opkg.conf:
+ $(STAGING_DIR)/etc/ipkg.conf:
mkdir -p $(STAGING_DIR)/etc
- ( echo "dest root /" > $@; \
- echo "arch all 100" >> $@; \
- echo "arch $(PKGARCH) 200" >> $@; \
- echo "option offline_root $(TARGET_DIR)" >> $@ )
+ echo "dest root /" > $(STAGING_DIR)/etc/ipkg.conf
+ echo "option offline_root $(TARGET_DIR)" >> $(STAGING_DIR)/etc/ipkg.conf
endif