]> code.ossystems Code Review - openembedded-core.git/commit
Incremental rpm image generation
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 28 Dec 2011 09:16:11 +0000 (17:16 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 11 Jan 2012 10:33:23 +0000 (10:33 +0000)
commit575ba3c9e153a1d8ac228a99a03ca2df5fbca151
tree69ba69c964056889e0866f686de801293bb4fcf6
parent9b944ae2f0e4dbac5a8f1f235f60730e56b26516
Incremental rpm image generation

Incremental rpm image generation, the rootfs would be totally removed and
re-created in the second generation by default, but with
INC_RPM_IMAGE_GEN = "1", the rpm based rootfs would be kept, and will do
update(remove/add some pkgs) on it.

NOTE: This is not suggested when you want to create a productive rootfs

For example:
  1) Add the follow config option to a conf file:
     INC_RPM_IMAGE_GEN = "1"

  2) bitbake core-image-sato
     modify a package
     bitbake core-image-sato

The rootfs would not be totally removed and re-created in the second
generation, it would be simply updated based on the "package".

Implatation:
1) Figure out the pkg which need to be removed or re-installed, then use
'rpm -e to remove the old one. Use the rpm's BUILDTIME to determine
which pkg has been rebuilt.

2) Figure out the pkg which is newly added, and use 'rpm -U' to install
it.

This only for the rpm based rootfs, the deb and ipk based rootfs would
be done later.

[YOCTO #1651]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/classes/image.bbclass
meta/classes/package_rpm.bbclass
meta/classes/rootfs_rpm.bbclass