diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2007-10-03 19:22:51 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2007-10-03 19:22:51 +0000 |
commit | 6693e40cb674cdee9e64964a60fbd78009445a7e (patch) | |
tree | 858057ac9661d798f324a14602d864cfd0dc3ec5 /include | |
parent | 0d0e1ba7e7287bd744eabdf56cffd7b01577a8f9 (diff) | |
download | upstream-6693e40cb674cdee9e64964a60fbd78009445a7e.tar.gz upstream-6693e40cb674cdee9e64964a60fbd78009445a7e.tar.bz2 upstream-6693e40cb674cdee9e64964a60fbd78009445a7e.zip |
fix target profiles, (closes: 2440)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9113 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r-- | include/target.mk | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/include/target.mk b/include/target.mk index 1f17883ab1..0217fcff6f 100644 --- a/include/target.mk +++ b/include/target.mk @@ -1,4 +1,4 @@ -# +# # Copyright (C) 2007 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. @@ -75,10 +75,22 @@ define Profile endif endef -ifeq ($(if $(TARGET_BUILD),$(DUMP)),1) - -include $(PLATFORM_DIR)/profiles/*.mk - ifneq ($(PLATFORM_DIR),$(PLATFORM_SUBDIR)) +ifneq ($(PLATFORM_DIR),$(PLATFORM_SUBDIR)) + define IncludeProfiles + -include $(PLATFORM_DIR)/profiles/*.mk -include $(PLATFORM_SUBDIR)/profiles/*.mk + endef +else + define IncludeProfiles + -include $(PLATFORM_DIR)/profiles/*.mk + endef +endif + +ifeq ($(TARGET_BUILD),1) + $(eval $(call IncludeProfiles)) +else + ifeq ($(DUMP),) + $(eval $(call IncludeProfiles)) endif endif |