[U-Boot-Users] [PATCH 10/24] drivers/mtd : move mtd drivers to drivers/mtd

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Thu Oct 11 19:26:22 CEST 2007


Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>

diff --git a/drivers/Makefile b/drivers/Makefile
index b36bcb7..58388fb 100755
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -31,9 +31,6 @@ LIB	= $(obj)libdrivers.a
 # Block and Flash Drivers
 #
 COBJS-y += ahci.o
-COBJS-y += at45.o
-COBJS-y += cfi_flash.o
-COBJS-y += dataflash.o
 COBJS-y += sym53c8xx.o
 
 #
diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile
index c0f6a06..5338a2a 100644
--- a/drivers/mtd/Makefile
+++ b/drivers/mtd/Makefile
@@ -25,7 +25,9 @@ include $(TOPDIR)/config.mk
 
 LIB 	:= $(obj)libmtd.a
 
-COBJS-y +=
+COBJS-y += at45.o
+COBJS-y += cfi_flash.o
+COBJS-y += dataflash.o
 
 COBJS	:= $(COBJS-y)
 SRCS 	:= $(COBJS:.o=.c)
diff --git a/drivers/at45.c b/drivers/mtd/at45.c
similarity index 100%
rename from drivers/at45.c
rename to drivers/mtd/at45.c
diff --git a/drivers/cfi_flash.c b/drivers/mtd/cfi_flash.c
similarity index 100%
rename from drivers/cfi_flash.c
rename to drivers/mtd/cfi_flash.c
diff --git a/drivers/dataflash.c b/drivers/mtd/dataflash.c
similarity index 100%
rename from drivers/dataflash.c
rename to drivers/mtd/dataflash.c
-- 
1.5.3.2





More information about the U-Boot mailing list