From faf9b0128c2c6b82926cb37f0521d74338baa271 Mon Sep 17 00:00:00 2001 From: Hugo Drumond Jacob Date: Mon, 20 May 2024 18:32:50 +0200 Subject: [PATCH] Dump the required modules into module-info.json Certain applications, like tracking the dependency chain of modules, knowing the "required" dependencies is required. In this context, "required" here means the `required` field in Android.bp files. Bug: 339193439 Test: Inspect module-info.json for the `required` field Change-Id: I09977bf71a0a0ae46ea9268ce1faa5c90673bb7a --- core/tasks/module-info.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/core/tasks/module-info.mk b/core/tasks/module-info.mk index aa695eb31c..623f99c524 100644 --- a/core/tasks/module-info.mk +++ b/core/tasks/module-info.mk @@ -32,6 +32,7 @@ $(MODULE_INFO_JSON): $(SOONG_MODULE_INFO) $(call write-optional-json-list, "auto_test_config", $(sort $(ALL_MODULES.$(m).auto_test_config))) \ $(call write-optional-json-list, "test_config", $(strip $(ALL_MODULES.$(m).TEST_CONFIG) $(ALL_MODULES.$(m).EXTRA_TEST_CONFIGS))) \ $(call write-optional-json-list, "dependencies", $(sort $(ALL_MODULES.$(m).ALL_DEPS))) \ + $(call write-optional-json-list, "required", $(sort $(ALL_MODULES.$(m).REQUIRED_FROM_TARGET))) \ $(call write-optional-json-list, "shared_libs", $(sort $(ALL_MODULES.$(m).SHARED_LIBS))) \ $(call write-optional-json-list, "static_libs", $(sort $(ALL_MODULES.$(m).STATIC_LIBS))) \ $(call write-optional-json-list, "system_shared_libs", $(sort $(ALL_MODULES.$(m).SYSTEM_SHARED_LIBS))) \