Silly Marty, picked wrong guard for moduleconfig.h
authormarty <marty>
Tue, 20 Sep 2005 22:46:17 +0000 (22:46 +0000)
committermarty <marty>
Tue, 20 Sep 2005 22:46:17 +0000 (22:46 +0000)
Makefile
moduleconfig.h

index f9e7576d8d7a12ed3ab2964cfcd7b84297c766b9..95bcf453033bd5fdb30bc4a7bcae74569802bc32 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
 ifneq ($(KERNELRELEASE),)
+       EXTRA_CFLAGS += -DYAFFS_OUT_OF_TREE
 
        obj-m := yaffs2.o
 
@@ -8,7 +9,6 @@ ifneq ($(KERNELRELEASE),)
        yaffs2-objs += yaffs_tagscompat.o yaffs_tagsvalidity.o
 
 else
-
        KERNELDIR ?= /lib/modules/$(shell uname -r)/build
        PWD := $(shell pwd)
 
index a8684c3cbfc34daffff9f501a224c9eed30b3a6c..2809701f79775e9737ddab54a21f11d87353461b 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __YAFFS_CONFIG_H__
 #define __YAFFS_CONFIG_H__
 
-#ifdef KBUILD_MODNAME
+#ifdef YAFFS_OUT_OF_TREE
 #define CONFIG_YAFFS_FS
 #define CONFIG_YAFFS_YAFFS1
 #define CONFIG_YAFFS_YAFFS2