[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <07aa01c75f48$2fadc5b0$294b82ce@stuartm>
Date: Mon, 5 Mar 2007 12:03:24 -0500
From: "Stuart MacDonald" <stuartm@...necttech.com>
To: "'FN'" <zzzz444@....net>, "'Oleg Verych'" <olecom@...wer.upol.cz>
Cc: <linux-kernel@...r.kernel.org>
Subject: RE: module builds need improvement / top Makefile not good enough
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists