aboutsummaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
authorAri Hausman-Cohen <arihc@google.com>2018-06-21 11:11:03 -0700
committerAri Hausman-Cohen <arihc@google.com>2018-06-27 16:53:09 -0700
commit7805d1dd51cf1596b25682b520088fa58fc59b43 (patch)
treec863259e88197d0a33cbbfe130a5d32d1d4917b1 /android
parent9d951a10f39b4d322e829f4d5786b9e0fbb685b8 (diff)
downloadbuild_soong-7805d1dd51cf1596b25682b520088fa58fc59b43.tar.gz
build_soong-7805d1dd51cf1596b25682b520088fa58fc59b43.tar.bz2
build_soong-7805d1dd51cf1596b25682b520088fa58fc59b43.zip
Add Product_is_iot to soong config.
Some code needs to behave differently for Android Things systems. The Product_is_iot variable property can be used to determine if a build is for Android Things or not. Bug: 110494430 Test: aosp_angler builds Change-Id: I902b438a334786adbd515188ad35e241d82e69fe
Diffstat (limited to 'android')
-rw-r--r--android/variable.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/android/variable.go b/android/variable.go
index af414cbe..4cd53134 100644
--- a/android/variable.go
+++ b/android/variable.go
@@ -62,6 +62,11 @@ type variableProperties struct {
Cflags []string
}
+ // Product_is_iot is true for Android Things devices.
+ Product_is_iot struct {
+ Cflags []string
+ }
+
// treble_linker_namespaces is true when the system/vendor linker namespace separation is
// enabled.
Treble_linker_namespaces struct {
@@ -201,6 +206,8 @@ type productVariables struct {
Override_rs_driver *string `json:",omitempty"`
+ Product_is_iot *bool `json:",omitempty"`
+
DeviceKernelHeaders []string `json:",omitempty"`
DistDir *string `json:",omitempty"`