set the PROFILE variable in target.mk appropriately
[openwrt-10.03/.git] / include / target.mk
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TMP_DIR)/.target.mk
9
10 define AddProfile
11   ifeq ($(CONFIG_LINUX_$(call confname,$(KERNEL)_$(1))),y)
12     PROFILE=$(1)
13   endif
14 endef
15
16 ifeq ($(IB),1)
17 $(TMP_DIR)/.target.mk: $(TOPDIR)/.target.mk
18         $(CP) $< $@
19 else
20 $(TMP_DIR)/.target.mk: $(TMP_DIR)/.targetinfo
21         $(SCRIPT_DIR)/metadata.pl target_mk < $(TMP_DIR)/.targetinfo > $@
22 endif
23