meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sw:yocto:bitbake:tips [2022/08/16 21:50] – niziak | sw:yocto:bitbake:tips [2025/11/18 10:16] (current) – niziak | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | ===== manual patching ===== | ||
| + | |||
| + | According to '' | ||
| + | ``kernel-yocto.bbclass`` cannot handle this special case so patches needs to be applied manually. | ||
| + | |||
| + | <code bash> | ||
| + | OVERLAY_PREFIX=" | ||
| + | SRC_URI: | ||
| + | file:// | ||
| + | file:// | ||
| + | " | ||
| + | |||
| + | do_patch: | ||
| + | patch -b -d ${OVERLAY_PREFIX} -p 1 -i 0003-xxx.patch | ||
| + | patch -b -d ${OVERLAY_PREFIX} -p 1 -i 0004-xxx.patch | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | It is possible to use generic Yocto patcher and call <code python> | ||
| + | as it is performed by recipes: | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ===== black list recipe ===== | ||
| + | |||
| + | * create bbappend and set '' | ||
| + | * BBMASK | ||
| + | * <code bash> | ||
| + | |||
| + | ===== Pass env variables to bitbake ===== | ||
| + | |||
| + | To control additional or user defined recipe' | ||
| + | <code bash> | ||
| + | export foo=" | ||
| + | export BB_ENV_PASSTHROUGH_ADDITIONS=" | ||
| + | bitbake ... | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ===== add files to rootfs ===== | ||
| + | |||
| + | '' | ||
| + | |||
| + | ===== override .conf ===== | ||
| + | |||
| + | No override or appends mechanism. But some workaround possible: | ||
| + | |||
| + | - override variables in '' | ||
| + | - create new conf file and inherit old one with '' | ||
| + | - create new conf file with the same name to mask old file (take care of layer priority) | ||
| ===== MACHINEOVERRIDES ===== | ===== MACHINEOVERRIDES ===== | ||
| Line 7: | Line 60: | ||
| When creatung new machine.conf based on existing one [[https:// | When creatung new machine.conf based on existing one [[https:// | ||
| + | [[https:// | ||
| + | ===== logging ===== | ||
| + | |||
| + | <code bash> | ||
| + | inherit logging | ||
| + | |||
| + | bb.debug(" | ||
| + | |||
| + | </ | ||
| - | [[https:// | ||