I could use some help in understanding how to create a task that is always 
executed. I initially tried just setting task[nostamp]="1". However, it 
appeared that the sstate cache was preventing bitbake from even considering the 
task's stamp. So I set SSTATETASKS="" in an attempt to completely disable the 
sstate cache for this recipe. However, the image.do_rootfs task then complains 
that it can't find the RPM. It looks to me like it is actually one of the 
sstate tasks that copies the RPM to the proper location. Clearly I'm not going 
about this the right way. Is there a simple way to ensure the RPM is always 
rebuilt? Below is a snippet from the recipe I attempted.

# The install task creates a file with some continuously changing information
# (for example, the time of the build, just for argument's sake)
do_install () {
    install -d ${D}${sysconfdir}
    date >> ${D}${sysconfdir}/${PN}
}

# We want to make sure the latest information is included every time we build 
the
# image that includes this package. So force the install task to always be 
executed.
do_install[nostamp] = "1"
SSTATETASKS = ""

# We don't need many of the tasks, so disable them
do_fetch[noexec] = "1"
do_unpack[noexec] = "1"
do_patch[noexec] = "1"
do_configure[noexec] = "1"
do_compile[noexec] = "1"

Thank you,
Brian

E-mail confidentiality.
--------------------------------
This e-mail contains confidential and / or privileged information belonging to 
Spirent Communications plc, its affiliates and / or subsidiaries. If you are 
not the intended recipient, you are hereby notified that any disclosure, 
copying, distribution and / or the taking of any action based upon reliance on 
the contents of this transmission is strictly forbidden. If you have received 
this message in error please notify the sender by return e-mail and delete it 
from your system.

Spirent Communications plc
Northwood Park, Gatwick Road, Crawley, West Sussex, RH10 9XN, United Kingdom.
Tel No. +44 (0) 1293 767676
Fax No. +44 (0) 1293 767677

Registered in England Number 470893
Registered at Northwood Park, Gatwick Road, Crawley, West Sussex, RH10 9XN, 
United Kingdom.

Or if within the US,

Spirent Communications,
26750 Agoura Road, Calabasas, CA, 91302, USA.
Tel No. 1-818-676- 2300
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to