]> code.ossystems Code Review - openembedded-core.git/commit
rm_work.bbclass: Update to convert stamps to setscene stamps
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Jan 2011 11:05:14 +0000 (11:05 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Jan 2011 11:10:57 +0000 (11:10 +0000)
commite8e9f56057f3732d2550375a23573ab7231eac22
treecea9c90633cf00c59f24dcc980a35ef9afc3aff3
parent7476df3fa2cf52cde6785e4fb4e4f59e6a525047
rm_work.bbclass: Update to convert stamps to setscene stamps

We need to manipulate the stamps when removing WORKDIR to indicte that
tasks like compile or install can't just rerun. The most effective method
to do this is to convert the layout to match that which would have been the
case had the system been build from sstate packages.

For example, we'd task stamps like:

xxx-1.4.7-r3.do_compile
xxx-1.4.7-r3.do_configure
xxx-1.4.7-r3.do_fetch
xxx-1.4.7-r3.do_generate_toolchain_file
xxx-1.4.7-r3.do_install
xxx-1.4.7-r3.do_package.emenlow
xxx-1.4.7-r3.do_package_write
xxx-1.4.7-r3.do_package_write_ipk
xxx-1.4.7-r3.do_package_write_rpm
xxx-1.4.7-r3.do_patch
xxx-1.4.7-r3.do_populate_sysroot.emenlow
xxx-1.4.7-r3.do_setscene
xxx-1.4.7-r3.do_unpack

and after rm_work, we'd have stamps of:

xxx-1.4.7-r3.do_package_setscene.emenlow
xxx-1.4.7-r3.do_package_write_ipk_setscene
xxx-1.4.7-r3.do_package_write_rpm_setscene
xxx-1.4.7-r3.do_populate_sysroot_setscene.emenlow

We also need to handle stamps in the form xxx-1.4.7-r3.do_package.MACHINE.TASKHASH
as used by some signature generators.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/rm_work.bbclass