OSDN Git Service

Explicitly exclude NFC stuff.
[android-x86/device-common.git] / generate-blob-scripts.sh
index a5bce1e..84597fb 100755 (executable)
@@ -16,7 +16,7 @@
 
 # This script auto-generates the scripts that manage the handling of the
 # proprietary blobs necessary to build the Android Open-Source Project code
-# for dream, passion and sapphire targets
+# for passion and crespo targets
 
 # It needs to be run from the root of a source tree that can repo sync,
 # runs builds with and without the vendor tree, and uses the difference
@@ -43,7 +43,7 @@ then
 fi
 shift
 
-DEVICES="passion crespo"
+DEVICES="passion crespo crespo4g"
 
 ARCHIVEDIR=archive-$(date +%s)
 mkdir $ARCHIVEDIR
@@ -56,20 +56,20 @@ for DEVICENAME in $DEVICES
 do
   rm -rf out
   lunch full_$DEVICENAME-user
-  make -j8
+  make -j32
   cat out/target/product/$DEVICENAME/installed-files.txt |
     cut -b 15- |
-    sort > $ARCHIVEDIR/$DEVICENAME-with.txt
+    sort -f > $ARCHIVEDIR/$DEVICENAME-with.txt
 done
 rm -rf vendor
 for DEVICENAME in $DEVICES
 do
   rm -rf out
   lunch full_$DEVICENAME-user
-  make -j8
+  make -j32
   cat out/target/product/$DEVICENAME/installed-files.txt |
     cut -b 15- |
-    sort > $ARCHIVEDIR/$DEVICENAME-without.txt
+    sort -f > $ARCHIVEDIR/$DEVICENAME-without.txt
 done
 
 for DEVICENAME in $DEVICES
@@ -102,6 +102,10 @@ do
     echo 'mkdir -p ../../../vendor/$MANUFACTURER/$DEVICE/proprietary'
 
     diff $ARCHIVEDIR/$DEVICENAME-without.txt $ARCHIVEDIR/$DEVICENAME-with.txt |
+      grep -v Nfc\.apk\$ |
+      grep -v Tag\.apk\$ |
+      grep -v libnfc\.so\$ |
+      grep -v libnfc_jni\.so\$ |
       grep '>' |
       cut -b 3- |
       while read FULLPATH
@@ -142,6 +146,10 @@ do
 
     FOUND=false
     diff $ARCHIVEDIR/$DEVICENAME-without.txt $ARCHIVEDIR/$DEVICENAME-with.txt |
+      grep -v Nfc\.apk\$ |
+      grep -v Tag\.apk\$ |
+      grep -v libnfc\.so\$ |
+      grep -v libnfc_jni\.so\$ |
       grep '>' |
       cut -b 3- |
       while read FULLPATH
@@ -164,6 +172,10 @@ do
 
     FOUND=false
     diff $ARCHIVEDIR/$DEVICENAME-without.txt $ARCHIVEDIR/$DEVICENAME-with.txt |
+      grep -v Nfc\.apk\$ |
+      grep -v Tag\.apk\$ |
+      grep -v libnfc\.so\$ |
+      grep -v libnfc_jni\.so\$ |
       grep '>' |
       cut -b 3- |
       while read FULLPATH