OSDN Git Service

build: Add support for defining products in /product
authorLee Campbell <leecam@google.com>
Thu, 20 Aug 2015 20:55:45 +0000 (13:55 -0700)
committerGaurav Shah <gauravsh@google.com>
Mon, 2 Nov 2015 22:17:47 +0000 (14:17 -0800)
The build will now search for AndroidProducts.mk in /product

BUG: 22030305

Change-Id: I2d067d95d0c8dc1341a55167f9ac7f6926e04ce3

core/product.mk
envsetup.sh

index a9af325..3b78337 100644 (file)
@@ -30,6 +30,7 @@
 define _find-android-products-files
 $(sort $(shell test -d device && find device -maxdepth 6 -name AndroidProducts.mk)) \
   $(sort $(shell test -d vendor && find vendor -maxdepth 6 -name AndroidProducts.mk)) \
+  $(sort $(shell test -d product && find product -maxdepth 6 -name AndroidProducts.mk)) \
   $(SRC_TARGET_DIR)/product/AndroidProducts.mk
 endef
 
index f838d62..245d5a2 100644 (file)
@@ -1535,7 +1535,8 @@ fi
 
 # Execute the contents of any vendorsetup.sh files we can find.
 for f in `test -d device && find -L device -maxdepth 4 -name 'vendorsetup.sh' 2> /dev/null | sort` \
-         `test -d vendor && find -L vendor -maxdepth 4 -name 'vendorsetup.sh' 2> /dev/null | sort`
+         `test -d vendor && find -L vendor -maxdepth 4 -name 'vendorsetup.sh' 2> /dev/null | sort` \
+         `test -d product && find -L product -maxdepth 4 -name 'vendorsetup.sh' 2> /dev/null | sort`
 do
     echo "including $f"
     . $f