From: "Stuart MacDonald" <stuartm@connecttech.com>
To: "'FN'" <zzzz444@ml1.net>, "'Oleg Verych'" <olecom@flower.upol.cz>
Cc: <linux-kernel@vger.kernel.org>
Subject: RE: module builds need improvement / top Makefile not good enough
Date: Mon, 5 Mar 2007 12:03:24 -0500 [thread overview]
Message-ID: <07aa01c75f48$2fadc5b0$294b82ce@stuartm> (raw)
In-Reply-To: <1173102794.12256.1177759349@webmail.messagingengine.com>
From: On Behalf Of FN
> Currently I face the following situation -- I try to build 2 drivers
> from the same Makefile
> -----------
> CWD := $(shell pwd)
> obj-m := driver1.o driver2.o
> driver1-y := d1/d2/d3/f1.o d1/d2/f2.o
> driver2-y := d1/d5/file1.o d1/d6/file2.o
CFLAGS_f1.o := -DMASK=0x123
CFLAGS_file1.o := -DMASK=0x123
CFLAGS_f2.o := -DMASK=0x456
CFLAGS_file2.o := -DMASK=0x456
> ----------
> There are 2 problems here
> 1) kbuild is forcing me to declare EXTRA_CFLAGS in global scope and
> I can't build my drivers properly because the MASKs are
> incompatible.
Fixed your makefile for you. See Documentation/kbuild/modules.
..Stu
next prev parent reply other threads:[~2007-03-05 17:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-02 17:14 module builds need improvement / top Makefile not good enough FN
2007-03-02 17:26 ` Jeremy Fitzhardinge
2007-03-02 18:50 ` Sam Ravnborg
2007-03-04 21:47 ` Oleg Verych
2007-03-05 13:53 ` FN
2007-03-05 16:07 ` Jan Engelhardt
2007-03-05 16:47 ` Randy Dunlap
2007-03-05 17:03 ` Stuart MacDonald [this message]
2007-03-05 19:08 ` Sam Ravnborg
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='07aa01c75f48$2fadc5b0$294b82ce@stuartm' \
--to=stuartm@connecttech.com \
--cc=linux-kernel@vger.kernel.org \
--cc=olecom@flower.upol.cz \
--cc=zzzz444@ml1.net \
/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