add support for flagging packages
SVN-Revision: 23172
This commit is contained in:
parent
adcfdc46e0
commit
8b9ca16985
2 changed files with 6 additions and 0 deletions
|
@ -23,6 +23,11 @@ define Package/Default
|
||||||
else
|
else
|
||||||
VERSION:=$(PKG_RELEASE)
|
VERSION:=$(PKG_RELEASE)
|
||||||
endif
|
endif
|
||||||
|
ifneq ($(PKG_FLAGS),)
|
||||||
|
PKGFLAGS:=$(PKG_FLAGS)
|
||||||
|
else
|
||||||
|
PKGFLAGS:=
|
||||||
|
endif
|
||||||
ifneq ($(ARCH_PACKAGES),)
|
ifneq ($(ARCH_PACKAGES),)
|
||||||
PKGARCH:=$(ARCH_PACKAGES)
|
PKGARCH:=$(ARCH_PACKAGES)
|
||||||
else
|
else
|
||||||
|
|
|
@ -117,6 +117,7 @@ ifeq ($(DUMP),)
|
||||||
$$(INFO_$(1)): $$(IPKG_$(1))
|
$$(INFO_$(1)): $$(IPKG_$(1))
|
||||||
@[ -d $(TARGET_DIR)/tmp ] || mkdir -p $(TARGET_DIR)/tmp
|
@[ -d $(TARGET_DIR)/tmp ] || mkdir -p $(TARGET_DIR)/tmp
|
||||||
$(OPKG) install $$(IPKG_$(1))
|
$(OPKG) install $$(IPKG_$(1))
|
||||||
|
$(if $(PKGFLAGS),for flag in $(PKGFLAGS); do $(OPKG) flag $$$$flag $(1); done)
|
||||||
|
|
||||||
$(1)-clean:
|
$(1)-clean:
|
||||||
rm -f $(PACKAGE_DIR)/$(1)_*
|
rm -f $(PACKAGE_DIR)/$(1)_*
|
||||||
|
|
Loading…
Reference in a new issue