From 7a3de33e2a99e6b82b71dbeb5eb02809a493a35b Mon Sep 17 00:00:00 2001 From: Po Hu Date: Tue, 9 Mar 2021 10:33:37 +0800 Subject: [PATCH] Let blueprint.py skip searching Android.bp in out dir Use a general rule to identify out dir instead of hard code name. Bug: 182193244 Change-Id: Ib7b669162dee86e7815066cc95ca9e84e2db17be --- vndk/tools/sourcedr/blueprint/blueprint.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vndk/tools/sourcedr/blueprint/blueprint.py b/vndk/tools/sourcedr/blueprint/blueprint.py index e418270c2..93bf61ced 100755 --- a/vndk/tools/sourcedr/blueprint/blueprint.py +++ b/vndk/tools/sourcedr/blueprint/blueprint.py @@ -861,6 +861,10 @@ class RecursiveParser(object): envs.pop() # Filter sub directories + if '.out-dir' in filenames: + # Stop at OUT_DIR + dirnames[:] = [] + continue new_dirnames = [] for name in dirnames: if name in {'.git', '.repo'}: