meta-toolchain-arago: switch from bzip2 to xz compression for devkits
PATCH 3/3 images: clean up old use of ROOTFS_SIZE for initrd/ext images
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>
--- meta-arago-distro/recipes-core/images/arago-base-image.bb | 3 --- .../recipes-core/images/arago-console-image.bb | 14 -------------- 2 files changed, 17 deletions(-)
meta-arago-distro/recipes-core/images/arago-base-image.bb +0 -3
@@ -3,9 +3,6 @@ require arago-image.inc -# The size of the uncompressed ramdisk is 8MB -ROOTFS_SIZE = "10240" - IMAGE_INSTALL += "packagegroup-arago-base" export IMAGE_BASENAME = "arago-base-image"
meta-arago-distro/recipes-core/images/arago-console-image.bb +0 -14
@@ -5,20 +5,6 @@ require arago-image.inc COMPATIBLE_MACHINE = "(?!arago)" -# The size of the uncompressed ramdisk is 32MB -ROOTFS_SIZE = "32768" - -# DM646x have many modules, bump to 40MB -ROOTFS_SIZE_dm6467 = "40960" - -# AM3517 have many modules, bump to 64MB -ROOTFS_SIZE_am3517-evm = "65536" - -# Double beagle/hawk/overo ramdisk size, due to gazillions of kernel modules -ROOTFS_SIZE_beagleboard = "81920" -ROOTFS_SIZE_hawkboard = "81920" -ROOTFS_SIZE_overo = "81920" - IMAGE_INSTALL += "\ packagegroup-arago-base \ packagegroup-arago-console \
Signature · 1 line
2.7.4
PATCH 2/3 tisdk-image, images: switch to tar.xz images to save on size and speed
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>
--- meta-arago-distro/classes/tisdk-image.bbclass | 6 +++--- meta-arago-distro/recipes-core/images/arago-core-tisdk-image.inc | 5 +++-- meta-arago-distro/recipes-core/images/arago-test-image.bb | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-)
meta-arago-distro/classes/tisdk-image.bbclass +3 -3
@@ -40,7 +40,7 @@ TISDK_TOOLCHAIN ?= "meta-toolchain-arago" TOOLCHAIN_SUFFIX ?= "-sdk" # List of the type of target file system images we want to include -TARGET_IMAGE_TYPES ?= "tar.bz2 tar.gz ubi" +TARGET_IMAGE_TYPES ?= "tar.xz tar.gz ubi" # If EXTRA_TISDK_FILES points to a valid directory then all the contents # of that directory will be added to the SDK using the same directory
@@ -411,9 +411,9 @@ sw_manifest_target() { for image in ${TARGET_IMAGES} do # Only extract tar.gz or tar.bz2 types - if [ -e ${IMAGE_ROOTFS}/filesystem/${image}-${MACHINE}.tar.bz2 ] + if [ -e ${IMAGE_ROOTFS}/filesystem/${image}-${MACHINE}.tar.xz ] then - tar xjf ${IMAGE_ROOTFS}/filesystem/${image}-${MACHINE}.tar.bz2 -C ${IMAGE_ROOTFS}/filesystem --wildcards *.control + tar xJf ${IMAGE_ROOTFS}/filesystem/${image}-${MACHINE}.tar.xz -C ${IMAGE_ROOTFS}/filesystem --wildcards *.control elif [ -e ${IMAGE_ROOTFS}/filesystem/${image}-${MACHINE}.tar.gz ] then tar xzf ${IMAGE_ROOTFS}/filesystem/${image}-${MACHINE}.tar.gz -C ${IMAGE_ROOTFS}/filesystem --wildcards *.control
meta-arago-distro/recipes-core/images/arago-core-tisdk-image.inc +3 -2
@@ -3,7 +3,8 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690" -IMAGE_FSTYPES = "tar.gz" +IMAGE_FSTYPES = "tar.xz" +IMAGE_NAME_SUFFIX = "" inherit tisdk-image
@@ -15,7 +16,7 @@ HOST_CLEANUP_PACKAGES = "" TOOLCHAIN_CLEANUP_PACKAGES = "libgnutls-dev libgnutls-extra26 libgnutls-openssl27 libtasn1-dev" # Set DTB filters for each machine. Use "unknown" by default to avoid -# picking up DTB files for devices with not DTB support. +# picking up DTB files for devices with no DTB support. DTB_FILTER = "unknown" DTB_FILTER_ti33x = "am335x" DTB_FILTER_omap5-evm = "omap5"
meta-arago-distro/recipes-core/images/arago-test-image.bb +1 -1
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3 require arago-image.inc -IMAGE_FSTYPES = "tar.gz ext2.gz" +IMAGE_FSTYPES = "tar.xz" IMAGE_INSTALL += "\ packagegroup-arago-base \
Signature · 1 line
2.7.4
PATCH 1/3 meta-toolchain-arago: switch from bzip2 to xz compression for devkits
From: Denys Dmytriyenko <[email protected]>
xz provides much better compression ratio (~40% smaller) and supports multi-threading when compressing.
Signed-off-by Denys Dmytriyenko <[email protected]>
--- .../recipes-core/meta/meta-toolchain-arago.bb | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +9 -5
@@ -10,7 +10,11 @@ inherit toolchain-scripts require recipes-core/meta/meta-toolchain.bb -PR = "r32" +PR = "r33" + +XZ_COMPRESSION_LEVEL ?= "-e -6" +XZ_INTEGRITY_CHECK ?= "crc32" +XZ_THREADS ?= "-T 0" # This function creates an environment-setup-script for use in a deployable SDK toolchain_create_sdk_env_script () {
@@ -142,7 +146,7 @@ fakeroot tar_sdk() { # Package it up mkdir -p ${SDK_DEPLOY} cd ${SDK_OUTPUT}/${SDKPATH} - tar --owner=root --group=root -cj --file=${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 . + tar --owner=root --group=root -c . | xz -f -k -c ${XZ_COMPRESSION_LEVEL} ${XZ_THREADS} --check=${XZ_INTEGRITY_CHECK} - > ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.xz } fakeroot create_shar() {
@@ -269,7 +273,7 @@ fi payload_offset=$(($(grep -na -m1 "^MARKER:$" $0|cut -d':' -f1) + 1)) printf "Extracting SDK..." -tail -n +$payload_offset $0| $SUDO_EXEC tar xj -C $target_sdk_dir +tail -n +$payload_offset $0| $SUDO_EXEC tar xJ -C $target_sdk_dir echo "done" printf "Setting it up..."
@@ -335,8 +339,8 @@ exit 0 MARKER: EOF # append the SDK tarball - cat ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 >> ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh + cat ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.xz >> ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh # delete the old tarball, we don't need it anymore - rm ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 + rm ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.xz }
Signature · 1 line
2.7.4