if we don't check if empty and empty.gz already exist,
The fist time empty.gz is copied to the deploy dir,
then the second build we have:
gzip: empty.gz already exists; not overwritten
And it fails.
so we need to touch and gzip only if empty.gz not already present.
DEPENDS += "android-image-utils-native"
PV = "2.6.32+${PR}+gitr${SRCREV}"
-PR = "r18"
+PR = "r19"
COMPATIBLE_MACHINE = "htcdream"
CMDLINE = "console=tty1 root=/dev/mmcblk0p1 rootdelay=8 fbcon=rotate:1 panic=30 mem=110M"
S = "${WORKDIR}/git"
do_deploy_append() {
- touch -f empty
- gzip empty
+ if [ ! -e empty.gz ];then
+ if [ ! -e empty ];then
+ touch empty
+ fi
+ gzip empty
+ fi
mkbootimg --kernel ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin \
--ramdisk empty.gz \
--cmdline "${CMDLINE}" \