[yocto] [meta-rockchip][PATCH v4] classes: rockchip-gpt-img: add
Trevor Woerner
twoerner at gmail.com
Mon Feb 27 19:08:14 PST 2017
Hi Eddie,
On Tue 2017-02-28 @ 08:48:16 AM, Eddie Cai wrote:
> Could you also copy ${BOOT_IMG} to ${DEPLOY_DIR_IMAGE} . That is much
> earier for people find boot image. In case they want to flash boot
> partition alone.
All of this work is always done in DEPLOY_DIR_IMAGE.
$ bitbake core-image-minimal -e | grep "^DEPLOY_DIR_IMAGE="
DEPLOY_DIR_IMAGE="/z/rockchip/master/build/tmp-glibc/deploy/images/firefly-rk3288"
$ bitbake core-image-minimal -e | grep "^BOOT_IMG="
BOOT_IMG="boot.img"
With this class file as submitted in v4, if I build my first image I get:
$ ls -lh tmp-glibc/deploy/images/firefly-rk3288/
-rw-r--r-- 1 trevor users 137M Feb 27 14:05 core-image-minimal-firefly-rk3288-20170227190504.gpt-img
lrwxrwxrwx 1 trevor users 56 Feb 27 14:06 core-image-minimal-firefly-rk3288.gpt-img -> core-image-minimal-firefly-rk3288-20170227190504.gpt-img
If I adjust the image then build it again I get:
$ ls -lh tmp-glibc/deploy/images/firefly-rk3288/
-rw-r--r-- 1 trevor users 137M Feb 27 14:05 core-image-minimal-firefly-rk3288-20170227190504.gpt-img
-rw-r--r-- 1 trevor users 137M Feb 27 14:06 core-image-minimal-firefly-rk3288-20170227190628.gpt-img
lrwxrwxrwx 1 trevor users 56 Feb 27 14:06 core-image-minimal-firefly-rk3288.gpt-img -> core-image-minimal-firefly-rk3288-20170227190628.gpt-img
As you can see:
- the images appear in DEPLOY_DIR_IMAGE
- the first gpt-img is still there
- after each build the "core-image-minimal-firefly-rk3288.gpt-img" symlink
always points to the latest gpt-img file
Is this what you were hoping for?
More information about the yocto
mailing list