From ca32373c951c651f4fe5d8f99ddeb8d4f20bbe3e Mon Sep 17 00:00:00 2001 From: Philip Prindeville Date: Tue, 16 Jan 2018 15:46:44 -0700 Subject: [PATCH] target.mk: let profile remove from DEFAULT_PACKAGES 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 --- include/target.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/target.mk b/include/target.mk index 8ee197f1c4..b84468997a 100644 --- a/include/target.mk +++ b/include/target.mk @@ -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)"; ) \ -- 2.25.1