package-ipkg.mk: flag packages as "ok" after install
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 15 Jul 2012 19:29:43 +0000 (19:29 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 15 Jul 2012 19:29:43 +0000 (19:29 +0000)
By flagging compile-time-installed packages as "ok", they can be differentiated
from runtime-installed packages on the target later on.

SVN-Revision: 32739

include/package-ipkg.mk

index 0ce205506152e6fe7e9296e2e682a56e6c8c768c..14520cfd95ee402ecf1e4a7f8c07e59c8f92b843 100644 (file)
@@ -191,7 +191,7 @@ ifeq ($(DUMP),)
     $$(INFO_$(1)): $$(IPKG_$(1))
        @[ -d $(TARGET_DIR)/tmp ] || mkdir -p $(TARGET_DIR)/tmp
        $(OPKG) install $$(IPKG_$(1))
-       $(if $(filter-out essential,$(PKG_FLAGS)),for flag in $(filter-out essential,$(PKG_FLAGS)); 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,$(OPKG) flag ok $(1))
 
     $(1)-clean:
        rm -f $(PACKAGE_DIR)/$(1)_*