final fix for the profile selection
final fix for the profile selection

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6474 3c298f89-4303-0410-b956-a3cf2f4a3e73

--- a/include/target.mk
+++ b/include/target.mk
@@ -5,13 +5,15 @@
 # See /LICENSE for more information.
 #
 
-include $(TMP_DIR)/.target.mk
 
 define AddProfile
-  ifeq ($(CONFIG_LINUX_$(call confname,$(KERNEL)_$(1))),y)
-    PROFILE=$(1)
+  ifeq ($(CONFIG_LINUX_$(1)),y)
+    $(call Profile/$(1))
+    PROFILE=$$(ID)
   endif
 endef
+
+include $(TMP_DIR)/.target.mk
 
 ifeq ($(IB),1)
 $(TMP_DIR)/.target.mk: $(TOPDIR)/.target.mk

comments