Skip to content

Commit

Permalink
target.mk: let profile remove from DEFAULT_PACKAGES
Browse files Browse the repository at this point in the history
In a profile, specifying -pkg in the list of PACKAGES will suppress
it even if it appears in the target's DEFAULT_PACKAGES list.

Signed-off-by: Philip Prindeville <[email protected]>
  • Loading branch information
pprindeville authored and blogic committed Feb 13, 2018
1 parent 4baffa0 commit ca32373
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ define Profile
$(eval $(call ProfileDefault))
$(eval $(call Profile/$(1)))
dumpinfo : $(call shexport,Profile/$(1)/Description)
DEFAULT_PACKAGES := $(filter-out $(patsubst -%,%,$(filter -%,$(PACKAGES))),$(DEFAULT_PACKAGES))
PACKAGES := $(filter-out -%,$(PACKAGES))
DUMPINFO += \
echo "Target-Profile: $(1)"; \
$(if $(PRIORITY), echo "Target-Profile-Priority: $(PRIORITY)"; ) \
Expand Down

0 comments on commit ca32373

Please sign in to comment.