mtd/drivers/mtd Makefile.inc,1.3,1.4
jwboyer at infradead.org
jwboyer at infradead.org
Tue Jul 13 21:43:45 EDT 2004
Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv31240
Modified Files:
Makefile.inc
Log Message:
use the default config and define the EXTRA_CFLAGS iff CONFIG_MTD is not defined
Index: Makefile.inc
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/Makefile.inc,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Makefile.inc 13 Jul 2004 10:24:45 -0000 1.3
+++ Makefile.inc 14 Jul 2004 01:43:43 -0000 1.4
@@ -3,13 +3,17 @@
#
# $Id$
+# Use the default include if we are compiling out of tree
+
+ifndef CONFIG_MTD
include $(mtd)/defconfig
+EXTRA_CFLAGS := -g -DMTD_OUT_OF_TREE -Werror
+endif
# This must be first in the include path, so it goes in $(CC) rather
# then $(EXTRA_CFLAGS)
CC += -I$(mtd)/../../include
-EXTRA_CFLAGS := -g -DMTD_OUT_OF_TREE -Werror
ifdef SIMPLEMAP
EXTRA_CFLAGS += -DSIMPLEMAP
More information about the linux-mtd-cvs
mailing list