mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
target.mk: dump device profiles defined in include/image.mk
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
6ddca3a361
commit
87550a0e87
@ -272,6 +272,11 @@ ifeq ($(DUMP),1)
|
|||||||
DEFAULT_CFLAGS=$(strip $(CPU_CFLAGS) $(CPU_CFLAGS_$(CPU_TYPE)) $(CPU_CFLAGS_$(CPU_SUBTYPE)))
|
DEFAULT_CFLAGS=$(strip $(CPU_CFLAGS) $(CPU_CFLAGS_$(CPU_TYPE)) $(CPU_CFLAGS_$(CPU_SUBTYPE)))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
CUR_SUBTARGET:=$(SUBTARGET)
|
||||||
|
ifeq ($(SUBTARGETS),)
|
||||||
|
CUR_SUBTARGET ?= default
|
||||||
|
endif
|
||||||
|
|
||||||
define BuildTargets/DumpCurrent
|
define BuildTargets/DumpCurrent
|
||||||
.PHONY: dumpinfo
|
.PHONY: dumpinfo
|
||||||
dumpinfo : export DESCRIPTION=$$(Target/Description)
|
dumpinfo : export DESCRIPTION=$$(Target/Description)
|
||||||
@ -294,6 +299,7 @@ define BuildTargets/DumpCurrent
|
|||||||
echo '@@'; \
|
echo '@@'; \
|
||||||
echo 'Default-Packages: $(DEFAULT_PACKAGES) $(call extra_packages,$(DEFAULT_PACKAGES))'; \
|
echo 'Default-Packages: $(DEFAULT_PACKAGES) $(call extra_packages,$(DEFAULT_PACKAGES))'; \
|
||||||
$(DUMPINFO)
|
$(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); ))
|
$(if $(SUBTARGET),,@$(foreach SUBTARGET,$(SUBTARGETS),$(SUBMAKE) -s DUMP=1 SUBTARGET=$(SUBTARGET); ))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user