mirror of
https://git.yoctoproject.org/poky
synced 2026-05-05 20:27:58 +02:00
scripts: Update autobuilder scripts to run postprocess after each task completes
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4360 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -31,10 +31,11 @@ if [ "xpreamble" = "x$1" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
POSTPROCESS=`which poky-autobuild-postprocess`
|
||||
|
||||
if [ "xcomplete" = "x$1" ]; then
|
||||
touch ./build/tmp/deploy/images/images-complete
|
||||
chmod a+w ./build/tmp/deploy/images/images-complete
|
||||
POSTPROCESS=`which poky-autobuild-postprocess`
|
||||
if [ "x$POSTPROCESS" != "x" ]; then
|
||||
$POSTPROCESS `pwd`
|
||||
fi
|
||||
@@ -59,3 +60,8 @@ shift
|
||||
. ./scripts/poky-env-internal
|
||||
|
||||
bitbake $BBTARGET
|
||||
|
||||
if [ "x$POSTPROCESS" != "x" ]; then
|
||||
$POSTPROCESS `pwd`
|
||||
fi
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ FILES=()
|
||||
|
||||
if [ "x$DISTRO" = "xpoky-bleeding" ]; then
|
||||
COMPRESS_FILES=(
|
||||
poky-image-sato-qemuarm-*.rootfs.ext2
|
||||
images/poky-image-sato-qemuarm-*.rootfs.ext2
|
||||
)
|
||||
|
||||
FILES=(
|
||||
@@ -40,7 +40,6 @@ if [ "x$DISTRO" = "xpoky-bleeding" ]; then
|
||||
images/updater.sh.akita
|
||||
images/poky-image-sato-akita-*.rootfs.summary.jffs2
|
||||
images/poky-image-sato-qemuarm-*.rootfs.tar.bz2
|
||||
images/poky-image-sato-qemuarm-*.rootfs.ext2
|
||||
)
|
||||
fi
|
||||
|
||||
@@ -53,11 +52,11 @@ fi
|
||||
|
||||
if [ "x$DISTRO" = "xpoky" ]; then
|
||||
COMPRESS_FILES=(
|
||||
poky-image-sdk-qemuarm-*.rootfs.ext2
|
||||
poky-image-sdk-qemux86-*.rootfs.ext2
|
||||
poky-image-minimal-qemuarm-*.rootfs.ext2
|
||||
poky-image-minimal-qemux86-*.rootfs.ext2
|
||||
poky-image-sato-cd-*.iso
|
||||
images/poky-image-sdk-qemuarm-*.rootfs.ext2
|
||||
images/poky-image-sdk-qemux86-*.rootfs.ext2
|
||||
images/poky-image-minimal-qemuarm-*.rootfs.ext2
|
||||
images/poky-image-minimal-qemux86-*.rootfs.ext2
|
||||
images/poky-image-sato-cd-*.iso
|
||||
)
|
||||
|
||||
FILES=(
|
||||
@@ -87,12 +86,8 @@ if [ "x$DISTRO" = "xpoky" ]; then
|
||||
images/poky-image-sato-spitz-*.rootfs.tar.gz
|
||||
images/poky-image-sdk-qemuarm-*.rootfs.tar.bz2
|
||||
images/poky-image-sdk-qemux86-*.rootfs.tar.bz2
|
||||
images/poky-image-sdk-qemuarm-*.rootfs.ext2
|
||||
images/poky-image-sdk-qemux86-*.rootfs.ext2
|
||||
images/poky-image-minimal-qemuarm-*.rootfs.tar.bz2
|
||||
images/poky-image-minimal-qemux86-*.rootfs.tar.bz2
|
||||
images/poky-image-minimal-qemuarm-*.rootfs.ext2
|
||||
images/poky-image-minimal-qemux86-*.rootfs.ext2
|
||||
images/poky-image-sdk-spitz-*.rootfs.tar.gz
|
||||
images/poky-image-sdk-nokia800-*.rootfs.jffs2
|
||||
images/poky-image-sato-nokia770-*.rootfs.jffs2
|
||||
@@ -102,7 +97,6 @@ if [ "x$DISTRO" = "xpoky" ]; then
|
||||
images/poky-image-sato-mx31litekit-*.rootfs.tar.gz
|
||||
images/poky-image-sato-htcuniversal-*.rootfs.tar.gz
|
||||
images/poky-image-sato-fic-gta01-*.rootfs.jffs2
|
||||
images/poky-image-sato-cd-*.iso
|
||||
images/poky-image-sato-mx31phy-*.jffs2
|
||||
images/poky-image-sato-mx31ads-*.jffs2
|
||||
`readlink -f images/updater-em-x270.ext2`
|
||||
@@ -110,15 +104,24 @@ if [ "x$DISTRO" = "xpoky" ]; then
|
||||
fi
|
||||
|
||||
for FILE in ${FILES[@]}; do
|
||||
#echo "-i $KEY $FILE $DEST"
|
||||
cp $FILE $DEST
|
||||
for $FILE2 in `find -name $FILE`; do
|
||||
if [ ! -e "$DEST/$FILE2" ]; then
|
||||
cp $FILE2 $DEST
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
for FILE in ${COMPRESS_FILES[@]}; do
|
||||
bzip2 $DEST/$FILE
|
||||
for $FILE2 in `find -name $FILE`; do
|
||||
if [ ! -e "$DEST/$FILE2.bz2" ]; then
|
||||
bzip2 $FILE2
|
||||
cp $FILE2.bz2 $DEST
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
touch $DEST/complete
|
||||
|
||||
#chgrp -R backup $DEST
|
||||
if [ -e ./images-complete ]; then
|
||||
touch $DEST/complete
|
||||
fi
|
||||
chmod a+w -R $DEST
|
||||
|
||||
|
||||
Reference in New Issue
Block a user