diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-02 03:21:33 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-02 03:21:33 +0000 |
commit | 8b9ca169850fd535c33fbeb6d114cd0c8f3e235a (patch) | |
tree | 2df8700d1ea63ce335073c6d3cabaeadbd2c7a4a | |
parent | adcfdc46e0c9b8179a8965731cac89895fa742ac (diff) | |
download | upstream-8b9ca169850fd535c33fbeb6d114cd0c8f3e235a.tar.gz upstream-8b9ca169850fd535c33fbeb6d114cd0c8f3e235a.tar.bz2 upstream-8b9ca169850fd535c33fbeb6d114cd0c8f3e235a.zip |
add support for flagging packages
SVN-Revision: 23172
-rw-r--r-- | include/package-defaults.mk | 5 | ||||
-rw-r--r-- | include/package-ipkg.mk | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/package-defaults.mk b/include/package-defaults.mk index f17653b7fe..1d29119d81 100644 --- a/include/package-defaults.mk +++ b/include/package-defaults.mk @@ -23,6 +23,11 @@ define Package/Default else VERSION:=$(PKG_RELEASE) endif + ifneq ($(PKG_FLAGS),) + PKGFLAGS:=$(PKG_FLAGS) + else + PKGFLAGS:= + endif ifneq ($(ARCH_PACKAGES),) PKGARCH:=$(ARCH_PACKAGES) else diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk index dbf8721977..edee6a4c55 100644 --- a/include/package-ipkg.mk +++ b/include/package-ipkg.mk @@ -117,6 +117,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) $(1)-clean: rm -f $(PACKAGE_DIR)/$(1)_* |