From 7087e591c063aeea4289dd7e2e689d59b9c4fce1 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 8 Oct 2013 03:57:08 +0200 Subject: [PATCH] Fix inclusion of profile-specific packages from OpenWRT --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6eb0a117..eb350fe1 100644 --- a/Makefile +++ b/Makefile @@ -69,21 +69,30 @@ include tools/Makefile include toolchain/Makefile BOARD := ar71xx +override SUBTARGET := generic + PROFILES := PROFILE_PACKAGES := gluon_prepared_stamp := $(GLUON_BUILDDIR)/$(BOARD)/prepared +define Profile + $(eval $(call Profile/Default)) + $(eval $(call Profile/$(1))) + $(1)_PACKAGES := $(PACKAGES) +endef + define GluonProfile image/$(1): $(gluon_prepared_stamp) +$(GLUONMAKE) image PROFILE="$(1)" V=s$(OPENWRT_VERBOSE) PROFILES += $(1) -PROFILE_PACKAGES += $(filter-out -%,$(2) $(GLUON_$(1)_SITE_PACKAGES)) +PROFILE_PACKAGES += $(filter-out -%,$($(1)_PACKAGES) $(2) $(GLUON_$(1)_SITE_PACKAGES)) GLUON_$(1)_DEFAULT_PACKAGES := $(2) endef +include $(INCLUDE_DIR)/target.mk include $(GLUONDIR)/include/profiles.mk