Change format for rootfs to gzip

This commit is contained in:
Trong Nghia Nguyen 2016-07-02 08:07:27 +07:00 committed by Petros Angelatos
parent 08b64592e2
commit deb2e46c5d
3 changed files with 5 additions and 3 deletions

View File

@ -15,8 +15,8 @@ docker run --rm \
-v `pwd`:/source \ -v `pwd`:/source \
-v `pwd`/dest:/dest \ -v `pwd`/dest:/dest \
supervisor-base-builder supervisor-base-builder
if [ -f dest/rootfs.tar.bz2 ]; then if [ -f dest/rootfs.tar.gz ]; then
cat dest/rootfs.tar.bz2 | docker import - $REPO:$date cat dest/rootfs.tar.gz | docker import - $REPO:$date
docker tag -f $REPO:$date $REPO:latest docker tag -f $REPO:$date $REPO:latest
docker push $REPO docker push $REPO
else else

View File

@ -10,4 +10,4 @@ cd $BUILD_DIR
source oe-core/oe-init-build-env build bitbake source oe-core/oe-init-build-env build bitbake
bitbake core-image-minimal bitbake core-image-minimal
qemu=$(cat conf/local.conf | grep '^MACHINE ??= ' | grep -o '"[^"]\+"' | tr -d '"') qemu=$(cat conf/local.conf | grep '^MACHINE ??= ' | grep -o '"[^"]\+"' | tr -d '"')
cp --dereference tmp/deploy/images/$qemu/core-image-minimal-$qemu.tar.bz2 $DEST_DIR/rootfs.tar.bz2 cp --dereference tmp/deploy/images/$qemu/core-image-minimal-$qemu.tar.gz $DEST_DIR/rootfs.tar.gz

View File

@ -11,6 +11,7 @@
# the option is a question of removing the # character and making any change to the # the option is a question of removing the # character and making any change to the
# variable as required. # variable as required.
# #
# Machine Selection # Machine Selection
# #
@ -131,6 +132,7 @@ EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
# NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended
# image-prelink disabled for now due to issues with IFUNC symbol relocation # image-prelink disabled for now due to issues with IFUNC symbol relocation
USER_CLASSES ?= "buildstats image-mklibs" USER_CLASSES ?= "buildstats image-mklibs"
IMAGE_FSTYPES ?= "tar.gz"
# #