diff options
| author | Yang Xu <yang.xu@mediatek.com> | 2022-08-18 06:15:18 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-12 08:41:47 +0100 |
| commit | 164d127e112efbcfe83c6c49aeec5751a32c1091 (patch) | |
| tree | 6160dd0c055ee65b2ae35cef90b8d873154ab771 /meta | |
| parent | 2d582eaef41b1449a80a0e82700431ce7872c7e6 (diff) | |
| download | poky-164d127e112efbcfe83c6c49aeec5751a32c1091.tar.gz | |
insane.bbclass: Skip patches not in oe-core by full path
The full path of patch may contain '/meta/' but not in oe-core, skip
patches by checking it starts with oe-core full path or not.
(From OE-Core rev: f29dd96233bf9c323ab1b3887d2357f3c7312f94)
Signed-off-by: Yang Xu <yang.xu@mediatek.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit d8a525afdfb5d371e76b09301c8b2741d23d1d10)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes/insane.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index f3f80334f6..0d93d50e58 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
| @@ -1196,11 +1196,12 @@ python do_qa_patch() { | |||
| 1196 | import re | 1196 | import re |
| 1197 | from oe import patch | 1197 | from oe import patch |
| 1198 | 1198 | ||
| 1199 | coremeta_path = os.path.join(d.getVar('COREBASE'), 'meta', '') | ||
| 1199 | for url in patch.src_patches(d): | 1200 | for url in patch.src_patches(d): |
| 1200 | (_, _, fullpath, _, _, _) = bb.fetch.decodeurl(url) | 1201 | (_, _, fullpath, _, _, _) = bb.fetch.decodeurl(url) |
| 1201 | 1202 | ||
| 1202 | # skip patches not in oe-core | 1203 | # skip patches not in oe-core |
| 1203 | if '/meta/' not in fullpath: | 1204 | if not os.path.abspath(fullpath).startswith(coremeta_path): |
| 1204 | continue | 1205 | continue |
| 1205 | 1206 | ||
| 1206 | kinda_status_re = re.compile(r"^.*upstream.*status.*$", re.IGNORECASE | re.MULTILINE) | 1207 | kinda_status_re = re.compile(r"^.*upstream.*status.*$", re.IGNORECASE | re.MULTILINE) |
