[poky] Simple recipe for local kernel/git development
Bruce Ashfield
bruce.ashfield at gmail.com
Wed Feb 1 05:46:16 PST 2012
On Wed, Feb 1, 2012 at 8:23 AM, O'donoghue, Bryan
<bryan.odonoghue at intel.com> wrote:
> Hi all.
>
> I'd like to have bitbake take a kernel in a local git repository and use a defconfig in the same directory as my bitbake recipe, to configure the kernel.
>
> So far I keep running into a requirement to have a "meta" branch which contains various kernel config options. I'd rather not have to store my kernel config in a separate "meta" branch whilst developing/configing the kernel.
>
> My understanding is that I'd have to have the development sources in "master" with the kernel configuration in "meta" - which is not ideal.
>
> In the ideal - we have one "master" branch for the kernel in the git repo - and have a full and complete defconfig applied to that branch - ideal for internal development that is, I'm not suggesting this as a release method.
>
> What's the simple bitbake/yocto-newbie friendly way to accomplish this ? One defconfig is by far my preference.
>
> Here's the recipe so far - is there any way to do what I want to do without a "meta" branch containing the kernel config ?
There's no requirement of a meta branch if the repository isn't a full
yocto repository, and I have several more enhancements in this area that
will be part of M3.
So the question that I have is .. what is your local kernel repository that
you are working with ?
Cheers,
Bruce
>
> #####################################################
>
> inherit kernel
> require recipes-kernel/linux/linux-yocto.inc
>
> # Set branch pointers
> KMACHINE = "master"
> KBRANCH = ${KMACHINE}
> #KMETA = meta
>
> # Set version - required ??
> LINUX_VERSION ?= "3.2.0"
>
> # We want a directory named linux-yocto-dev (I think)
> PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto-dev"
>
> # Use yocto/standard/base for all machines
> SRCREV=${AUTOREV}
> SRCREV_machine_pn-linux-yocto-dev ?= ${AUTOINC}
> SRCREV_meta_pn-linux-yocto-dev ?= ${AUTOINC}
>
> PR = "r0"
> PV = "${LINUX_VERSION}+git${SRCPV}"
> SRCREV_FORMAT = "meta_machine"
>
>
> # Set KSRC to poky/linux-yocto-dev
> KSRC_linux_yocto_dev ?= ${COREBASE}/linux-yocto-dev
>
> # Set SRC_URI
> KSRC_linux_yocto_dev ?= ${COREBASE}/linux-yocto-dev
> SRC_URI = "git://${KSRC_linux_yocto_dev};protocol=file;nocheckout=1;branch=${KBRANCH},meta;name=machine,meta\
> file://defconfig.cfg"
>
> KERNEL_REVISION_CHECKING=
> #BB_LOCALCOUNT_OVERRIDE = "1"
> LOCALCOUNT = "0"
>
> FILESEXTRAPATHS := "${THISDIR}/${PN}"
> COMPATIBLE_MACHINE = ${MACHINE}
>
> # Functionality flags
> KERNEL_FEATURES=""
>
> # Drop linux-tools.inc to avoid building perf and pulling in perl, python, and
> # elfutils.
> -------------------------------------------------------------
> Intel Ireland Limited (Branch)
> Collinstown Industrial Park, Leixlip, County Kildare, Ireland
> Registered Number: E902934
>
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.
>
> _______________________________________________
> poky mailing list
> poky at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
--
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
More information about the poky
mailing list