[OE-core] patches can be either ".patch" or ".diff" files, yes?

Burton, Ross ross.burton at intel.com
Fri Jul 18 19:30:41 UTC 2014


On 18 July 2014 19:58, Robert P. J. Day <rpjday at crashcourse.ca> wrote:
>  not sure where i saw this recently (i'll track it down), but some OE
> or yocto doc claimed that patch files *must* be suffixed with
> ".patch". i'm pretty sure it can be either .patch or .diff, correct?
> as in, it's perfectly valid to do this in a .bbappend file:
>
>      SRC_URI += "file://0001-first-change.patch"
>      SRC_URI += "file://0002-first-change.patch"
>      SRC_URI += "file://0003-first-change.diff"
>
> as long as the filenames match, of course. yes?

For a file to be handled automatically as a patch it must be .diff or
.patch, and it appears that it can be optionally compressed
(identifying extensions being .Z .gz .bz2), so foo.patch and
bar.diff.gz are both automatically applied patches.

Ross



More information about the Openembedded-core mailing list