Merge "Use consistent search depth."
This commit is contained in:
@@ -143,8 +143,8 @@ include $(BUILD_SYSTEM)/envsetup.mk
|
|||||||
board_config_mk := \
|
board_config_mk := \
|
||||||
$(strip $(wildcard \
|
$(strip $(wildcard \
|
||||||
$(SRC_TARGET_DIR)/board/$(TARGET_DEVICE)/BoardConfig.mk \
|
$(SRC_TARGET_DIR)/board/$(TARGET_DEVICE)/BoardConfig.mk \
|
||||||
device/*/$(TARGET_DEVICE)/BoardConfig.mk \
|
$(shell test -d device && find device -maxdepth 4 -path '*/$(TARGET_DEVICE)/BoardConfig.mk') \
|
||||||
vendor/*/$(TARGET_DEVICE)/BoardConfig.mk \
|
$(shell test -d vendor && find vendor -maxdepth 4 -path '*/$(TARGET_DEVICE)/BoardConfig.mk') \
|
||||||
))
|
))
|
||||||
ifeq ($(board_config_mk),)
|
ifeq ($(board_config_mk),)
|
||||||
$(error No config file found for TARGET_DEVICE $(TARGET_DEVICE))
|
$(error No config file found for TARGET_DEVICE $(TARGET_DEVICE))
|
||||||
|
@@ -1270,7 +1270,8 @@ if [ "x$SHELL" != "x/bin/bash" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Execute the contents of any vendorsetup.sh files we can find.
|
# Execute the contents of any vendorsetup.sh files we can find.
|
||||||
for f in `/bin/ls vendor/*/vendorsetup.sh vendor/*/*/vendorsetup.sh device/*/*/vendorsetup.sh 2> /dev/null`
|
for f in `test -d device && find device -maxdepth 4 -name 'vendorsetup.sh' 2> /dev/null` \
|
||||||
|
`test -d vendor && find vendor -maxdepth 4 -name 'vendorsetup.sh' 2> /dev/null`
|
||||||
do
|
do
|
||||||
echo "including $f"
|
echo "including $f"
|
||||||
. $f
|
. $f
|
||||||
|
Reference in New Issue
Block a user