From 8fe63c3899cbdad9de50a7f1ec8802388c26a82a Mon Sep 17 00:00:00 2001 From: Alex Deymo Date: Thu, 2 Mar 2017 22:08:41 -0800 Subject: [PATCH] Add PRODUCT_IOT to the list of product vars. This variable tells whether the product is an Android Things variant of Android. Bug: 32549448 Test: `make dist` on an iot product. Change-Id: I0875951ae57867bc8bf47885e77e494d6284acdb --- core/product.mk | 1 + core/product_config.mk | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/core/product.mk b/core/product.mk index 7d7c68b617..fffd7c8fff 100644 --- a/core/product.mk +++ b/core/product.mk @@ -128,6 +128,7 @@ _product_var_list := \ VENDOR_EXCEPTION_MODULES \ VENDOR_EXCEPTION_PATHS \ PRODUCT_ART_USE_READ_BARRIER \ + PRODUCT_IOT \ diff --git a/core/product_config.mk b/core/product_config.mk index 8943429c81..dc71d5dba3 100644 --- a/core/product_config.mk +++ b/core/product_config.mk @@ -420,3 +420,7 @@ _psmc_modules := # Make this art variable visible to soong_config.mk. PRODUCT_ART_USE_READ_BARRIER := \ $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_ART_USE_READ_BARRIER)) + +# Whether the product is an Android Things variant. +PRODUCT_IOT := \ + $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_IOT))