diff options
author | Yang Xu <yang.xu@mediatek.com> | 2022-08-18 06:15:18 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-30 10:33:35 +0100 |
commit | b915b5c28285854770d9e025546d2403a9a1d2d6 (patch) | |
tree | f2d0063b36503ac771c2a0c27f11cdcc628eda91 /meta/classes-global/insane.bbclass | |
parent | 16e8b0954724a18495f00135a4bf94ac00b3d548 (diff) | |
download | poky-b915b5c28285854770d9e025546d2403a9a1d2d6.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: d8a525afdfb5d371e76b09301c8b2741d23d1d10)
Signed-off-by: Yang Xu <yang.xu@mediatek.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-global/insane.bbclass')
-rw-r--r-- | meta/classes-global/insane.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index 46ea41e271..db34b4bdb5 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass | |||
@@ -1214,11 +1214,12 @@ python do_qa_patch() { | |||
1214 | import re | 1214 | import re |
1215 | from oe import patch | 1215 | from oe import patch |
1216 | 1216 | ||
1217 | coremeta_path = os.path.join(d.getVar('COREBASE'), 'meta', '') | ||
1217 | for url in patch.src_patches(d): | 1218 | for url in patch.src_patches(d): |
1218 | (_, _, fullpath, _, _, _) = bb.fetch.decodeurl(url) | 1219 | (_, _, fullpath, _, _, _) = bb.fetch.decodeurl(url) |
1219 | 1220 | ||
1220 | # skip patches not in oe-core | 1221 | # skip patches not in oe-core |
1221 | if '/meta/' not in fullpath: | 1222 | if not os.path.abspath(fullpath).startswith(coremeta_path): |
1222 | continue | 1223 | continue |
1223 | 1224 | ||
1224 | kinda_status_re = re.compile(r"^.*upstream.*status.*$", re.IGNORECASE | re.MULTILINE) | 1225 | kinda_status_re = re.compile(r"^.*upstream.*status.*$", re.IGNORECASE | re.MULTILINE) |