mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
classes/spdx-common: Fix patch error for recipes that inherit dos2unix.
While SPDX_INCLUDE_SOURCES = "1", do_create_spdx error happens for these recipes inherit dos2unix Refer [1] to fix the issue [1] https://git.openembedded.org/openembedded-core/commit/?id=2ceda7c90c0087f52693c54d5ccab143b27f4d21 (From OE-Core rev: 7051bfb8ff67a6f0c394ce0f559eb53a05cde472) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ac359593f1
commit
2a8ea9790c
@@ -187,6 +187,8 @@ def get_patched_src(d):
|
|||||||
bb.build.exec_func("do_unpack", d)
|
bb.build.exec_func("do_unpack", d)
|
||||||
|
|
||||||
if d.getVar("SRC_URI") != "":
|
if d.getVar("SRC_URI") != "":
|
||||||
|
if bb.data.inherits_class('dos2unix', d):
|
||||||
|
bb.build.exec_func('do_convert_crlf_to_lf', d)
|
||||||
bb.build.exec_func("do_patch", d)
|
bb.build.exec_func("do_patch", d)
|
||||||
|
|
||||||
# Copy source from work-share to spdx_workdir
|
# Copy source from work-share to spdx_workdir
|
||||||
|
|||||||
Reference in New Issue
Block a user