From: Andreas Oberritter <obi@opendreambox.org>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] cryptodev kernel module recipe
Date: Fri, 19 Oct 2012 11:43:01 +0200 [thread overview]
Message-ID: <508120A5.1050404@opendreambox.org> (raw)
In-Reply-To: <70CC66F5C30A414DADDA6973E4CA391A709A30@039-SN1MPN1-002.039d.mgd.msft.net>
On 19.10.2012 03:47, McClintock Matthew-B29882 wrote:
> On Thu, Oct 18, 2012 at 3:38 PM, Darren Hart <dvhart@linux.intel.com> wrote:
>>>>> +EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"'
>>>>
>>>> modules.bbclass already sets KERNEL_PATH and KERNEL_SRC, perhaps you
>>>> could use one of those?
>>>
>>> cryptodev Makefile does not use these it uses KERNEL_DIR in it's
>>> Makefile for whatever reason. Getting an upstream project to change is
>>> more difficult.
>>
>> I think this is the second reference to KERNEL_DIR in an external module,
>> perhaps module.bbclass should add that to it's list of predefined names for
>> the STAGING_KERNEL_DIR.
>
> Fine with me, but not sure how its worth it quite yet...
I don't think we should add more privately defined variables to
module.bbclass.
I'd rather use something like the following as the default, which should
work for all recipes where ${S} points to the directory containing the
top-level Kbuild file and is independent of those variables:
do_compile() {
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
oe_runmake -C "${STAGING_KERNEL_DIR}" SUBDIRS="${S}" modules
}
do_install() {
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
oe_runmake -C "${STAGING_KERNEL_DIR}" SUBDIRS="${S}"
DEPMOD="echo" INSTALL_MOD_PATH="${D}" modules_install
}
That's not an option for cryptodev, though, because unlike most recipes
inheriting module.bbclass, cryptodev not only installs modules, but also
header files.
Regards,
Andreas
next prev parent reply other threads:[~2012-10-19 10:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-18 9:57 [PATCH] cryptodev kernel module recipe Yashpal Dutta
2012-10-18 6:14 ` Khem Raj
[not found] ` <DD178F3D66989248ABAC4C14253F477F11E36C@039-SN2MPN1-021.039d.mgd.msft.net>
2012-10-18 6:35 ` Khem Raj
2012-10-18 19:59 ` Darren Hart
2012-10-18 20:06 ` McClintock Matthew-B29882
2012-10-18 20:21 ` Darren Hart
2012-10-18 13:33 ` Bruce Ashfield
2012-10-30 18:50 ` McClintock Matthew-B29882
2012-10-31 17:11 ` Bruce Ashfield
2012-10-31 19:21 ` McClintock Matthew-B29882
2012-10-18 20:16 ` Darren Hart
2012-10-18 20:33 ` McClintock Matthew-B29882
2012-10-18 20:38 ` Darren Hart
2012-10-19 1:47 ` McClintock Matthew-B29882
2012-10-19 9:43 ` Andreas Oberritter [this message]
2012-10-19 14:45 ` Khem Raj
2012-10-30 18:53 ` McClintock Matthew-B29882
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=508120A5.1050404@opendreambox.org \
--to=obi@opendreambox.org \
--cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox