All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
To: Jonatan Magnusson <jonatan.magnusson@gmail.com>
Cc: yocto@yoctoproject.org
Subject: Re: [meta-raspberrypi] how to customize kernel config?
Date: Thu, 12 Jun 2014 08:31:05 +0100	[thread overview]
Message-ID: <53995739.9030701@dynamicdevices.co.uk> (raw)
In-Reply-To: <17C5D232-0433-4ADB-AA99-40D08E56A436@cmteknik.se>


On 12/06/2014 07:48, Jonatan Magnusson wrote:
> Hi
>
> I’m trying to use the meta-raspberrypi BSP with Yocto (1.6, Daisy).
>
> It works great, except I have no idea how to use a custom kernel config!
>
> I have a custom kernel recipe that bbappends to the meta-raspberrypi kernel recipe.
>
> I’ve tried using defconfig as well as configuration fragments, but neither work.
>
> I’ve also tried using the kernel_configure_variable function, and that almost works, except if I try to disable an option that is enabled earlier in the the config file, the option is still enabled since kernel_configure_variable only appends to the config file.
>
> Example:
>
> do_configure_append() {
>   kernel_configure_variable SPI_SPIDEV n
> }
>
> So I wonder: how is this supposed to work?
>

I don't think the RPi kernel recipe supports the linux-yocto include and
thus kernel fragments, which would be the preferred way to do things.

(At least if it does I didn't manage to get it working - I am
considering trying to add support for this in).

In the meantime to create a configuration I

bitbake -c menuconfig virtual/kernel

Edit the settings and save the resulting .config file

Then if you go to

bitbake -c devshell virtual/kernel

You can copy the .config file out of there to your source tree

Then the recipe I use to build with that configuration is something like
this, with my_defconfig in a patch
containing linux-raspberrypi folder set for searching with the path prepend,

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

KERNEL_DEFCONFIG = "my_defconfig"

SRC_URI += "file://rov_defconfig"

do_configure_prepend() {
        cp ${WORKDIR}/my_defconfig ${S}/arch/arm/configs
}

Regards,

Alex



  parent reply	other threads:[~2014-06-12  7:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-12  6:48 [meta-raspberrypi] how to customize kernel config? Jonatan Magnusson
2014-06-12  6:55 ` Jens Lucius
2014-06-12  7:31 ` Alex J Lennon [this message]
2014-06-12 20:47 ` Alex J Lennon
2014-08-14 17:51   ` Andrei Gherzan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53995739.9030701@dynamicdevices.co.uk \
    --to=ajlennon@dynamicdevices.co.uk \
    --cc=jonatan.magnusson@gmail.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.