yoctoopenembedded

How to assign patch to specified git source?


In my foo_git.bb:

SRC_URI = "git://github.com/foo/foo.git;branch=main;protocol=https;name=${BPN};destsuffix=git  \
    git://github.com/foo2/foo2;branch=main;protocol=https;name=${FOO2};destsuffix=${FOO2} \
    file://0001-Modify-A_value.patch\
"

I want my patch to apply to foo2 but it always applied to foo. ( patch failed )


Solution

  • I found patchdir appended after the patch can work.

    ex:

    file://0001-Modify-A_value.patch;patchdir=${WORKDIR}/${FOO2_path}