[yocto] Adding multiple patches to SRC_URI in a recipe — Yocto
Paul Eggleton
paul.eggleton at linux.intel.com
Thu Dec 22 09:29:18 PST 2016
On Thu, 22 Dec 2016 07:23:44 Eswaran Vinothkumar wrote:
> I am creating a BSP to customized board using Yocto. I have some hundred
> plus patches for the Linux kernel and barebox. To include the patches for
> the Linux kernel, I have created an .scc file. In the .scc file I have
> included all the patches required.The SRC_URI option in the kernel recipe
> looks like:
>
> SRC_URI +=
> "https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.0.9.tar.xz \
> file://kernelpatch.scc \
> file://kernel-4.0.9.cfg \
> "
>
> For the barebox, I tried to do the same, but it seems it doesn't support
> .scc files. So now I have included all the hundred plus patches using
> `file://patchname.patch` in SRC_URI:
>
> file://patches/0001-drivers.patch \
> file://patches/0002-hw_random-C.patch \
> .
> .
> .
> .
> file://patches/0304-usb-fastbootupport.patch \
>
> I would like to know is there a better way for adding multiple patches to
> the SRC_URI ?
One thing to consider instead of carrying this number of patches is simply
creating your own git repository and point to that in SRC_URI. Then the
patches become *much* more manageable.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the yocto
mailing list