[linux-yocto] add local kernel folder to yocto build

Bruce Ashfield bruce.ashfield at windriver.com
Sun Feb 1 19:58:14 PST 2015


On 2015-02-01 9:32 AM, Pavan Kumar B wrote:
> Hi,
>
> I am new to yocto and trying to create bsp for my wandboard-quad. As a
> starting point I have followed the
> http://wiki.wandboard.org/Getting_started_with_Yocto_on_Wandboard and
> finally gave the command "bitbake core-image-minimal"
>
> So far so good.., I can see the generated images at
> /fsl-community-bsp/build/tmp/deploy/images/<myboard>/
>
> Now I want to build yocto with my own kernel instead of downloading from
> repository. It was 3.0.35 base kernel with lot of modifications being
> done to it. I have been working to achieve this since last week and was
> no success to achieve this.
>
> I have read yocto user manual and other stuff and came to know that I
> need to set the SOURCE_MIRROR_URL in bit bake file. So I have tried to
> set the following in the bit bake file located at $
> /fsl-community-bsp/sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-wandboard_3.0.35.bb
> <http://linux-wandboard_3.0.35.bb>
>
>
> SOURCE_MIRROR_URL ?= "file://home/mykernel/"
> INHERIT += "own-mirrors"
> BB_GENERATE_MIRROR_TARBALLS = "1"
> BB_NO_NETWORK = "1"
>
> But it was not working.
>
> Some one must have already tried to achieve this. Please let me know
> like how do I set the path to my local kernel folder and with what name
> do I need to store it. Modifying linux-wandboard_3.0.35.bb
> <http://linux-wandboard_3.0.35.bb> is sufficient or do I need to modify
> any other files as well

I build from a local repository all the time, but don't do it via
mirrors. I simply bbappend the recipe, and change the SRC_URI to
point to a local repo.

i.e. SRC_URI = 
"git:///home/bruce/poky-kernel/linux-yocto-3.10.git/;protocol=file;nocheckout=1;branch=${KBRANCH},meta;name=machine,meta"

If the recipe you are bbappending has patches and other elements, you
can't just clobber it like I did above .. but you get the general
idea.

Cheers,

Bruce

>
> Regards,
> Pavan
>
>
>



More information about the linux-yocto mailing list