X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Ftarget.mk;h=9ee369d9b123ee31c508e8f77fc8cecb392d942d;hb=1fe9314a6dad82e30efaf396c182d97d07d110d7;hp=1f17883ab17d062fc240179fe7fb88eb78db0bab;hpb=23301f23c7b47ba4eefbe57d4b8b17431c643263;p=openwrt.git diff --git a/include/target.mk b/include/target.mk index 1f17883ab1..9ee369d9b1 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 @@ -138,6 +150,7 @@ define BuildTargets/DumpCurrent echo 'Target-Path: $(subst $(TOPDIR)/,,$(PWD))'; \ echo 'Target-Arch: $(ARCH)'; \ echo 'Target-Features: $(FEATURES)'; \ + echo 'Target-Depends: $(DEPENDS)'; \ echo 'Linux-Version: $(LINUX_VERSION)'; \ echo 'Linux-Release: $(LINUX_RELEASE)'; \ echo 'Linux-Kernel-Arch: $(LINUX_KARCH)'; \