On 11 Aug 2023, at 03:21, Jiliang Cai via lists.yoctoproject.org <[email protected]> wrote: > > I have a recipe abc_1.0.bb. It generates a txt contains all layers git commit > ID into /etc. It is installed into image by IMAGE_INSTALL:append = " abc".
If you want a list of layers/SHAs in your image, look at the image-buildinfo class. > I want to rebuild abc every time I execute bitbake <image>. So I set nostamp > to > 1 in abc_1.0.bb. > > It served my purpose. When I execute bitbake core-image-minimal, abc_1.0 is > always rebuilt, even if it was built last time without any changes. > > But, it leads to re-do_rootfs every time, and repackages images in formats > such > as tar. > > I expect that when the txt generated by abc_1.0 has not changed, do_rootfs > should not be re-executed, what should I do? Of course it does: you explicitly told bitbake that this recipe _must_ be re-run and doesn’t have stamps to identify if it can be reused or not. Use the image-buildinfo class. Ross
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#60779): https://lists.yoctoproject.org/g/yocto/message/60779 Mute This Topic: https://lists.yoctoproject.org/mt/100677035/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/leave/6691583/21656/737036229/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
