]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
rm_work: Stop appending _setscene to do_image_complete_setscene stamps
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Jun 2018 10:12:23 +0000 (11:12 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Jun 2018 12:23:10 +0000 (13:23 +0100)
This is a reworked version of the issue which 5479654eeaaa0f81bfff54ca49369c87f1658705
attempted to fix.

"""
Each time I build my image after the first, I end up with a
do_image_complete_setscene stamp file with an extra _setscene appended to
the name. Eventually, the filenames end up being so long that mv complains
and the build fails.

It looks like this behaviour was introduced when the special handling was
added for do_image_complete in 2ff9d40dc88d43567472218cf3d3faf414398c71.
"""

Instead of the original approach which broke do_package_setscene, add
an entry to explictly stop the stacking _setscene pieces on do_image_complete.

It's not straightforward to just move *do_image_complete* after the
*_setscene* pattern because do_image_complete stamps would then match
do_image*.

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

index 31d99e4554a137bf51cf02f35f48cdfa1be829f8..07e63c31ad204087df637eb63ea2f54241166113 100644 (file)
@@ -61,6 +61,10 @@ do_rm_work () {
                 i=dummy
                 break
                 ;;
+            *do_image_complete_setscene*)
+                i=dummy
+                break
+                ;;
             *do_image_complete*)
                 mv $i `echo $i | sed -e "s#do_image_complete#do_image_complete_setscene#"`
                 i=dummy