From 31af2678fe540484bc3f5eeb98b2b165748ee84c Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Tue, 11 Feb 2020 09:36:25 +0900 Subject: [PATCH] m builds . When a module is not available for platform (i.e. //apex_available:platform is missing in the apex_available property), m previously just didn't work because there is no platform variant of the module. This change fixes the behavior; regardless of whether the platform variant is available or not, m builds all the apex variants of the module along with the platform variant if it exists. Bug: 147728094 Test: m conscrypt Change-Id: Iedd3fa6fc0ed779c5f7c5d65f23d86f799ac0cbe --- apex/androidmk.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apex/androidmk.go b/apex/androidmk.go index 714045fc2..0abec0d93 100644 --- a/apex/androidmk.go +++ b/apex/androidmk.go @@ -217,6 +217,12 @@ func (a *apexBundle) androidMkForFiles(w io.Writer, apexBundleName, apexName, mo } fmt.Fprintln(w, "include $(BUILD_PREBUILT)") } + + // m will build . as well. + if fi.moduleName != moduleName && a.primaryApexType { + fmt.Fprintln(w, ".PHONY: "+fi.moduleName) + fmt.Fprintln(w, fi.moduleName+": "+moduleName) + } } return moduleNames }