summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
author Pierre-Clément Tosi <ptosi@google.com> 2024-10-02 15:06:51 +0100
committer Pierre-Clément Tosi <ptosi@google.com> 2024-10-10 12:25:26 +0100
commitd3bd6b4867829891200ec58d7e545b81e767dc4f (patch)
tree864e51bb8a56fb50cd85c8f802561e6565575669 /Android.bp
parent11a9db9b3abe7feebde86b9e7aed506d513aeddc (diff)
Introduce cc_baremetal_defaults
Add a way to easily share configuration across all C/C++ libraries targeting a "baremetal" environment (typically AArch64 EL1) but unfortunately re-using the cc infrastructure, which actually targets Android EL0. This will be used to restrict the compiler flags in a follow-up. Note: No functional change intended. Test: m Change-Id: I1160d87088090d2f429f33ea53385329e5caa2ce
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index d71bcecd8..34f9bf012 100644
--- a/Android.bp
+++ b/Android.bp
@@ -142,6 +142,14 @@ all_apex_contributions {
visibility: ["//visibility:public"],
}
+// Defaults to share configs between "baremetal" Soong modules, currently only
+// used for code running in kernel context within Android Virtualization
+// Framework guests.
+cc_defaults {
+ name: "cc_baremetal_defaults",
+ defaults_visibility: ["//visibility:public"],
+}
+
product_config {
name: "product_config",
visibility: [