Loading core/board_config.mk +1 −1 Original line number Diff line number Diff line Loading @@ -254,7 +254,7 @@ else endif $(shell build/soong/scripts/update_out $(OUT_DIR)/rbc/rbc_board_config_results.mk \ $(OUT_DIR)/rbcrun RBC_OUT="make,global" $(OUT_DIR)/rbc/boardlauncher.rbc) $(OUT_DIR)/rbcrun RBC_OUT="make" $(OUT_DIR)/rbc/boardlauncher.rbc) ifneq ($(.SHELLSTATUS),0) $(error board configuration runner failed: $(.SHELLSTATUS)) endif Loading core/dumpconfig.mk +0 −1 Original line number Diff line number Diff line Loading @@ -117,7 +117,6 @@ DUMPCONFIG_SKIP_VARS := \ 9 \ LOCAL_PATH \ MAKEFILE_LIST \ PARENT_PRODUCT_FILES \ current_mk \ _eiv_ev \ _eiv_i \ Loading core/main.mk +0 −24 Original line number Diff line number Diff line Loading @@ -1234,33 +1234,9 @@ endef # See the select-bitness-of-required-modules definition. # $(1): product makefile # TODO(asmundak): # `product-installed-files` and `host-installed-files` macros below used to # call `get-product-var` directly to obtain per-file configuration variable # values (the value of variable FOO is fetched from PRODUCT.<product-makefile>.FOO). # Starlark-based configuration does not maintain per-file variable variable # values. To work around this problem, we utilize the fact that # `product-installed-files` and `host-installed-files` are called only in # two places: # 1. For the top-level product makefile (in this file). In this case # $(call get-product-var <product>, FOO) is the same as $(FOO) as the # product configuration has been run already. Therefore we define # _product-var macro to pick the values directly from product config # variables when using Starlark-based configuration. # 2. To check the path requirements (in artifact_path_requirements.mk). # Starlark-based configuration does not perform this check at the moment. # In the longer run most of the logic of this file will be moved to the # Starlark. ifndef RBC_PRODUCT_CONFIG define _product-var $(call get-product-var,$(1),$(2)) endef else define _product-var $(call $(2)) endef endif define product-installed-files $(eval _pif_modules := \ Loading core/product-graph.mk +1 −13 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ # the sort also acts as a strip to remove the single space entries that creep in because of the evals define gather-all-products $(eval _all_products_visited := )\ $(sort $(call all-products-inner, $(PARENT_PRODUCT_FILES))) $(sort $(call all-products-inner, $(PRODUCTS))) endef define all-products-inner Loading Loading @@ -78,7 +78,6 @@ $(products_graph): PRIVATE_PRODUCTS := $(all_products) $(products_graph): PRIVATE_PRODUCTS_FILTER := $(products_list) $(products_graph): $(this_makefile) ifeq (,$(RBC_PRODUCT_CONFIG)$(RBC_NO_PRODUCT_GRAPH)$(RBC_BOARD_CONFIG)) @echo Product graph DOT: $@ for $(PRIVATE_PRODUCTS_FILTER) $(hide) echo 'digraph {' > $@.in $(hide) echo 'graph [ ratio=.5 ];' >> $@.in Loading @@ -87,20 +86,9 @@ ifeq (,$(RBC_PRODUCT_CONFIG)$(RBC_NO_PRODUCT_GRAPH)$(RBC_BOARD_CONFIG)) $(foreach p,$(PRIVATE_PRODUCTS),$(call emit-product-node-props,$(p),$@.in)) $(hide) echo '}' >> $@.in $(hide) build/make/tools/filter-product-graph.py $(PRIVATE_PRODUCTS_FILTER) < $@.in > $@ else @echo RBC_PRODUCT_CONFIG and RBC_NO_PRODUCT_GRAPH should be unset to generate product graph false endif ifeq (,$(RBC_PRODUCT_CONFIG)$(RBC_NO_PRODUCT_GRAPH)$(RBC_BOARD_CONFIG)) .PHONY: product-graph product-graph: $(products_graph) @echo Product graph .dot file: $(products_graph) @echo Command to convert to pdf: dot -Tpdf -Nshape=box -o $(OUT_DIR)/products.pdf $(products_graph) @echo Command to convert to svg: dot -Tsvg -Nshape=box -o $(OUT_DIR)/products.svg $(products_graph) else .PHONY: product-graph @echo RBC_PRODUCT_CONFIG and RBC_NO_PRODUCT_GRAPH should be unset to generate product graph false endif core/product.mk +2 −4 Original line number Diff line number Diff line Loading @@ -396,12 +396,11 @@ endef # $(1): product to inherit # # To be called from product makefiles, and is later evaluated during the import-nodes # call below. It does three things: # call below. It does the following: # 1. Inherits all of the variables from $1. # 2. Records the inheritance in the .INHERITS_FROM variable # 3. Records the calling makefile in PARENT_PRODUCT_FILES # # (2) and (3) can be used together to reconstruct the include hierarchy # (2) and the PRODUCTS variable can be used together to reconstruct the include hierarchy # See e.g. product-graph.mk for an example of this. # define inherit-product Loading @@ -416,7 +415,6 @@ define inherit-product $(eval current_mk := $(strip $(word 1,$(_include_stack)))) \ $(eval inherit_var := PRODUCTS.$(current_mk).INHERITS_FROM) \ $(eval $(inherit_var) := $(sort $($(inherit_var)) $(np))) \ $(eval PARENT_PRODUCT_FILES := $(sort $(PARENT_PRODUCT_FILES) $(current_mk))) \ $(call dump-inherit,$(strip $(word 1,$(_include_stack))),$(1)) \ $(call dump-config-vals,$(current_mk),inherit)) endef Loading Loading
core/board_config.mk +1 −1 Original line number Diff line number Diff line Loading @@ -254,7 +254,7 @@ else endif $(shell build/soong/scripts/update_out $(OUT_DIR)/rbc/rbc_board_config_results.mk \ $(OUT_DIR)/rbcrun RBC_OUT="make,global" $(OUT_DIR)/rbc/boardlauncher.rbc) $(OUT_DIR)/rbcrun RBC_OUT="make" $(OUT_DIR)/rbc/boardlauncher.rbc) ifneq ($(.SHELLSTATUS),0) $(error board configuration runner failed: $(.SHELLSTATUS)) endif Loading
core/dumpconfig.mk +0 −1 Original line number Diff line number Diff line Loading @@ -117,7 +117,6 @@ DUMPCONFIG_SKIP_VARS := \ 9 \ LOCAL_PATH \ MAKEFILE_LIST \ PARENT_PRODUCT_FILES \ current_mk \ _eiv_ev \ _eiv_i \ Loading
core/main.mk +0 −24 Original line number Diff line number Diff line Loading @@ -1234,33 +1234,9 @@ endef # See the select-bitness-of-required-modules definition. # $(1): product makefile # TODO(asmundak): # `product-installed-files` and `host-installed-files` macros below used to # call `get-product-var` directly to obtain per-file configuration variable # values (the value of variable FOO is fetched from PRODUCT.<product-makefile>.FOO). # Starlark-based configuration does not maintain per-file variable variable # values. To work around this problem, we utilize the fact that # `product-installed-files` and `host-installed-files` are called only in # two places: # 1. For the top-level product makefile (in this file). In this case # $(call get-product-var <product>, FOO) is the same as $(FOO) as the # product configuration has been run already. Therefore we define # _product-var macro to pick the values directly from product config # variables when using Starlark-based configuration. # 2. To check the path requirements (in artifact_path_requirements.mk). # Starlark-based configuration does not perform this check at the moment. # In the longer run most of the logic of this file will be moved to the # Starlark. ifndef RBC_PRODUCT_CONFIG define _product-var $(call get-product-var,$(1),$(2)) endef else define _product-var $(call $(2)) endef endif define product-installed-files $(eval _pif_modules := \ Loading
core/product-graph.mk +1 −13 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ # the sort also acts as a strip to remove the single space entries that creep in because of the evals define gather-all-products $(eval _all_products_visited := )\ $(sort $(call all-products-inner, $(PARENT_PRODUCT_FILES))) $(sort $(call all-products-inner, $(PRODUCTS))) endef define all-products-inner Loading Loading @@ -78,7 +78,6 @@ $(products_graph): PRIVATE_PRODUCTS := $(all_products) $(products_graph): PRIVATE_PRODUCTS_FILTER := $(products_list) $(products_graph): $(this_makefile) ifeq (,$(RBC_PRODUCT_CONFIG)$(RBC_NO_PRODUCT_GRAPH)$(RBC_BOARD_CONFIG)) @echo Product graph DOT: $@ for $(PRIVATE_PRODUCTS_FILTER) $(hide) echo 'digraph {' > $@.in $(hide) echo 'graph [ ratio=.5 ];' >> $@.in Loading @@ -87,20 +86,9 @@ ifeq (,$(RBC_PRODUCT_CONFIG)$(RBC_NO_PRODUCT_GRAPH)$(RBC_BOARD_CONFIG)) $(foreach p,$(PRIVATE_PRODUCTS),$(call emit-product-node-props,$(p),$@.in)) $(hide) echo '}' >> $@.in $(hide) build/make/tools/filter-product-graph.py $(PRIVATE_PRODUCTS_FILTER) < $@.in > $@ else @echo RBC_PRODUCT_CONFIG and RBC_NO_PRODUCT_GRAPH should be unset to generate product graph false endif ifeq (,$(RBC_PRODUCT_CONFIG)$(RBC_NO_PRODUCT_GRAPH)$(RBC_BOARD_CONFIG)) .PHONY: product-graph product-graph: $(products_graph) @echo Product graph .dot file: $(products_graph) @echo Command to convert to pdf: dot -Tpdf -Nshape=box -o $(OUT_DIR)/products.pdf $(products_graph) @echo Command to convert to svg: dot -Tsvg -Nshape=box -o $(OUT_DIR)/products.svg $(products_graph) else .PHONY: product-graph @echo RBC_PRODUCT_CONFIG and RBC_NO_PRODUCT_GRAPH should be unset to generate product graph false endif
core/product.mk +2 −4 Original line number Diff line number Diff line Loading @@ -396,12 +396,11 @@ endef # $(1): product to inherit # # To be called from product makefiles, and is later evaluated during the import-nodes # call below. It does three things: # call below. It does the following: # 1. Inherits all of the variables from $1. # 2. Records the inheritance in the .INHERITS_FROM variable # 3. Records the calling makefile in PARENT_PRODUCT_FILES # # (2) and (3) can be used together to reconstruct the include hierarchy # (2) and the PRODUCTS variable can be used together to reconstruct the include hierarchy # See e.g. product-graph.mk for an example of this. # define inherit-product Loading @@ -416,7 +415,6 @@ define inherit-product $(eval current_mk := $(strip $(word 1,$(_include_stack)))) \ $(eval inherit_var := PRODUCTS.$(current_mk).INHERITS_FROM) \ $(eval $(inherit_var) := $(sort $($(inherit_var)) $(np))) \ $(eval PARENT_PRODUCT_FILES := $(sort $(PARENT_PRODUCT_FILES) $(current_mk))) \ $(call dump-inherit,$(strip $(word 1,$(_include_stack))),$(1)) \ $(call dump-config-vals,$(current_mk),inherit)) endef Loading