Skip to content
Snippets Groups Projects
Commit b5873f17 authored by Jean-Christophe PLAGNIOL-VILLARD's avatar Jean-Christophe PLAGNIOL-VILLARD
Browse files

dataflash: Move CONFIG_HAS_DATAFLASH to Makefile

parent 3ca7c558
No related branches found
No related tags found
No related merge requests found
...@@ -23,17 +23,17 @@ ...@@ -23,17 +23,17 @@
include $(TOPDIR)/config.mk include $(TOPDIR)/config.mk
LIB := $(obj)libmtd.a LIB := $(obj)libmtd.a
COBJS-y += at45.o COBJS-y += at45.o
COBJS-y += cfi_flash.o COBJS-y += cfi_flash.o
COBJS-y += dataflash.o COBJS-$(CONFIG_HAS_DATAFLASH) += dataflash.o
COBJS-y += mw_eeprom.o COBJS-y += mw_eeprom.o
COBJS-$(CONFIG_FLASH_CFI_LEGACY) += jedec_flash.o COBJS-$(CONFIG_FLASH_CFI_LEGACY) += jedec_flash.o
COBJS := $(COBJS-y) COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c) SRCS := $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS)) OBJS := $(addprefix $(obj),$(COBJS))
all: $(LIB) all: $(LIB)
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
*/ */
#include <common.h> #include <common.h>
#include <config.h> #include <config.h>
#ifdef CONFIG_HAS_DATAFLASH
#include <asm/hardware.h> #include <asm/hardware.h>
#include <dataflash.h> #include <dataflash.h>
...@@ -475,5 +474,3 @@ void dataflash_perror (int err) ...@@ -475,5 +474,3 @@ void dataflash_perror (int err)
break; break;
} }
} }
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment