From: "Hart, Darren" <darren.hart@intel.com>
To: "Ashfield, Bruce (Wind River)" <bruce.ashfield@windriver.com>,
"Richard Purdie" <richard.purdie@linuxfoundation.org>,
openembedded-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] kernel/image/depmodwrapper: Fixups for depmod
Date: Tue, 20 Jan 2015 16:04:34 +0000 [thread overview]
Message-ID: <D0E3BC38.B85FA%darren.hart@intel.com> (raw)
In-Reply-To: <54BE633A.1000306@windriver.com>
On 1/20/15, 6:16 AM, "Bruce Ashfield" <bruce.ashfield@windriver.com> wrote:
>On 15-01-20 08:33 AM, Richard Purdie wrote:
>> With the rpm package backend enabled, running:
>>
>> bitbake <image>
>> bitbake virtual/kernel -c clean
>> bitbake <image> -c rootfs -f
>>
>> results in an image with incorrect kernel module dependency information.
>> The problem is that the System.map and kernel-abiversion files are
>>needed
>> for depmod and after the recent kernel changes, these are no longer in
>> sstate.
>>
>> Its reasonable to require the kernel to unpack/build if you're
>> about to build a module against it. It is not reasonable to require this
>> just to build a rootfs.
>>
>> Therefore stash the needed files specifically for depmod.
>>
>> Also fix some STAGING_KERNEL_DIR references which were incorrect, found
>> whilst sorting through his change.
>
>Now that I see the fix, the tweaks are clear (and obvious). I would have
>preferred a straight up module loading error in all cases .. since that
>would have showed in my workflows. The rootfs.py changes in particular
>would have taken me much longer to get right.
>
>>
>> This patch also makes the depmod files being missing a fatal error
>>rather than
>> something the system just ignores silently.
>
>Nice improvement.
>
>Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Functionally look good. I noticed some whitespace issues (spaces in bash
sections instead of tabs), but those may have been due to keeping a file
internally consistent.
Otherwise,
Reviewed-by: Darren Hart <dvhart@linux.intel.com>
--
Darren Hart
Intel Open Source Technology Center
next prev parent reply other threads:[~2015-01-20 16:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-20 13:33 [PATCH] kernel/image/depmodwrapper: Fixups for depmod Richard Purdie
2015-01-20 14:16 ` Bruce Ashfield
2015-01-20 16:04 ` Hart, Darren [this message]
2015-01-20 20:22 ` Dan McGregor
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=D0E3BC38.B85FA%darren.hart@intel.com \
--to=darren.hart@intel.com \
--cc=bruce.ashfield@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=richard.purdie@linuxfoundation.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.