From: Andrey Borzenkov <arvidjaar@mail.ru>
To: David Woodhouse <dwmw2@infradead.org>
Cc: Jesse Brandeburg <jesse.brandeburg@gmail.com>,
linux-kbuild@vger.kernel.org, netdev@vger.kernel.org,
Linux Kernel Development <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.29-rc: unable to compile e100 firmware into kernel
Date: Wed, 4 Feb 2009 19:45:29 +0300 [thread overview]
Message-ID: <200902041945.36632.arvidjaar@mail.ru> (raw)
In-Reply-To: <1233754384.19223.183.camel@macbook.infradead.org>
[-- Attachment #1: Type: text/plain, Size: 1739 bytes --]
On 4 of February 2009 16:33:04 David Woodhouse wrote:
> On Sun, 2009-02-01 at 11:05 -0800, Jesse Brandeburg wrote:
> > On Sat, Jan 31, 2009 at 7:59 AM, Andrey Borzenkov
<arvidjaar@mail.ru> wrote:
> > > {pts/2}% LC_ALL=C make -C ~/src/linux-git
> > > O=$HOME/build/linux-2.6.29 make: Entering directory
> > > `/home/bor/src/linux-git'
> > > Using /home/bor/src/linux-git as source for kernel
> > > ln -fsn /home/bor/src/linux-git source
> >
> > I think (seem to recall something on the list) there have been
> > multiple people reporting the make O= option doesn't work with
> > CONFIG_FIRMWARE_IN_KERNEL,
>
> That shouldn't be the case -- it works fine here.
>
> Andrey, what version of make are you using?
OK, build error was likely result of something I did before (I suspect
what, but after I cleaned up build firmware/e100 it rebuilds OK now).
But even after I verified that firmware *was* built in kernel loading
still failed. This is genuine bug caused by config option mismatch.
I had CONFIG_FW_LOADER=m. I do not remember ever setting it explicitly,
so I suspect it was selected by some other driver in the past (I do make
oldconfig for at least ten past releases if not more). This cannot work
with CONFIG_FIRMWARE_IN_KERNEL=y because of this code in
drivers/base/firmware_class.c:
#ifdef CONFIG_FW_LOADER
extern struct builtin_fw __start_builtin_fw[];
extern struct builtin_fw __end_builtin_fw[];
#else /* Module case. Avoid ifdefs later; it'll all optimise out */
static struct builtin_fw *__start_builtin_fw;
static struct builtin_fw *__end_builtin_fw;
#endif
IOW CONFIG_FIRMWARE_IN_KERNEL must force CONFIG_FW_LOADER=y. I do not
understand Kconfig enough to offer a patch.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
prev parent reply other threads:[~2009-02-04 16:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-31 15:59 2.6.29-rc: unable to compile e100 firmware into kernel Andrey Borzenkov
2009-02-01 19:05 ` Jesse Brandeburg
2009-02-01 19:18 ` Andrey Borzenkov
2009-02-04 13:33 ` David Woodhouse
2009-02-04 16:45 ` Andrey Borzenkov [this message]
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=200902041945.36632.arvidjaar@mail.ru \
--to=arvidjaar@mail.ru \
--cc=dwmw2@infradead.org \
--cc=jesse.brandeburg@gmail.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).