summaryrefslogtreecommitdiffstats
path: root/meta/classes/archiver.bbclass
diff options
context:
space:
mode:
authorleimaohui <leimaohui@fujitsu.com>2021-07-21 18:13:50 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-24 16:33:46 +0100
commit34159787df2d93bd0d3b54e33ac153e010bec6a7 (patch)
tree8c0ee677ed76b73c2fe3c0a45d160f771de34bfd /meta/classes/archiver.bbclass
parent433d240084edd47f894b310a105ca91140b29deb (diff)
downloadpoky-34159787df2d93bd0d3b54e33ac153e010bec6a7.tar.gz
archiver.bbclass: Fix patch error for recipes that inherit dos2unix.
do_unpack_and_patch error happens for these recipes inherit dos2unix. (From OE-Core rev: 2ceda7c90c0087f52693c54d5ccab143b27f4d21) Signed-off-by: Lei Maohui <leimaohui@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/archiver.bbclass')
-rw-r--r--meta/classes/archiver.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index a3962306b1..900268971c 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -483,6 +483,9 @@ python do_unpack_and_patch() {
483 src_orig = '%s.orig' % src 483 src_orig = '%s.orig' % src
484 oe.path.copytree(src, src_orig) 484 oe.path.copytree(src, src_orig)
485 485
486 if bb.data.inherits_class('dos2unix', d):
487 bb.build.exec_func('do_convert_crlf_to_lf', d)
488
486 # Make sure gcc and kernel sources are patched only once 489 # Make sure gcc and kernel sources are patched only once
487 if not (d.getVar('SRC_URI') == "" or is_work_shared(d)): 490 if not (d.getVar('SRC_URI') == "" or is_work_shared(d)):
488 bb.build.exec_func('do_patch', d) 491 bb.build.exec_func('do_patch', d)