add support for flagging packages
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 2 Oct 2010 03:21:33 +0000 (03:21 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 2 Oct 2010 03:21:33 +0000 (03:21 +0000)
SVN-Revision: 23172

include/package-defaults.mk
include/package-ipkg.mk

index f17653b7fe0ee8b736ee3f046798d7f524eb080e..1d29119d81fab0aba0a8f3eab81c430ae99000af 100644 (file)
@@ -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
index dbf87219776033d867de8b06b38f50272b9383bb..edee6a4c55d10da33dd3d73a2f8d22769d08a5bc 100644 (file)
@@ -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)_*