From: Arjan van de Ven <arjan@infradead.org>
To: cranium2003 <cranium2003@yahoo.com>
Cc: kernel newbies <kernelnewbies@nl.linux.org>,
kernerl mail <linux-kernel@vger.kernel.org>
Subject: Re: Makefile problem
Date: Tue, 21 Mar 2006 12:42:08 +0100 [thread overview]
Message-ID: <1142941329.3077.61.camel@laptopd505.fenrus.org> (raw)
In-Reply-To: <20060321112132.36531.qmail@web38002.mail.mud.yahoo.com>
On Tue, 2006-03-21 at 03:21 -0800, cranium2003 wrote:
> Hi,
> I have some Makefile questions
> 1)Why a kernel module in 2.6 kernel cannot be compiled
> with single gcc command? Why it requires Makefile in
> current directory so that i can use Makefile?
>
> 2) why following command used to compile 2.4 kernel
> module fails on 2.6 kernel
> gcc -D__KERNEL__ -DMODULE -DLINUX -O2 -Wall
> -Wstrict-prototypes -I/lib/modules/`uname
> -r`/build/include -c -o example.ko example.c
because it's broken and isn't using the same CFLAGS as the kernel is.
Read Documentation/kbuild/*
You *HAVE* to use the same CFLAGS as the rest of the kernel.
next prev parent reply other threads:[~2006-03-21 11:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-21 11:21 cranium2003
2006-03-21 11:42 ` Arjan van de Ven [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-12-19 13:25 Michele RECCANELLO
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=1142941329.3077.61.camel@laptopd505.fenrus.org \
--to=arjan@infradead.org \
--cc=cranium2003@yahoo.com \
--cc=kernelnewbies@nl.linux.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®