Fix dump-products.

m dump-products didn't print anything useful prior to this change,
however this was visible in the terminal:
15:18:58 Error dumping make vars: Failed to parse make line: "==== build/target/product/aosp_arm.mk ===="

Convert this goal to normal target instead, which apart from making
$(info) actually print something, considers the build successful
when running "m dump-products" too. This makes it easier to run with
e.g. multiproduct_kati.

Test: m dump-products
Change-Id: I944c87cd0fd323687690b0fcc3c37a8f37242cd9
This commit is contained in:
Anton Hansson 2018-08-20 15:20:19 +01:00
parent 85d8ce044f
commit 9b8e6cf067
2 changed files with 5 additions and 5 deletions

View file

@ -1435,6 +1435,11 @@ modules:
@echo "$(call module-names-for-tag-list,$(ALL_MODULE_TAGS))" | \ @echo "$(call module-names-for-tag-list,$(ALL_MODULE_TAGS))" | \
tr -s ' ' '\n' | sort -u | $(COLUMN) tr -s ' ' '\n' | sort -u | $(COLUMN)
.PHONY: dump-products
dump-products:
$(dump-products)
@echo Successfully dumped products
.PHONY: nothing .PHONY: nothing
nothing: nothing:
@echo Successfully read the makefiles. @echo Successfully read the makefiles.

View file

@ -243,11 +243,6 @@ $(foreach makefile,$(ARTIFACT_PATH_REQUIREMENT_PRODUCTS),\
# Sanity check # Sanity check
$(check-all-products) $(check-all-products)
ifneq ($(filter dump-products, $(MAKECMDGOALS)),)
$(dump-products)
$(error done)
endif
# Convert a short name like "sooner" into the path to the product # Convert a short name like "sooner" into the path to the product
# file defining that product. # file defining that product.
# #