Add 64 bit support for generating packages.

We currently store all binary files in just one directory
i.e., vendor/$COMPANY/$DEVICE/proprietary
There are proprietary binary files in lib and lib64 with the same name.
To preserve both versions we put 64 bit files under lib64 sub-directory.

Change-Id: I27c395bdef1d2f5b75df34609ccef72cb480a4f3
diff --git a/generate-packages.sh b/generate-packages.sh
index e4f45f1..96d07ef 100755
--- a/generate-packages.sh
+++ b/generate-packages.sh
@@ -50,11 +50,19 @@
     then
       ONE_FILE=`echo $ONE_FILE | sed 's/system\//SYSTEM\//g'`
     fi
+
+    if [[ $ONE_FILE == */lib64/* ]]
+    then
+      FILEDIR_NEW=$FILEDIR/lib64
+    else
+      FILEDIR_NEW=$FILEDIR
+    fi
+
     echo \ \ \ \ Extracting $ONE_FILE
-    unzip -j -o $ZIP $ONE_FILE -d $FILEDIR > /dev/null || echo \ \ \ \ Error extracting $ONE_FILE
+    unzip -j -o $ZIP $ONE_FILE -d $FILEDIR_NEW> /dev/null || echo \ \ \ \ Error extracting $ONE_FILE
     if test ${ONE_FILE,,} = system/vendor/bin/gpsd -o ${ONE_FILE,,} = system/vendor/bin/pvrsrvinit -o ${ONE_FILE,,} = system/bin/fRom
     then
-      chmod a+x $FILEDIR/$(basename $ONE_FILE) || echo \ \ \ \ Error chmoding $ONE_FILE
+      chmod a+x $FILEDIR_NEW/$(basename $ONE_FILE) || echo \ \ \ \ Error chmoding $ONE_FILE
     fi
   done
   echo \ \ Setting up $COMPANY-specific makefiles