All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@windriver.com>
To: Patrick Doyle <wpdster@gmail.com>,
	"yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: How to include kernel module without including the kernel in the rootfs?
Date: Thu, 10 Apr 2014 11:35:19 -0400	[thread overview]
Message-ID: <5346BA37.3010501@windriver.com> (raw)
In-Reply-To: <CAF_dkJD45hZOEwqb4giAKmdO-22WK3KTf-Bz0RWZvKTHD9-qFQ@mail.gmail.com>

On 14-04-10 11:32 AM, Patrick Doyle wrote:
> I just added a custom kernel module to my build, and now my rootfs
> includes a copy of my kernel (thus making it too large to fit in my
> pinhole sized root partition).
>
> Is there any way to prevent the kernel from being included in the
> rootfs?  Do modutils require a kernel image in order to function
> properly?

Clear this in your kernel recipe:

# Allow machines to override this dependency if kernel image files are
# not wanted in images as standard
RDEPENDS_kernel-base ?= "kernel-image"

and you'll get no kernel image, and yes, modules will work.

Bruce

>
> My recipe contains
>
> inherit module
>
> So I'm expecting that the module class does magic that results in the
> kernel getting installed.
>
> Is there a flag I can set to say "Don't do that?".
>
> Thanks.
>
> --wpd
>



  reply	other threads:[~2014-04-10 15:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-10 15:32 How to include kernel module without including the kernel in the rootfs? Patrick Doyle
2014-04-10 15:35 ` Bruce Ashfield [this message]
2014-04-10 18:05   ` Patrick Doyle

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=5346BA37.3010501@windriver.com \
    --to=bruce.ashfield@windriver.com \
    --cc=wpdster@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.