From 1f4c7592aae88726d6011da0d78698758d60b98e Mon Sep 17 00:00:00 2001 From: marty Date: Tue, 20 Sep 2005 22:46:17 +0000 Subject: [PATCH 1/1] Silly Marty, picked wrong guard for moduleconfig.h --- Makefile | 2 +- moduleconfig.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f9e7576..95bcf45 100644 --- 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) diff --git a/moduleconfig.h b/moduleconfig.h index a8684c3..2809701 100644 --- a/moduleconfig.h +++ b/moduleconfig.h @@ -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 -- 2.30.2