Browse Source

set the PROFILE variable in target.mk appropriately

SVN-Revision: 6470
Felix Fietkau 19 years ago
parent
commit
8069e38587
1 changed files with 6 additions and 0 deletions
  1. 6 0
      include/target.mk

+ 6 - 0
include/target.mk

@@ -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) $< $@