]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers/mtd : move mtd drivers to drivers/mtd
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sat, 24 Nov 2007 20:26:56 +0000 (21:26 +0100)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sun, 25 Nov 2007 22:28:52 +0000 (23:28 +0100)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
22 files changed:
Makefile
drivers/mtd/Makefile [moved from drivers/Makefile with 87% similarity, mode: 0644]
drivers/mtd/at45.c [moved from drivers/at45.c with 100% similarity]
drivers/mtd/cfi_flash.c [moved from drivers/cfi_flash.c with 100% similarity]
drivers/mtd/dataflash.c [moved from drivers/dataflash.c with 100% similarity]
drivers/mtd/mw_eeprom.c [moved from drivers/mw_eeprom.c with 100% similarity]
drivers/mtd/nand/Makefile [moved from drivers/nand/Makefile with 100% similarity]
drivers/mtd/nand/diskonchip.c [moved from drivers/nand/diskonchip.c with 100% similarity]
drivers/mtd/nand/nand.c [moved from drivers/nand/nand.c with 100% similarity]
drivers/mtd/nand/nand_base.c [moved from drivers/nand/nand_base.c with 100% similarity]
drivers/mtd/nand/nand_bbt.c [moved from drivers/nand/nand_bbt.c with 100% similarity]
drivers/mtd/nand/nand_ecc.c [moved from drivers/nand/nand_ecc.c with 100% similarity]
drivers/mtd/nand/nand_ids.c [moved from drivers/nand/nand_ids.c with 100% similarity]
drivers/mtd/nand/nand_util.c [moved from drivers/nand/nand_util.c with 100% similarity]
drivers/mtd/nand_legacy/Makefile [moved from drivers/nand_legacy/Makefile with 100% similarity]
drivers/mtd/nand_legacy/nand_legacy.c [moved from drivers/nand_legacy/nand_legacy.c with 100% similarity]
drivers/mtd/onenand/Makefile [moved from drivers/onenand/Makefile with 100% similarity]
drivers/mtd/onenand/onenand_base.c [moved from drivers/onenand/onenand_base.c with 100% similarity]
drivers/mtd/onenand/onenand_bbt.c [moved from drivers/onenand/onenand_bbt.c with 100% similarity]
nand_spl/board/amcc/acadia/Makefile
nand_spl/board/amcc/bamboo/Makefile
nand_spl/board/amcc/sequoia/Makefile

index 00a4e2a2a4a5dbbf30cf3aa0cfbfe3f03c57dad4..5f3f0b303d9b559195973b165d723e3d07a094f1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -205,30 +205,30 @@ LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs
        fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
 LIBS += net/libnet.a
 LIBS += disk/libdisk.a
-LIBS += drivers/libdrivers.a
 LIBS += drivers/bios_emulator/libatibiosemu.a
 LIBS += drivers/block/libblock.a
 LIBS += drivers/hwmon/libhwmon.a
 LIBS += drivers/i2c/libi2c.a
 LIBS += drivers/input/libinput.a
 LIBS += drivers/misc/libmisc.a
-LIBS += drivers/nand/libnand.a
-LIBS += drivers/nand_legacy/libnand_legacy.a
+LIBS += drivers/mtd/libmtd.a
+LIBS += drivers/mtd/nand/libnand.a
+LIBS += drivers/mtd/nand_legacy/libnand_legacy.a
+LIBS += drivers/mtd/onenand/libonenand.a
 LIBS += drivers/net/libnet.a
 LIBS += drivers/net/sk98lin/libsk98lin.a
-LIBS += drivers/onenand/libonenand.a
 LIBS += drivers/pci/libpci.a
 LIBS += drivers/pcmcia/libpcmcia.a
-LIBS += drivers/rtc/librtc.a
-LIBS += drivers/serial/libserial.a
-LIBS += drivers/usb/libusb.a
-LIBS += drivers/video/libvideo.a
 ifeq ($(CPU),mpc83xx)
 LIBS += drivers/qe/qe.a
 endif
 ifeq ($(CPU),mpc85xx)
 LIBS += drivers/qe/qe.a
 endif
+LIBS += drivers/rtc/librtc.a
+LIBS += drivers/serial/libserial.a
+LIBS += drivers/usb/libusb.a
+LIBS += drivers/video/libvideo.a
 LIBS += post/libpost.a post/drivers/libpostdrivers.a
 LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
        "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
old mode 100755 (executable)
new mode 100644 (file)
similarity index 87%
rename from drivers/Makefile
rename to drivers/mtd/Makefile
index d596a4e..95c5e02
 
 include $(TOPDIR)/config.mk
 
-# CFLAGS += -DET_DEBUG -DDEBUG
+LIB    := $(obj)libmtd.a
 
-LIB    = $(obj)libdrivers.a
-
-#
-# Block and Flash Drivers
-#
 COBJS-y += at45.o
 COBJS-y += cfi_flash.o
 COBJS-y += dataflash.o
 COBJS-y += mw_eeprom.o
 
 COBJS  := $(COBJS-y)
-SRCS   := $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS))
+SRCS   := $(COBJS:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS))
 
 all:   $(LIB)
 
-$(LIB): $(obj).depend $(OBJS)
+$(LIB):        $(obj).depend $(OBJS)
        $(AR) $(ARFLAGS) $@ $(OBJS)
 
 #########################################################################
similarity index 100%
rename from drivers/at45.c
rename to drivers/mtd/at45.c
similarity index 100%
rename from drivers/cfi_flash.c
rename to drivers/mtd/cfi_flash.c
similarity index 100%
rename from drivers/dataflash.c
rename to drivers/mtd/dataflash.c
similarity index 100%
rename from drivers/mw_eeprom.c
rename to drivers/mtd/mw_eeprom.c
similarity index 100%
rename from drivers/nand/nand.c
rename to drivers/mtd/nand/nand.c
index 926476f91b02f2c238a02793e64b3e3784a01d52..2d4d6016ebd6f99483849f56ccc89fcf3c250036 100644 (file)
@@ -96,7 +96,7 @@ $(obj)nand_boot.c:
 # from drivers/nand directory
 $(obj)nand_ecc.c:
        @rm -f $(obj)nand_ecc.c
-       ln -s $(SRCTREE)/drivers/nand/nand_ecc.c $(obj)nand_ecc.c
+       ln -s $(SRCTREE)/drivers/mtd/nand/nand_ecc.c $(obj)nand_ecc.c
 
 #########################################################################
 
index 8b5461dcf4cea9bb696fddf48702d4bb491a3005..3a633fb8871c6b00c3840a8bf4cabc71fbdc4132 100644 (file)
@@ -82,7 +82,7 @@ $(obj)nand_boot.c:
 # from drivers/nand directory
 $(obj)nand_ecc.c:
        @rm -f $(obj)nand_ecc.c
-       ln -s $(SRCTREE)/drivers/nand/nand_ecc.c $(obj)nand_ecc.c
+       ln -s $(SRCTREE)/drivers/mtd/nand/nand_ecc.c $(obj)nand_ecc.c
 
 ifneq ($(OBJTREE), $(SRCTREE))
 $(obj)sdram.c:
index ec1be5a768a5a228570aa5488353bba56a23b32a..78bf071f591df479ca9f6a7ce4622edd8f125430 100644 (file)
@@ -88,7 +88,7 @@ $(obj)nand_boot.c:
 # from drivers/nand directory
 $(obj)nand_ecc.c:
        @rm -f $(obj)nand_ecc.c
-       ln -s $(SRCTREE)/drivers/nand/nand_ecc.c $(obj)nand_ecc.c
+       ln -s $(SRCTREE)/drivers/mtd/nand/nand_ecc.c $(obj)nand_ecc.c
 
 #########################################################################