aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-11-11 16:18:01 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-11-11 16:18:01 +0000
commit2a5914606c823f9c91dbbc7f874144d22a01ee0b (patch)
tree78df8ce4d1dc8823e853f37b8a5af3d2c1e966dc /include
parent6a2986156bcd8b1ac96c59ed83c26d3f6031e582 (diff)
downloadmaster-187ad058-2a5914606c823f9c91dbbc7f874144d22a01ee0b.tar.gz
master-187ad058-2a5914606c823f9c91dbbc7f874144d22a01ee0b.tar.bz2
master-187ad058-2a5914606c823f9c91dbbc7f874144d22a01ee0b.zip
[include] package-ipkg.mk: add support for "essential" package flag, fix typo
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23959 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/package-ipkg.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk
index 8ff0d70d1c..ce979a1273 100644
--- a/include/package-ipkg.mk
+++ b/include/package-ipkg.mk
@@ -103,6 +103,7 @@ ifeq ($(DUMP),)
echo "Source: $(SOURCE)"; \
echo "Section: $(SECTION)"; \
echo "Status: unknown $(if $(filter hold,$(PKG_FLAGS)),hold,ok) not-installed"; \
+ echo "Essential: $(if $(filter essential,$(PKG_FLAGS)),yes,no)"; \
echo "Priority: $(PRIORITY)"; \
echo "Maintainer: $(MAINTAINER)"; \
echo "Architecture: $(PKGARCH)"; \
@@ -133,7 +134,7 @@ ifeq ($(DUMP),)
$$(INFO_$(1)): $$(IPKG_$(1))
@[ -d $(TARGET_DIR)/tmp ] || mkdir -p $(TARGET_DIR)/tmp
$(OPKG) install $$(IPKG_$(1))
- $(if $(PKGFLAGS),for flag in $(PKGFLAGS); do $(OPKG) flag $$$$flag $(1); done)
+ $(if $(filter-out essential,$(PKG_FLAGS)),for flag in $(filter-out essential,$(PKG_FLAGS)); do $(OPKG) flag $$$$flag $(1); done)
$(1)-clean:
rm -f $(PACKAGE_DIR)/$(1)_*