From: Erik Mouw <erik@harddisk-recovery.com>
To: KC <kcc1967@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: kernel 2.6.x driver compiler options
Date: Tue, 10 May 2005 16:55:44 +0200 [thread overview]
Message-ID: <20050510145544.GA11302@harddisk-recovery.com> (raw)
In-Reply-To: <5eb4b0650505100108179ba1b6@mail.gmail.com>
On Tue, May 10, 2005 at 04:08:30PM +0800, KC wrote:
> Instead of using Linux kconfig build system, can someone tell me
> what's the compiler options used to build a device driver (.ko file) ?
That depends on the architecture (i386, x86_64, arm, ppc, etc.),
compiler version (gcc 3.3, 3.4, 4.0, etc.), and kernel configuration
(single CPU, SMP, preempt, regparms, etc.). Kbuild knows about all
those things.
> Or, how can I integrate kconfig with GNU tool chain (automake, autoconf ...)
Create a file Makefile.kbuild with the usual stuff kbuild needs (see
http://lwn.net/Articles/21823/ ). Then make an automake Makefile.am
file like this:
all:
$(MAKE) -f ${srcdir}/Makefile.kbuild -C ${KERNEL_DIR} \
M=${srcdir} O=${builddir} modules
Have configure.in AC_SUBST(KERNEL_DIR), and you should be set.
I haven't tested this, but I think it should work.
Erik
--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
next prev parent reply other threads:[~2005-05-10 14:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-10 8:08 kernel 2.6.x driver compiler options KC
2005-05-10 14:55 ` Erik Mouw [this message]
2005-05-10 15:11 ` Valdis.Kletnieks
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=20050510145544.GA11302@harddisk-recovery.com \
--to=erik@harddisk-recovery.com \
--cc=kcc1967@gmail.com \
--cc=linux-kernel@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 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.