From efb30be70330a50953407a0269c2e7fe8ff7246e Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 11 Jan 2017 13:59:41 -0800 Subject: [PATCH] Don't run find on directories that don't exist $(shell find vendor) causes a warning in AOSP where vendor doesn't exist. Test: m -j, no warning Change-Id: I28916594e0720c53823a3d9ed99b8af1d356af23 --- core/aux_config.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/aux_config.mk b/core/aux_config.mk index decff3417..c40b8cc7a 100644 --- a/core/aux_config.mk +++ b/core/aux_config.mk @@ -151,7 +151,11 @@ AUX_ALL_SUBARCHS := variant_sfx :=_aux_variant_config.mk os_sfx :=_aux_os_config.mk -all_configs := $(shell find device vendor -maxdepth 4 -name '*$(variant_sfx)' -o -name '*$(os_sfx)' | sort) +config_roots := $(wildcard device vendor) +all_configs := +ifdef config_roots +all_configs := $(shell find $(config_roots) -maxdepth 4 -name '*$(variant_sfx)' -o -name '*$(os_sfx)' | sort) +endif all_os_configs := $(filter %$(os_sfx),$(all_configs)) all_variant_configs := $(filter %$(variant_sfx),$(all_configs))