scripts/build-all: look for nested vendor/ defconfig directories

Look for additional defconfigs in 'arch/arm[64]/configs/vendor/'.

Change-Id: I13a1675d8563611eee17a02445e0329ff5f7a215
Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
diff --git a/scripts/build-all.py b/scripts/build-all.py
index 6590206..c591e26 100755
--- a/scripts/build-all.py
+++ b/scripts/build-all.py
@@ -230,7 +230,7 @@
         self.name = name
         self.defconfig = defconfig
 
-        self.confname = self.defconfig.split('/')[-1]
+        self.confname = re.sub('arch/arm[64]*/configs/', '', self.defconfig)
 
         # Determine if this is a 64-bit target based on the location
         # of the defconfig.
@@ -316,6 +316,13 @@
             for n in glob.glob('arch/arm64/configs/' + p):
                 name = os.path.basename(n)[:-10] + "-llvm" + "-64"
                 names.append(Builder(name, n))
+    for defconfig in glob.glob('arch/arm*/configs/vendor/*_defconfig'):
+        target = os.path.basename(defconfig)[:-10]
+        name = target + "-llvm"
+        if 'arch/arm64' in defconfig:
+            name = name + "-64"
+        names.append(Builder(name, defconfig))
+
     return names
 
 def build_many(targets):