From 87a88cebc798989ef7d36cc590d4a3cdd42134f0 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 8 Sep 2007 20:04:43 +0000 Subject: adapt profiles for subtarget changes SVN-Revision: 8695 --- include/target.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/target.mk b/include/target.mk index 42f484a..8f072d0 100644 --- a/include/target.mk +++ b/include/target.mk @@ -70,13 +70,17 @@ define Profile getvar "$(call shvar,Profile/$(1)/Description)"; \ echo "@@"; \ echo; - ifeq ($(CONFIG_TARGET_$(call target_conf,$(BOARD)_$(if $(2),$(2)_)$(1))),y) + ifeq ($(CONFIG_TARGET_$(call target_conf,$(BOARD)_$(if $(SUBTARGET),$(SUBTARGET)_)$(1))),y) PROFILE=$(1) endif endef -$(eval $(call shexport,Target/Description)) +-include $(PLATFORM_DIR)/profiles/*.mk +ifneq ($(PLATFORM_DIR),$(PLATFORM_SUBDIR)) + -include $(PLATFORM_SUBDIR)/profiles/*.mk +endif +$(eval $(call shexport,Target/Description)) include $(INCLUDE_DIR)/kernel-version.mk -- cgit v1.1