# $Id: GNUmakefile,v 1.7 2002/09/13 15:16:10 dwmw2 Exp $

ifndef CONFIG_MTD

# We're being invoked outside a normal kernel build. Fake it

CONFIG_MTD := m

CONFIG_MTD_CFI := m
CONFIG_MTD_CFI_AMDSTD := m
CONFIG_MTD_CFI_INTELEXT := m
CONFIG_MTD_GEN_PROBE := m
CONFIG_MTD_JEDECPROBE := m
CONFIG_MTD_INTELPROBE := m
CONFIG_MTD_RAM := m
CONFIG_MTD_ROM := m
CONFIG_MTD_ABSENT := m
# Deprecated:
#CONFIG_MTD_JEDEC := m
#CONFIG_MTD_SHARP := m
#CONFIG_MTD_AMDSTD := m

endif

# Normal case - build in-kernel

ifeq ($(VERSION),2)
 ifneq ($(PATCHLEVEL),4)
  ifneq ($(PATCHLEVEL),5)
   OLDTOPDIR := $(TOPDIR)
   TOPDIR := $(shell pwd)/..
  endif
 endif
endif

include Makefile


