Skip to contentSkip to conversation

package-sdks: switch to tar.xz format

PATCH New Jacob Stiffler 1 participant 1 message Aug 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package-sdks: switch to tar.xz format

---
 lib/oesdk/package-sdks | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
lib/oesdk/package-sdks +10 -10
index 498ee79..720b62a 100644
@@ -77,12 +77,12 @@ create_sd_card_content() {
         cp -rLf $SD_CARD_CONTENT/$m/boot/* .
     fi
 
-    # Now tar up the boot_partition.tar.gz file
-    tar czf $sd_card_root/boot_partition.tar.gz *
+    # Now tar up the boot_partition.tar.xz file
+    tar cJf $sd_card_root/boot_partition.tar.xz *
 
     if [ "$?" != "0" ]
     then
-        echo "Could not create boot_partition.tar.gz"
+        echo "Could not create boot_partition.tar.xz"
         echo "FAILED" > $LOG_DIR/$m-build-sdcard.txt
         return 1
     fi
@@ -93,7 +93,7 @@ create_sd_card_content() {
 
     if [ "$?" != "0" ]
     then
-        echo "Could not mv rootfs_partition.tar.gz"
+        echo "Could not mv rootfs_partition.tar.xz"
         echo "FAILED" > $LOG_DIR/$m-build-sdcard.txt
         return 1
     fi
@@ -128,12 +128,12 @@ create_sd_card_content() {
         cp -rLf $SD_CARD_CONTENT/$m/start_here/* .
     fi
 
-    # Now tar up the start_here_partition.tar.gz file
-    tar czf $sd_card_root/start_here_partition.tar.gz *
+    # Now tar up the start_here_partition.tar.xz file
+    tar cJf $sd_card_root/start_here_partition.tar.xz *
 
     if [ "$?" != "0" ]
     then
-        echo "Could not create start_here_partition.tar.gz"
+        echo "Could not create start_here_partition.tar.xz"
         echo "FAILED" > $LOG_DIR/$m-build-sdcard.txt
         return 1
     fi
@@ -228,7 +228,7 @@ package_web_content() {
     # First the sources tarball
     cd $TEST_ROOT/$m-test/temp
 
-    tar --exclude=prebuilt-images -czf $exports_root/$m-sdk-src-$TISDK_VERSION.tar.gz board-support/*
+    tar --exclude=prebuilt-images -cJf $exports_root/$m-sdk-src-$TISDK_VERSION.tar.xz board-support/*
 
     if [ "$?" != 0 ]
     then
@@ -258,7 +258,7 @@ package_web_content() {
     fi
 
     cd $exports_root
-    tar czf $m-sdk-bin-$TISDK_VERSION.tar.gz board-support-bin/*
+    tar cJf $m-sdk-bin-$TISDK_VERSION.tar.xz board-support-bin/*
     if [ "$?" != 0 ]
     then
         echo "Could not create SDK binaries tarball"
@@ -270,7 +270,7 @@ package_web_content() {
 
     if [ "$EXPORT_ARAGO_SRC" == "1" ]
     then
-        tar -C $DL_DIR -czf $exports_root/$m-sdk-arago-src-$TISDK_VERSION.tar.gz .
+        tar -C $DL_DIR -cJf $exports_root/$m-sdk-arago-src-$TISDK_VERSION.tar.xz .
 
         if [ "$?" != 0 ]
         then
Signature · 1 line
1.9.1