[U-Boot-Users] [PATCH] drivers/mtd : move mtd drivers to drivers/mtd
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Thu Oct 11 10:32:15 CEST 2007
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
drivers/Makefile | 3 ---
drivers/mtd/Makefile | 4 +++-
drivers/{ => mtd}/at45.c | 0
drivers/{ => mtd}/cfi_flash.c | 0
drivers/{ => mtd}/dataflash.c | 0
5 files changed, 3 insertions(+), 4 deletions(-)
rename drivers/{ => mtd}/at45.c (100%)
rename drivers/{ => mtd}/cfi_flash.c (100%)
rename drivers/{ => mtd}/dataflash.c (100%)
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