meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
sw:yocto:tips [2022/06/10 21:55] – created niziaksw:yocto:tips [2025/10/16 15:02] (current) niziak
Line 1: Line 1:
 +====== tips ======
 +
 +===== remove posinst =====
 +
 +Remove ''pkg_postinst_ontarget:${PN}'' from ''.bbappend'':
 +
 +''pkg_postinst_ontarget'' is variable, not task. 
 +Task ''emit_pkgdata()'' is processing ''pkg_postinst_ontarget'' variable
 +and adds content of variable as a postinstall script in deb package.
 +
 +
 +<code bash>
 +# This will remove script at all:
 +pkg_postinst_ontarget:${PN} = ""
 +
 +# This will replace body of script with exit 0
 +pkg_postinst_ontarget:${PN} () {
 +    exit 0
 +}
 +</code>
 +
 +
 +===== spdx =====
 +
 +Disable SPDX to save build time:
 +
 +<code>INHERIT:remove = "create-spdx"</code>
 +
 +
 +===== Headline =====
 +
 +
 +
 https://lynxbee.com/speed-up-yocto-build-time-using-assume-provided/ https://lynxbee.com/speed-up-yocto-build-time-using-assume-provided/