From 330a753608e6a535ed189c50b39eaf037a1fe2d3 Mon Sep 17 00:00:00 2001 From: Clinton Ebadi Date: Mon, 5 Oct 2009 14:03:36 -0400 Subject: [PATCH 1/3] follow symlinks when searching for products This allows replicant to be overlaid onto an AOSP source tree --- core/product.mk | 2 +- core/product_config.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/product.mk b/core/product.mk index adc81c3..05b3904 100644 --- a/core/product.mk +++ b/core/product.mk @@ -23,7 +23,7 @@ # $(call ) isn't necessary. # define _find-android-products-files -$(shell test -d vendor && find vendor -maxdepth 6 -name AndroidProducts.mk) \ +$(shell test -d vendor && find -L vendor -maxdepth 6 -name AndroidProducts.mk) \ $(SRC_TARGET_DIR)/product/AndroidProducts.mk endef diff --git a/core/product_config.mk b/core/product_config.mk index 7cfa5f4..3b8f767 100644 --- a/core/product_config.mk +++ b/core/product_config.mk @@ -74,7 +74,7 @@ endif ########################################################### define find-copy-subdir-files -$(shell find $(2) -name "$(1)" | $(SED_EXTENDED) "s:($(2)/?(.*)):\\1\\:$(3)/\\2:" | sed "s://:/:g") +$(shell find $(2) -L -name "$(1)" | $(SED_EXTENDED) "s:($(2)/?(.*)):\\1\\:$(3)/\\2:" | sed "s://:/:g") endef # --------------------------------------------------------------- -- 1.6.4.3