Improve generation of lists of proprietary blobs.

Dynamically determine the list of devices.
Skip code that doesn't build.

Bug: 8596923
Bug: 8608278
Change-Id: I8cb334cb4d16555fe0cb8f802d09169b3996e562
diff --git a/generate-blob-lists.sh b/generate-blob-lists.sh
index a845294..d80929c 100755
--- a/generate-blob-lists.sh
+++ b/generate-blob-lists.sh
@@ -42,11 +42,7 @@
 fi
 shift
 
-DEVICES="maguro toro toroplus panda grouper tilapia manta mako"
-
-# Start experimental devices
-DEVICES="$DEVICES"
-# End experimental devices
+DEVICES=$(for i in device/*/*/proprietary-blobs.txt ; do basename $(dirname $i) ; done)
 
 export LC_ALL=C
 
@@ -72,6 +68,7 @@
       sort -f > $ARCHIVEDIR/$DEVICENAME-with.txt
   done
   rm -rf vendor
+  rm -rf hardware/qcom/gps
   for DEVICENAME in $DEVICES
   do
     rm -rf out