set the PROFILE variable in target.mk appropriately
authorFelix Fietkau <nbd@openwrt.org>
Fri, 2 Mar 2007 23:13:52 +0000 (23:13 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 2 Mar 2007 23:13:52 +0000 (23:13 +0000)
SVN-Revision: 6470

include/target.mk

index bd3ceb9..d0f7b9b 100644 (file)
@@ -7,6 +7,12 @@
 
 include $(TMP_DIR)/.target.mk
 
+define AddProfile
+  ifeq ($(CONFIG_LINUX_$(call confname,$(KERNEL)_$(1))),y)
+    PROFILE=$(1)
+  endif
+endef
+
 ifeq ($(IB),1)
 $(TMP_DIR)/.target.mk: $(TOPDIR)/.target.mk
        $(CP) $< $@