diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-05-09 18:51:00 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-05-11 19:03:35 +0200 |
commit | 87550a0e8784805ade2058c3f320add972062941 (patch) | |
tree | 21eb8b3259b2a7c5f02cf76612058624d3a0d491 /include | |
parent | 6ddca3a3615501264db83098f01834cfb4b1aefd (diff) | |
download | upstream-87550a0e8784805ade2058c3f320add972062941.tar.gz upstream-87550a0e8784805ade2058c3f320add972062941.tar.bz2 upstream-87550a0e8784805ade2058c3f320add972062941.zip |
target.mk: dump device profiles defined in include/image.mk
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include')
-rw-r--r-- | include/target.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/target.mk b/include/target.mk index f7284d0eb5..817901f0b9 100644 --- a/include/target.mk +++ b/include/target.mk @@ -272,6 +272,11 @@ ifeq ($(DUMP),1) DEFAULT_CFLAGS=$(strip $(CPU_CFLAGS) $(CPU_CFLAGS_$(CPU_TYPE)) $(CPU_CFLAGS_$(CPU_SUBTYPE))) endif +CUR_SUBTARGET:=$(SUBTARGET) +ifeq ($(SUBTARGETS),) + CUR_SUBTARGET ?= default +endif + define BuildTargets/DumpCurrent .PHONY: dumpinfo dumpinfo : export DESCRIPTION=$$(Target/Description) @@ -294,6 +299,7 @@ define BuildTargets/DumpCurrent echo '@@'; \ echo 'Default-Packages: $(DEFAULT_PACKAGES) $(call extra_packages,$(DEFAULT_PACKAGES))'; \ $(DUMPINFO) + $(if $(CUR_SUBTARGET),$(SUBMAKE) -r --no-print-directory -C image -s DUMP=1 SUBTARGET=$(CUR_SUBTARGET)) $(if $(SUBTARGET),,@$(foreach SUBTARGET,$(SUBTARGETS),$(SUBMAKE) -s DUMP=1 SUBTARGET=$(SUBTARGET); )) endef |