meta data for this page
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
sw:yocto:bitbake:operators [2022/01/12 15:55] – created niziak | sw:yocto:bitbake:operators [2022/09/09 12:43] (current) – niziak | ||
---|---|---|---|
Line 11: | Line 11: | ||
Rethink usage of '' | Rethink usage of '' | ||
* If '' | * If '' | ||
- | * **Solution**: | + | * **Solution**: |
+ | |||
+ | ====== SRC_URI_append ====== | ||
+ | |||
+ | When multiple '' | ||
+ | |||
+ | poky/ | ||
+ | <code python> | ||
+ | def src_patches(d, | ||
+ | import oe.patch | ||
+ | return oe.patch.src_patches(d, | ||
+ | </ | ||
+ | |||
+ | poky/ | ||
+ | <code python> | ||
+ | def src_patches(d, | ||
+ | fetch = bb.fetch2.Fetch([], | ||
+ | patches = [] | ||
+ | sources = [] | ||
+ | for url in fetch.urls: | ||
+ | local = patch_path(url, | ||
+ | if not local: | ||
+ | if all: | ||
+ | local = fetch.localpath(url) | ||
+ | sources.append(local) | ||
+ | continue | ||
+ | ... | ||
+ | localurl = bb.fetch.encodeurl((' | ||
+ | patches.append(localurl) | ||
+ | |||
+ | if all: | ||
+ | return sources | ||
+ | |||
+ | return patches | ||
+ | </ | ||
+ | |||
+ | |||