meta data for this page
  •  

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
sw:yocto:tips [2025/04/01 15:45] niziaksw:yocto:tips [2025/10/16 15:02] (current) niziak
Line 1: Line 1:
 ====== tips ====== ====== 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 ===== ===== spdx =====