Skip to contentSkip to conversation

Reorganize directory structure

PATCH Superseded Peter Tyser 2 participants 22 messages Apr 5, 2010 – Apr 10, 2010 Page 1 of 3

Subsystems (25)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v2 cover Reorganize directory structure

This series reorganizes U-Boot's directory structure so that it looks
like:
/arch/$ARCH/
/lib/<sources currently in lib_$ARCH/>
/include/asm/<headers currently in incluce/asm-$ARCH/> /cpu/<appropriate cpu directories in cpu/ or just files in cpu/$CPU if 1 CPU type> /config.mk (old lib_$ARCH/config.mk)

/lib/

        /<source files currently in lib_generic>
        /libfdt/
        /lzma/
        /lzo/

Patches 8 through 19 can be squashed if desired, I split them up to keep the series somewhat manageable. Some of the patches still exceed the mailinglist's arbitrary size limit. I can post the series on a website if needed.

I compile tested on PPC, mips, and blackfin and no new errors were introduced.

The previous discussion about this series can be seen at
http://lists.denx.de/pipermail/u-boot/2009-December/065391.html

Changes since v1:
- Convert to using directory-specific CFLAGS
- No cpu subdirectories for 1-CPU architectures (eg blackfin, mips, etc) as mentioned by Mike Frysinger
- Fix libfdt path typo pointed out by Luigi Mantellini
- Added final README fixup patch

Peter Tyser (20):
Create CPUDIR variable
Change directory-specific CFLAGS to use full path Move lib_$ARCH directories to arch/$ARCH/lib
Rename lib_generic/ to lib/
Move libfdt/ into lib/
Replace "#include <asm-$ARCH/$FILE>" with "#include <asm/$FILE>" Move architecture-specific includes to arch/$ARCH/include/asm
ppc: Move cpu/$CPU to arch/ppc/cpu/$CPU
sh: Move cpu/$CPU to arch/sh/cpu/$CPU
arm: Move cpu/$CPU to arch/arm/cpu/$CPU
m68k: Move cpu/$CPU to arch/m68k/cpu/$CPU
blackfin: Move cpu/blackfin/* to arch/blackfin/cpu/*
mips: Move cpu/mips/* to arch/mips/cpu/*
avr32: Move cpu/at32ap/* to arch/avr32/cpu/*
microblaze: Move cpu/microblaze/* to arch/microblaze/cpu/*
i386: Move cpu/i386/* to arch/i386/cpu/*
sparc: Move cpu/leon[23] to arch/sparc/cpu/leon[23]
nios: Move cpu/nios/* to arch/nios/cpu/*
nios2: Move cpu/nios2/* to arch/nios2/cpu/*
Update README to reflect new directory structure

#1 lore raw

PATCH v2 1/20 Create CPUDIR variable

The CPUDIR variable points to the location of a target's CPU directory. Currently, it is set to cpu/$CPU. However, using $CPUDIR will allow for more flexibility in the future. It lays the groundwork for reorganizing U-Boot's directory structure to support a layout such as:

arch/$ARCH/cpu/$CPU/* (architecture with multiple CPU types)
arch/$ARCH/cpu/* (architecture with one CPU type)

---
 Makefile                                     |   18 +++++++++---------
 board/freescale/mpc8536ds/config.mk          |    2 +-
 board/freescale/mpc8569mds/config.mk         |    2 +-
 board/freescale/mx51evk/config.mk            |    2 +-
 board/freescale/p1_p2_rdb/config.mk          |    2 +-
 config.mk                                    |    5 +++--
 doc/README.ARM-SoC                           |    6 +++---
 lib_arm/config.mk                            |    2 +-
 lib_blackfin/config.mk                       |    2 +-
 lib_sh/config.mk                             |    2 +-
 nand_spl/board/freescale/mpc8536ds/Makefile  |    4 ++--
 nand_spl/board/freescale/mpc8569mds/Makefile |    4 ++--
 nand_spl/board/freescale/p1_p2_rdb/Makefile  |    4 ++--
 onenand_ipl/board/apollon/Makefile           |    2 +-
 14 files changed, 29 insertions(+), 28 deletions(-)
Makefile +9 -9
index 4532550..a8e3f0d 100644
@@ -169,16 +169,16 @@ include $(TOPDIR)/config.mk
 #########################################################################
 # U-Boot objects....order is important (i.e. start must be first)
 
-OBJS  = cpu/$(CPU)/start.o
+OBJS  = $(CPUDIR)/start.o
 ifeq ($(CPU),i386)
-OBJS += cpu/$(CPU)/start16.o
-OBJS += cpu/$(CPU)/resetvec.o
+OBJS += $(CPUDIR)/start16.o
+OBJS += $(CPUDIR)/resetvec.o
 endif
 ifeq ($(CPU),ppc4xx)
-OBJS += cpu/$(CPU)/resetvec.o
+OBJS += $(CPUDIR)/resetvec.o
 endif
 ifeq ($(CPU),mpc85xx)
-OBJS += cpu/$(CPU)/resetvec.o
+OBJS += $(CPUDIR)/resetvec.o
 endif
 
 OBJS := $(addprefix $(obj),$(OBJS))
@@ -188,9 +188,9 @@ LIBS += lib_generic/lzma/liblzma.a
 LIBS += lib_generic/lzo/liblzo.a
 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
 	"board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
-LIBS += cpu/$(CPU)/lib$(CPU).a
+LIBS += $(CPUDIR)/lib$(CPU).a
 ifdef SOC
-LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
+LIBS += $(CPUDIR)/$(SOC)/lib$(SOC).a
 endif
 ifeq ($(CPU),ixp)
 LIBS += cpu/ixp/npe/libnpe.a
@@ -354,7 +354,7 @@ ifeq ($(CONFIG_KALLSYMS),y)
 endif
 
 $(OBJS):	depend
-		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
+		$(MAKE) -C $(CPUDIR) $(if $(REMOTE_BUILD),$@,$(notdir $@))
 
 $(LIBS):	depend $(SUBDIRS)
 		$(MAKE) -C $(dir $(subst $(obj),,$@))
@@ -404,7 +404,7 @@ env:
 # Explicitly make _depend in subdirs containing multiple targets to prevent
 # parallel sub-makes creating .depend files simultaneously.
 depend dep:	$(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
-		for dir in $(SUBDIRS) cpu/$(CPU) $(dir $(LDSCRIPT)) ; do \
+		for dir in $(SUBDIRS) $(CPUDIR) $(dir $(LDSCRIPT)) ; do \
 			$(MAKE) -C $$dir _depend ; done
 
 TAG_SUBDIRS = $(SUBDIRS)
board/freescale/mpc8536ds/config.mk +1 -1
index e38af73..3f5447a 100644
@@ -26,7 +26,7 @@
 ifndef NAND_SPL
 ifeq ($(CONFIG_MK_NAND), y)
 TEXT_BASE = $(CONFIG_RAMBOOT_TEXT_BASE)
-LDSCRIPT := $(TOPDIR)/cpu/$(CPU)/u-boot-nand.lds
+LDSCRIPT := $(TOPDIR)/$(CPUDIR)/u-boot-nand.lds
 endif
 endif
 
board/freescale/mpc8569mds/config.mk +1 -1
index 7de0f7c..86f138c 100644
@@ -26,7 +26,7 @@
 ifndef NAND_SPL
 ifeq ($(CONFIG_MK_NAND), y)
 TEXT_BASE = $(CONFIG_RAMBOOT_TEXT_BASE)
-LDSCRIPT := $(TOPDIR)/cpu/$(CPU)/u-boot-nand.lds
+LDSCRIPT := $(TOPDIR)/$(CPUDIR)/u-boot-nand.lds
 endif
 endif
 
board/freescale/mx51evk/config.mk +1 -1
index c8279ec..af70ec2 100644
@@ -20,6 +20,6 @@
 # MA 02111-1307 USA
 #
 
-LDSCRIPT = cpu/$(CPU)/$(SOC)/u-boot.lds
+LDSCRIPT = $(CPUDIR)/$(SOC)/u-boot.lds
 TEXT_BASE = 0x97800000
 IMX_CONFIG = $(SRCTREE)/board/$(BOARDDIR)/imximage.cfg
board/freescale/p1_p2_rdb/config.mk +1 -1
index 0f7a048..1f9f7b6 100644
@@ -27,7 +27,7 @@
 ifndef NAND_SPL
 ifeq ($(CONFIG_MK_NAND), y)
 TEXT_BASE = $(CONFIG_RAMBOOT_TEXT_BASE)
-LDSCRIPT := $(TOPDIR)/cpu/$(CPU)/u-boot-nand.lds
+LDSCRIPT := $(TOPDIR)/$(CPUDIR)/u-boot-nand.lds
 endif
 endif
 
config.mk +3 -2
index cb1c4af..ee9ca28 100644
@@ -114,10 +114,11 @@ ifdef	ARCH
 sinclude $(TOPDIR)/lib_$(ARCH)/config.mk	# include architecture dependend rules
 endif
 ifdef	CPU
-sinclude $(TOPDIR)/cpu/$(CPU)/config.mk		# include  CPU	specific rules
+CPUDIR=cpu/$(CPU)
+sinclude $(TOPDIR)/$(CPUDIR)/config.mk		# include  CPU	specific rules
 endif
 ifdef	SOC
-sinclude $(TOPDIR)/cpu/$(CPU)/$(SOC)/config.mk	# include  SoC	specific rules
+sinclude $(TOPDIR)/$(CPUDIR)/$(SOC)/config.mk	# include  SoC	specific rules
 endif
 ifdef	VENDOR
 BOARDDIR = $(VENDOR)/$(BOARD)
doc/README.ARM-SoC +3 -3
index 0f2677f..15f065d 100644
@@ -7,14 +7,14 @@ I introduced the concept of Soc (system on a chip) into the ./cpu
 directory. That means that code that is cpu (i.e. core) specific
 resides in
 
-	cpu/$(CPU)/
+	$(CPUDIR)/
 
 and code that is specific to some SoC (i.e. vendor specific
 peripherals around the core) is moved into
 
-	cpu/$(CPU)/$(SOC)/
+	$(CPUDIR)/$(SOC)/
 
-Thus a library/archive "cpu/$(CPU)/$(SOC)/lib$(SOC).a" will be build
+Thus a library/archive "$(CPUDIR)/$(SOC)/lib$(SOC).a" will be build
 and linked. Examples will be
 
 	cpu/arm920t/imx/
lib_arm/config.mk +1 -1
index 3c078df..8dd4dcc 100644
@@ -63,4 +63,4 @@ ifeq (,$(findstring lib_arm/eabi_compat.o,$(PLATFORM_LIBS)))
 PLATFORM_LIBS += $(OBJTREE)/lib_arm/eabi_compat.o
 endif
 endif
-LDSCRIPT := $(SRCTREE)/cpu/$(CPU)/u-boot.lds
+LDSCRIPT := $(SRCTREE)/$(CPUDIR)/u-boot.lds
lib_blackfin/config.mk +1 -1
index 323d28f..c9ed063 100644
@@ -56,7 +56,7 @@ LDR_FLAGS-$(CONFIG_BFIN_BOOTROM_USES_EVT1) += -J
 
 LDR_FLAGS += --bmode $(subst BFIN_BOOT_,,$(CONFIG_BFIN_BOOT_MODE))
 LDR_FLAGS += --use-vmas
-LDR_FLAGS += --initcode $(obj)cpu/$(CPU)/initcode.o
+LDR_FLAGS += --initcode $(obj)$(CPUDIR)/initcode.o
 ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_UART)
 LDR_FLAGS-$(CONFIG_ENV_IS_EMBEDDED_IN_LDR) += \
 	--punchit $$(($(CONFIG_ENV_OFFSET))):$$(($(CONFIG_ENV_SIZE))):$(obj)env-ldr.o
lib_sh/config.mk +1 -1
index fa5369f..797bf4c 100644
@@ -31,4 +31,4 @@ endif
 PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
 PLATFORM_LDFLAGS += -e $(TEXT_BASE) --defsym reloc_dst=$(TEXT_BASE)
 
-LDSCRIPT := $(SRCTREE)/cpu/$(CPU)/u-boot.lds
+LDSCRIPT := $(SRCTREE)/$(CPUDIR)/u-boot.lds
nand_spl/board/freescale/mpc8536ds/Makefile +2 -2
index 7ed9d61..be0caaa 100644
@@ -29,7 +29,7 @@ PAD_TO := 0xfff01000
 
 include $(TOPDIR)/config.mk
 
-LDSCRIPT= $(TOPDIR)/cpu/$(CPU)/u-boot-nand_spl.lds
+LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
 LDFLAGS	= -Bstatic -T $(LDSCRIPT) -Ttext $(TEXT_BASE) $(PLATFORM_LDFLAGS)
 AFLAGS	+= -DCONFIG_NAND_SPL
 CFLAGS	+= -DCONFIG_NAND_SPL
@@ -93,7 +93,7 @@ $(obj)ns16550.c:
 
 $(obj)resetvec.S:
 	@rm -f $(obj)resetvec.S
-	ln -s $(SRCTREE)/cpu/$(CPU)/resetvec.S $(obj)resetvec.S
+	ln -s $(SRCTREE)/$(CPUDIR)/resetvec.S $(obj)resetvec.S
 
 $(obj)fixed_ivor.S:
 	@rm -f $(obj)fixed_ivor.S
nand_spl/board/freescale/mpc8569mds/Makefile +2 -2
index 7ed9d61..be0caaa 100644
@@ -29,7 +29,7 @@ PAD_TO := 0xfff01000
 
 include $(TOPDIR)/config.mk
 
-LDSCRIPT= $(TOPDIR)/cpu/$(CPU)/u-boot-nand_spl.lds
+LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
 LDFLAGS	= -Bstatic -T $(LDSCRIPT) -Ttext $(TEXT_BASE) $(PLATFORM_LDFLAGS)
 AFLAGS	+= -DCONFIG_NAND_SPL
 CFLAGS	+= -DCONFIG_NAND_SPL
@@ -93,7 +93,7 @@ $(obj)ns16550.c:
 
 $(obj)resetvec.S:
 	@rm -f $(obj)resetvec.S
-	ln -s $(SRCTREE)/cpu/$(CPU)/resetvec.S $(obj)resetvec.S
+	ln -s $(SRCTREE)/$(CPUDIR)/resetvec.S $(obj)resetvec.S
 
 $(obj)fixed_ivor.S:
 	@rm -f $(obj)fixed_ivor.S
nand_spl/board/freescale/p1_p2_rdb/Makefile +2 -2
index 7ed9d61..be0caaa 100644
@@ -29,7 +29,7 @@ PAD_TO := 0xfff01000
 
 include $(TOPDIR)/config.mk
 
-LDSCRIPT= $(TOPDIR)/cpu/$(CPU)/u-boot-nand_spl.lds
+LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
 LDFLAGS	= -Bstatic -T $(LDSCRIPT) -Ttext $(TEXT_BASE) $(PLATFORM_LDFLAGS)
 AFLAGS	+= -DCONFIG_NAND_SPL
 CFLAGS	+= -DCONFIG_NAND_SPL
@@ -93,7 +93,7 @@ $(obj)ns16550.c:
 
 $(obj)resetvec.S:
 	@rm -f $(obj)resetvec.S
-	ln -s $(SRCTREE)/cpu/$(CPU)/resetvec.S $(obj)resetvec.S
+	ln -s $(SRCTREE)/$(CPUDIR)/resetvec.S $(obj)resetvec.S
 
 $(obj)fixed_ivor.S:
 	@rm -f $(obj)fixed_ivor.S
onenand_ipl/board/apollon/Makefile +1 -1
index 193efff..6f1df01 100644
@@ -46,7 +46,7 @@ $(onenandobj)u-boot.lds:	$(LDSCRIPT)
 # from cpu directory
 $(obj)start.S:
 	@rm -f $@
-	ln -s $(SRCTREE)/cpu/$(CPU)/start.S $@
+	ln -s $(SRCTREE)/$(CPUDIR)/start.S $@
 
 # from onenand_ipl directory
 $(obj)onenand_ipl.h:
Signature · 1 line
1.6.2.1
#2 lore raw

PATCH v2 2/20 Change directory-specific CFLAGS to use full path

In reply to Peter Tyser

Previously, a specific file or directory could be compiled with custom CFLAGS by adding a Makefile variable such as:
CFLAGS_dlmalloc.o = <custom flags for common/dlmalloc.c>
or
CFLAGS_lib = <custom flags for lib directory>

This method breaks down once multiple files or directories share the same path. Eg FLAGS_fileA = <custom flags> would incorrectly result in both dir1/fileA.c and dir2/fileA.c being compiled with <custom flags>.

This change allows finer grained control which we need once we move lib_$ARCH to arch/$ARCH/lib/ and lib_generic/ to lib/. Without this change all lib/ directories would share the same custom CFLAGS.

---
 board/bf518f-ezbrd/config.mk  |    2 +-
 board/bf526-ezbrd/config.mk   |    2 +-
 board/bf527-ezkit/config.mk   |    2 +-
 board/bf533-ezkit/config.mk   |    2 +-
 board/bf533-stamp/config.mk   |    2 +-
 board/bf537-stamp/config.mk   |    2 +-
 board/bf538f-ezkit/config.mk  |    2 +-
 board/bf548-ezkit/config.mk   |    2 +-
 board/bf561-acvilon/config.mk |    2 +-
 board/bf561-ezkit/config.mk   |    2 +-
 board/cm-bf527/config.mk      |    2 +-
 board/cm-bf533/config.mk      |    2 +-
 board/cm-bf537e/config.mk     |    2 +-
 board/cm-bf537u/config.mk     |    2 +-
 board/cm-bf548/config.mk      |    2 +-
 board/cm-bf561/config.mk      |    2 +-
 board/eNET/config.mk          |    2 +-
 board/tcm-bf518/config.mk     |    2 +-
 board/tcm-bf537/config.mk     |    2 +-
 config.mk                     |   17 +++++++++++------
 20 files changed, 30 insertions(+), 25 deletions(-)
board/bf518f-ezbrd/config.mk +1 -1
index f85bef5..fb93531 100644
@@ -27,7 +27,7 @@
 #TEXT_BASE = do-not-use-me
 
 CFLAGS_lib_generic += -O2
-CFLAGS_lzma += -O2
+CFLAGS_lib_generic/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf526-ezbrd/config.mk +1 -1
index f85bef5..fb93531 100644
@@ -27,7 +27,7 @@
 #TEXT_BASE = do-not-use-me
 
 CFLAGS_lib_generic += -O2
-CFLAGS_lzma += -O2
+CFLAGS_lib_generic/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf527-ezkit/config.mk +1 -1
index f85bef5..fb93531 100644
@@ -27,7 +27,7 @@
 #TEXT_BASE = do-not-use-me
 
 CFLAGS_lib_generic += -O2
-CFLAGS_lzma += -O2
+CFLAGS_lib_generic/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf533-ezkit/config.mk +1 -1
index 3c0b46f..b50e1f2 100644
@@ -27,7 +27,7 @@
 #TEXT_BASE = do-not-use-me
 
 CFLAGS_lib_generic += -O2
-CFLAGS_lzma += -O2
+CFLAGS_lib_generic/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
board/bf533-stamp/config.mk +1 -1
index 3c0b46f..b50e1f2 100644
@@ -27,7 +27,7 @@
 #TEXT_BASE = do-not-use-me
 
 CFLAGS_lib_generic += -O2
-CFLAGS_lzma += -O2
+CFLAGS_lib_generic/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
board/bf537-stamp/config.mk +1 -1
index bc14257..95d0fcc 100644
@@ -27,7 +27,7 @@
 #TEXT_BASE = do-not-use-me
 
 CFLAGS_lib_generic += -O2
-CFLAGS_lzma += -O2
+CFLAGS_lib_generic/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
board/bf538f-ezkit/config.mk +1 -1
index 3c0b46f..b50e1f2 100644
@@ -27,7 +27,7 @@
 #TEXT_BASE = do-not-use-me
 
 CFLAGS_lib_generic += -O2
-CFLAGS_lzma += -O2
+CFLAGS_lib_generic/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
board/bf548-ezkit/config.mk +1 -1
index 42ff946..aff12e9 100644
@@ -27,7 +27,7 @@
 #TEXT_BASE = do-not-use-me
 
 CFLAGS_lib_generic += -O2
-CFLAGS_lzma += -O2
+CFLAGS_lib_generic/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA       := --dma 6
board/bf561-acvilon/config.mk +1 -1
index cfad21a..b517025 100644
@@ -27,7 +27,7 @@
 #TEXT_BASE = do-not-use-me
 
 CFLAGS_lib_generic += -O2
-CFLAGS_lzma += -O2
+CFLAGS_lib_generic/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16
board/bf561-ezkit/config.mk +1 -1
index cfad21a..b517025 100644
@@ -27,7 +27,7 @@
 #TEXT_BASE = do-not-use-me
 
 CFLAGS_lib_generic += -O2
-CFLAGS_lzma += -O2
+CFLAGS_lib_generic/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16
board/cm-bf527/config.mk +1 -1
index f85bef5..fb93531 100644
@@ -27,7 +27,7 @@
 #TEXT_BASE = do-not-use-me
 
 CFLAGS_lib_generic += -O2
-CFLAGS_lzma += -O2
+CFLAGS_lib_generic/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/cm-bf533/config.mk +1 -1
index 3c0b46f..b50e1f2 100644
@@ -27,7 +27,7 @@
 #TEXT_BASE = do-not-use-me
 
 CFLAGS_lib_generic += -O2
-CFLAGS_lzma += -O2
+CFLAGS_lib_generic/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
board/cm-bf537e/config.mk +1 -1
index 3c0b46f..b50e1f2 100644
@@ -27,7 +27,7 @@
 #TEXT_BASE = do-not-use-me
 
 CFLAGS_lib_generic += -O2
-CFLAGS_lzma += -O2
+CFLAGS_lib_generic/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
board/cm-bf537u/config.mk +1 -1
index 3c0b46f..b50e1f2 100644
@@ -27,7 +27,7 @@
 #TEXT_BASE = do-not-use-me
 
 CFLAGS_lib_generic += -O2
-CFLAGS_lzma += -O2
+CFLAGS_lib_generic/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
board/cm-bf548/config.mk +1 -1
index 0c95b39..66c7368 100644
@@ -27,7 +27,7 @@
 #TEXT_BASE = do-not-use-me
 
 CFLAGS_lib_generic += -O2
-CFLAGS_lzma += -O2
+CFLAGS_lib_generic/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA       := --dma 6
board/cm-bf561/config.mk +1 -1
index cfad21a..b517025 100644
@@ -27,7 +27,7 @@
 #TEXT_BASE = do-not-use-me
 
 CFLAGS_lib_generic += -O2
-CFLAGS_lzma += -O2
+CFLAGS_lib_generic/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16
board/eNET/config.mk +1 -1
index 5c64804..dcde7fc 100644
@@ -22,7 +22,7 @@
 #
 
 TEXT_BASE = 0x38040000
-CFLAGS_dlmalloc.o += -Wa,--no-warn -fno-strict-aliasing
+CFLAGS_common/dlmalloc.o += -Wa,--no-warn -fno-strict-aliasing
 PLATFORM_RELFLAGS += -fvisibility=hidden
 PLATFORM_CPPFLAGS += -fno-dwarf2-cfi-asm
 PLATFORM_LDFLAGS += -pic --emit-relocs -Bsymbolic -Bsymbolic-functions
board/tcm-bf518/config.mk +1 -1
index f85bef5..fb93531 100644
@@ -27,7 +27,7 @@
 #TEXT_BASE = do-not-use-me
 
 CFLAGS_lib_generic += -O2
-CFLAGS_lzma += -O2
+CFLAGS_lib_generic/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/tcm-bf537/config.mk +1 -1
index 3c0b46f..b50e1f2 100644
@@ -27,7 +27,7 @@
 #TEXT_BASE = do-not-use-me
 
 CFLAGS_lib_generic += -O2
-CFLAGS_lzma += -O2
+CFLAGS_lib_generic/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
config.mk +11 -6
index ee9ca28..93046a9 100644
@@ -236,16 +236,21 @@ export	TEXT_BASE PLATFORM_CPPFLAGS PLATFORM_RELFLAGS CPPFLAGS CFLAGS AFLAGS
 #########################################################################
 
 # Allow boards to use custom optimize flags on a per dir/file basis
-BCURDIR := $(notdir $(CURDIR))
+BCURDIR = $(subst $(SRCTREE)/,,$(CURDIR:$(obj)%=%))
 $(obj)%.s:	%.S
-	$(CPP) $(AFLAGS) $(AFLAGS_$(@F)) $(AFLAGS_$(BCURDIR)) -o $@ $<
+	$(CPP) $(AFLAGS) $(AFLAGS_$(BCURDIR)/$(@F)) $(AFLAGS_$(BCURDIR)) \
+		-o $@ $<
 $(obj)%.o:	%.S
-	$(CC)  $(AFLAGS) $(AFLAGS_$(@F)) $(AFLAGS_$(BCURDIR)) -o $@ $< -c
+	$(CC)  $(AFLAGS) $(AFLAGS_$(BCURDIR)/$(@F)) $(AFLAGS_$(BCURDIR)) \
+		-o $@ $< -c
 $(obj)%.o:	%.c
-	$(CC)  $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c
+	$(CC)  $(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) \
+		-o $@ $< -c
 $(obj)%.i:	%.c
-	$(CPP) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c
+	$(CPP) $(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) \
+		-o $@ $< -c
 $(obj)%.s:	%.c
-	$(CC)  $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c -S
+	$(CC)  $(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) \
+		-o $@ $< -c -S
 
 #########################################################################
Signature · 1 line
1.6.2.1
#3 lore raw

PATCH v2 3/20 Move lib_$ARCH directories to arch/$ARCH/lib

In reply to Peter Tyser

Also move lib_$ARCH/config.mk to arch/$ARCH/config.mk

This change is intended to clean up the top-level directory structure and more closely mimic Linux's directory organization.

---
 Makefile                                           |    6 ++--
 README                                             |   28 ++++++++++----------
 {lib_arm => arch/arm}/config.mk                    |    4 +-
 {lib_arm => arch/arm/lib}/Makefile                 |    0
 {lib_arm => arch/arm/lib}/_ashldi3.S               |    0
 {lib_arm => arch/arm/lib}/_ashrdi3.S               |    0
 {lib_arm => arch/arm/lib}/_divsi3.S                |    0
 {lib_arm => arch/arm/lib}/_lshrdi3.S               |    0
 {lib_arm => arch/arm/lib}/_modsi3.S                |    0
 {lib_arm => arch/arm/lib}/_udivsi3.S               |    0
 {lib_arm => arch/arm/lib}/_umodsi3.S               |    0
 {lib_arm => arch/arm/lib}/board.c                  |    0
 {lib_arm => arch/arm/lib}/bootm.c                  |    0
 {lib_arm => arch/arm/lib}/cache-cp15.c             |    0
 {lib_arm => arch/arm/lib}/cache.c                  |    0
 {lib_arm => arch/arm/lib}/div0.c                   |    0
 {lib_arm => arch/arm/lib}/eabi_compat.c            |    0
 {lib_arm => arch/arm/lib}/interrupts.c             |    0
 {lib_arm => arch/arm/lib}/reset.c                  |    0
 {lib_avr32 => arch/avr32}/config.mk                |    0
 {lib_avr32 => arch/avr32/lib}/Makefile             |    0
 {lib_avr32 => arch/avr32/lib}/board.c              |    0
 {lib_avr32 => arch/avr32/lib}/bootm.c              |    0
 {lib_avr32 => arch/avr32/lib}/interrupts.c         |    0
 {lib_avr32 => arch/avr32/lib}/memset.S             |    0
 {lib_blackfin => arch/blackfin}/config.mk          |    2 +-
 {lib_blackfin => arch/blackfin/lib}/.gitignore     |    0
 {lib_blackfin => arch/blackfin/lib}/Makefile       |    0
 {lib_blackfin => arch/blackfin/lib}/__kgdb.S       |    0
 {lib_blackfin => arch/blackfin/lib}/board.c        |    0
 {lib_blackfin => arch/blackfin/lib}/boot.c         |    0
 {lib_blackfin => arch/blackfin/lib}/cache.c        |    0
 {lib_blackfin => arch/blackfin/lib}/clocks.c       |    0
 .../blackfin/lib}/cmd_cache_dump.c                 |    0
 {lib_blackfin => arch/blackfin/lib}/ins.S          |    0
 {lib_blackfin => arch/blackfin/lib}/kgdb.c         |    0
 {lib_blackfin => arch/blackfin/lib}/kgdb.h         |    0
 {lib_blackfin => arch/blackfin/lib}/memcmp.S       |    0
 {lib_blackfin => arch/blackfin/lib}/memcpy.S       |    0
 {lib_blackfin => arch/blackfin/lib}/memmove.S      |    0
 {lib_blackfin => arch/blackfin/lib}/memset.S       |    0
 {lib_blackfin => arch/blackfin/lib}/muldi3.c       |    0
 {lib_blackfin => arch/blackfin/lib}/outs.S         |    0
 {lib_blackfin => arch/blackfin/lib}/post.c         |    0
 {lib_blackfin => arch/blackfin/lib}/string.c       |    0
 {lib_blackfin => arch/blackfin/lib}/tests.c        |    0
 {lib_blackfin => arch/blackfin/lib}/u-boot.lds.S   |    0
 {lib_i386 => arch/i386}/config.mk                  |    0
 {lib_i386 => arch/i386/lib}/Makefile               |    0
 {lib_i386 => arch/i386/lib}/bios.S                 |    0
 {lib_i386 => arch/i386/lib}/bios.h                 |    0
 {lib_i386 => arch/i386/lib}/bios_pci.S             |    0
 {lib_i386 => arch/i386/lib}/bios_setup.c           |    0
 {lib_i386 => arch/i386/lib}/board.c                |    0
 {lib_i386 => arch/i386/lib}/bootm.c                |    0
 {lib_i386 => arch/i386/lib}/interrupts.c           |    0
 {lib_i386 => arch/i386/lib}/pcat_interrupts.c      |    0
 {lib_i386 => arch/i386/lib}/pcat_timer.c           |    0
 {lib_i386 => arch/i386/lib}/pci.c                  |    0
 {lib_i386 => arch/i386/lib}/pci_type1.c            |    0
 {lib_i386 => arch/i386/lib}/realmode.c             |    0
 {lib_i386 => arch/i386/lib}/realmode_switch.S      |    0
 {lib_i386 => arch/i386/lib}/timer.c                |    0
 {lib_i386 => arch/i386/lib}/video.c                |    0
 {lib_i386 => arch/i386/lib}/video_bios.c           |    0
 {lib_i386 => arch/i386/lib}/zimage.c               |    0
 {lib_m68k => arch/m68k}/config.mk                  |    0
 {lib_m68k => arch/m68k/lib}/Makefile               |    0
 {lib_m68k => arch/m68k/lib}/board.c                |    0
 {lib_m68k => arch/m68k/lib}/bootm.c                |    0
 {lib_m68k => arch/m68k/lib}/cache.c                |    0
 {lib_m68k => arch/m68k/lib}/interrupts.c           |    0
 {lib_m68k => arch/m68k/lib}/time.c                 |    0
 {lib_m68k => arch/m68k/lib}/traps.c                |    0
 {lib_microblaze => arch/microblaze}/config.mk      |    0
 {lib_microblaze => arch/microblaze/lib}/Makefile   |    0
 {lib_microblaze => arch/microblaze/lib}/board.c    |    0
 {lib_microblaze => arch/microblaze/lib}/bootm.c    |    0
 {lib_microblaze => arch/microblaze/lib}/cache.c    |    0
 {lib_microblaze => arch/microblaze/lib}/time.c     |    0
 {lib_mips => arch/mips}/config.mk                  |    0
 {lib_mips => arch/mips/lib}/Makefile               |    0
 {lib_mips => arch/mips/lib}/board.c                |    0
 {lib_mips => arch/mips/lib}/bootm.c                |    0
 {lib_mips => arch/mips/lib}/bootm_qemu_mips.c      |    0
 {lib_mips => arch/mips/lib}/time.c                 |    0
 {lib_nios => arch/nios}/config.mk                  |    0
 {lib_nios => arch/nios/lib}/Makefile               |    0
 {lib_nios => arch/nios/lib}/board.c                |    0
 {lib_nios => arch/nios/lib}/bootm.c                |    0
 {lib_nios => arch/nios/lib}/cache.c                |    0
 {lib_nios => arch/nios/lib}/divmod.c               |    0
 {lib_nios => arch/nios/lib}/math.h                 |    0
 {lib_nios => arch/nios/lib}/mult.c                 |    0
 {lib_nios => arch/nios/lib}/time.c                 |    0
 {lib_nios2 => arch/nios2}/config.mk                |    0
 {lib_nios2 => arch/nios2/lib}/Makefile             |    0
 {lib_nios2 => arch/nios2/lib}/board.c              |    0
 {lib_nios2 => arch/nios2/lib}/bootm.c              |    0
 {lib_nios2 => arch/nios2/lib}/cache.S              |    0
 {lib_nios2 => arch/nios2/lib}/divmod.c             |    0
 {lib_nios2 => arch/nios2/lib}/math.h               |    0
 {lib_nios2 => arch/nios2/lib}/mult.c               |    0
 {lib_nios2 => arch/nios2/lib}/time.c               |    0
 {lib_ppc => arch/ppc}/config.mk                    |    0
 {lib_ppc => arch/ppc/lib}/Makefile                 |    0
 {lib_ppc => arch/ppc/lib}/bat_rw.c                 |    0
 {lib_ppc => arch/ppc/lib}/board.c                  |    0
 {lib_ppc => arch/ppc/lib}/bootm.c                  |    0
 {lib_ppc => arch/ppc/lib}/cache.c                  |    0
 {lib_ppc => arch/ppc/lib}/extable.c                |    0
 {lib_ppc => arch/ppc/lib}/interrupts.c             |    0
 {lib_ppc => arch/ppc/lib}/kgdb.c                   |    0
 {lib_ppc => arch/ppc/lib}/ppccache.S               |    0
 {lib_ppc => arch/ppc/lib}/ppcstring.S              |    0
 {lib_ppc => arch/ppc/lib}/reloc.S                  |    0
 {lib_ppc => arch/ppc/lib}/ticks.S                  |    0
 {lib_ppc => arch/ppc/lib}/time.c                   |    0
 {lib_sh => arch/sh}/config.mk                      |    0
 {lib_sh => arch/sh/lib}/Makefile                   |    0
 {lib_sh => arch/sh/lib}/board.c                    |    0
 {lib_sh => arch/sh/lib}/bootm.c                    |    0
 {lib_sh => arch/sh/lib}/time.c                     |    0
 {lib_sh => arch/sh/lib}/time_sh2.c                 |    0
 {lib_sparc => arch/sparc}/config.mk                |    0
 {lib_sparc => arch/sparc/lib}/Makefile             |    0
 {lib_sparc => arch/sparc/lib}/board.c              |    0
 {lib_sparc => arch/sparc/lib}/bootm.c              |    0
 {lib_sparc => arch/sparc/lib}/cache.c              |    0
 {lib_sparc => arch/sparc/lib}/interrupts.c         |    0
 {lib_sparc => arch/sparc/lib}/time.c               |    0
 board/LEOX/elpt860/u-boot.lds                      |   10 +++---
 board/RPXClassic/u-boot.lds                        |    2 +-
 board/RPXlite/u-boot.lds                           |    2 +-
 board/RPXlite_dw/u-boot.lds                        |    2 +-
 board/RRvision/u-boot.lds                          |    6 ++--
 board/actux1/u-boot.lds                            |    2 +-
 board/actux2/u-boot.lds                            |    2 +-
 board/actux3/u-boot.lds                            |    2 +-
 board/amirix/ap1000/u-boot.lds                     |    2 +-
 board/astro/mcf5373l/u-boot.lds                    |    4 +-
 board/c2mon/u-boot.lds                             |    2 +-
 board/cobra5272/u-boot.lds                         |    2 +-
 board/cray/L1/u-boot.lds.debug                     |    2 +-
 board/emk/top860/u-boot.lds.debug                  |    2 +-
 board/esd/tasreg/u-boot.lds                        |    2 +-
 board/esteem192e/u-boot.lds                        |    2 +-
 board/etx094/u-boot.lds.debug                      |    4 +-
 board/fads/u-boot.lds.debug                        |    2 +-
 board/freescale/m5208evbe/u-boot.lds               |    2 +-
 board/freescale/m52277evb/u-boot.spa               |    2 +-
 board/freescale/m5235evb/u-boot.16                 |    4 +-
 board/freescale/m5235evb/u-boot.32                 |    2 +-
 board/freescale/m5249evb/u-boot.lds                |    2 +-
 board/freescale/m5253demo/u-boot.lds               |    2 +-
 board/freescale/m5253evbe/u-boot.lds               |    2 +-
 board/freescale/m5271evb/u-boot.lds                |    2 +-
 board/freescale/m5272c3/u-boot.lds                 |    2 +-
 board/freescale/m53017evb/u-boot.lds               |    2 +-
 board/freescale/m5329evb/u-boot.lds                |    4 +-
 board/freescale/m5373evb/u-boot.lds                |    4 +-
 board/freescale/m54451evb/u-boot.spa               |    2 +-
 board/freescale/m54451evb/u-boot.stm               |    2 +-
 board/freescale/m54455evb/u-boot.atm               |    4 +-
 board/freescale/m54455evb/u-boot.int               |    4 +-
 board/freescale/m547xevb/u-boot.lds                |    4 +-
 board/freescale/m548xevb/u-boot.lds                |    4 +-
 board/freescale/mpc7448hpc2/tsi108_init.c          |    2 +-
 board/freescale/mpc8610hpcd/u-boot.lds             |    2 +-
 board/freescale/mpc8641hpcn/u-boot.lds             |    2 +-
 board/freescale/mx31ads/u-boot.lds                 |    2 +-
 board/genietv/u-boot.lds                           |    2 +-
 board/genietv/u-boot.lds.debug                     |    2 +-
 board/hermes/u-boot.lds                            |    6 ++--
 board/hermes/u-boot.lds.debug                      |    6 ++--
 board/hymod/u-boot.lds                             |    2 +-
 board/icu862/u-boot.lds                            |    2 +-
 board/icu862/u-boot.lds.debug                      |    2 +-
 board/idmr/u-boot.lds                              |    2 +-
 board/ip860/u-boot.lds                             |    6 ++--
 board/ip860/u-boot.lds.debug                       |    6 ++--
 board/ivm/u-boot.lds.debug                         |    2 +-
 board/jse/jse.c                                    |    6 ++--
 board/jse/sdram.c                                  |    2 +-
 board/keymile/km8xx/u-boot.lds                     |    6 ++--
 board/kup/kup4k/u-boot.lds                         |    2 +-
 board/kup/kup4x/u-boot.lds                         |    2 +-
 board/lantec/u-boot.lds                            |    2 +-
 board/lwmon/u-boot.lds.debug                       |    2 +-
 board/mbx8xx/u-boot.lds.debug                      |    2 +-
 board/ml2/u-boot.lds                               |    2 +-
 board/ml2/u-boot.lds.debug                         |    2 +-
 board/mousse/u-boot.lds                            |    4 +-
 board/mousse/u-boot.lds.rom                        |    2 +-
 board/mpl/pip405/u-boot.lds.debug                  |    2 +-
 board/netphone/u-boot.lds                          |    6 ++--
 board/netstal/hcu4/hcu4.c                          |    2 +-
 board/netstal/hcu5/README.txt                      |    6 ++--
 board/netstal/hcu5/hcu5.c                          |    2 +-
 board/netstal/mcu25/mcu25.c                        |    2 +-
 board/netta/u-boot.lds                             |    6 ++--
 board/netta2/u-boot.lds                            |    6 ++--
 board/netvia/u-boot.lds                            |    6 ++--
 board/quantum/u-boot.lds                           |    2 +-
 board/rbc823/u-boot.lds                            |    2 +-
 board/rmu/u-boot.lds                               |    2 +-
 board/sandburst/karef/u-boot.lds.debug             |    2 +-
 board/sandburst/metrobox/u-boot.lds.debug          |    2 +-
 board/sbc8641d/u-boot.lds                          |    2 +-
 board/sc3/u-boot.lds                               |    2 +-
 board/siemens/CCM/u-boot.lds                       |    2 +-
 board/siemens/IAD210/u-boot.lds                    |    4 +-
 board/siemens/pcu_e/u-boot.lds.debug               |    2 +-
 board/snmc/qs850/u-boot.lds                        |    6 ++--
 board/snmc/qs860t/u-boot.lds                       |    6 ++--
 board/spc1920/u-boot.lds                           |    6 ++--
 board/spd8xx/u-boot.lds.debug                      |    2 +-
 board/stx/stxssa/stxssa.c                          |    2 +-
 board/stx/stxxtc/u-boot.lds                        |    6 ++--
 board/svm_sc8xx/u-boot.lds                         |    6 ++--
 board/tqc/tqm8xx/u-boot.lds                        |    4 +-
 board/uc100/u-boot.lds                             |    6 ++--
 board/v37/u-boot.lds                               |    6 ++--
 board/w7o/u-boot.lds.debug                         |    2 +-
 board/westel/amx860/u-boot.lds                     |    2 +-
 board/westel/amx860/u-boot.lds.debug               |    2 +-
 board/xes/xpedite1000/u-boot.lds.debug             |    2 +-
 board/xes/xpedite5170/u-boot.lds                   |    2 +-
 config.mk                                          |    2 +-
 cpu/mpc5xxx/u-boot-customlayout.lds                |    4 +-
 doc/README.LED                                     |    2 +-
 doc/README.alaska8220                              |    2 +-
 doc/README.m52277evb                               |   12 ++++----
 doc/README.m53017evb                               |   12 ++++----
 doc/README.m5373evb                                |   12 ++++----
 doc/README.m54455evb                               |   12 ++++----
 doc/README.m5475evb                                |   10 +++---
 doc/README.mpc5xx                                  |    6 ++--
 doc/README.nios                                    |    2 +-
 doc/TODO-i386                                      |    2 +-
 examples/api/Makefile                              |    4 +-
 include/asm-i386/interrupt.h                       |    2 +-
 include/asm-i386/u-boot-i386.h                     |    4 +-
 include/common.h                                   |    8 +++---
 include/configs/B2.h                               |    2 +-
 nand_spl/board/freescale/mpc8313erdb/Makefile      |    6 ++--
 nand_spl/board/freescale/mpc8315erdb/Makefile      |    6 ++--
 nand_spl/board/freescale/mpc8536ds/Makefile        |    2 +-
 nand_spl/board/freescale/mpc8569mds/Makefile       |    2 +-
 nand_spl/board/freescale/p1_p2_rdb/Makefile        |    2 +-
 nand_spl/board/sheldon/simpc8313/Makefile          |    6 ++--
 251 files changed, 232 insertions(+), 232 deletions(-)
 rename {lib_arm => arch/arm}/config.mk (94%)
 rename {lib_arm => arch/arm/lib}/Makefile (100%)
 rename {lib_arm => arch/arm/lib}/_ashldi3.S (100%)
 rename {lib_arm => arch/arm/lib}/_ashrdi3.S (100%)
 rename {lib_arm => arch/arm/lib}/_divsi3.S (100%)
 rename {lib_arm => arch/arm/lib}/_lshrdi3.S (100%)
 rename {lib_arm => arch/arm/lib}/_modsi3.S (100%)
 rename {lib_arm => arch/arm/lib}/_udivsi3.S (100%)
 rename {lib_arm => arch/arm/lib}/_umodsi3.S (100%)
 rename {lib_arm => arch/arm/lib}/board.c (100%)
 rename {lib_arm => arch/arm/lib}/bootm.c (100%)
 rename {lib_arm => arch/arm/lib}/cache-cp15.c (100%)
 rename {lib_arm => arch/arm/lib}/cache.c (100%)
 rename {lib_arm => arch/arm/lib}/div0.c (100%)
 rename {lib_arm => arch/arm/lib}/eabi_compat.c (100%)
 rename {lib_arm => arch/arm/lib}/interrupts.c (100%)
 rename {lib_arm => arch/arm/lib}/reset.c (100%)
 rename {lib_avr32 => arch/avr32}/config.mk (100%)
 rename {lib_avr32 => arch/avr32/lib}/Makefile (100%)
 rename {lib_avr32 => arch/avr32/lib}/board.c (100%)
 rename {lib_avr32 => arch/avr32/lib}/bootm.c (100%)
 rename {lib_avr32 => arch/avr32/lib}/interrupts.c (100%)
 rename {lib_avr32 => arch/avr32/lib}/memset.S (100%)
 rename {lib_blackfin => arch/blackfin}/config.mk (97%)
 rename {lib_blackfin => arch/blackfin/lib}/.gitignore (100%)
 rename {lib_blackfin => arch/blackfin/lib}/Makefile (100%)
 rename {lib_blackfin => arch/blackfin/lib}/__kgdb.S (100%)
 rename {lib_blackfin => arch/blackfin/lib}/board.c (100%)
 rename {lib_blackfin => arch/blackfin/lib}/boot.c (100%)
 rename {lib_blackfin => arch/blackfin/lib}/cache.c (100%)
 rename {lib_blackfin => arch/blackfin/lib}/clocks.c (100%)
 rename {lib_blackfin => arch/blackfin/lib}/cmd_cache_dump.c (100%)
 rename {lib_blackfin => arch/blackfin/lib}/ins.S (100%)
 rename {lib_blackfin => arch/blackfin/lib}/kgdb.c (100%)
 rename {lib_blackfin => arch/blackfin/lib}/kgdb.h (100%)
 rename {lib_blackfin => arch/blackfin/lib}/memcmp.S (100%)
 rename {lib_blackfin => arch/blackfin/lib}/memcpy.S (100%)
 rename {lib_blackfin => arch/blackfin/lib}/memmove.S (100%)
 rename {lib_blackfin => arch/blackfin/lib}/memset.S (100%)
 rename {lib_blackfin => arch/blackfin/lib}/muldi3.c (100%)
 rename {lib_blackfin => arch/blackfin/lib}/outs.S (100%)
 rename {lib_blackfin => arch/blackfin/lib}/post.c (100%)
 rename {lib_blackfin => arch/blackfin/lib}/string.c (100%)
 rename {lib_blackfin => arch/blackfin/lib}/tests.c (100%)
 rename {lib_blackfin => arch/blackfin/lib}/u-boot.lds.S (100%)
 rename {lib_i386 => arch/i386}/config.mk (100%)
 rename {lib_i386 => arch/i386/lib}/Makefile (100%)
 rename {lib_i386 => arch/i386/lib}/bios.S (100%)
 rename {lib_i386 => arch/i386/lib}/bios.h (100%)
 rename {lib_i386 => arch/i386/lib}/bios_pci.S (100%)
 rename {lib_i386 => arch/i386/lib}/bios_setup.c (100%)
 rename {lib_i386 => arch/i386/lib}/board.c (100%)
 rename {lib_i386 => arch/i386/lib}/bootm.c (100%)
 rename {lib_i386 => arch/i386/lib}/interrupts.c (100%)
 rename {lib_i386 => arch/i386/lib}/pcat_interrupts.c (100%)
 rename {lib_i386 => arch/i386/lib}/pcat_timer.c (100%)
 rename {lib_i386 => arch/i386/lib}/pci.c (100%)
 rename {lib_i386 => arch/i386/lib}/pci_type1.c (100%)
 rename {lib_i386 => arch/i386/lib}/realmode.c (100%)
 rename {lib_i386 => arch/i386/lib}/realmode_switch.S (100%)
 rename {lib_i386 => arch/i386/lib}/timer.c (100%)
 rename {lib_i386 => arch/i386/lib}/video.c (100%)
 rename {lib_i386 => arch/i386/lib}/video_bios.c (100%)
 rename {lib_i386 => arch/i386/lib}/zimage.c (100%)
 rename {lib_m68k => arch/m68k}/config.mk (100%)
 rename {lib_m68k => arch/m68k/lib}/Makefile (100%)
 rename {lib_m68k => arch/m68k/lib}/board.c (100%)
 rename {lib_m68k => arch/m68k/lib}/bootm.c (100%)
 rename {lib_m68k => arch/m68k/lib}/cache.c (100%)
 rename {lib_m68k => arch/m68k/lib}/interrupts.c (100%)
 rename {lib_m68k => arch/m68k/lib}/time.c (100%)
 rename {lib_m68k => arch/m68k/lib}/traps.c (100%)
 rename {lib_microblaze => arch/microblaze}/config.mk (100%)
 rename {lib_microblaze => arch/microblaze/lib}/Makefile (100%)
 rename {lib_microblaze => arch/microblaze/lib}/board.c (100%)
 rename {lib_microblaze => arch/microblaze/lib}/bootm.c (100%)
 rename {lib_microblaze => arch/microblaze/lib}/cache.c (100%)
 rename {lib_microblaze => arch/microblaze/lib}/time.c (100%)
 rename {lib_mips => arch/mips}/config.mk (100%)
 rename {lib_mips => arch/mips/lib}/Makefile (100%)
 rename {lib_mips => arch/mips/lib}/board.c (100%)
 rename {lib_mips => arch/mips/lib}/bootm.c (100%)
 rename {lib_mips => arch/mips/lib}/bootm_qemu_mips.c (100%)
 rename {lib_mips => arch/mips/lib}/time.c (100%)
 rename {lib_nios => arch/nios}/config.mk (100%)
 rename {lib_nios => arch/nios/lib}/Makefile (100%)
 rename {lib_nios => arch/nios/lib}/board.c (100%)
 rename {lib_nios => arch/nios/lib}/bootm.c (100%)
 rename {lib_nios => arch/nios/lib}/cache.c (100%)
 rename {lib_nios => arch/nios/lib}/divmod.c (100%)
 rename {lib_nios => arch/nios/lib}/math.h (100%)
 rename {lib_nios => arch/nios/lib}/mult.c (100%)
 rename {lib_nios => arch/nios/lib}/time.c (100%)
 rename {lib_nios2 => arch/nios2}/config.mk (100%)
 rename {lib_nios2 => arch/nios2/lib}/Makefile (100%)
 rename {lib_nios2 => arch/nios2/lib}/board.c (100%)
 rename {lib_nios2 => arch/nios2/lib}/bootm.c (100%)
 rename {lib_nios2 => arch/nios2/lib}/cache.S (100%)
 rename {lib_nios2 => arch/nios2/lib}/divmod.c (100%)
 rename {lib_nios2 => arch/nios2/lib}/math.h (100%)
 rename {lib_nios2 => arch/nios2/lib}/mult.c (100%)
 rename {lib_nios2 => arch/nios2/lib}/time.c (100%)
 rename {lib_ppc => arch/ppc}/config.mk (100%)
 rename {lib_ppc => arch/ppc/lib}/Makefile (100%)
 rename {lib_ppc => arch/ppc/lib}/bat_rw.c (100%)
 rename {lib_ppc => arch/ppc/lib}/board.c (100%)
 rename {lib_ppc => arch/ppc/lib}/bootm.c (100%)
 rename {lib_ppc => arch/ppc/lib}/cache.c (100%)
 rename {lib_ppc => arch/ppc/lib}/extable.c (100%)
 rename {lib_ppc => arch/ppc/lib}/interrupts.c (100%)
 rename {lib_ppc => arch/ppc/lib}/kgdb.c (100%)
 rename {lib_ppc => arch/ppc/lib}/ppccache.S (100%)
 rename {lib_ppc => arch/ppc/lib}/ppcstring.S (100%)
 rename {lib_ppc => arch/ppc/lib}/reloc.S (100%)
 rename {lib_ppc => arch/ppc/lib}/ticks.S (100%)
 rename {lib_ppc => arch/ppc/lib}/time.c (100%)
 rename {lib_sh => arch/sh}/config.mk (100%)
 rename {lib_sh => arch/sh/lib}/Makefile (100%)
 rename {lib_sh => arch/sh/lib}/board.c (100%)
 rename {lib_sh => arch/sh/lib}/bootm.c (100%)
 rename {lib_sh => arch/sh/lib}/time.c (100%)
 rename {lib_sh => arch/sh/lib}/time_sh2.c (100%)
 rename {lib_sparc => arch/sparc}/config.mk (100%)
 rename {lib_sparc => arch/sparc/lib}/Makefile (100%)
 rename {lib_sparc => arch/sparc/lib}/board.c (100%)
 rename {lib_sparc => arch/sparc/lib}/bootm.c (100%)
 rename {lib_sparc => arch/sparc/lib}/cache.c (100%)
 rename {lib_sparc => arch/sparc/lib}/interrupts.c (100%)
 rename {lib_sparc => arch/sparc/lib}/time.c (100%)
Makefile +3 -3
index a8e3f0d..ba0b5d3 100644
@@ -195,7 +195,7 @@ endif
 ifeq ($(CPU),ixp)
 LIBS += cpu/ixp/npe/libnpe.a
 endif
-LIBS += lib_$(ARCH)/lib$(ARCH).a
+LIBS += arch/$(ARCH)/lib/lib$(ARCH).a
 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
 	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a \
 	fs/ubifs/libubifs.a
@@ -257,7 +257,7 @@ LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
 # Add GCC lib
 ifdef USE_PRIVATE_LIBGCC
 ifeq ("$(USE_PRIVATE_LIBGCC)", "yes")
-PLATFORM_LIBGCC = -L $(OBJTREE)/lib_$(ARCH) -lgcc
+PLATFORM_LIBGCC = -L $(OBJTREE)/arch/$(ARCH)/lib -lgcc
 else
 PLATFORM_LIBGCC = -L $(USE_PRIVATE_LIBGCC) -lgcc
 endif
@@ -3738,7 +3738,7 @@ clean:
 	       $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin}	  \
 	       $(obj)board/trab/trab_fkt   $(obj)board/voiceblue/eeprom   \
 	       $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds  \
-	       $(obj)lib_blackfin/u-boot.lds				  \
+	       $(obj)arch/blackfin/lib/u-boot.lds				  \
 	       $(obj)u-boot.lds						  \
 	       $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
 	@rm -f $(obj)include/bmp_logo.h
README +14 -14
index 940b507..b91582f 100644
@@ -182,19 +182,19 @@ Directory Hierarchy:
 - examples	Example code for standalone applications, etc.
 - fs		Filesystem code (cramfs, ext2, jffs2, etc.)
 - include	Header Files
-- lib_arm	Files generic to ARM	 architecture
-- lib_avr32	Files generic to AVR32	 architecture
-- lib_blackfin	Files generic to Blackfin architecture
+- arch/arm/lib	Files generic to ARM	 architecture
+- arch/avr32/lib	Files generic to AVR32	 architecture
+- arch/blackfin/lib	Files generic to Blackfin architecture
 - lib_generic	Files generic to all	 architectures
-- lib_i386	Files generic to i386	 architecture
-- lib_m68k	Files generic to m68k	 architecture
-- lib_microblaze Files generic to microblaze architecture
-- lib_mips	Files generic to MIPS	 architecture
-- lib_nios	Files generic to NIOS	 architecture
-- lib_nios2	Files generic to NIOS2	 architecture
-- lib_ppc	Files generic to PowerPC architecture
-- lib_sh	Files generic to SH	 architecture
-- lib_sparc	Files generic to SPARC	 architecture
+- arch/i386/lib	Files generic to i386	 architecture
+- arch/m68k/lib	Files generic to m68k	 architecture
+- arch/microblaze/lib Files generic to microblaze architecture
+- arch/mips/lib	Files generic to MIPS	 architecture
+- arch/nios/lib	Files generic to NIOS	 architecture
+- arch/nios/lib2	Files generic to NIOS2	 architecture
+- arch/ppc/lib	Files generic to PowerPC architecture
+- arch/sh/lib	Files generic to SH	 architecture
+- arch/sparc/lib	Files generic to SPARC	 architecture
 - libfdt	Library files to support flattened device trees
 - net		Networking code
 - post		Power On Self Test
@@ -1934,9 +1934,9 @@ Legacy uImage format:
    13	common/image.c		Start multifile image verification
    14	common/image.c		No initial ramdisk, no multifile, continue.
 
-   15	lib_<arch>/bootm.c	All preparation done, transferring control to OS
+   15	arch/<arch>/lib/bootm.c	All preparation done, transferring control to OS
 
-  -30	lib_ppc/board.c		Fatal error, hang the system
+  -30	arch/ppc/lib/board.c		Fatal error, hang the system
   -31	post/post.c		POST test failed, detected by post_output_backlog()
   -32	post/post.c		POST test failed, detected by post_run_single()
 
arch/arm/config.mk renamed from lib_arm/config.mk +2 -2
similarity index 94%
rename from lib_arm/config.mk
rename to arch/arm/config.mk
index 8dd4dcc..e10dafc 100644
@@ -59,8 +59,8 @@ PLATFORM_CPPFLAGS += $(call cc-option,\
 # For EABI, make sure to provide raise()
 ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS)))
 # This file is parsed several times; make sure to add only once.
-ifeq (,$(findstring lib_arm/eabi_compat.o,$(PLATFORM_LIBS)))
-PLATFORM_LIBS += $(OBJTREE)/lib_arm/eabi_compat.o
+ifeq (,$(findstring arch/arm/lib/eabi_compat.o,$(PLATFORM_LIBS)))
+PLATFORM_LIBS += $(OBJTREE)/arch/arm/lib/eabi_compat.o
 endif
 endif
 LDSCRIPT := $(SRCTREE)/$(CPUDIR)/u-boot.lds
arch/arm/lib/Makefile renamed from lib_arm/Makefile +0 -0
similarity index 100%
rename from lib_arm/Makefile
rename to arch/arm/lib/Makefile
arch/arm/lib/_ashldi3.S renamed from lib_arm/_ashldi3.S +0 -0
similarity index 100%
rename from lib_arm/_ashldi3.S
rename to arch/arm/lib/_ashldi3.S
arch/arm/lib/_ashrdi3.S renamed from lib_arm/_ashrdi3.S +0 -0
similarity index 100%
rename from lib_arm/_ashrdi3.S
rename to arch/arm/lib/_ashrdi3.S
arch/arm/lib/_divsi3.S renamed from lib_arm/_divsi3.S +0 -0
similarity index 100%
rename from lib_arm/_divsi3.S
rename to arch/arm/lib/_divsi3.S
arch/arm/lib/_lshrdi3.S renamed from lib_arm/_lshrdi3.S +0 -0
similarity index 100%
rename from lib_arm/_lshrdi3.S
rename to arch/arm/lib/_lshrdi3.S
arch/arm/lib/_modsi3.S renamed from lib_arm/_modsi3.S +0 -0
similarity index 100%
rename from lib_arm/_modsi3.S
rename to arch/arm/lib/_modsi3.S
arch/arm/lib/_udivsi3.S renamed from lib_arm/_udivsi3.S +0 -0
similarity index 100%
rename from lib_arm/_udivsi3.S
rename to arch/arm/lib/_udivsi3.S
arch/arm/lib/_umodsi3.S renamed from lib_arm/_umodsi3.S +0 -0
similarity index 100%
rename from lib_arm/_umodsi3.S
rename to arch/arm/lib/_umodsi3.S
arch/arm/lib/board.c renamed from lib_arm/board.c +0 -0
similarity index 100%
rename from lib_arm/board.c
rename to arch/arm/lib/board.c
arch/arm/lib/bootm.c renamed from lib_arm/bootm.c +0 -0
similarity index 100%
rename from lib_arm/bootm.c
rename to arch/arm/lib/bootm.c
arch/arm/lib/cache-cp15.c renamed from lib_arm/cache-cp15.c +0 -0
similarity index 100%
rename from lib_arm/cache-cp15.c
rename to arch/arm/lib/cache-cp15.c
arch/arm/lib/cache.c renamed from lib_arm/cache.c +0 -0
similarity index 100%
rename from lib_arm/cache.c
rename to arch/arm/lib/cache.c
arch/arm/lib/div0.c renamed from lib_arm/div0.c +0 -0
similarity index 100%
rename from lib_arm/div0.c
rename to arch/arm/lib/div0.c
arch/arm/lib/eabi_compat.c renamed from lib_arm/eabi_compat.c +0 -0
similarity index 100%
rename from lib_arm/eabi_compat.c
rename to arch/arm/lib/eabi_compat.c
arch/arm/lib/interrupts.c renamed from lib_arm/interrupts.c +0 -0
similarity index 100%
rename from lib_arm/interrupts.c
rename to arch/arm/lib/interrupts.c
arch/arm/lib/reset.c renamed from lib_arm/reset.c +0 -0
similarity index 100%
rename from lib_arm/reset.c
rename to arch/arm/lib/reset.c
arch/avr32/config.mk renamed from lib_avr32/config.mk +0 -0
similarity index 100%
rename from lib_avr32/config.mk
rename to arch/avr32/config.mk
arch/avr32/lib/Makefile renamed from lib_avr32/Makefile +0 -0
similarity index 100%
rename from lib_avr32/Makefile
rename to arch/avr32/lib/Makefile
arch/avr32/lib/board.c renamed from lib_avr32/board.c +0 -0
similarity index 100%
rename from lib_avr32/board.c
rename to arch/avr32/lib/board.c
arch/avr32/lib/bootm.c renamed from lib_avr32/bootm.c +0 -0
similarity index 100%
rename from lib_avr32/bootm.c
rename to arch/avr32/lib/bootm.c
arch/avr32/lib/interrupts.c renamed from lib_avr32/interrupts.c +0 -0
similarity index 100%
rename from lib_avr32/interrupts.c
rename to arch/avr32/lib/interrupts.c
arch/avr32/lib/memset.S renamed from lib_avr32/memset.S +0 -0
similarity index 100%
rename from lib_avr32/memset.S
rename to arch/avr32/lib/memset.S
arch/blackfin/config.mk renamed from lib_blackfin/config.mk +1 -1
similarity index 97%
rename from lib_blackfin/config.mk
rename to arch/blackfin/config.mk
index c9ed063..e0606d6 100644
@@ -68,5 +68,5 @@ endif
 LDR_FLAGS += $(LDR_FLAGS-y)
 
 ifeq ($(wildcard $(TOPDIR)/board/$(BOARD)/u-boot.lds*),)
-LDSCRIPT = $(obj)lib_$(ARCH)/u-boot.lds.S
+LDSCRIPT = $(obj)arch/$(ARCH)/lib/u-boot.lds.S
 endif
arch/blackfin/lib/.gitignore renamed from lib_blackfin/.gitignore +0 -0
similarity index 100%
rename from lib_blackfin/.gitignore
rename to arch/blackfin/lib/.gitignore
arch/blackfin/lib/Makefile renamed from lib_blackfin/Makefile +0 -0
similarity index 100%
rename from lib_blackfin/Makefile
rename to arch/blackfin/lib/Makefile
arch/blackfin/lib/__kgdb.S renamed from lib_blackfin/__kgdb.S +0 -0
similarity index 100%
rename from lib_blackfin/__kgdb.S
rename to arch/blackfin/lib/__kgdb.S
arch/blackfin/lib/board.c renamed from lib_blackfin/board.c +0 -0
similarity index 100%
rename from lib_blackfin/board.c
rename to arch/blackfin/lib/board.c
arch/blackfin/lib/boot.c renamed from lib_blackfin/boot.c +0 -0
similarity index 100%
rename from lib_blackfin/boot.c
rename to arch/blackfin/lib/boot.c
arch/blackfin/lib/cache.c renamed from lib_blackfin/cache.c +0 -0
similarity index 100%
rename from lib_blackfin/cache.c
rename to arch/blackfin/lib/cache.c
arch/blackfin/lib/clocks.c renamed from lib_blackfin/clocks.c +0 -0
similarity index 100%
rename from lib_blackfin/clocks.c
rename to arch/blackfin/lib/clocks.c
arch/blackfin/lib/cmd_cache_dump.c renamed from lib_blackfin/cmd_cache_dump.c +0 -0
similarity index 100%
rename from lib_blackfin/cmd_cache_dump.c
rename to arch/blackfin/lib/cmd_cache_dump.c
arch/blackfin/lib/ins.S renamed from lib_blackfin/ins.S +0 -0
similarity index 100%
rename from lib_blackfin/ins.S
rename to arch/blackfin/lib/ins.S
arch/blackfin/lib/kgdb.c renamed from lib_blackfin/kgdb.c +0 -0
similarity index 100%
rename from lib_blackfin/kgdb.c
rename to arch/blackfin/lib/kgdb.c
arch/blackfin/lib/kgdb.h renamed from lib_blackfin/kgdb.h +0 -0
similarity index 100%
rename from lib_blackfin/kgdb.h
rename to arch/blackfin/lib/kgdb.h
arch/blackfin/lib/memcmp.S renamed from lib_blackfin/memcmp.S +0 -0
similarity index 100%
rename from lib_blackfin/memcmp.S
rename to arch/blackfin/lib/memcmp.S
arch/blackfin/lib/memcpy.S renamed from lib_blackfin/memcpy.S +0 -0
similarity index 100%
rename from lib_blackfin/memcpy.S
rename to arch/blackfin/lib/memcpy.S
arch/blackfin/lib/memmove.S renamed from lib_blackfin/memmove.S +0 -0
similarity index 100%
rename from lib_blackfin/memmove.S
rename to arch/blackfin/lib/memmove.S
arch/blackfin/lib/memset.S renamed from lib_blackfin/memset.S +0 -0
similarity index 100%
rename from lib_blackfin/memset.S
rename to arch/blackfin/lib/memset.S
arch/blackfin/lib/muldi3.c renamed from lib_blackfin/muldi3.c +0 -0
similarity index 100%
rename from lib_blackfin/muldi3.c
rename to arch/blackfin/lib/muldi3.c
arch/blackfin/lib/outs.S renamed from lib_blackfin/outs.S +0 -0
similarity index 100%
rename from lib_blackfin/outs.S
rename to arch/blackfin/lib/outs.S
arch/blackfin/lib/post.c renamed from lib_blackfin/post.c +0 -0
similarity index 100%
rename from lib_blackfin/post.c
rename to arch/blackfin/lib/post.c
arch/blackfin/lib/string.c renamed from lib_blackfin/string.c +0 -0
similarity index 100%
rename from lib_blackfin/string.c
rename to arch/blackfin/lib/string.c
arch/blackfin/lib/tests.c renamed from lib_blackfin/tests.c +0 -0
similarity index 100%
rename from lib_blackfin/tests.c
rename to arch/blackfin/lib/tests.c
arch/blackfin/lib/u-boot.lds.S renamed from lib_blackfin/u-boot.lds.S +0 -0
similarity index 100%
rename from lib_blackfin/u-boot.lds.S
rename to arch/blackfin/lib/u-boot.lds.S
arch/i386/config.mk renamed from lib_i386/config.mk +0 -0
similarity index 100%
rename from lib_i386/config.mk
rename to arch/i386/config.mk
arch/i386/lib/Makefile renamed from lib_i386/Makefile +0 -0
similarity index 100%
rename from lib_i386/Makefile
rename to arch/i386/lib/Makefile
arch/i386/lib/bios.S renamed from lib_i386/bios.S +0 -0
similarity index 100%
rename from lib_i386/bios.S
rename to arch/i386/lib/bios.S
arch/i386/lib/bios.h renamed from lib_i386/bios.h +0 -0
similarity index 100%
rename from lib_i386/bios.h
rename to arch/i386/lib/bios.h
arch/i386/lib/bios_pci.S renamed from lib_i386/bios_pci.S +0 -0
similarity index 100%
rename from lib_i386/bios_pci.S
rename to arch/i386/lib/bios_pci.S
arch/i386/lib/bios_setup.c renamed from lib_i386/bios_setup.c +0 -0
similarity index 100%
rename from lib_i386/bios_setup.c
rename to arch/i386/lib/bios_setup.c
arch/i386/lib/board.c renamed from lib_i386/board.c +0 -0
similarity index 100%
rename from lib_i386/board.c
rename to arch/i386/lib/board.c
arch/i386/lib/bootm.c renamed from lib_i386/bootm.c +0 -0
similarity index 100%
rename from lib_i386/bootm.c
rename to arch/i386/lib/bootm.c
arch/i386/lib/interrupts.c renamed from lib_i386/interrupts.c +0 -0
similarity index 100%
rename from lib_i386/interrupts.c
rename to arch/i386/lib/interrupts.c
arch/i386/lib/pcat_interrupts.c renamed from lib_i386/pcat_interrupts.c +0 -0
similarity index 100%
rename from lib_i386/pcat_interrupts.c
rename to arch/i386/lib/pcat_interrupts.c
arch/i386/lib/pcat_timer.c renamed from lib_i386/pcat_timer.c +0 -0
similarity index 100%
rename from lib_i386/pcat_timer.c
rename to arch/i386/lib/pcat_timer.c
arch/i386/lib/pci.c renamed from lib_i386/pci.c +0 -0
similarity index 100%
rename from lib_i386/pci.c
rename to arch/i386/lib/pci.c
arch/i386/lib/pci_type1.c renamed from lib_i386/pci_type1.c +0 -0
similarity index 100%
rename from lib_i386/pci_type1.c
rename to arch/i386/lib/pci_type1.c
arch/i386/lib/realmode.c renamed from lib_i386/realmode.c +0 -0
similarity index 100%
rename from lib_i386/realmode.c
rename to arch/i386/lib/realmode.c
arch/i386/lib/realmode_switch.S renamed from lib_i386/realmode_switch.S +0 -0
similarity index 100%
rename from lib_i386/realmode_switch.S
rename to arch/i386/lib/realmode_switch.S
arch/i386/lib/timer.c renamed from lib_i386/timer.c +0 -0
similarity index 100%
rename from lib_i386/timer.c
rename to arch/i386/lib/timer.c
arch/i386/lib/video.c renamed from lib_i386/video.c +0 -0
similarity index 100%
rename from lib_i386/video.c
rename to arch/i386/lib/video.c
arch/i386/lib/video_bios.c renamed from lib_i386/video_bios.c +0 -0
similarity index 100%
rename from lib_i386/video_bios.c
rename to arch/i386/lib/video_bios.c
arch/i386/lib/zimage.c renamed from lib_i386/zimage.c +0 -0
similarity index 100%
rename from lib_i386/zimage.c
rename to arch/i386/lib/zimage.c
arch/m68k/config.mk renamed from lib_m68k/config.mk +0 -0
similarity index 100%
rename from lib_m68k/config.mk
rename to arch/m68k/config.mk
arch/m68k/lib/Makefile renamed from lib_m68k/Makefile +0 -0
similarity index 100%
rename from lib_m68k/Makefile
rename to arch/m68k/lib/Makefile
arch/m68k/lib/board.c renamed from lib_m68k/board.c +0 -0
similarity index 100%
rename from lib_m68k/board.c
rename to arch/m68k/lib/board.c
arch/m68k/lib/bootm.c renamed from lib_m68k/bootm.c +0 -0
similarity index 100%
rename from lib_m68k/bootm.c
rename to arch/m68k/lib/bootm.c
arch/m68k/lib/cache.c renamed from lib_m68k/cache.c +0 -0
similarity index 100%
rename from lib_m68k/cache.c
rename to arch/m68k/lib/cache.c
arch/m68k/lib/interrupts.c renamed from lib_m68k/interrupts.c +0 -0
similarity index 100%
rename from lib_m68k/interrupts.c
rename to arch/m68k/lib/interrupts.c
arch/m68k/lib/time.c renamed from lib_m68k/time.c +0 -0
similarity index 100%
rename from lib_m68k/time.c
rename to arch/m68k/lib/time.c
arch/m68k/lib/traps.c renamed from lib_m68k/traps.c +0 -0
similarity index 100%
rename from lib_m68k/traps.c
rename to arch/m68k/lib/traps.c
arch/microblaze/config.mk renamed from lib_microblaze/config.mk +0 -0
similarity index 100%
rename from lib_microblaze/config.mk
rename to arch/microblaze/config.mk
arch/microblaze/lib/Makefile renamed from lib_microblaze/Makefile +0 -0
similarity index 100%
rename from lib_microblaze/Makefile
rename to arch/microblaze/lib/Makefile
arch/microblaze/lib/board.c renamed from lib_microblaze/board.c +0 -0
similarity index 100%
rename from lib_microblaze/board.c
rename to arch/microblaze/lib/board.c
arch/microblaze/lib/bootm.c renamed from lib_microblaze/bootm.c +0 -0
similarity index 100%
rename from lib_microblaze/bootm.c
rename to arch/microblaze/lib/bootm.c
arch/microblaze/lib/cache.c renamed from lib_microblaze/cache.c +0 -0
similarity index 100%
rename from lib_microblaze/cache.c
rename to arch/microblaze/lib/cache.c
arch/microblaze/lib/time.c renamed from lib_microblaze/time.c +0 -0
similarity index 100%
rename from lib_microblaze/time.c
rename to arch/microblaze/lib/time.c
arch/mips/config.mk renamed from lib_mips/config.mk +0 -0
similarity index 100%
rename from lib_mips/config.mk
rename to arch/mips/config.mk
arch/mips/lib/Makefile renamed from lib_mips/Makefile +0 -0
similarity index 100%
rename from lib_mips/Makefile
rename to arch/mips/lib/Makefile
arch/mips/lib/board.c renamed from lib_mips/board.c +0 -0
similarity index 100%
rename from lib_mips/board.c
rename to arch/mips/lib/board.c
arch/mips/lib/bootm.c renamed from lib_mips/bootm.c +0 -0
similarity index 100%
rename from lib_mips/bootm.c
rename to arch/mips/lib/bootm.c
arch/mips/lib/bootm_qemu_mips.c renamed from lib_mips/bootm_qemu_mips.c +0 -0
similarity index 100%
rename from lib_mips/bootm_qemu_mips.c
rename to arch/mips/lib/bootm_qemu_mips.c
arch/mips/lib/time.c renamed from lib_mips/time.c +0 -0
similarity index 100%
rename from lib_mips/time.c
rename to arch/mips/lib/time.c
arch/nios/config.mk renamed from lib_nios/config.mk +0 -0
similarity index 100%
rename from lib_nios/config.mk
rename to arch/nios/config.mk
arch/nios/lib/Makefile renamed from lib_nios/Makefile +0 -0
similarity index 100%
rename from lib_nios/Makefile
rename to arch/nios/lib/Makefile
arch/nios/lib/board.c renamed from lib_nios/board.c +0 -0
similarity index 100%
rename from lib_nios/board.c
rename to arch/nios/lib/board.c
arch/nios/lib/bootm.c renamed from lib_nios/bootm.c +0 -0
similarity index 100%
rename from lib_nios/bootm.c
rename to arch/nios/lib/bootm.c
arch/nios/lib/cache.c renamed from lib_nios/cache.c +0 -0
similarity index 100%
rename from lib_nios/cache.c
rename to arch/nios/lib/cache.c
arch/nios/lib/divmod.c renamed from lib_nios/divmod.c +0 -0
similarity index 100%
rename from lib_nios/divmod.c
rename to arch/nios/lib/divmod.c
arch/nios/lib/math.h renamed from lib_nios/math.h +0 -0
similarity index 100%
rename from lib_nios/math.h
rename to arch/nios/lib/math.h
arch/nios/lib/mult.c renamed from lib_nios/mult.c +0 -0
similarity index 100%
rename from lib_nios/mult.c
rename to arch/nios/lib/mult.c
arch/nios/lib/time.c renamed from lib_nios/time.c +0 -0
similarity index 100%
rename from lib_nios/time.c
rename to arch/nios/lib/time.c
arch/nios2/config.mk renamed from lib_nios2/config.mk +0 -0
similarity index 100%
rename from lib_nios2/config.mk
rename to arch/nios2/config.mk
arch/nios2/lib/Makefile renamed from lib_nios2/Makefile +0 -0
similarity index 100%
rename from lib_nios2/Makefile
rename to arch/nios2/lib/Makefile
arch/nios2/lib/board.c renamed from lib_nios2/board.c +0 -0
similarity index 100%
rename from lib_nios2/board.c
rename to arch/nios2/lib/board.c
arch/nios2/lib/bootm.c renamed from lib_nios2/bootm.c +0 -0
similarity index 100%
rename from lib_nios2/bootm.c
rename to arch/nios2/lib/bootm.c
arch/nios2/lib/cache.S renamed from lib_nios2/cache.S +0 -0
similarity index 100%
rename from lib_nios2/cache.S
rename to arch/nios2/lib/cache.S
arch/nios2/lib/divmod.c renamed from lib_nios2/divmod.c +0 -0
similarity index 100%
rename from lib_nios2/divmod.c
rename to arch/nios2/lib/divmod.c
arch/nios2/lib/math.h renamed from lib_nios2/math.h +0 -0
similarity index 100%
rename from lib_nios2/math.h
rename to arch/nios2/lib/math.h
arch/nios2/lib/mult.c renamed from lib_nios2/mult.c +0 -0
similarity index 100%
rename from lib_nios2/mult.c
rename to arch/nios2/lib/mult.c
arch/nios2/lib/time.c renamed from lib_nios2/time.c +0 -0
similarity index 100%
rename from lib_nios2/time.c
rename to arch/nios2/lib/time.c
arch/ppc/config.mk renamed from lib_ppc/config.mk +0 -0
similarity index 100%
rename from lib_ppc/config.mk
rename to arch/ppc/config.mk
arch/ppc/lib/Makefile renamed from lib_ppc/Makefile +0 -0
similarity index 100%
rename from lib_ppc/Makefile
rename to arch/ppc/lib/Makefile
arch/ppc/lib/bat_rw.c renamed from lib_ppc/bat_rw.c +0 -0
similarity index 100%
rename from lib_ppc/bat_rw.c
rename to arch/ppc/lib/bat_rw.c
arch/ppc/lib/board.c renamed from lib_ppc/board.c +0 -0
similarity index 100%
rename from lib_ppc/board.c
rename to arch/ppc/lib/board.c
arch/ppc/lib/bootm.c renamed from lib_ppc/bootm.c +0 -0
similarity index 100%
rename from lib_ppc/bootm.c
rename to arch/ppc/lib/bootm.c
arch/ppc/lib/cache.c renamed from lib_ppc/cache.c +0 -0
similarity index 100%
rename from lib_ppc/cache.c
rename to arch/ppc/lib/cache.c
arch/ppc/lib/extable.c renamed from lib_ppc/extable.c +0 -0
similarity index 100%
rename from lib_ppc/extable.c
rename to arch/ppc/lib/extable.c
arch/ppc/lib/interrupts.c renamed from lib_ppc/interrupts.c +0 -0
similarity index 100%
rename from lib_ppc/interrupts.c
rename to arch/ppc/lib/interrupts.c
arch/ppc/lib/kgdb.c renamed from lib_ppc/kgdb.c +0 -0
similarity index 100%
rename from lib_ppc/kgdb.c
rename to arch/ppc/lib/kgdb.c
arch/ppc/lib/ppccache.S renamed from lib_ppc/ppccache.S +0 -0
similarity index 100%
rename from lib_ppc/ppccache.S
rename to arch/ppc/lib/ppccache.S
arch/ppc/lib/ppcstring.S renamed from lib_ppc/ppcstring.S +0 -0
similarity index 100%
rename from lib_ppc/ppcstring.S
rename to arch/ppc/lib/ppcstring.S
arch/ppc/lib/reloc.S renamed from lib_ppc/reloc.S +0 -0
similarity index 100%
rename from lib_ppc/reloc.S
rename to arch/ppc/lib/reloc.S
arch/ppc/lib/ticks.S renamed from lib_ppc/ticks.S +0 -0
similarity index 100%
rename from lib_ppc/ticks.S
rename to arch/ppc/lib/ticks.S
arch/ppc/lib/time.c renamed from lib_ppc/time.c +0 -0
similarity index 100%
rename from lib_ppc/time.c
rename to arch/ppc/lib/time.c
arch/sh/config.mk renamed from lib_sh/config.mk +0 -0
similarity index 100%
rename from lib_sh/config.mk
rename to arch/sh/config.mk
arch/sh/lib/Makefile renamed from lib_sh/Makefile +0 -0
similarity index 100%
rename from lib_sh/Makefile
rename to arch/sh/lib/Makefile
arch/sh/lib/board.c renamed from lib_sh/board.c +0 -0
similarity index 100%
rename from lib_sh/board.c
rename to arch/sh/lib/board.c
arch/sh/lib/bootm.c renamed from lib_sh/bootm.c +0 -0
similarity index 100%
rename from lib_sh/bootm.c
rename to arch/sh/lib/bootm.c
arch/sh/lib/time.c renamed from lib_sh/time.c +0 -0
similarity index 100%
rename from lib_sh/time.c
rename to arch/sh/lib/time.c
arch/sh/lib/time_sh2.c renamed from lib_sh/time_sh2.c +0 -0
similarity index 100%
rename from lib_sh/time_sh2.c
rename to arch/sh/lib/time_sh2.c
arch/sparc/config.mk renamed from lib_sparc/config.mk +0 -0
similarity index 100%
rename from lib_sparc/config.mk
rename to arch/sparc/config.mk
arch/sparc/lib/Makefile renamed from lib_sparc/Makefile +0 -0
similarity index 100%
rename from lib_sparc/Makefile
rename to arch/sparc/lib/Makefile
arch/sparc/lib/board.c renamed from lib_sparc/board.c +0 -0
similarity index 100%
rename from lib_sparc/board.c
rename to arch/sparc/lib/board.c
arch/sparc/lib/bootm.c renamed from lib_sparc/bootm.c +0 -0
similarity index 100%
rename from lib_sparc/bootm.c
rename to arch/sparc/lib/bootm.c
arch/sparc/lib/cache.c renamed from lib_sparc/cache.c +0 -0
similarity index 100%
rename from lib_sparc/cache.c
rename to arch/sparc/lib/cache.c
arch/sparc/lib/interrupts.c renamed from lib_sparc/interrupts.c +0 -0
similarity index 100%
rename from lib_sparc/interrupts.c
rename to arch/sparc/lib/interrupts.c
arch/sparc/lib/time.c renamed from lib_sparc/time.c +0 -0
similarity index 100%
rename from lib_sparc/time.c
rename to arch/sparc/lib/time.c
board/LEOX/elpt860/u-boot.lds +5 -5
index 3c44b3e..32778ca 100644
@@ -66,15 +66,15 @@ SECTIONS
 
     cpu/mpc8xx/start.o			(.text)
     common/dlmalloc.o			(.text)
-    lib_ppc/ppcstring.o			(.text)
+    arch/ppc/lib/ppcstring.o			(.text)
     lib_generic/vsprintf.o		(.text)
     lib_generic/crc32.o			(.text)
     lib_generic/zlib.o			(.text)
     lib_generic/string.o		(.text)
-    lib_ppc/cache.o			(.text)
-    lib_ppc/extable.o			(.text)
-    lib_ppc/time.o			(.text)
-    lib_ppc/ticks.o			(.text)
+    arch/ppc/lib/cache.o			(.text)
+    arch/ppc/lib/extable.o			(.text)
+    arch/ppc/lib/time.o			(.text)
+    arch/ppc/lib/ticks.o			(.text)
 
     . = env_offset;
     common/env_embedded.o		(.text)
board/RPXClassic/u-boot.lds +1 -1
index 47247ec..c354ff8 100644
@@ -57,7 +57,7 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/RPXlite/u-boot.lds +1 -1
index 47247ec..c354ff8 100644
@@ -57,7 +57,7 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/RPXlite_dw/u-boot.lds +1 -1
index 7ae7be0..89aafff 100644
@@ -57,7 +57,7 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/RRvision/u-boot.lds +3 -3
index f22b25f..88644a4 100644
@@ -58,12 +58,12 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    arch/ppc/lib/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
-    lib_ppc/cache.o		(.text)
-    lib_ppc/time.o		(.text)
+    arch/ppc/lib/cache.o		(.text)
+    arch/ppc/lib/time.o		(.text)
 
     . = env_offset;
     common/env_embedded.o	(.ppcenv)
board/actux1/u-boot.lds +1 -1
index 836775f..1087167 100644
@@ -33,7 +33,7 @@ SECTIONS
 		cpu/ixp/start.o(.text)
 		lib_generic/string.o(.text)
 		lib_generic/vsprintf.o(.text)
-		lib_arm/board.o(.text)
+		arch/arm/lib/board.o(.text)
 		common/dlmalloc.o(.text)
 		cpu/ixp/cpu.o(.text)
 		. = env_offset;
board/actux2/u-boot.lds +1 -1
index 0752656..543af30 100644
@@ -33,7 +33,7 @@ SECTIONS
 		cpu/ixp/start.o(.text)
 		lib_generic/string.o(.text)
 		lib_generic/vsprintf.o(.text)
-		lib_arm/board.o(.text)
+		arch/arm/lib/board.o(.text)
 		common/dlmalloc.o(.text)
 		cpu/ixp/cpu.o(.text)
 
board/actux3/u-boot.lds +1 -1
index a69e7db..f63251d 100644
@@ -33,7 +33,7 @@ SECTIONS
 		cpu/ixp/start.o (.text)
 		lib_generic/string.o (.text)
 		lib_generic/vsprintf.o (.text)
-		lib_arm/board.o (.text)
+		arch/arm/lib/board.o (.text)
 		common/dlmalloc.o (.text)
 		cpu/ixp/cpu.o (.text)
 
board/amirix/ap1000/u-boot.lds +1 -1
index 707203d..10308d5 100644
@@ -65,7 +65,7 @@ SECTIONS
     cpu/ppc4xx/speed.o	(.text)
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
 /*    . = env_offset;*/
board/astro/mcf5373l/u-boot.lds +2 -2
index a9a4e0a..7fbe16f 100644
@@ -56,8 +56,8 @@ SECTIONS
     /* the sector layout of our flash chips!	XXX FIXME XXX	*/
 
     cpu/mcf532x/start.o		(.text)
-    lib_m68k/traps.o		(.text)
-    lib_m68k/interrupts.o	(.text)
+    arch/m68k/lib/traps.o		(.text)
+    arch/m68k/lib/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
 
board/c2mon/u-boot.lds +1 -1
index 2d0efb3..0571f02 100644
@@ -57,7 +57,7 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/cobra5272/u-boot.lds +1 -1
index 7e716bb..8989880 100644
@@ -56,7 +56,7 @@ SECTIONS
     /* the sector layout of our flash chips!	XXX FIXME XXX	*/
     cpu/mcf52x2/start.o		(.text)
     cpu/mcf52x2/cpu_init.o	(.text)
-    lib_m68k/traps.o		(.text)
+    arch/m68k/lib/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
board/cray/L1/u-boot.lds.debug +1 -1
index 970628d..40d2f78 100644
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
 
     common/env_embedded.o(.text)
 
board/emk/top860/u-boot.lds.debug +1 -1
index bfe8513..4e4943f 100644
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/esd/tasreg/u-boot.lds +1 -1
index e3230b9..54e0169 100644
@@ -56,7 +56,7 @@ SECTIONS
     /* the sector layout of our flash chips!	XXX FIXME XXX	*/
 
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    arch/m68k/lib/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
board/esteem192e/u-boot.lds +1 -1
index 3e4490e..215a2c4 100644
@@ -57,7 +57,7 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/etx094/u-boot.lds.debug +2 -2
index 1af61fb..dd4dbfa 100644
@@ -62,8 +62,8 @@ SECTIONS
     cpu/mpc8xx/cpu_init.o	(.text)
     cpu/mpc8xx/speed.o	(.text)
     cpu/mpc8xx/serial.o	(.text)
-    lib_ppc/extable.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/string.o	(.text)
     lib_generic/crc32.o		(.text)
     common/dlmalloc.o	(.text)
board/fads/u-boot.lds.debug +1 -1
index 0a3b958..8d91aed 100644
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/freescale/m5208evbe/u-boot.lds +1 -1
index bc9d5cd..3877527 100644
@@ -57,7 +57,7 @@ SECTIONS
 
     cpu/mcf52x2/start.o		(.text)
     cpu/mcf52x2/libmcf52x2.a	(.text)
-    lib_m68k/libm68k.a		(.text)
+    arch/m68k/lib/libm68k.a		(.text)
     common/dlmalloc.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
board/freescale/m52277evb/u-boot.spa +1 -1
index 7ae70d4..23d5710 100644
@@ -57,7 +57,7 @@ SECTIONS
 
     cpu/mcf5227x/start.o	(.text)
     cpu/mcf5227x/libmcf5227x.a	(.text)
-    lib_m68k/libm68k.a		(.text)
+    arch/m68k/lib/libm68k.a		(.text)
     lib_generic/libgeneric.a	(.text)
     common/cmd_mem.o		(.text)
     common/main.o		(.text)
board/freescale/m5235evb/u-boot.16 +2 -2
index c134884..940da14 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mcf523x/start.o		(.text)
     cpu/mcf523x/cpu_init.o	(.text)
-    lib_m68k/traps.o		(.text)
-    lib_m68k/interrupts.o	(.text)
+    arch/m68k/lib/traps.o		(.text)
+    arch/m68k/lib/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
 
board/freescale/m5235evb/u-boot.32 +1 -1
index 53c337d..50045e1 100644
@@ -60,7 +60,7 @@ SECTIONS
     cpu/mcf523x/cpu_init.o	(.text)
     cpu/mcf523x/interrupts.o	(.text)
     cpu/mcf523x/speed.o		(.text)
-    lib_m68k/libm68k.a		(.text)
+    arch/m68k/lib/libm68k.a		(.text)
     common/dlmalloc.o		(.text)
     common/cmd_bootm.o		(.text)
     common/cmd_flash.o		(.text)
board/freescale/m5249evb/u-boot.lds +1 -1
index e3230b9..54e0169 100644
@@ -56,7 +56,7 @@ SECTIONS
     /* the sector layout of our flash chips!	XXX FIXME XXX	*/
 
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    arch/m68k/lib/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
board/freescale/m5253demo/u-boot.lds +1 -1
index 6cb5ee0..e53e67d 100644
@@ -56,7 +56,7 @@ SECTIONS
     /* the sector layout of our flash chips!	XXX FIXME XXX	*/
 
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    arch/m68k/lib/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
board/freescale/m5253evbe/u-boot.lds +1 -1
index 132fccf..7f4dc27 100644
@@ -56,7 +56,7 @@ SECTIONS
     /* the sector layout of our flash chips!	XXX FIXME XXX	*/
 
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    arch/m68k/lib/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
board/freescale/m5271evb/u-boot.lds +1 -1
index 00c1f2a..713b18a 100644
@@ -57,7 +57,7 @@ SECTIONS
     /* the sector layout of our flash chips!	XXX FIXME XXX	*/
 
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    arch/m68k/lib/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
board/freescale/m5272c3/u-boot.lds +1 -1
index 9d20b22..446ec1b 100644
@@ -56,7 +56,7 @@ SECTIONS
     /* the sector layout of our flash chips!	XXX FIXME XXX	*/
 
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    arch/m68k/lib/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
board/freescale/m53017evb/u-boot.lds +1 -1
index c79d06c..fe0e314 100644
@@ -57,7 +57,7 @@ SECTIONS
 
     cpu/mcf532x/start.o		(.text)
     cpu/mcf532x/libmcf532x.a	(.text)
-    lib_m68k/libm68k.a		(.text)
+    arch/m68k/lib/libm68k.a		(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
 
board/freescale/m5329evb/u-boot.lds +2 -2
index af31098..0ed87ff 100644
@@ -56,8 +56,8 @@ SECTIONS
     /* the sector layout of our flash chips!	XXX FIXME XXX	*/
 
     cpu/mcf532x/start.o		(.text)
-    lib_m68k/traps.o		(.text)
-    lib_m68k/interrupts.o	(.text)
+    arch/m68k/lib/traps.o		(.text)
+    arch/m68k/lib/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
 
board/freescale/m5373evb/u-boot.lds +2 -2
index dff74b6..605452b 100644
@@ -56,8 +56,8 @@ SECTIONS
     /* the sector layout of our flash chips!	XXX FIXME XXX	*/
 
     cpu/mcf532x/start.o		(.text)
-    lib_m68k/traps.o		(.text)
-    lib_m68k/interrupts.o	(.text)
+    arch/m68k/lib/traps.o		(.text)
+    arch/m68k/lib/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
 
board/freescale/m54451evb/u-boot.spa +1 -1
index d8caefa..569518b 100644
@@ -57,7 +57,7 @@ SECTIONS
 
     cpu/mcf5445x/start.o		(.text)
     cpu/mcf5445x/libmcf5445x.a	(.text)
-    lib_m68k/libm68k.a		(.text)
+    arch/m68k/lib/libm68k.a		(.text)
     common/cmd_flash.o		(.text)
     common/dlmalloc.o		(.text)
     common/main.o		(.text)
board/freescale/m54451evb/u-boot.stm +1 -1
index e9eac67..1b06b12 100644
@@ -61,7 +61,7 @@ SECTIONS
     cpu/mcf5445x/dspi.o			(.text)
     cpu/mcf5445x/interrupt.o		(.text)
     cpu/mcf5445x/speed.o		(.text)
-    lib_m68k/board.o			(.text)
+    arch/m68k/lib/board.o			(.text)
     common/serial.o			(.text)
     common/console.o			(.text)
     lib_generic/display_options.o	(.text)
board/freescale/m54455evb/u-boot.atm +2 -2
index 08e184c..c48dd75 100644
@@ -56,8 +56,8 @@ SECTIONS
     /* the sector layout of our flash chips!	XXX FIXME XXX	*/
 
     cpu/mcf5445x/start.o		(.text)
-    lib_m68k/traps.o		(.text)
-    lib_m68k/interrupts.o	(.text)
+    arch/m68k/lib/traps.o		(.text)
+    arch/m68k/lib/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
 
board/freescale/m54455evb/u-boot.int +2 -2
index 4d504a2..ef07174 100644
@@ -56,8 +56,8 @@ SECTIONS
     /* the sector layout of our flash chips!	XXX FIXME XXX	*/
 
     cpu/mcf5445x/start.o		(.text)
-    lib_m68k/traps.o		(.text)
-    lib_m68k/interrupts.o	(.text)
+    arch/m68k/lib/traps.o		(.text)
+    arch/m68k/lib/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
 
board/freescale/m547xevb/u-boot.lds +2 -2
index a3014bd..5f28a10 100644
@@ -56,8 +56,8 @@ SECTIONS
     /* the sector layout of our flash chips!	XXX FIXME XXX	*/
 
     cpu/mcf547x_8x/start.o		(.text)
-    lib_m68k/traps.o		(.text)
-    lib_m68k/interrupts.o	(.text)
+    arch/m68k/lib/traps.o		(.text)
+    arch/m68k/lib/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
board/freescale/m548xevb/u-boot.lds +2 -2
index a3014bd..5f28a10 100644
@@ -56,8 +56,8 @@ SECTIONS
     /* the sector layout of our flash chips!	XXX FIXME XXX	*/
 
     cpu/mcf547x_8x/start.o		(.text)
-    lib_m68k/traps.o		(.text)
-    lib_m68k/interrupts.o	(.text)
+    arch/m68k/lib/traps.o		(.text)
+    arch/m68k/lib/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
board/freescale/mpc7448hpc2/tsi108_init.c +1 -1
index 74bb564..c6a3ade 100644
@@ -323,7 +323,7 @@ int board_early_init_r (void)
 	 * We will over-ride the env_init called in board_init_f
 	 * This is really a work-around because, the HLP bank 1
 	 * where NVRAM resides is not visible during board_init_f
-	 * (lib_ppc/board.c)
+	 * (arch/ppc/lib/board.c)
 	 * Alternatively, we could use the I2C EEPROM at start-up to configure
 	 * and enable all HLP banks and not just HLP 0 as is being done for
 	 * Taiga Rev. 2.
board/freescale/mpc8610hpcd/u-boot.lds +1 -1
index b573807..2ad0f0e 100644
@@ -58,7 +58,7 @@ SECTIONS
     cpu/mpc86xx/speed.o (.text)
     common/dlmalloc.o (.text)
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    arch/ppc/lib/extable.o (.text)
     lib_generic/zlib.o (.text)
     *(.text)
     *(.got1)
board/freescale/mpc8641hpcn/u-boot.lds +1 -1
index 2b98b5a..796828a 100644
@@ -58,7 +58,7 @@ SECTIONS
     cpu/mpc86xx/speed.o (.text)
     common/dlmalloc.o (.text)
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    arch/ppc/lib/extable.o (.text)
     lib_generic/zlib.o (.text)
     drivers/bios_emulator/atibios.o (.text)
     *(.text)
board/freescale/mx31ads/u-boot.lds +1 -1
index 3182aa6..6f5bda4 100644
@@ -39,7 +39,7 @@ SECTIONS
 
 	  cpu/arm1136/start.o			(.text)
 	  board/freescale/mx31ads/libmx31ads.a	(.text)
-	  lib_arm/libarm.a			(.text)
+	  arch/arm/lib/libarm.a			(.text)
 	  net/libnet.a				(.text)
 	  drivers/mtd/libmtd.a			(.text)
 
board/genietv/u-boot.lds +1 -1
index 716efcd..9fc71a2 100644
@@ -57,7 +57,7 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/genietv/u-boot.lds.debug +1 -1
index 3568e6d..9bb2c58 100644
@@ -57,7 +57,7 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/hermes/u-boot.lds +3 -3
index 7b74cb7..1252baf 100644
@@ -58,9 +58,9 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     common/dlmalloc.o		(.text)
     cpu/mpc8xx/interrupts.o	(.text)
-    lib_ppc/time.o		(.text)
-    lib_ppc/ticks.o		(.text)
-    lib_ppc/cache.o		(.text)
+    arch/ppc/lib/time.o		(.text)
+    arch/ppc/lib/ticks.o		(.text)
+    arch/ppc/lib/cache.o		(.text)
     lib_generic/crc32.o		(.text)
     . = env_offset;
     common/env_embedded.o(.text)
board/hermes/u-boot.lds.debug +3 -3
index 3801206..dc810be 100644
@@ -56,10 +56,10 @@ SECTIONS
     /* the sector layout of our flash chips!	XXX FIXME XXX	*/
 
     cpu/mpc8xx/start.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     cpu/mpc8xx/interrupts.o (.text)
-    lib_ppc/time.o		(.text)
-    lib_ppc/ticks.o		(.text)
+    arch/ppc/lib/time.o		(.text)
+    arch/ppc/lib/ticks.o		(.text)
     . = env_offset;
     common/env_embedded.o(.text)
 
board/hymod/u-boot.lds +1 -1
index 52d66a2..cc32b44 100644
@@ -58,7 +58,7 @@ SECTIONS
     cpu/mpc8260/start.o	(.text)
 /*
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/icu862/u-boot.lds +1 -1
index b43be81..b614262 100644
@@ -59,7 +59,7 @@ SECTIONS
 /*
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/icu862/u-boot.lds.debug +1 -1
index 653e0be..919eb21 100644
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/idmr/u-boot.lds +1 -1
index 00c1f2a..713b18a 100644
@@ -57,7 +57,7 @@ SECTIONS
     /* the sector layout of our flash chips!	XXX FIXME XXX	*/
 
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    arch/m68k/lib/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
board/ip860/u-boot.lds +3 -3
index a786bf2..bbc7139 100644
@@ -57,10 +57,10 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     cpu/mpc8xx/interrupts.o (.text)
-    lib_ppc/time.o		(.text)
-    lib_ppc/ticks.o		(.text)
+    arch/ppc/lib/time.o		(.text)
+    arch/ppc/lib/ticks.o		(.text)
 /**
     . = env_offset;
     common/env_embedded.o(.text)
board/ip860/u-boot.lds.debug +3 -3
index dc2f6e1..fc8fe6c 100644
@@ -56,10 +56,10 @@ SECTIONS
     /* the sector layout of our flash chips!	XXX FIXME XXX	*/
 
     cpu/mpc8xx/start.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     cpu/mpc8xx/interrupts.o (.text)
-    lib_ppc/time.o		(.text)
-    lib_ppc/ticks.o		(.text)
+    arch/ppc/lib/time.o		(.text)
+    arch/ppc/lib/ticks.o		(.text)
 /**
     . = env_offset;
     common/env_embedded.o(.text)
board/ivm/u-boot.lds.debug +1 -1
index b5206c5..17965a0 100644
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/jse/jse.c +3 -3
index 1849ca4..e4c7b9d 100644
@@ -26,7 +26,7 @@
 
 /*
  * This function is run very early, out of flash, and before devices are
- * initialized. It is called by lib_ppc/board.c:board_init_f by virtue
+ * initialized. It is called by arch/ppc/lib/board.c:board_init_f by virtue
  * of being in the init_sequence array.
  *
  * The SDRAM has been initialized already -- start.S:start called
@@ -85,7 +85,7 @@ int board_pre_init (void)
 #endif
 
 /*
- * This function is also called by lib_ppc/board.c:board_init_f (it is
+ * This function is also called by arch/ppc/lib/board.c:board_init_f (it is
  * also in the init_sequence array) but later. Many more things are
  * configured, but we are still running from flash.
  */
@@ -149,7 +149,7 @@ int checkboard (void)
 /* **** No more functions called by board_init_f. **** */
 
 /*
- * This function is called by lib_ppc/board.c:board_init_r. At this
+ * This function is called by arch/ppc/lib/board.c:board_init_r. At this
  * point, basic setup is done, U-Boot has been moved into SDRAM and
  * PCI has been set up. From here we done late setup.
  */
board/jse/sdram.c +1 -1
index 88fdd84..a12ebde 100644
@@ -27,7 +27,7 @@
 /*
  * this is even after checkboard. It returns the size of the SDRAM
  * that we have installed. This function is called by board_init_f
- * in lib_ppc/board.c to initialize the memory and return what I
+ * in arch/ppc/lib/board.c to initialize the memory and return what I
  * found.
  */
 phys_size_t initdram (int board_type)
board/keymile/km8xx/u-boot.lds +3 -3
index a8057f2..8b6305a 100644
@@ -58,12 +58,12 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    arch/ppc/lib/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
-    lib_ppc/cache.o		(.text)
-    lib_ppc/time.o		(.text)
+    arch/ppc/lib/cache.o		(.text)
+    arch/ppc/lib/time.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.ppcenv)
board/kup/kup4k/u-boot.lds +1 -1
index 79b886a..8e4faa1 100644
@@ -59,7 +59,7 @@ SECTIONS
 /*
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/kup/kup4x/u-boot.lds +1 -1
index 79b886a..8e4faa1 100644
@@ -59,7 +59,7 @@ SECTIONS
 /*
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/lantec/u-boot.lds +1 -1
index 854ed68..814a7a6 100644
@@ -57,7 +57,7 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/lwmon/u-boot.lds.debug +1 -1
index 987c4dd..49f8972 100644
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/mbx8xx/u-boot.lds.debug +1 -1
index 0a3b958..8d91aed 100644
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/ml2/u-boot.lds +1 -1
index 8fea3be..0083a21 100644
@@ -65,7 +65,7 @@ SECTIONS
     cpu/ppc4xx/speed.o	(.text)
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
 /*    . = env_offset;*/
board/ml2/u-boot.lds.debug +1 -1
index 970628d..40d2f78 100644
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
 
     common/env_embedded.o(.text)
 
board/mousse/u-boot.lds +2 -2
index 5100542..c92a2ab 100644
@@ -53,8 +53,8 @@ SECTIONS
   .text      :
   {
     cpu/mpc824x/start.o		(.text)
-    lib_ppc/board.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    arch/ppc/lib/board.o		(.text)
+    arch/ppc/lib/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/mousse/u-boot.lds.rom +1 -1
index f79c39f..9750fc5 100644
@@ -54,7 +54,7 @@ SECTIONS
   {
     cpu/mpc824x/start.o	(.text)
 	 common/board.o (.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/mpl/pip405/u-boot.lds.debug +1 -1
index 970628d..40d2f78 100644
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
 
     common/env_embedded.o(.text)
 
board/netphone/u-boot.lds +3 -3
index d64274b..4b17a1f 100644
@@ -55,12 +55,12 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    arch/ppc/lib/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
-    lib_ppc/cache.o		(.text)
-    lib_ppc/time.o		(.text)
+    arch/ppc/lib/cache.o		(.text)
+    arch/ppc/lib/time.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/netstal/hcu4/hcu4.c +1 -1
index 8efbc23..3f07ff1 100644
@@ -34,7 +34,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 /*
  * This function is run very early, out of flash, and before devices are
- * initialized. It is called by lib_ppc/board.c:board_init_f by virtue
+ * initialized. It is called by arch/ppc/lib/board.c:board_init_f by virtue
  * of being in the init_sequence array.
  *
  * The SDRAM has been initialized already -- start.S:start called
board/netstal/hcu5/README.txt +3 -3
index f649876..0a54f9a 100644
@@ -109,7 +109,7 @@ _start:
 	call cpu_init_f	/* run low-level CPU init code	   (from Flash) */
 
     call cpu_init_f
-    board_init_f: (lib_ppc\board.c)
+    board_init_f: (arch/ppc/lib\board.c)
 	init_sequence defines a list of function to be called
 	    board_early_init_f: (board/netstal/hcu5/hcu5.c)
 		We are using Bootstrap-Option A
@@ -141,7 +141,7 @@ _start:
 From now on our copy is in RAM and we will run from there,
 	starting with board_init_r
 -------------------------------------------------------
-    board_init_r: (lib_ppc\board.c)
+    board_init_r: (arch/ppc/lib\board.c)
 	setup bd function pointers
 	trap_init
 	flash_init: (board/netstal/hcu5/flash.c)
@@ -162,7 +162,7 @@ Most of the HW specific code for the HCU5 may be found in
 include/configs/hcu5.h
 board/netstal/hcu5/*
 cpu/ppc4xx/*
-lib_ppc/*
+arch/ppc/lib/*
 include/ppc440.h
 
 Drivers for serial etc are found under drivers/
board/netstal/hcu5/hcu5.c +1 -1
index c545cc0..90433fe 100644
@@ -49,7 +49,7 @@ extern flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 /*
  * This function is run very early, out of flash, and before devices are
- * initialized. It is called by lib_ppc/board.c:board_init_f by virtue
+ * initialized. It is called by arch/ppc/lib/board.c:board_init_f by virtue
  * of being in the init_sequence array.
  *
  * The SDRAM has been initialized already -- start.S:start called
board/netstal/mcu25/mcu25.c +1 -1
index c66ab97..cc2f998 100644
@@ -39,7 +39,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 /*
  * This function is run very early, out of flash, and before devices are
- * initialized. It is called by lib_ppc/board.c:board_init_f by virtue
+ * initialized. It is called by arch/ppc/lib/board.c:board_init_f by virtue
  * of being in the init_sequence array.
  *
  * The SDRAM has been initialized already -- start.S:start called
board/netta/u-boot.lds +3 -3
index 860c887..991d7a1 100644
@@ -55,12 +55,12 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    arch/ppc/lib/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
-    lib_ppc/cache.o		(.text)
-    lib_ppc/time.o		(.text)
+    arch/ppc/lib/cache.o		(.text)
+    arch/ppc/lib/time.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/netta2/u-boot.lds +3 -3
index 860c887..991d7a1 100644
@@ -55,12 +55,12 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    arch/ppc/lib/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
-    lib_ppc/cache.o		(.text)
-    lib_ppc/time.o		(.text)
+    arch/ppc/lib/cache.o		(.text)
+    arch/ppc/lib/time.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/netvia/u-boot.lds +3 -3
index a7d290a..7eb01ee 100644
@@ -55,12 +55,12 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    arch/ppc/lib/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
-    lib_ppc/cache.o		(.text)
-    lib_ppc/time.o		(.text)
+    arch/ppc/lib/cache.o		(.text)
+    arch/ppc/lib/time.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/quantum/u-boot.lds +1 -1
index 47247ec..c354ff8 100644
@@ -57,7 +57,7 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/rbc823/u-boot.lds +1 -1
index e0ea600..6074c14 100644
@@ -57,7 +57,7 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/rmu/u-boot.lds +1 -1
index 47247ec..c354ff8 100644
@@ -57,7 +57,7 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/sandburst/karef/u-boot.lds.debug +1 -1
index 48fd579..1d8ce10 100644
@@ -67,7 +67,7 @@ SECTIONS
     drivers/net/4xx_enet.o	(.text)
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
 /*    common/env_embedded.o(.text) */
board/sandburst/metrobox/u-boot.lds.debug +1 -1
index 4bc5cea..bbfea13 100644
@@ -67,7 +67,7 @@ SECTIONS
     drivers/net/4xx_enet.o	(.text)
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
 /*    common/env_embedded.o(.text) */
board/sbc8641d/u-boot.lds +1 -1
index b71a7d6..648efa2 100644
@@ -58,7 +58,7 @@ SECTIONS
     cpu/mpc86xx/speed.o (.text)
     common/dlmalloc.o (.text)
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    arch/ppc/lib/extable.o (.text)
     lib_generic/zlib.o (.text)
     *(.text)
     *(.got1)
board/sc3/u-boot.lds +1 -1
index 16dc384..04b350a 100644
@@ -70,7 +70,7 @@ SECTIONS
     cpu/ppc4xx/speed.o	(.text)
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
 /*    . = env_offset;*/
board/siemens/CCM/u-boot.lds +1 -1
index 2d0efb3..0571f02 100644
@@ -57,7 +57,7 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/siemens/IAD210/u-boot.lds +2 -2
index 104b44c..877cf9a 100644
@@ -57,9 +57,9 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     cpu/mpc8xx/interrupts.o (.text)
-    lib_ppc/time.o		(.text)
+    arch/ppc/lib/time.o		(.text)
     . = env_offset;
     common/env_embedded.o(.text)
 
board/siemens/pcu_e/u-boot.lds.debug +1 -1
index 987c4dd..49f8972 100644
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/snmc/qs850/u-boot.lds +3 -3
index 9ef2c20..ce115f5 100644
@@ -58,12 +58,12 @@ SECTIONS
 	cpu/mpc8xx/start.o		(.text)
 	cpu/mpc8xx/traps.o		(.text)
 	common/dlmalloc.o		(.text)
-	lib_ppc/ppcstring.o		(.text)
+	arch/ppc/lib/ppcstring.o		(.text)
 	lib_generic/vsprintf.o	(.text)
 	lib_generic/crc32.o		(.text)
 	lib_generic/zlib.o		(.text)
-	lib_ppc/cache.o		(.text)
-	lib_ppc/time.o		(.text)
+	arch/ppc/lib/cache.o		(.text)
+	arch/ppc/lib/time.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
 	common/env_embedded.o	(.ppcenv)
board/snmc/qs860t/u-boot.lds +3 -3
index 9ef2c20..ce115f5 100644
@@ -58,12 +58,12 @@ SECTIONS
 	cpu/mpc8xx/start.o		(.text)
 	cpu/mpc8xx/traps.o		(.text)
 	common/dlmalloc.o		(.text)
-	lib_ppc/ppcstring.o		(.text)
+	arch/ppc/lib/ppcstring.o		(.text)
 	lib_generic/vsprintf.o	(.text)
 	lib_generic/crc32.o		(.text)
 	lib_generic/zlib.o		(.text)
-	lib_ppc/cache.o		(.text)
-	lib_ppc/time.o		(.text)
+	arch/ppc/lib/cache.o		(.text)
+	arch/ppc/lib/time.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
 	common/env_embedded.o	(.ppcenv)
board/spc1920/u-boot.lds +3 -3
index d6711b5..172cfbb 100644
@@ -58,12 +58,12 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    arch/ppc/lib/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
-    lib_ppc/cache.o		(.text)
-    lib_ppc/time.o		(.text)
+    arch/ppc/lib/cache.o		(.text)
+    arch/ppc/lib/time.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.ppcenv)
board/spd8xx/u-boot.lds.debug +1 -1
index 0a3b958..8d91aed 100644
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/stx/stxssa/stxssa.c +1 -1
index 73dddf3..678ec58 100644
@@ -259,7 +259,7 @@ board_early_init_f(void)
 #endif
 
 	/* Why is the phy reset done _after_ the ethernet
-	 * initialization in lib_ppc/board.c?
+	 * initialization in arch/ppc/lib/board.c?
 	 * Do it here so it's done before the TSECs are used.
 	 */
 	reset_phy();
board/stx/stxxtc/u-boot.lds +3 -3
index 860c887..991d7a1 100644
@@ -55,12 +55,12 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    arch/ppc/lib/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
-    lib_ppc/cache.o		(.text)
-    lib_ppc/time.o		(.text)
+    arch/ppc/lib/cache.o		(.text)
+    arch/ppc/lib/time.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/svm_sc8xx/u-boot.lds +3 -3
index 02aa9dd..cf78200 100644
@@ -58,12 +58,12 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    arch/ppc/lib/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
-    lib_ppc/cache.o		(.text)
-    lib_ppc/time.o		(.text)
+    arch/ppc/lib/cache.o		(.text)
+    arch/ppc/lib/time.o		(.text)
 
     . = env_offset;
     common/env_embedded.o	(.ppcenv)
board/tqc/tqm8xx/u-boot.lds +2 -2
index 2df8d84..9f452c1 100644
@@ -58,11 +58,11 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    arch/ppc/lib/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
-    lib_ppc/cache.o		(.text)
+    arch/ppc/lib/cache.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.ppcenv)
board/uc100/u-boot.lds +3 -3
index e3ea52a..967e432 100644
@@ -58,12 +58,12 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    arch/ppc/lib/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
-    lib_ppc/cache.o		(.text)
-    lib_ppc/time.o		(.text)
+    arch/ppc/lib/cache.o		(.text)
+    arch/ppc/lib/time.o		(.text)
 
     common/env_embedded.o	(.text)
 
board/v37/u-boot.lds +3 -3
index 6f2ea9a..c3dd8c7 100644
@@ -58,12 +58,12 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    arch/ppc/lib/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
-    lib_ppc/cache.o		(.text)
-    lib_ppc/time.o		(.text)
+    arch/ppc/lib/cache.o		(.text)
+    arch/ppc/lib/time.o		(.text)
 
 /*
     . = env_offset;
board/w7o/u-boot.lds.debug +1 -1
index 8bb4929..85b1cd6 100644
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
 
     common/env_embedded.o(.text)
 
board/westel/amx860/u-boot.lds +1 -1
index 2d0efb3..0571f02 100644
@@ -57,7 +57,7 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    arch/ppc/lib/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
     lib_generic/zlib.o		(.text)
board/westel/amx860/u-boot.lds.debug +1 -1
index 653e0be..919eb21 100644
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/xes/xpedite1000/u-boot.lds.debug +1 -1
index d00834e..0830d0a 100644
@@ -65,7 +65,7 @@ SECTIONS
     cpu/ppc4xx/speed.o	(.text)
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    arch/ppc/lib/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
 /*    common/env_embedded.o(.text) */
board/xes/xpedite5170/u-boot.lds +1 -1
index b71a7d6..648efa2 100644
@@ -58,7 +58,7 @@ SECTIONS
     cpu/mpc86xx/speed.o (.text)
     common/dlmalloc.o (.text)
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    arch/ppc/lib/extable.o (.text)
     lib_generic/zlib.o (.text)
     *(.text)
     *(.got1)
config.mk +1 -1
index 93046a9..7b1d640 100644
@@ -111,7 +111,7 @@ RANLIB	= $(CROSS_COMPILE)RANLIB
 sinclude $(OBJTREE)/include/autoconf.mk
 
 ifdef	ARCH
-sinclude $(TOPDIR)/lib_$(ARCH)/config.mk	# include architecture dependend rules
+sinclude $(TOPDIR)/arch/$(ARCH)/config.mk	# include architecture dependend rules
 endif
 ifdef	CPU
 CPUDIR=cpu/$(CPU)
cpu/mpc5xxx/u-boot-customlayout.lds +2 -2
index c340086..c08c9c9 100644
@@ -58,8 +58,8 @@ SECTIONS
     cpu/mpc5xxx/start.o          (.text)
     cpu/mpc5xxx/traps.o          (.text)
     lib_generic/crc32.o         (.text)
-    lib_ppc/cache.o             (.text)
-    lib_ppc/time.o              (.text)
+    arch/ppc/lib/cache.o             (.text)
+    arch/ppc/lib/time.o              (.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o        (.ppcenv)
doc/README.LED +1 -1
index 94e552a..c3bcb3a 100644
@@ -69,7 +69,7 @@ yellow_LED_off
 blue_LED_on
 blue_LED_off
 
-These are weakly defined in lib_arm/board.c to noops. Where applicable, define
+These are weakly defined in arch/arm/lib/board.c to noops. Where applicable, define
 these functions in the board specific source.
 
 TBD : Describe older board dependent macros similar to what is done for
doc/README.alaska8220 +1 -1
index 0bd68d9..279dac6 100644
@@ -22,7 +22,7 @@ Changed files:
 - include/asm-ppc/global_data.h added global variables - inp_clk, pci_clk,
 			    vco_clk, pev_clk, flb_clk, and bExtUart
 
-- lib_ppc/board.c	    added CONFIG_MPC8220 support
+- arch/ppc/lib/board.c	    added CONFIG_MPC8220 support
 
 - net/eth.c		    added FEC support for MPC8220
 
doc/README.m52277evb +6 -6
index 40f9028..f30b45e 100644
@@ -53,12 +53,12 @@ Changed files:
 
 - include/configs/M52277EVB.h		Board specific configuration file
 
-- lib_m68k/board.c			board init function
-- lib_m68k/cache.c
-- lib_m68k/interrupts			Coldfire common interrupt functions
-- lib_m68k/m68k_linux.c
-- lib_m68k/time.c			Timer functions (Dma timer and PIT)
-- lib_m68k/traps.c			Exception init code
+- arch/m68k/lib/board.c			board init function
+- arch/m68k/lib/cache.c
+- arch/m68k/lib/interrupts			Coldfire common interrupt functions
+- arch/m68k/lib/m68k_linux.c
+- arch/m68k/lib/time.c			Timer functions (Dma timer and PIT)
+- arch/m68k/lib/traps.c			Exception init code
 
 1 MCF52277 specific Options/Settings
 ====================================
doc/README.m53017evb +6 -6
index 60cfa95..780a803 100644
@@ -51,12 +51,12 @@ Changed files:
 
 - include/configs/M53017EVB.h		Board specific configuration file
 
-- lib_m68k/board.c			board init function
-- lib_m68k/cache.c
-- lib_m68k/interrupts			Coldfire common interrupt functions
-- lib_m68k/m68k_linux.c
-- lib_m68k/time.c			Timer functions (Dma timer and PIT)
-- lib_m68k/traps.c			Exception init code
+- arch/m68k/lib/board.c			board init function
+- arch/m68k/lib/cache.c
+- arch/m68k/lib/interrupts			Coldfire common interrupt functions
+- arch/m68k/lib/m68k_linux.c
+- arch/m68k/lib/time.c			Timer functions (Dma timer and PIT)
+- arch/m68k/lib/traps.c			Exception init code
 
 1 MCF5301x specific Options/Settings
 ====================================
doc/README.m5373evb +6 -6
index 5591748..24a659b 100644
@@ -50,12 +50,12 @@ Changed files:
 
 - include/configs/M5373EVB.h		Board specific configuration file
 
-- lib_m68k/board.c			board init function
-- lib_m68k/cache.c
-- lib_m68k/interrupts			Coldfire common interrupt functions
-- lib_m68k/m68k_linux.c
-- lib_m68k/time.c			Timer functions (Dma timer and PIT)
-- lib_m68k/traps.c			Exception init code
+- arch/m68k/lib/board.c			board init function
+- arch/m68k/lib/cache.c
+- arch/m68k/lib/interrupts			Coldfire common interrupt functions
+- arch/m68k/lib/m68k_linux.c
+- arch/m68k/lib/time.c			Timer functions (Dma timer and PIT)
+- arch/m68k/lib/traps.c			Exception init code
 
 1 MCF5373 specific Options/Settings
 ====================================
doc/README.m54455evb +6 -6
index 1888e16..257bcd5 100644
@@ -52,12 +52,12 @@ Changed files:
 
 - include/configs/M54455EVB.h	Board specific configuration file
 
-- lib_m68k/board.c			board init function
-- lib_m68k/cache.c
-- lib_m68k/interrupts			Coldfire common interrupt functions
-- lib_m68k/m68k_linux.c
-- lib_m68k/time.c			Timer functions (Dma timer and PIT)
-- lib_m68k/traps.c			Exception init code
+- arch/m68k/lib/board.c			board init function
+- arch/m68k/lib/cache.c
+- arch/m68k/lib/interrupts			Coldfire common interrupt functions
+- arch/m68k/lib/m68k_linux.c
+- arch/m68k/lib/time.c			Timer functions (Dma timer and PIT)
+- arch/m68k/lib/traps.c			Exception init code
 
 - rtc/mcfrtc.c				Realtime clock Driver
 
doc/README.m5475evb +5 -5
index f3a1d7b..b61dfba 100644
@@ -58,11 +58,11 @@ Changed files:
 
 - include/configs/M5475EVB.h		Board specific configuration file
 
-- lib_m68k/board.c			board init function
-- lib_m68k/cache.c
-- lib_m68k/interrupts			Coldfire common interrupt functions
-- lib_m68k/m68k_linux.c
-- lib_m68k/traps.c			Exception init code
+- arch/m68k/lib/board.c			board init function
+- arch/m68k/lib/cache.c
+- arch/m68k/lib/interrupts			Coldfire common interrupt functions
+- arch/m68k/lib/m68k_linux.c
+- arch/m68k/lib/traps.c			Exception init code
 
 1 MCF547x specific Options/Settings
 ====================================
doc/README.mpc5xx +3 -3
index 07be863..2e12174 100644
@@ -34,9 +34,9 @@ u-boot-0.2.0/include/mpc5xx.h
 u-boot-0.2.0/include/status_led.h
 u-boot-0.2.0/include/asm-ppc/u-boot.h
 u-boot-0.2.0/include/asm-ppc/5xx_immap.h
-u-boot-0.2.0/lib_ppc/board.c
-u-boot-0.2.0/lib_ppc/cache.c
-u-boot-0.2.0/lib_ppc/time.c
+u-boot-0.2.0/arch/ppc/lib/board.c
+u-boot-0.2.0/arch/ppc/lib/cache.c
+u-boot-0.2.0/arch/ppc/lib/time.c
 u-boot-0.2.0/Makefile
 u-boot-0.2.0/CREDITS
 u-boot-0.2.0/doc/README.mpc5xx
doc/README.nios +1 -1
index 7f34938..da30ff5 100644
@@ -244,7 +244,7 @@ cover most of the individual functions to get you started.
 
 		(gdb) directory common
 		(gdb) directory cpu/nios
-		(gdb) directory lib_nios
+		(gdb) directory arch/nios/lib
 		(gdb) directory board/altera/dk1c20
 
 	Note that the last command is for the DK1C20 board only. If you
doc/TODO-i386 +1 -1
index 84113f8..2261f4a 100644
@@ -8,7 +8,7 @@ i386 port missing features:
 * re-entry of protected mode from real mode, should be added to realmode_switch.S 
   (and used by INT 10h and INT 16h handlers for console I/O during early
    linux boot...) 
-* missing functions in lib_i386 and cpu/i386
+* missing functions in arch/i386/lib and cpu/i386
 * speaker beep interface
 
 
examples/api/Makefile +2 -2
index d4c5ca2..62751ec 100644
@@ -47,7 +47,7 @@ EXT_COBJ_FILES-$(CONFIG_API) += lib_generic/string.o
 EXT_COBJ_FILES-$(CONFIG_API) += lib_generic/time.o
 EXT_COBJ_FILES-$(CONFIG_API) += lib_generic/vsprintf.o
 ifeq ($(ARCH),ppc)
-EXT_SOBJ_FILES-$(CONFIG_API) += lib_ppc/ppcstring.o
+EXT_SOBJ_FILES-$(CONFIG_API) += arch/ppc/lib/ppcstring.o
 endif
 
 # Create a list of source files so their dependencies can be auto-generated
@@ -79,7 +79,7 @@ $(obj)%.o: $(SRCTREE)/lib_generic/%.c
 	$(CC) -g $(CFLAGS) -c -o $@ $<
 
 # Rule to build architecture-specific library assembly files
-$(obj)%.o: $(SRCTREE)/lib_$(ARCH)/%.S
+$(obj)%.o: $(SRCTREE)/arch/$(ARCH)/lib/%.S
 	$(CC) -g $(CFLAGS) -c -o $@ $<
 
 #########################################################################
include/asm-i386/interrupt.h +1 -1
index 3e2674a..8d324d9 100644
@@ -30,7 +30,7 @@
 /* cpu/i386/interrupts.c */
 void set_vector(u8 intnum, void *routine);
 
-/* lib_i386/interupts.c */
+/* arch/i386/lib/interupts.c */
 void disable_irq(int irq);
 void enable_irq(int irq);
 
include/asm-i386/u-boot-i386.h +2 -2
index 7c99c8c..a08632d 100644
@@ -33,7 +33,7 @@ void timer_isr(void *);
 typedef void (timer_fnc_t) (void);
 int register_timer_isr (timer_fnc_t *isr_func);
 
-/* Architecture specific - can be in cpu/i386/, lib_i386/, or $(BOARD)/ */
+/* Architecture specific - can be in cpu/i386/, arch/i386/lib/, or $(BOARD)/ */
 int timer_init(void);
 
 /* cpu/.../interrupts.c */
@@ -46,7 +46,7 @@ int dram_init(void);
 void isa_unmap_rom(u32 addr);
 u32 isa_map_rom(u32 bus_addr, int size);
 
-/* lib_i386/... */
+/* arch/i386/lib/... */
 int video_bios_init(void);
 int video_init(void);
 
include/common.h +4 -4
index a133e34..7aa910d 100644
@@ -230,7 +230,7 @@ int	parse_line (char *, char *[]);
 void	init_cmd_timeout(void);
 void	reset_cmd_timeout(void);
 
-/* lib_$(ARCH)/board.c */
+/* arch/$(ARCH)/lib/board.c */
 void	board_init_f  (ulong) __attribute__ ((noreturn));
 void	board_init_r  (gd_t *, ulong) __attribute__ ((noreturn));
 int	checkboard    (void);
@@ -604,17 +604,17 @@ ulong	vfd_setmem (ulong);
 /* $(CPU)/.../video.c */
 ulong	video_setmem (ulong);
 
-/* lib_$(ARCH)/cache.c */
+/* arch/$(ARCH)/lib/cache.c */
 void	flush_cache   (unsigned long, unsigned long);
 void	flush_dcache_range(unsigned long start, unsigned long stop);
 void	invalidate_dcache_range(unsigned long start, unsigned long stop);
 
 
-/* lib_$(ARCH)/ticks.S */
+/* arch/$(ARCH)/lib/ticks.S */
 unsigned long long get_ticks(void);
 void	wait_ticks    (unsigned long);
 
-/* lib_$(ARCH)/time.c */
+/* arch/$(ARCH)/lib/time.c */
 void	__udelay      (unsigned long);
 ulong	usec2ticks    (unsigned long usec);
 ulong	ticks2usec    (unsigned long ticks);
include/configs/B2.h +1 -1
index f51a261..ca7350d 100644
@@ -207,7 +207,7 @@
 */
 
 /*
-	Linux TAGs (see lib_arm/armlinux.c)
+	Linux TAGs (see arch/arm/lib/armlinux.c)
 */
 #define CONFIG_CMDLINE_TAG
 #undef CONFIG_SETUP_MEMORY_TAGS
nand_spl/board/freescale/mpc8313erdb/Makefile +3 -3
index a13e7e2..ee1dc4b 100644
@@ -84,13 +84,13 @@ $(obj)nand_init.c:
 	ln -sf $(SRCTREE)/cpu/mpc83xx/nand_init.c $(obj)nand_init.c
 
 $(obj)cache.c:
-	ln -sf $(SRCTREE)/lib_ppc/cache.c $(obj)cache.c
+	ln -sf $(SRCTREE)/arch/ppc/lib/cache.c $(obj)cache.c
 
 $(obj)time.c:
-	ln -sf $(SRCTREE)/lib_ppc/time.c $(obj)time.c
+	ln -sf $(SRCTREE)/arch/ppc/lib/time.c $(obj)time.c
 
 $(obj)ticks.S:
-	ln -sf $(SRCTREE)/lib_ppc/ticks.S $(obj)ticks.S
+	ln -sf $(SRCTREE)/arch/ppc/lib/ticks.S $(obj)ticks.S
 
 #########################################################################
 
nand_spl/board/freescale/mpc8315erdb/Makefile +3 -3
index a13e7e2..ee1dc4b 100644
@@ -84,13 +84,13 @@ $(obj)nand_init.c:
 	ln -sf $(SRCTREE)/cpu/mpc83xx/nand_init.c $(obj)nand_init.c
 
 $(obj)cache.c:
-	ln -sf $(SRCTREE)/lib_ppc/cache.c $(obj)cache.c
+	ln -sf $(SRCTREE)/arch/ppc/lib/cache.c $(obj)cache.c
 
 $(obj)time.c:
-	ln -sf $(SRCTREE)/lib_ppc/time.c $(obj)time.c
+	ln -sf $(SRCTREE)/arch/ppc/lib/time.c $(obj)time.c
 
 $(obj)ticks.S:
-	ln -sf $(SRCTREE)/lib_ppc/ticks.S $(obj)ticks.S
+	ln -sf $(SRCTREE)/arch/ppc/lib/ticks.S $(obj)ticks.S
 
 #########################################################################
 
nand_spl/board/freescale/mpc8536ds/Makefile +1 -1
index be0caaa..ff8b8be 100644
@@ -64,7 +64,7 @@ $(nandobj)u-boot-spl:	$(OBJS)
 
 $(obj)cache.c:
 	@rm -f $(obj)cache.c
-	ln -sf $(SRCTREE)/lib_ppc/cache.c $(obj)cache.c
+	ln -sf $(SRCTREE)/arch/ppc/lib/cache.c $(obj)cache.c
 
 $(obj)cpu_init_early.c:
 	@rm -f $(obj)cpu_init_early.c
nand_spl/board/freescale/mpc8569mds/Makefile +1 -1
index be0caaa..ff8b8be 100644
@@ -64,7 +64,7 @@ $(nandobj)u-boot-spl:	$(OBJS)
 
 $(obj)cache.c:
 	@rm -f $(obj)cache.c
-	ln -sf $(SRCTREE)/lib_ppc/cache.c $(obj)cache.c
+	ln -sf $(SRCTREE)/arch/ppc/lib/cache.c $(obj)cache.c
 
 $(obj)cpu_init_early.c:
 	@rm -f $(obj)cpu_init_early.c
nand_spl/board/freescale/p1_p2_rdb/Makefile +1 -1
index be0caaa..ff8b8be 100644
@@ -64,7 +64,7 @@ $(nandobj)u-boot-spl:	$(OBJS)
 
 $(obj)cache.c:
 	@rm -f $(obj)cache.c
-	ln -sf $(SRCTREE)/lib_ppc/cache.c $(obj)cache.c
+	ln -sf $(SRCTREE)/arch/ppc/lib/cache.c $(obj)cache.c
 
 $(obj)cpu_init_early.c:
 	@rm -f $(obj)cpu_init_early.c
nand_spl/board/sheldon/simpc8313/Makefile +3 -3
index 6920fe8..48c22f8 100644
@@ -90,15 +90,15 @@ $(obj)nand_init.c:
 
 $(obj)cache.c:
 	@rm -f $@
-	ln -s $(SRCTREE)/lib_ppc/cache.c $@
+	ln -s $(SRCTREE)/arch/ppc/lib/cache.c $@
 
 $(obj)time.c:
 	@rm -f $@
-	ln -s $(SRCTREE)/lib_ppc/time.c $@
+	ln -s $(SRCTREE)/arch/ppc/lib/time.c $@
 
 $(obj)ticks.S:
 	@rm -f $@
-	ln -s $(SRCTREE)/lib_ppc/ticks.S $@
+	ln -s $(SRCTREE)/arch/ppc/lib/ticks.S $@
 
 #########################################################################
 
Signature · 1 line
1.6.2.1
#4 lore raw

PATCH v2 4/20 Rename lib_generic/ to lib/

In reply to Peter Tyser

Now that the other architecture-specific lib directories have been moved out of the top-level directory there's not much reason to have the '_generic' suffix on the common lib directory.

---
 Makefile                                    |    6 +++---
 README                                      |    2 +-
 board/BuS/EB+MCF-EV123/u-boot.lds           |    8 ++++----
 board/LEOX/elpt860/u-boot.lds               |    8 ++++----
 board/LEOX/elpt860/u-boot.lds.debug         |    4 ++--
 board/RPXClassic/u-boot.lds                 |    6 +++---
 board/RPXClassic/u-boot.lds.debug           |    4 ++--
 board/RPXlite/u-boot.lds                    |    6 +++---
 board/RPXlite/u-boot.lds.debug              |    4 ++--
 board/RPXlite_dw/u-boot.lds                 |    6 +++---
 board/RPXlite_dw/u-boot.lds.debug           |    4 ++--
 board/RRvision/u-boot.lds                   |    6 +++---
 board/actux1/u-boot.lds                     |    4 ++--
 board/actux2/u-boot.lds                     |    4 ++--
 board/actux3/u-boot.lds                     |    4 ++--
 board/amirix/ap1000/u-boot.lds              |    4 ++--
 board/astro/mcf5373l/u-boot.lds             |    2 +-
 board/bf518f-ezbrd/config.mk                |    4 ++--
 board/bf526-ezbrd/config.mk                 |    4 ++--
 board/bf527-ezkit/config.mk                 |    4 ++--
 board/bf533-ezkit/config.mk                 |    4 ++--
 board/bf533-stamp/config.mk                 |    4 ++--
 board/bf537-stamp/config.mk                 |    4 ++--
 board/bf538f-ezkit/config.mk                |    4 ++--
 board/bf548-ezkit/config.mk                 |    4 ++--
 board/bf561-acvilon/config.mk               |    4 ++--
 board/bf561-ezkit/config.mk                 |    4 ++--
 board/c2mon/u-boot.lds                      |    6 +++---
 board/c2mon/u-boot.lds.debug                |    4 ++--
 board/cm-bf527/config.mk                    |    4 ++--
 board/cm-bf533/config.mk                    |    4 ++--
 board/cm-bf537e/config.mk                   |    4 ++--
 board/cm-bf537u/config.mk                   |    4 ++--
 board/cm-bf548/config.mk                    |    4 ++--
 board/cm-bf561/config.mk                    |    4 ++--
 board/cobra5272/u-boot.lds                  |    2 +-
 board/cogent/u-boot.lds.debug               |    4 ++--
 board/cray/L1/u-boot.lds.debug              |    4 ++--
 board/eltec/mhpc/u-boot.lds.debug           |    4 ++--
 board/emk/top860/u-boot.lds.debug           |    4 ++--
 board/esd/tasreg/u-boot.lds                 |    2 +-
 board/esteem192e/u-boot.lds                 |    6 +++---
 board/etx094/u-boot.lds                     |    4 ++--
 board/etx094/u-boot.lds.debug               |    4 ++--
 board/fads/u-boot.lds.debug                 |    4 ++--
 board/flagadm/u-boot.lds.debug              |    4 ++--
 board/freescale/m52277evb/u-boot.spa        |    2 +-
 board/freescale/m5235evb/u-boot.16          |    2 +-
 board/freescale/m5235evb/u-boot.32          |    2 +-
 board/freescale/m5249evb/u-boot.lds         |    2 +-
 board/freescale/m5253demo/u-boot.lds        |    2 +-
 board/freescale/m5253evbe/u-boot.lds        |    2 +-
 board/freescale/m5271evb/u-boot.lds         |    2 +-
 board/freescale/m5272c3/u-boot.lds          |    2 +-
 board/freescale/m5275evb/u-boot.lds         |    4 ++--
 board/freescale/m5282evb/u-boot.lds         |    6 +++---
 board/freescale/m53017evb/u-boot.lds        |    2 +-
 board/freescale/m5329evb/u-boot.lds         |    2 +-
 board/freescale/m5373evb/u-boot.lds         |    2 +-
 board/freescale/m54451evb/u-boot.spa        |    2 +-
 board/freescale/m54451evb/u-boot.stm        |    2 +-
 board/freescale/m54455evb/u-boot.atm        |    2 +-
 board/freescale/m54455evb/u-boot.int        |    2 +-
 board/freescale/mpc8610hpcd/u-boot.lds      |    4 ++--
 board/freescale/mpc8641hpcn/u-boot.lds      |    4 ++--
 board/genietv/u-boot.lds                    |    6 +++---
 board/genietv/u-boot.lds.debug              |    6 +++---
 board/hermes/u-boot.lds                     |    2 +-
 board/hymod/u-boot.lds                      |    6 +++---
 board/hymod/u-boot.lds.debug                |    4 ++--
 board/icu862/u-boot.lds                     |    6 +++---
 board/icu862/u-boot.lds.debug               |    4 ++--
 board/idmr/u-boot.lds                       |    2 +-
 board/ivm/u-boot.lds.debug                  |    4 ++--
 board/keymile/km8xx/u-boot.lds              |    6 +++---
 board/kup/kup4k/u-boot.lds                  |    6 +++---
 board/kup/kup4k/u-boot.lds.debug            |    4 ++--
 board/kup/kup4x/u-boot.lds                  |    6 +++---
 board/kup/kup4x/u-boot.lds.debug            |    4 ++--
 board/lantec/u-boot.lds                     |    6 +++---
 board/lantec/u-boot.lds.debug               |    4 ++--
 board/lwmon/u-boot.lds.debug                |    4 ++--
 board/mbx8xx/u-boot.lds.debug               |    4 ++--
 board/ml2/u-boot.lds                        |    4 ++--
 board/ml2/u-boot.lds.debug                  |    4 ++--
 board/mousse/u-boot.lds                     |    6 +++---
 board/mousse/u-boot.lds.rom                 |    6 +++---
 board/mpl/pip405/u-boot.lds.debug           |    4 ++--
 board/netphone/u-boot.lds                   |    6 +++---
 board/netphone/u-boot.lds.debug             |    4 ++--
 board/netstar/Makefile                      |    2 +-
 board/netta/u-boot.lds                      |    6 +++---
 board/netta/u-boot.lds.debug                |    4 ++--
 board/netta2/u-boot.lds                     |    6 +++---
 board/netta2/u-boot.lds.debug               |    4 ++--
 board/netvia/u-boot.lds                     |    6 +++---
 board/netvia/u-boot.lds.debug               |    4 ++--
 board/nx823/u-boot.lds.debug                |    4 ++--
 board/purple/u-boot.lds                     |    2 +-
 board/quantum/u-boot.lds                    |    6 +++---
 board/quantum/u-boot.lds.debug              |    4 ++--
 board/rbc823/u-boot.lds                     |    6 +++---
 board/rmu/u-boot.lds                        |    6 +++---
 board/rmu/u-boot.lds.debug                  |    4 ++--
 board/sandburst/karef/u-boot.lds.debug      |    4 ++--
 board/sandburst/metrobox/u-boot.lds.debug   |    4 ++--
 board/sbc8641d/u-boot.lds                   |    4 ++--
 board/sc3/u-boot.lds                        |    4 ++--
 board/siemens/CCM/u-boot.lds                |    6 +++---
 board/siemens/CCM/u-boot.lds.debug          |    4 ++--
 board/siemens/pcu_e/u-boot.lds.debug        |    4 ++--
 board/snmc/qs850/u-boot.lds                 |    6 +++---
 board/snmc/qs860t/u-boot.lds                |    6 +++---
 board/spc1920/u-boot.lds                    |    6 +++---
 board/spd8xx/u-boot.lds.debug               |    4 ++--
 board/stx/stxxtc/u-boot.lds                 |    6 +++---
 board/stx/stxxtc/u-boot.lds.debug           |    4 ++--
 board/svm_sc8xx/u-boot.lds                  |    6 +++---
 board/svm_sc8xx/u-boot.lds.debug            |    4 ++--
 board/tcm-bf518/config.mk                   |    4 ++--
 board/tcm-bf537/config.mk                   |    4 ++--
 board/tqc/tqm8xx/u-boot.lds                 |    6 +++---
 board/tqc/tqm8xx/u-boot.lds.debug           |    4 ++--
 board/trab/Makefile                         |    2 +-
 board/trab/u-boot.lds                       |    6 +++---
 board/uc100/u-boot.lds                      |    6 +++---
 board/uc100/u-boot.lds.debug                |    4 ++--
 board/v37/u-boot.lds                        |    6 +++---
 board/w7o/u-boot.lds.debug                  |    4 ++--
 board/westel/amx860/u-boot.lds              |    6 +++---
 board/westel/amx860/u-boot.lds.debug        |    4 ++--
 board/xes/xpedite1000/u-boot.lds.debug      |    4 ++--
 board/xes/xpedite5170/u-boot.lds            |    4 ++--
 cpu/mpc5xxx/u-boot-customlayout.lds         |    2 +-
 examples/api/Makefile                       |   14 +++++++-------
 examples/api/libgenwrap.c                   |    2 +-
 include/common.h                            |   12 ++++++------
 include/configs/bf533-stamp.h               |    2 +-
 include/configs/bf537-pnav.h                |    2 +-
 include/configs/bf537-stamp.h               |    2 +-
 include/configs/bf538f-ezkit.h              |    2 +-
 include/configs/bf561-ezkit.h               |    4 ++--
 include/configs/cm-bf537e.h                 |    2 +-
 include/configs/cm-bf537u.h                 |    2 +-
 include/configs/ibf-dsp561.h                |    4 ++--
 include/configs/tcm-bf537.h                 |    2 +-
 include/lzma/LzmaDec.h                      |    2 +-
 include/lzma/LzmaTools.h                    |    2 +-
 include/lzma/LzmaTypes.h                    |    2 +-
 include/u-boot/crc.h                        |    2 +-
 {lib_generic => lib}/Makefile               |    0
 {lib_generic => lib}/addr_map.c             |    0
 {lib_generic => lib}/bzlib.c                |    0
 {lib_generic => lib}/bzlib_crctable.c       |    0
 {lib_generic => lib}/bzlib_decompress.c     |    0
 {lib_generic => lib}/bzlib_huffman.c        |    0
 {lib_generic => lib}/bzlib_private.h        |    0
 {lib_generic => lib}/bzlib_randtable.c      |    0
 {lib_generic => lib}/circbuf.c              |    0
 {lib_generic => lib}/crc16.c                |    0
 {lib_generic => lib}/crc32.c                |    0
 {lib_generic => lib}/ctype.c                |    0
 {lib_generic => lib}/display_options.c      |    0
 {lib_generic => lib}/div64.c                |    0
 {lib_generic => lib}/gunzip.c               |    0
 {lib_generic => lib}/ldiv.c                 |    0
 {lib_generic => lib}/lmb.c                  |    0
 {lib_generic => lib}/lzma/LzmaDec.c         |    0
 {lib_generic => lib}/lzma/LzmaDec.h         |    0
 {lib_generic => lib}/lzma/LzmaTools.c       |    0
 {lib_generic => lib}/lzma/LzmaTools.h       |    0
 {lib_generic => lib}/lzma/Makefile          |    0
 {lib_generic => lib}/lzma/README.txt        |    0
 {lib_generic => lib}/lzma/Types.h           |    0
 {lib_generic => lib}/lzma/history.txt       |    0
 {lib_generic => lib}/lzma/import_lzmasdk.sh |    0
 {lib_generic => lib}/lzma/license.txt       |    0
 {lib_generic => lib}/lzma/lzma.txt          |    0
 {lib_generic => lib}/lzo/Makefile           |    0
 {lib_generic => lib}/lzo/lzo1x_decompress.c |    0
 {lib_generic => lib}/lzo/lzodefs.h          |    0
 {lib_generic => lib}/md5.c                  |    0
 {lib_generic => lib}/net_utils.c            |    0
 {lib_generic => lib}/rbtree.c               |    0
 {lib_generic => lib}/sha1.c                 |    0
 {lib_generic => lib}/sha256.c               |    0
 {lib_generic => lib}/string.c               |    0
 {lib_generic => lib}/strmhz.c               |    0
 {lib_generic => lib}/time.c                 |    0
 {lib_generic => lib}/vsprintf.c             |    0
 {lib_generic => lib}/zlib.c                 |    0
 tools/Makefile                              |    8 ++++----
 tools/env/Makefile                          |    2 +-
 tools/imls/Makefile                         |    8 ++++----
 194 files changed, 321 insertions(+), 321 deletions(-)
 rename {lib_generic => lib}/Makefile (100%)
 rename {lib_generic => lib}/addr_map.c (100%)
 rename {lib_generic => lib}/bzlib.c (100%)
 rename {lib_generic => lib}/bzlib_crctable.c (100%)
 rename {lib_generic => lib}/bzlib_decompress.c (100%)
 rename {lib_generic => lib}/bzlib_huffman.c (100%)
 rename {lib_generic => lib}/bzlib_private.h (100%)
 rename {lib_generic => lib}/bzlib_randtable.c (100%)
 rename {lib_generic => lib}/circbuf.c (100%)
 rename {lib_generic => lib}/crc16.c (100%)
 rename {lib_generic => lib}/crc32.c (100%)
 rename {lib_generic => lib}/ctype.c (100%)
 rename {lib_generic => lib}/display_options.c (100%)
 rename {lib_generic => lib}/div64.c (100%)
 rename {lib_generic => lib}/gunzip.c (100%)
 rename {lib_generic => lib}/ldiv.c (100%)
 rename {lib_generic => lib}/lmb.c (100%)
 rename {lib_generic => lib}/lzma/LzmaDec.c (100%)
 rename {lib_generic => lib}/lzma/LzmaDec.h (100%)
 rename {lib_generic => lib}/lzma/LzmaTools.c (100%)
 rename {lib_generic => lib}/lzma/LzmaTools.h (100%)
 rename {lib_generic => lib}/lzma/Makefile (100%)
 rename {lib_generic => lib}/lzma/README.txt (100%)
 rename {lib_generic => lib}/lzma/Types.h (100%)
 rename {lib_generic => lib}/lzma/history.txt (100%)
 rename {lib_generic => lib}/lzma/import_lzmasdk.sh (100%)
 rename {lib_generic => lib}/lzma/license.txt (100%)
 rename {lib_generic => lib}/lzma/lzma.txt (100%)
 rename {lib_generic => lib}/lzo/Makefile (100%)
 rename {lib_generic => lib}/lzo/lzo1x_decompress.c (100%)
 rename {lib_generic => lib}/lzo/lzodefs.h (100%)
 rename {lib_generic => lib}/md5.c (100%)
 rename {lib_generic => lib}/net_utils.c (100%)
 rename {lib_generic => lib}/rbtree.c (100%)
 rename {lib_generic => lib}/sha1.c (100%)
 rename {lib_generic => lib}/sha256.c (100%)
 rename {lib_generic => lib}/string.c (100%)
 rename {lib_generic => lib}/strmhz.c (100%)
 rename {lib_generic => lib}/time.c (100%)
 rename {lib_generic => lib}/vsprintf.c (100%)
 rename {lib_generic => lib}/zlib.c (100%)
Makefile +3 -3
index ba0b5d3..6b0d0ab 100644
@@ -183,9 +183,9 @@ endif
 
 OBJS := $(addprefix $(obj),$(OBJS))
 
-LIBS  = lib_generic/libgeneric.a
-LIBS += lib_generic/lzma/liblzma.a
-LIBS += lib_generic/lzo/liblzo.a
+LIBS  = lib/libgeneric.a
+LIBS += lib/lzma/liblzma.a
+LIBS += lib/lzo/liblzo.a
 LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
 	"board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
 LIBS += $(CPUDIR)/lib$(CPU).a
README +1 -1
index b91582f..f94c4a3 100644
@@ -185,7 +185,7 @@ Directory Hierarchy:
 - arch/arm/lib	Files generic to ARM	 architecture
 - arch/avr32/lib	Files generic to AVR32	 architecture
 - arch/blackfin/lib	Files generic to Blackfin architecture
-- lib_generic	Files generic to all	 architectures
+- lib	Files generic to all	 architectures
 - arch/i386/lib	Files generic to i386	 architecture
 - arch/m68k/lib	Files generic to m68k	 architecture
 - arch/microblaze/lib Files generic to microblaze architecture
board/BuS/EB+MCF-EV123/u-boot.lds +4 -4
index 3450793..b05eacf 100644
@@ -57,10 +57,10 @@ SECTIONS
 
     cpu/mcf52x2/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/string.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o	(.text)
-    lib_generic/zlib.o	(.text)
+    lib/string.o	(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o	(.text)
+    lib/zlib.o	(.text)
 
 /*    . = env_offset; */
     common/env_embedded.o(.text)
board/LEOX/elpt860/u-boot.lds +4 -4
index 32778ca..d3929ea 100644
@@ -67,10 +67,10 @@ SECTIONS
     cpu/mpc8xx/start.o			(.text)
     common/dlmalloc.o			(.text)
     arch/ppc/lib/ppcstring.o			(.text)
-    lib_generic/vsprintf.o		(.text)
-    lib_generic/crc32.o			(.text)
-    lib_generic/zlib.o			(.text)
-    lib_generic/string.o		(.text)
+    lib/vsprintf.o		(.text)
+    lib/crc32.o			(.text)
+    lib/zlib.o			(.text)
+    lib/string.o		(.text)
     arch/ppc/lib/cache.o			(.text)
     arch/ppc/lib/extable.o			(.text)
     arch/ppc/lib/time.o			(.text)
board/LEOX/elpt860/u-boot.lds.debug +2 -2
index 5126083..f6c21f7 100644
@@ -66,8 +66,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o	(.text)
board/RPXClassic/u-boot.lds +3 -3
index c354ff8..09d9470 100644
@@ -58,9 +58,9 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 /* XXX ?
     . = env_offset;
 */
board/RPXClassic/u-boot.lds.debug +2 -2
index a2d940f..f559df7 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/RPXlite/u-boot.lds +3 -3
index c354ff8..09d9470 100644
@@ -58,9 +58,9 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 /* XXX ?
     . = env_offset;
 */
board/RPXlite/u-boot.lds.debug +2 -2
index a2d940f..f559df7 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/RPXlite_dw/u-boot.lds +3 -3
index 89aafff..a099cb9 100644
@@ -58,9 +58,9 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 /* XXX ?
     . = env_offset;
 */
board/RPXlite_dw/u-boot.lds.debug +2 -2
index 83fdc15..3b61a42 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/RRvision/u-boot.lds +3 -3
index 88644a4..1132fd6 100644
@@ -59,9 +59,9 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
     arch/ppc/lib/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
     arch/ppc/lib/cache.o		(.text)
     arch/ppc/lib/time.o		(.text)
 
board/actux1/u-boot.lds +2 -2
index 1087167..40b5ef3 100644
@@ -31,8 +31,8 @@ SECTIONS
 	. = ALIGN (4);
 	.text : {
 		cpu/ixp/start.o(.text)
-		lib_generic/string.o(.text)
-		lib_generic/vsprintf.o(.text)
+		lib/string.o(.text)
+		lib/vsprintf.o(.text)
 		arch/arm/lib/board.o(.text)
 		common/dlmalloc.o(.text)
 		cpu/ixp/cpu.o(.text)
board/actux2/u-boot.lds +2 -2
index 543af30..f9ab281 100644
@@ -31,8 +31,8 @@ SECTIONS
 	. = ALIGN (4);
 	.text : {
 		cpu/ixp/start.o(.text)
-		lib_generic/string.o(.text)
-		lib_generic/vsprintf.o(.text)
+		lib/string.o(.text)
+		lib/vsprintf.o(.text)
 		arch/arm/lib/board.o(.text)
 		common/dlmalloc.o(.text)
 		cpu/ixp/cpu.o(.text)
board/actux3/u-boot.lds +2 -2
index f63251d..2fc3796 100644
@@ -31,8 +31,8 @@ SECTIONS
 	. = ALIGN (4);
 	.text : {
 		cpu/ixp/start.o (.text)
-		lib_generic/string.o (.text)
-		lib_generic/vsprintf.o (.text)
+		lib/string.o (.text)
+		lib/vsprintf.o (.text)
 		arch/arm/lib/board.o (.text)
 		common/dlmalloc.o (.text)
 		cpu/ixp/cpu.o (.text)
board/amirix/ap1000/u-boot.lds +2 -2
index 10308d5..89ffc6d 100644
@@ -64,9 +64,9 @@ SECTIONS
     cpu/ppc4xx/cpu_init.o	(.text)
     cpu/ppc4xx/speed.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
 /*    . = env_offset;*/
 /*    common/env_embedded.o(.text)*/
board/astro/mcf5373l/u-boot.lds +1 -1
index 7fbe16f..73e0310 100644
@@ -59,7 +59,7 @@ SECTIONS
     arch/m68k/lib/traps.o		(.text)
     arch/m68k/lib/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/bf518f-ezbrd/config.mk +2 -2
index fb93531..3f9d41f 100644
@@ -26,8 +26,8 @@
 # This is not actually used for Blackfin boards so do not change it
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
-CFLAGS_lib_generic/lzma += -O2
+CFLAGS_lib += -O2
+CFLAGS_lib/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf526-ezbrd/config.mk +2 -2
index fb93531..3f9d41f 100644
@@ -26,8 +26,8 @@
 # This is not actually used for Blackfin boards so do not change it
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
-CFLAGS_lib_generic/lzma += -O2
+CFLAGS_lib += -O2
+CFLAGS_lib/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf527-ezkit/config.mk +2 -2
index fb93531..3f9d41f 100644
@@ -26,8 +26,8 @@
 # This is not actually used for Blackfin boards so do not change it
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
-CFLAGS_lib_generic/lzma += -O2
+CFLAGS_lib += -O2
+CFLAGS_lib/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf533-ezkit/config.mk +2 -2
index b50e1f2..bc046f1 100644
@@ -26,8 +26,8 @@
 # This is not actually used for Blackfin boards so do not change it
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
-CFLAGS_lib_generic/lzma += -O2
+CFLAGS_lib += -O2
+CFLAGS_lib/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
board/bf533-stamp/config.mk +2 -2
index b50e1f2..bc046f1 100644
@@ -26,8 +26,8 @@
 # This is not actually used for Blackfin boards so do not change it
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
-CFLAGS_lib_generic/lzma += -O2
+CFLAGS_lib += -O2
+CFLAGS_lib/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
board/bf537-stamp/config.mk +2 -2
index 95d0fcc..5766829 100644
@@ -26,8 +26,8 @@
 # This is not actually used for Blackfin boards so do not change it
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
-CFLAGS_lib_generic/lzma += -O2
+CFLAGS_lib += -O2
+CFLAGS_lib/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
board/bf538f-ezkit/config.mk +2 -2
index b50e1f2..bc046f1 100644
@@ -26,8 +26,8 @@
 # This is not actually used for Blackfin boards so do not change it
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
-CFLAGS_lib_generic/lzma += -O2
+CFLAGS_lib += -O2
+CFLAGS_lib/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
board/bf548-ezkit/config.mk +2 -2
index aff12e9..ce96c0d 100644
@@ -26,8 +26,8 @@
 # This is not actually used for Blackfin boards so do not change it
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
-CFLAGS_lib_generic/lzma += -O2
+CFLAGS_lib += -O2
+CFLAGS_lib/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA       := --dma 6
board/bf561-acvilon/config.mk +2 -2
index b517025..a90b193 100644
@@ -26,8 +26,8 @@
 # This is not actually used for Blackfin boards so do not change it
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
-CFLAGS_lib_generic/lzma += -O2
+CFLAGS_lib += -O2
+CFLAGS_lib/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16
board/bf561-ezkit/config.mk +2 -2
index b517025..a90b193 100644
@@ -26,8 +26,8 @@
 # This is not actually used for Blackfin boards so do not change it
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
-CFLAGS_lib_generic/lzma += -O2
+CFLAGS_lib += -O2
+CFLAGS_lib/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16
board/c2mon/u-boot.lds +3 -3
index 0571f02..51e95d5 100644
@@ -58,9 +58,9 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/c2mon/u-boot.lds.debug +2 -2
index ad36953..d55bf33 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/cm-bf527/config.mk +2 -2
index fb93531..3f9d41f 100644
@@ -26,8 +26,8 @@
 # This is not actually used for Blackfin boards so do not change it
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
-CFLAGS_lib_generic/lzma += -O2
+CFLAGS_lib += -O2
+CFLAGS_lib/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/cm-bf533/config.mk +2 -2
index b50e1f2..bc046f1 100644
@@ -26,8 +26,8 @@
 # This is not actually used for Blackfin boards so do not change it
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
-CFLAGS_lib_generic/lzma += -O2
+CFLAGS_lib += -O2
+CFLAGS_lib/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
board/cm-bf537e/config.mk +2 -2
index b50e1f2..bc046f1 100644
@@ -26,8 +26,8 @@
 # This is not actually used for Blackfin boards so do not change it
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
-CFLAGS_lib_generic/lzma += -O2
+CFLAGS_lib += -O2
+CFLAGS_lib/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
board/cm-bf537u/config.mk +2 -2
index b50e1f2..bc046f1 100644
@@ -26,8 +26,8 @@
 # This is not actually used for Blackfin boards so do not change it
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
-CFLAGS_lib_generic/lzma += -O2
+CFLAGS_lib += -O2
+CFLAGS_lib/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
board/cm-bf548/config.mk +2 -2
index 66c7368..f071a39 100644
@@ -26,8 +26,8 @@
 # This is not actually used for Blackfin boards so do not change it
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
-CFLAGS_lib_generic/lzma += -O2
+CFLAGS_lib += -O2
+CFLAGS_lib/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA       := --dma 6
board/cm-bf561/config.mk +2 -2
index b517025..a90b193 100644
@@ -26,8 +26,8 @@
 # This is not actually used for Blackfin boards so do not change it
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
-CFLAGS_lib_generic/lzma += -O2
+CFLAGS_lib += -O2
+CFLAGS_lib/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16
board/cobra5272/u-boot.lds +1 -1
index 8989880..aacc089 100644
@@ -59,7 +59,7 @@ SECTIONS
     arch/m68k/lib/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/cogent/u-boot.lds.debug +2 -2
index a2d940f..f559df7 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/cray/L1/u-boot.lds.debug +2 -2
index 40d2f78..09c0191 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
 
     common/env_embedded.o(.text)
board/eltec/mhpc/u-boot.lds.debug +2 -2
index ad36953..d55bf33 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/emk/top860/u-boot.lds.debug +2 -2
index 4e4943f..6ca7298 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
 
     . = env_offset;
board/esd/tasreg/u-boot.lds +1 -1
index 54e0169..f87d3cb 100644
@@ -59,7 +59,7 @@ SECTIONS
     arch/m68k/lib/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/esteem192e/u-boot.lds +3 -3
index 215a2c4..848eacd 100644
@@ -58,9 +58,9 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/etx094/u-boot.lds +2 -2
index 1d34e68..d8112eb 100644
@@ -62,8 +62,8 @@ SECTIONS
     cpu/mpc8xx/cpu_init.o	(.text)
     cpu/mpc8xx/speed.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/etx094/u-boot.lds.debug +2 -2
index dd4dbfa..12f6ce7 100644
@@ -64,8 +64,8 @@ SECTIONS
     cpu/mpc8xx/serial.o	(.text)
     arch/ppc/lib/extable.o	(.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/string.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/string.o	(.text)
+    lib/crc32.o		(.text)
     common/dlmalloc.o	(.text)
     . = env_offset;
     common/env_embedded.o(.text)
board/fads/u-boot.lds.debug +2 -2
index 8d91aed..4f179c7 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
 
     . = env_offset;
board/flagadm/u-boot.lds.debug +2 -2
index ad36953..d55bf33 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/freescale/m52277evb/u-boot.spa +1 -1
index 23d5710..6d916d8 100644
@@ -58,7 +58,7 @@ SECTIONS
     cpu/mcf5227x/start.o	(.text)
     cpu/mcf5227x/libmcf5227x.a	(.text)
     arch/m68k/lib/libm68k.a		(.text)
-    lib_generic/libgeneric.a	(.text)
+    lib/libgeneric.a	(.text)
     common/cmd_mem.o		(.text)
     common/main.o		(.text)
 
board/freescale/m5235evb/u-boot.16 +1 -1
index 940da14..4e70efb 100644
@@ -60,7 +60,7 @@ SECTIONS
     arch/m68k/lib/traps.o		(.text)
     arch/m68k/lib/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/freescale/m5235evb/u-boot.32 +1 -1
index 50045e1..cbf2249 100644
@@ -68,7 +68,7 @@ SECTIONS
     common/cmd_mem.o		(.text)
     common/console.o		(.text)
     common/main.o		(.text)
-    lib_generic/libgeneric.a	(.text)
+    lib/libgeneric.a	(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/freescale/m5249evb/u-boot.lds +1 -1
index 54e0169..f87d3cb 100644
@@ -59,7 +59,7 @@ SECTIONS
     arch/m68k/lib/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/freescale/m5253demo/u-boot.lds +1 -1
index e53e67d..455e9b8 100644
@@ -59,7 +59,7 @@ SECTIONS
     arch/m68k/lib/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/freescale/m5253evbe/u-boot.lds +1 -1
index 7f4dc27..99c125c 100644
@@ -59,7 +59,7 @@ SECTIONS
     arch/m68k/lib/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/freescale/m5271evb/u-boot.lds +1 -1
index 713b18a..588a128 100644
@@ -60,7 +60,7 @@ SECTIONS
     arch/m68k/lib/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.ppcenv)
board/freescale/m5272c3/u-boot.lds +1 -1
index 446ec1b..aaba5a3 100644
@@ -59,7 +59,7 @@ SECTIONS
     arch/m68k/lib/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/freescale/m5275evb/u-boot.lds +2 -2
index daf8724..700b9f5 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mcf52x2/start.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/string.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/string.o	(.text)
+    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o(.text)
board/freescale/m5282evb/u-boot.lds +3 -3
index f46e025..e936adf 100644
@@ -57,9 +57,9 @@ SECTIONS
 
     cpu/mcf52x2/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/string.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o	(.text)
+    lib/string.o	(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o	(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o(.text)
board/freescale/m53017evb/u-boot.lds +1 -1
index fe0e314..a725da1 100644
@@ -59,7 +59,7 @@ SECTIONS
     cpu/mcf532x/libmcf532x.a	(.text)
     arch/m68k/lib/libm68k.a		(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/freescale/m5329evb/u-boot.lds +1 -1
index 0ed87ff..bf4f188 100644
@@ -59,7 +59,7 @@ SECTIONS
     arch/m68k/lib/traps.o		(.text)
     arch/m68k/lib/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/freescale/m5373evb/u-boot.lds +1 -1
index 605452b..c129ac2 100644
@@ -59,7 +59,7 @@ SECTIONS
     arch/m68k/lib/traps.o		(.text)
     arch/m68k/lib/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/freescale/m54451evb/u-boot.spa +1 -1
index 569518b..e63b1f2 100644
@@ -62,7 +62,7 @@ SECTIONS
     common/dlmalloc.o		(.text)
     common/main.o		(.text)
     common/image.o		(.text)
-    lib_generic/libgeneric.a	(.text)
+    lib/libgeneric.a	(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/freescale/m54451evb/u-boot.stm +1 -1
index 1b06b12..7c3f068 100644
@@ -64,7 +64,7 @@ SECTIONS
     arch/m68k/lib/board.o			(.text)
     common/serial.o			(.text)
     common/console.o			(.text)
-    lib_generic/display_options.o	(.text)
+    lib/display_options.o	(.text)
     board/freescale/m54455evb/m54455evb.o	(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
board/freescale/m54455evb/u-boot.atm +1 -1
index c48dd75..2dd8a23 100644
@@ -59,7 +59,7 @@ SECTIONS
     arch/m68k/lib/traps.o		(.text)
     arch/m68k/lib/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/freescale/m54455evb/u-boot.int +1 -1
index ef07174..8e54d79 100644
@@ -59,7 +59,7 @@ SECTIONS
     arch/m68k/lib/traps.o		(.text)
     arch/m68k/lib/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
     *(.text)
     *(.fixup)
board/freescale/mpc8610hpcd/u-boot.lds +2 -2
index 2ad0f0e..67847f1 100644
@@ -57,9 +57,9 @@ SECTIONS
     cpu/mpc86xx/cpu.o (.text)
     cpu/mpc86xx/speed.o (.text)
     common/dlmalloc.o (.text)
-    lib_generic/crc32.o (.text)
+    lib/crc32.o (.text)
     arch/ppc/lib/extable.o (.text)
-    lib_generic/zlib.o (.text)
+    lib/zlib.o (.text)
     *(.text)
     *(.got1)
    }
board/freescale/mpc8641hpcn/u-boot.lds +2 -2
index 796828a..20e0344 100644
@@ -57,9 +57,9 @@ SECTIONS
     cpu/mpc86xx/cpu.o (.text)
     cpu/mpc86xx/speed.o (.text)
     common/dlmalloc.o (.text)
-    lib_generic/crc32.o (.text)
+    lib/crc32.o (.text)
     arch/ppc/lib/extable.o (.text)
-    lib_generic/zlib.o (.text)
+    lib/zlib.o (.text)
     drivers/bios_emulator/atibios.o (.text)
     *(.text)
     *(.got1)
board/genietv/u-boot.lds +3 -3
index 9fc71a2..1bd1ba7 100644
@@ -58,9 +58,9 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/genietv/u-boot.lds.debug +3 -3
index 9bb2c58..c0dd67f 100644
@@ -58,9 +58,9 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/hermes/u-boot.lds +1 -1
index 1252baf..1f6e7d6 100644
@@ -61,7 +61,7 @@ SECTIONS
     arch/ppc/lib/time.o		(.text)
     arch/ppc/lib/ticks.o		(.text)
     arch/ppc/lib/cache.o		(.text)
-    lib_generic/crc32.o		(.text)
+    lib/crc32.o		(.text)
     . = env_offset;
     common/env_embedded.o(.text)
 
board/hymod/u-boot.lds +3 -3
index cc32b44..965716f 100644
@@ -59,9 +59,9 @@ SECTIONS
 /*
     common/dlmalloc.o	(.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 
     . = env_offset;
 */
board/hymod/u-boot.lds.debug +2 -2
index a2d940f..f559df7 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/icu862/u-boot.lds +3 -3
index b614262..d7d0fb3 100644
@@ -60,9 +60,9 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/icu862/u-boot.lds.debug +2 -2
index 919eb21..282738b 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
 
     . = env_offset;
board/idmr/u-boot.lds +1 -1
index 713b18a..588a128 100644
@@ -60,7 +60,7 @@ SECTIONS
     arch/m68k/lib/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.ppcenv)
board/ivm/u-boot.lds.debug +2 -2
index 17965a0..037785e 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
 
     . = env_offset;
board/keymile/km8xx/u-boot.lds +3 -3
index 8b6305a..759072d 100644
@@ -59,9 +59,9 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
     arch/ppc/lib/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
     arch/ppc/lib/cache.o		(.text)
     arch/ppc/lib/time.o		(.text)
 
board/kup/kup4k/u-boot.lds +3 -3
index 8e4faa1..e1233a7 100644
@@ -60,9 +60,9 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/kup/kup4k/u-boot.lds.debug +2 -2
index 83fdc15..3b61a42 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/kup/kup4x/u-boot.lds +3 -3
index 8e4faa1..e1233a7 100644
@@ -60,9 +60,9 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/kup/kup4x/u-boot.lds.debug +2 -2
index 83fdc15..3b61a42 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/lantec/u-boot.lds +3 -3
index 814a7a6..50bdfb4 100644
@@ -58,9 +58,9 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/lantec/u-boot.lds.debug +2 -2
index 3b4799e..be06235 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/lwmon/u-boot.lds.debug +2 -2
index 49f8972..251ee9b 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
 
     . = env_offset;
board/mbx8xx/u-boot.lds.debug +2 -2
index 8d91aed..4f179c7 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
 
     . = env_offset;
board/ml2/u-boot.lds +2 -2
index 0083a21..e68cfb8 100644
@@ -64,9 +64,9 @@ SECTIONS
     cpu/ppc4xx/cpu_init.o	(.text)
     cpu/ppc4xx/speed.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
 /*    . = env_offset;*/
 /*    common/env_embedded.o(.text)*/
board/ml2/u-boot.lds.debug +2 -2
index 40d2f78..09c0191 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
 
     common/env_embedded.o(.text)
board/mousse/u-boot.lds +3 -3
index c92a2ab..f6930b5 100644
@@ -55,9 +55,9 @@ SECTIONS
     cpu/mpc824x/start.o		(.text)
     arch/ppc/lib/board.o		(.text)
     arch/ppc/lib/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 
     *(.got1)
     . = ALIGN(16);
board/mousse/u-boot.lds.rom +3 -3
index 9750fc5..8355f33 100644
@@ -55,9 +55,9 @@ SECTIONS
     cpu/mpc824x/start.o	(.text)
 	 common/board.o (.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 
 		. = env_offset;
     common/env_embedded.o (.text)
board/mpl/pip405/u-boot.lds.debug +2 -2
index 40d2f78..09c0191 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
 
     common/env_embedded.o(.text)
board/netphone/u-boot.lds +3 -3
index 4b17a1f..8f96b1d 100644
@@ -56,9 +56,9 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
     arch/ppc/lib/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
     arch/ppc/lib/cache.o		(.text)
     arch/ppc/lib/time.o		(.text)
 
board/netphone/u-boot.lds.debug +2 -2
index 4ef16f1..1397511 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/netstar/Makefile +1 -1
index c435762..5773c13 100644
@@ -72,7 +72,7 @@ $(obj)crcit:		$(obj)crcit.o $(obj)crc32.o
 $(obj)crcit.o:		crcit.c
 	$(HOSTCC) $(HOSTCFLAGS) -o $@ -c $<
 
-$(obj)crc32.o:		$(SRCTREE)/lib_generic/crc32.c
+$(obj)crc32.o:		$(SRCTREE)/lib/crc32.c
 	$(HOSTCC) $(HOSTCFLAGS) -DUSE_HOSTCC -I$(TOPDIR)/include \
 		-o $@ -c $<
 
board/netta/u-boot.lds +3 -3
index 991d7a1..ff11ad0 100644
@@ -56,9 +56,9 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
     arch/ppc/lib/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
     arch/ppc/lib/cache.o		(.text)
     arch/ppc/lib/time.o		(.text)
 
board/netta/u-boot.lds.debug +2 -2
index 4ef16f1..1397511 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/netta2/u-boot.lds +3 -3
index 991d7a1..ff11ad0 100644
@@ -56,9 +56,9 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
     arch/ppc/lib/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
     arch/ppc/lib/cache.o		(.text)
     arch/ppc/lib/time.o		(.text)
 
board/netta2/u-boot.lds.debug +2 -2
index 4ef16f1..1397511 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/netvia/u-boot.lds +3 -3
index 7eb01ee..70d5a6a 100644
@@ -56,9 +56,9 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
     arch/ppc/lib/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
     arch/ppc/lib/cache.o		(.text)
     arch/ppc/lib/time.o		(.text)
 
board/netvia/u-boot.lds.debug +2 -2
index c3c99b3..bc8f32e 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/nx823/u-boot.lds.debug +2 -2
index ad36953..d55bf33 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/purple/u-boot.lds +1 -1
index 04a641a..236ece4 100644
@@ -40,7 +40,7 @@ SECTIONS
 	  common/main.o			(.text)
 	  common/dlmalloc.o		(.text)
 	  common/cmd_boot.o		(.text)
-	  lib_generic/zlib.o		(.text)
+	  lib/zlib.o		(.text)
 	  . = DEFINED(env_offset) ? env_offset : .;
 	  common/env_embedded.o	(.ppcenv)
 
board/quantum/u-boot.lds +3 -3
index c354ff8..09d9470 100644
@@ -58,9 +58,9 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 /* XXX ?
     . = env_offset;
 */
board/quantum/u-boot.lds.debug +2 -2
index ec01fe2..dcad818 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/rbc823/u-boot.lds +3 -3
index 6074c14..15aca6c 100644
@@ -58,9 +58,9 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/rmu/u-boot.lds +3 -3
index c354ff8..09d9470 100644
@@ -58,9 +58,9 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 /* XXX ?
     . = env_offset;
 */
board/rmu/u-boot.lds.debug +2 -2
index ec01fe2..dcad818 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/sandburst/karef/u-boot.lds.debug +2 -2
index 1d8ce10..34dce83 100644
@@ -66,9 +66,9 @@ SECTIONS
     cpu/ppc4xx/speed.o	(.text)
     drivers/net/4xx_enet.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
 /*    common/env_embedded.o(.text) */
 
board/sandburst/metrobox/u-boot.lds.debug +2 -2
index bbfea13..fa976c2 100644
@@ -66,9 +66,9 @@ SECTIONS
     cpu/ppc4xx/speed.o	(.text)
     drivers/net/4xx_enet.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
 /*    common/env_embedded.o(.text) */
 
board/sbc8641d/u-boot.lds +2 -2
index 648efa2..7f04124 100644
@@ -57,9 +57,9 @@ SECTIONS
     cpu/mpc86xx/cpu.o (.text)
     cpu/mpc86xx/speed.o (.text)
     common/dlmalloc.o (.text)
-    lib_generic/crc32.o (.text)
+    lib/crc32.o (.text)
     arch/ppc/lib/extable.o (.text)
-    lib_generic/zlib.o (.text)
+    lib/zlib.o (.text)
     *(.text)
     *(.got1)
    }
board/sc3/u-boot.lds +2 -2
index 04b350a..fc7464e 100644
@@ -69,9 +69,9 @@ SECTIONS
     cpu/ppc4xx/cpu_init.o	(.text)
     cpu/ppc4xx/speed.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
 /*    . = env_offset;*/
 /*    common/env_embedded.o(.text)*/
board/siemens/CCM/u-boot.lds +3 -3
index 0571f02..51e95d5 100644
@@ -58,9 +58,9 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/siemens/CCM/u-boot.lds.debug +2 -2
index 29657e9..2a6abfa 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 /*
     . = env_offset;
     common/env_embedded.o(.text)
board/siemens/pcu_e/u-boot.lds.debug +2 -2
index 49f8972..251ee9b 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
 
     . = env_offset;
board/snmc/qs850/u-boot.lds +3 -3
index ce115f5..271d74a 100644
@@ -59,9 +59,9 @@ SECTIONS
 	cpu/mpc8xx/traps.o		(.text)
 	common/dlmalloc.o		(.text)
 	arch/ppc/lib/ppcstring.o		(.text)
-	lib_generic/vsprintf.o	(.text)
-	lib_generic/crc32.o		(.text)
-	lib_generic/zlib.o		(.text)
+	lib/vsprintf.o	(.text)
+	lib/crc32.o		(.text)
+	lib/zlib.o		(.text)
 	arch/ppc/lib/cache.o		(.text)
 	arch/ppc/lib/time.o		(.text)
 
board/snmc/qs860t/u-boot.lds +3 -3
index ce115f5..271d74a 100644
@@ -59,9 +59,9 @@ SECTIONS
 	cpu/mpc8xx/traps.o		(.text)
 	common/dlmalloc.o		(.text)
 	arch/ppc/lib/ppcstring.o		(.text)
-	lib_generic/vsprintf.o	(.text)
-	lib_generic/crc32.o		(.text)
-	lib_generic/zlib.o		(.text)
+	lib/vsprintf.o	(.text)
+	lib/crc32.o		(.text)
+	lib/zlib.o		(.text)
 	arch/ppc/lib/cache.o		(.text)
 	arch/ppc/lib/time.o		(.text)
 
board/spc1920/u-boot.lds +3 -3
index 172cfbb..f95f695 100644
@@ -59,9 +59,9 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
     arch/ppc/lib/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
     arch/ppc/lib/cache.o		(.text)
     arch/ppc/lib/time.o		(.text)
 
board/spd8xx/u-boot.lds.debug +2 -2
index 8d91aed..4f179c7 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
 
     . = env_offset;
board/stx/stxxtc/u-boot.lds +3 -3
index 991d7a1..ff11ad0 100644
@@ -56,9 +56,9 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
     arch/ppc/lib/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
     arch/ppc/lib/cache.o		(.text)
     arch/ppc/lib/time.o		(.text)
 
board/stx/stxxtc/u-boot.lds.debug +2 -2
index 4ef16f1..1397511 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/svm_sc8xx/u-boot.lds +3 -3
index cf78200..6de7488 100644
@@ -59,9 +59,9 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
     arch/ppc/lib/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
     arch/ppc/lib/cache.o		(.text)
     arch/ppc/lib/time.o		(.text)
 
board/svm_sc8xx/u-boot.lds.debug +2 -2
index ec01fe2..dcad818 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/tcm-bf518/config.mk +2 -2
index fb93531..3f9d41f 100644
@@ -26,8 +26,8 @@
 # This is not actually used for Blackfin boards so do not change it
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
-CFLAGS_lib_generic/lzma += -O2
+CFLAGS_lib += -O2
+CFLAGS_lib/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/tcm-bf537/config.mk +2 -2
index b50e1f2..bc046f1 100644
@@ -26,8 +26,8 @@
 # This is not actually used for Blackfin boards so do not change it
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
-CFLAGS_lib_generic/lzma += -O2
+CFLAGS_lib += -O2
+CFLAGS_lib/lzma += -O2
 
 # Set some default LDR flags based on boot mode.
 LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8
board/tqc/tqm8xx/u-boot.lds +3 -3
index 9f452c1..ceaac00 100644
@@ -59,9 +59,9 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
     arch/ppc/lib/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
     arch/ppc/lib/cache.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
board/tqc/tqm8xx/u-boot.lds.debug +2 -2
index a2d940f..f559df7 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/trab/Makefile +1 -1
index 27d75f3..0b13dc4 100644
@@ -48,7 +48,7 @@ $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 $(obj)trab_fkt.srec:	$(OBJS_FKT) $(LIB)
 	$(LD) -g -Ttext $(LOAD_ADDR) -o $(<:.o=) -e trab_fkt $^ $(LIB) \
 		-L$(obj)../../examples/standalone -lstubs \
-		-L$(obj)../../lib_generic -lgeneric \
+		-L$(obj)../../lib -lgeneric \
 		$(PLATFORM_LIBS)
 	$(OBJCOPY) -O srec $(<:.o=) $@
 
board/trab/u-boot.lds +3 -3
index c3d5c49..05b929f 100644
@@ -33,9 +33,9 @@ SECTIONS
 	.text      :
 	{
 	  cpu/arm920t/start.o	(.text)
-	  lib_generic/zlib.o	(.text)
-	  lib_generic/crc32.o	(.text)
-	  lib_generic/string.o	(.text)
+	  lib/zlib.o	(.text)
+	  lib/crc32.o	(.text)
+	  lib/string.o	(.text)
 
 	. = DEFINED(env_offset) ? env_offset : .;
 	  common/env_embedded.o	(.ppcenv)
board/uc100/u-boot.lds +3 -3
index 967e432..960b2a5 100644
@@ -59,9 +59,9 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
     arch/ppc/lib/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
     arch/ppc/lib/cache.o		(.text)
     arch/ppc/lib/time.o		(.text)
 
board/uc100/u-boot.lds.debug +2 -2
index edaa402..116a972 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
 
     common/env_embedded.o(.text)
 
board/v37/u-boot.lds +3 -3
index c3dd8c7..248f488 100644
@@ -59,9 +59,9 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
     arch/ppc/lib/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
     arch/ppc/lib/cache.o		(.text)
     arch/ppc/lib/time.o		(.text)
 
board/w7o/u-boot.lds.debug +2 -2
index 85b1cd6..369c15a 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
 
     common/env_embedded.o(.text)
board/westel/amx860/u-boot.lds +3 -3
index 0571f02..51e95d5 100644
@@ -58,9 +58,9 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
     arch/ppc/lib/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
+    lib/zlib.o		(.text)
 
     . = env_offset;
     common/env_embedded.o(.text)
board/westel/amx860/u-boot.lds.debug +2 -2
index 919eb21..282738b 100644
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/vsprintf.o	(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
 
     . = env_offset;
board/xes/xpedite1000/u-boot.lds.debug +2 -2
index 0830d0a..555e1ac 100644
@@ -64,9 +64,9 @@ SECTIONS
     cpu/ppc4xx/cpu_init.o	(.text)
     cpu/ppc4xx/speed.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/crc32.o		(.text)
     arch/ppc/lib/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/zlib.o		(.text)
 
 /*    common/env_embedded.o(.text) */
 
board/xes/xpedite5170/u-boot.lds +2 -2
index 648efa2..7f04124 100644
@@ -57,9 +57,9 @@ SECTIONS
     cpu/mpc86xx/cpu.o (.text)
     cpu/mpc86xx/speed.o (.text)
     common/dlmalloc.o (.text)
-    lib_generic/crc32.o (.text)
+    lib/crc32.o (.text)
     arch/ppc/lib/extable.o (.text)
-    lib_generic/zlib.o (.text)
+    lib/zlib.o (.text)
     *(.text)
     *(.got1)
    }
cpu/mpc5xxx/u-boot-customlayout.lds +1 -1
index c08c9c9..6c80139 100644
@@ -57,7 +57,7 @@ SECTIONS
 
     cpu/mpc5xxx/start.o          (.text)
     cpu/mpc5xxx/traps.o          (.text)
-    lib_generic/crc32.o         (.text)
+    lib/crc32.o         (.text)
     arch/ppc/lib/cache.o             (.text)
     arch/ppc/lib/time.o              (.text)
 
examples/api/Makefile +7 -7
index 62751ec..bed16f1 100644
@@ -40,12 +40,12 @@ COBJ_FILES-$(CONFIG_API) += glue.o
 COBJ_FILES-$(CONFIG_API) += libgenwrap.o
 
 # Source files which exist outside the examples/api directory
-EXT_COBJ_FILES-$(CONFIG_API) += lib_generic/crc32.o
-EXT_COBJ_FILES-$(CONFIG_API) += lib_generic/ctype.o
-EXT_COBJ_FILES-$(CONFIG_API) += lib_generic/div64.o
-EXT_COBJ_FILES-$(CONFIG_API) += lib_generic/string.o
-EXT_COBJ_FILES-$(CONFIG_API) += lib_generic/time.o
-EXT_COBJ_FILES-$(CONFIG_API) += lib_generic/vsprintf.o
+EXT_COBJ_FILES-$(CONFIG_API) += lib/crc32.o
+EXT_COBJ_FILES-$(CONFIG_API) += lib/ctype.o
+EXT_COBJ_FILES-$(CONFIG_API) += lib/div64.o
+EXT_COBJ_FILES-$(CONFIG_API) += lib/string.o
+EXT_COBJ_FILES-$(CONFIG_API) += lib/time.o
+EXT_COBJ_FILES-$(CONFIG_API) += lib/vsprintf.o
 ifeq ($(ARCH),ppc)
 EXT_SOBJ_FILES-$(CONFIG_API) += arch/ppc/lib/ppcstring.o
 endif
@@ -75,7 +75,7 @@ $(OUTPUT):	$(OBJS)
 		$(OBJCOPY) -O binary $@ $(OUTPUT).bin 2>/dev/null
 
 # Rule to build generic library C files
-$(obj)%.o: $(SRCTREE)/lib_generic/%.c
+$(obj)%.o: $(SRCTREE)/lib/%.c
 	$(CC) -g $(CFLAGS) -c -o $@ $<
 
 # Rule to build architecture-specific library assembly files
examples/api/libgenwrap.c +1 -1
index 2b107d9..b435dde 100644
@@ -23,7 +23,7 @@
  *
  *
  * This is is a set of wrappers/stubs that allow to use certain routines from
- * U-Boot's lib_generic in the standalone app. This way way we can re-use
+ * U-Boot's lib in the standalone app. This way way we can re-use
  * existing code e.g. operations on strings and similar.
  *
  */
include/common.h +6 -6
index 7aa910d..df956bb 100644
@@ -620,22 +620,22 @@ ulong	usec2ticks    (unsigned long usec);
 ulong	ticks2usec    (unsigned long ticks);
 int	init_timebase (void);
 
-/* lib_generic/gunzip.c */
+/* lib/gunzip.c */
 int gunzip(void *, int, unsigned char *, unsigned long *);
 int zunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp,
 						int stoponerr, int offset);
 
-/* lib_generic/net_utils.c */
+/* lib/net_utils.c */
 #include <net.h>
 static inline IPaddr_t getenv_IPaddr (char *var)
 {
 	return (string_to_ip(getenv(var)));
 }
 
-/* lib_generic/time.c */
+/* lib/time.c */
 void	udelay        (unsigned long);
 
-/* lib_generic/vsprintf.c */
+/* lib/vsprintf.c */
 ulong	simple_strtoul(const char *cp,char **endp,unsigned int base);
 unsigned long long	simple_strtoull(const char *cp,char **endp,unsigned int base);
 long	simple_strtol(const char *cp,char **endp,unsigned int base);
@@ -645,10 +645,10 @@ int	sprintf(char * buf, const char *fmt, ...)
 		__attribute__ ((format (__printf__, 2, 3)));
 int	vsprintf(char *buf, const char *fmt, va_list args);
 
-/* lib_generic/strmhz.c */
+/* lib/strmhz.c */
 char *	strmhz(char *buf, long hz);
 
-/* lib_generic/crc32.c */
+/* lib/crc32.c */
 #include <u-boot/crc.h>
 
 /* common/console.c */
include/configs/bf533-stamp.h +1 -1
index 083c030..0b94f55 100644
@@ -130,7 +130,7 @@
 	cpu/blackfin/interrupt.o	(.text .text.*); \
 	cpu/blackfin/serial.o		(.text .text.*); \
 	common/dlmalloc.o		(.text .text.*); \
-	lib_generic/crc32.o		(.text .text.*); \
+	lib/crc32.o		(.text .text.*); \
 	. = DEFINED(env_offset) ? env_offset : .; \
 	common/env_embedded.o		(.text .text.*);
 #endif
include/configs/bf537-pnav.h +1 -1
index 6627a04..8038c40 100644
@@ -116,7 +116,7 @@
 	cpu/blackfin/interrupt.o	(.text .text.*); \
 	cpu/blackfin/serial.o		(.text .text.*); \
 	common/dlmalloc.o		(.text .text.*); \
-	lib_generic/crc32.o		(.text .text.*); \
+	lib/crc32.o		(.text .text.*); \
 	. = DEFINED(env_offset) ? env_offset : .; \
 	common/env_embedded.o		(.text .text.*);
 #endif
include/configs/bf537-stamp.h +1 -1
index de2add7..36e5261 100644
@@ -126,7 +126,7 @@
 	cpu/blackfin/interrupt.o	(.text .text.*); \
 	cpu/blackfin/serial.o		(.text .text.*); \
 	common/dlmalloc.o		(.text .text.*); \
-	lib_generic/crc32.o		(.text .text.*); \
+	lib/crc32.o		(.text .text.*); \
 	. = DEFINED(env_offset) ? env_offset : .; \
 	common/env_embedded.o		(.text .text.*);
 #endif
include/configs/bf538f-ezkit.h +1 -1
index 4ea2300..696fe29 100644
@@ -123,7 +123,7 @@
 	cpu/blackfin/interrupt.o	(.text .text.*); \
 	cpu/blackfin/serial.o		(.text .text.*); \
 	common/dlmalloc.o		(.text .text.*); \
-	lib_generic/crc32.o		(.text .text.*); \
+	lib/crc32.o		(.text .text.*); \
 	. = DEFINED(env_offset) ? env_offset : .; \
 	common/env_embedded.o		(.text .text.*);
 #endif
include/configs/bf561-ezkit.h +2 -2
index 8ab38bb..fca6e43 100644
@@ -100,8 +100,8 @@
 	cpu/blackfin/interrupt.o	(.text .text.*); \
 	cpu/blackfin/serial.o		(.text .text.*); \
 	common/dlmalloc.o		(.text .text.*); \
-	lib_generic/crc32.o		(.text .text.*); \
-	lib_generic/zlib.o		(.text .text.*); \
+	lib/crc32.o		(.text .text.*); \
+	lib/zlib.o		(.text .text.*); \
 	board/bf561-ezkit/bf561-ezkit.o	(.text .text.*); \
 	. = DEFINED(env_offset) ? env_offset : .; \
 	common/env_embedded.o		(.text .text.*);
include/configs/cm-bf537e.h +1 -1
index 0d68eba..d86409f 100644
@@ -108,7 +108,7 @@
 	cpu/blackfin/interrupt.o	(.text .text.*); \
 	cpu/blackfin/serial.o		(.text .text.*); \
 	common/dlmalloc.o		(.text .text.*); \
-	lib_generic/crc32.o		(.text .text.*); \
+	lib/crc32.o		(.text .text.*); \
 	. = DEFINED(env_offset) ? env_offset : .; \
 	common/env_embedded.o		(.text .text.*);
 #endif
include/configs/cm-bf537u.h +1 -1
index c1179b0..6be9dba 100644
@@ -109,7 +109,7 @@
 	cpu/blackfin/interrupt.o	(.text .text.*); \
 	cpu/blackfin/serial.o		(.text .text.*); \
 	common/dlmalloc.o		(.text .text.*); \
-	lib_generic/crc32.o		(.text .text.*); \
+	lib/crc32.o		(.text .text.*); \
 	. = DEFINED(env_offset) ? env_offset : .; \
 	common/env_embedded.o		(.text .text.*);
 #endif
include/configs/ibf-dsp561.h +2 -2
index 7c9f71e..6fa8cf7 100644
@@ -88,8 +88,8 @@
 	cpu/blackfin/interrupt.o	(.text .text.*); \
 	cpu/blackfin/serial.o		(.text .text.*); \
 	common/dlmalloc.o		(.text .text.*); \
-	lib_generic/crc32.o		(.text .text.*); \
-	lib_generic/zlib.o		(.text .text.*); \
+	lib/crc32.o		(.text .text.*); \
+	lib/zlib.o		(.text .text.*); \
 	board/ibf-dsp561/ibf-dsp561.o	(.text .text.*); \
 	. = DEFINED(env_offset) ? env_offset : .; \
 	common/env_embedded.o		(.text .text.*);
include/configs/tcm-bf537.h +1 -1
index 5a5fbdd..e9dfcc9 100644
@@ -109,7 +109,7 @@
 	cpu/blackfin/interrupt.o	(.text .text.*); \
 	cpu/blackfin/serial.o		(.text .text.*); \
 	common/dlmalloc.o		(.text .text.*); \
-	lib_generic/crc32.o		(.text .text.*); \
+	lib/crc32.o		(.text .text.*); \
 	. = DEFINED(env_offset) ? env_offset : .; \
 	common/env_embedded.o		(.text .text.*);
 #endif
include/lzma/LzmaDec.h +1 -1
index 967cdd1..b7ef6d6 100644
@@ -26,6 +26,6 @@
 #ifndef __LZMADEC_H__FAKE__
 #define __LZMADEC_H__FAKE__
 
-#include "../../lib_generic/lzma/LzmaDec.h"
+#include "../../lib/lzma/LzmaDec.h"
 
 #endif
include/lzma/LzmaTools.h +1 -1
index 87943c0..48b0af8 100644
@@ -26,6 +26,6 @@
 #ifndef __LZMATOOLS_H__FAKE__
 #define __LZMATOOLS_H__FAKE__
 
-#include "../../lib_generic/lzma/LzmaTools.h"
+#include "../../lib/lzma/LzmaTools.h"
 
 #endif
include/lzma/LzmaTypes.h +1 -1
index 86160a4..740720c 100644
@@ -31,6 +31,6 @@
  */
 #define Byte LZByte
 
-#include "../../lib_generic/lzma/Types.h"
+#include "../../lib/lzma/Types.h"
 
 #endif
include/u-boot/crc.h +1 -1
index 61bce67..07badbf 100644
@@ -25,7 +25,7 @@
 #ifndef _UBOOT_CRC_H
 #define _UBOOT_CRC_H
 
-/* lib_generic/crc32.c */
+/* lib/crc32.c */
 uint32_t crc32 (uint32_t, const unsigned char *, uint);
 uint32_t crc32_wd (uint32_t, const unsigned char *, uint, uint);
 uint32_t crc32_no_comp (uint32_t, const unsigned char *, uint);
lib/Makefile renamed from lib_generic/Makefile +0 -0
similarity index 100%
rename from lib_generic/Makefile
rename to lib/Makefile
lib/addr_map.c renamed from lib_generic/addr_map.c +0 -0
similarity index 100%
rename from lib_generic/addr_map.c
rename to lib/addr_map.c
lib/bzlib.c renamed from lib_generic/bzlib.c +0 -0
similarity index 100%
rename from lib_generic/bzlib.c
rename to lib/bzlib.c
lib/bzlib_crctable.c renamed from lib_generic/bzlib_crctable.c +0 -0
similarity index 100%
rename from lib_generic/bzlib_crctable.c
rename to lib/bzlib_crctable.c
lib/bzlib_decompress.c renamed from lib_generic/bzlib_decompress.c +0 -0
similarity index 100%
rename from lib_generic/bzlib_decompress.c
rename to lib/bzlib_decompress.c
lib/bzlib_huffman.c renamed from lib_generic/bzlib_huffman.c +0 -0
similarity index 100%
rename from lib_generic/bzlib_huffman.c
rename to lib/bzlib_huffman.c
lib/bzlib_private.h renamed from lib_generic/bzlib_private.h +0 -0
similarity index 100%
rename from lib_generic/bzlib_private.h
rename to lib/bzlib_private.h
lib/bzlib_randtable.c renamed from lib_generic/bzlib_randtable.c +0 -0
similarity index 100%
rename from lib_generic/bzlib_randtable.c
rename to lib/bzlib_randtable.c
lib/circbuf.c renamed from lib_generic/circbuf.c +0 -0
similarity index 100%
rename from lib_generic/circbuf.c
rename to lib/circbuf.c
lib/crc16.c renamed from lib_generic/crc16.c +0 -0
similarity index 100%
rename from lib_generic/crc16.c
rename to lib/crc16.c
lib/crc32.c renamed from lib_generic/crc32.c +0 -0
similarity index 100%
rename from lib_generic/crc32.c
rename to lib/crc32.c
lib/ctype.c renamed from lib_generic/ctype.c +0 -0
similarity index 100%
rename from lib_generic/ctype.c
rename to lib/ctype.c
lib/display_options.c renamed from lib_generic/display_options.c +0 -0
similarity index 100%
rename from lib_generic/display_options.c
rename to lib/display_options.c
lib/div64.c renamed from lib_generic/div64.c +0 -0
similarity index 100%
rename from lib_generic/div64.c
rename to lib/div64.c
lib/gunzip.c renamed from lib_generic/gunzip.c +0 -0
similarity index 100%
rename from lib_generic/gunzip.c
rename to lib/gunzip.c
lib/ldiv.c renamed from lib_generic/ldiv.c +0 -0
similarity index 100%
rename from lib_generic/ldiv.c
rename to lib/ldiv.c
lib/lmb.c renamed from lib_generic/lmb.c +0 -0
similarity index 100%
rename from lib_generic/lmb.c
rename to lib/lmb.c
lib/lzma/LzmaDec.c renamed from lib_generic/lzma/LzmaDec.c +0 -0
similarity index 100%
rename from lib_generic/lzma/LzmaDec.c
rename to lib/lzma/LzmaDec.c
lib/lzma/LzmaDec.h renamed from lib_generic/lzma/LzmaDec.h +0 -0
similarity index 100%
rename from lib_generic/lzma/LzmaDec.h
rename to lib/lzma/LzmaDec.h
lib/lzma/LzmaTools.c renamed from lib_generic/lzma/LzmaTools.c +0 -0
similarity index 100%
rename from lib_generic/lzma/LzmaTools.c
rename to lib/lzma/LzmaTools.c
lib/lzma/LzmaTools.h renamed from lib_generic/lzma/LzmaTools.h +0 -0
similarity index 100%
rename from lib_generic/lzma/LzmaTools.h
rename to lib/lzma/LzmaTools.h
lib/lzma/Makefile renamed from lib_generic/lzma/Makefile +0 -0
similarity index 100%
rename from lib_generic/lzma/Makefile
rename to lib/lzma/Makefile
lib/lzma/README.txt renamed from lib_generic/lzma/README.txt +0 -0
similarity index 100%
rename from lib_generic/lzma/README.txt
rename to lib/lzma/README.txt
lib/lzma/Types.h renamed from lib_generic/lzma/Types.h +0 -0
similarity index 100%
rename from lib_generic/lzma/Types.h
rename to lib/lzma/Types.h
lib/lzma/history.txt renamed from lib_generic/lzma/history.txt +0 -0
similarity index 100%
rename from lib_generic/lzma/history.txt
rename to lib/lzma/history.txt
lib/lzma/import_lzmasdk.sh renamed from lib_generic/lzma/import_lzmasdk.sh +0 -0
similarity index 100%
rename from lib_generic/lzma/import_lzmasdk.sh
rename to lib/lzma/import_lzmasdk.sh
lib/lzma/license.txt renamed from lib_generic/lzma/license.txt +0 -0
similarity index 100%
rename from lib_generic/lzma/license.txt
rename to lib/lzma/license.txt
lib/lzma/lzma.txt renamed from lib_generic/lzma/lzma.txt +0 -0
similarity index 100%
rename from lib_generic/lzma/lzma.txt
rename to lib/lzma/lzma.txt
lib/lzo/Makefile renamed from lib_generic/lzo/Makefile +0 -0
similarity index 100%
rename from lib_generic/lzo/Makefile
rename to lib/lzo/Makefile
lib/lzo/lzo1x_decompress.c renamed from lib_generic/lzo/lzo1x_decompress.c +0 -0
similarity index 100%
rename from lib_generic/lzo/lzo1x_decompress.c
rename to lib/lzo/lzo1x_decompress.c
lib/lzo/lzodefs.h renamed from lib_generic/lzo/lzodefs.h +0 -0
similarity index 100%
rename from lib_generic/lzo/lzodefs.h
rename to lib/lzo/lzodefs.h
lib/md5.c renamed from lib_generic/md5.c +0 -0
similarity index 100%
rename from lib_generic/md5.c
rename to lib/md5.c
lib/net_utils.c renamed from lib_generic/net_utils.c +0 -0
similarity index 100%
rename from lib_generic/net_utils.c
rename to lib/net_utils.c
lib/rbtree.c renamed from lib_generic/rbtree.c +0 -0
similarity index 100%
rename from lib_generic/rbtree.c
rename to lib/rbtree.c
lib/sha1.c renamed from lib_generic/sha1.c +0 -0
similarity index 100%
rename from lib_generic/sha1.c
rename to lib/sha1.c
lib/sha256.c renamed from lib_generic/sha256.c +0 -0
similarity index 100%
rename from lib_generic/sha256.c
rename to lib/sha256.c
lib/string.c renamed from lib_generic/string.c +0 -0
similarity index 100%
rename from lib_generic/string.c
rename to lib/string.c
lib/strmhz.c renamed from lib_generic/strmhz.c +0 -0
similarity index 100%
rename from lib_generic/strmhz.c
rename to lib/strmhz.c
lib/time.c renamed from lib_generic/time.c +0 -0
similarity index 100%
rename from lib_generic/time.c
rename to lib/time.c
lib/vsprintf.c renamed from lib_generic/vsprintf.c +0 -0
similarity index 100%
rename from lib_generic/vsprintf.c
rename to lib/vsprintf.c
lib/zlib.c renamed from lib_generic/zlib.c +0 -0
similarity index 100%
rename from lib_generic/zlib.c
rename to lib/zlib.c
tools/Makefile +4 -4
index 743505f..a6f11c9 100644
@@ -68,9 +68,9 @@ BIN_FILES-$(CONFIG_SHA1_CHECK_UB_IMG) += ubsha1$(SFX)
 # Source files which exist outside the tools directory
 EXT_OBJ_FILES-y += common/env_embedded.o
 EXT_OBJ_FILES-y += common/image.o
-EXT_OBJ_FILES-y += lib_generic/crc32.o
-EXT_OBJ_FILES-y += lib_generic/md5.o
-EXT_OBJ_FILES-y += lib_generic/sha1.o
+EXT_OBJ_FILES-y += lib/crc32.o
+EXT_OBJ_FILES-y += lib/md5.o
+EXT_OBJ_FILES-y += lib/sha1.o
 
 # Source files located in the tools directory
 OBJ_FILES-$(CONFIG_LCD_LOGO) += bmp_logo.o
@@ -196,7 +196,7 @@ $(obj)ubsha1$(SFX):	$(obj)os_support.o $(obj)sha1.o $(obj)ubsha1.o
 $(obj)%.o: $(SRCTREE)/common/%.c
 	$(HOSTCC) -g $(HOSTCFLAGS_NOPED) -c -o $@ $<
 
-$(obj)%.o: $(SRCTREE)/lib_generic/%.c
+$(obj)%.o: $(SRCTREE)/lib/%.c
 	$(HOSTCC) -g $(HOSTCFLAGS) -c -o $@ $<
 
 $(obj)%.o: $(SRCTREE)/libfdt/%.c
tools/env/Makefile +1 -1
index 9629ee5..2df631e 100644
@@ -41,7 +41,7 @@ clean:
 	rm -f $(obj)fw_printenv $(obj)crc32.c
 
 $(obj)crc32.c:
-	ln -s $(src)../../lib_generic/crc32.c $(obj)crc32.c
+	ln -s $(src)../../lib/crc32.c $(obj)crc32.c
 
 #########################################################################
 
tools/imls/Makefile +4 -4
index 9b2afb0..82c2728 100644
@@ -23,9 +23,9 @@ include $(TOPDIR)/config.mk
 BIN_FILES-y += imls
 
 # Source files which exist outside the tools/imls directory
-EXT_OBJ_FILES-y += lib_generic/crc32.o
-EXT_OBJ_FILES-y += lib_generic/md5.o
-EXT_OBJ_FILES-y += lib_generic/sha1.o
+EXT_OBJ_FILES-y += lib/crc32.o
+EXT_OBJ_FILES-y += lib/md5.o
+EXT_OBJ_FILES-y += lib/sha1.o
 EXT_OBJ_FILES-y += common/image.o
 
 # Source files located in the tools/imls directory
@@ -78,7 +78,7 @@ $(obj)imls.o: $(SRCTREE)/tools/imls/imls.c
 $(obj)%.o: $(SRCTREE)/common/%.c
 	$(CC) -g $(HOSTCFLAGS_NOPED) -c -o $@ $<
 
-$(obj)%.o: $(SRCTREE)/lib_generic/%.c
+$(obj)%.o: $(SRCTREE)/lib/%.c
 	$(CC) -g $(HOSTCFLAGS) -c -o $@ $<
 
 $(obj)%.o: $(SRCTREE)/libfdt/%.c
Signature · 1 line
1.6.2.1
#5 lore raw

PATCH v2 5/20 Move libfdt/ into lib/

In reply to Peter Tyser

Move the libfdt directory into the common lib/ directory to clean up the top-level directory.

---
 Makefile                                 |    2 +-
 {libfdt => lib/libfdt}/Makefile          |    0
 {libfdt => lib/libfdt}/README            |    0
 {libfdt => lib/libfdt}/fdt.c             |    0
 {libfdt => lib/libfdt}/fdt_ro.c          |    0
 {libfdt => lib/libfdt}/fdt_rw.c          |    0
 {libfdt => lib/libfdt}/fdt_strerror.c    |    0
 {libfdt => lib/libfdt}/fdt_sw.c          |    0
 {libfdt => lib/libfdt}/fdt_wip.c         |    0
 {libfdt => lib/libfdt}/libfdt_internal.h |    0
 tools/Makefile                           |    6 +++---
 tools/imls/Makefile                      |    6 +++---
 12 files changed, 7 insertions(+), 7 deletions(-)
 rename {libfdt => lib/libfdt}/Makefile (100%)
 rename {libfdt => lib/libfdt}/README (100%)
 rename {libfdt => lib/libfdt}/fdt.c (100%)
 rename {libfdt => lib/libfdt}/fdt_ro.c (100%)
 rename {libfdt => lib/libfdt}/fdt_rw.c (100%)
 rename {libfdt => lib/libfdt}/fdt_strerror.c (100%)
 rename {libfdt => lib/libfdt}/fdt_sw.c (100%)
 rename {libfdt => lib/libfdt}/fdt_wip.c (100%)
 rename {libfdt => lib/libfdt}/libfdt_internal.h (100%)
Makefile +1 -1
index 6b0d0ab..7c96282 100644
@@ -244,7 +244,7 @@ LIBS += drivers/usb/phy/libusb_phy.a
 LIBS += drivers/video/libvideo.a
 LIBS += drivers/watchdog/libwatchdog.a
 LIBS += common/libcommon.a
-LIBS += libfdt/libfdt.a
+LIBS += lib/libfdt/libfdt.a
 LIBS += api/libapi.a
 LIBS += post/libpost.a
 
lib/libfdt/Makefile renamed from libfdt/Makefile +0 -0
similarity index 100%
rename from libfdt/Makefile
rename to lib/libfdt/Makefile
lib/libfdt/README renamed from libfdt/README +0 -0
similarity index 100%
rename from libfdt/README
rename to lib/libfdt/README
lib/libfdt/fdt.c renamed from libfdt/fdt.c +0 -0
similarity index 100%
rename from libfdt/fdt.c
rename to lib/libfdt/fdt.c
lib/libfdt/fdt_ro.c renamed from libfdt/fdt_ro.c +0 -0
similarity index 100%
rename from libfdt/fdt_ro.c
rename to lib/libfdt/fdt_ro.c
lib/libfdt/fdt_rw.c renamed from libfdt/fdt_rw.c +0 -0
similarity index 100%
rename from libfdt/fdt_rw.c
rename to lib/libfdt/fdt_rw.c
lib/libfdt/fdt_strerror.c renamed from libfdt/fdt_strerror.c +0 -0
similarity index 100%
rename from libfdt/fdt_strerror.c
rename to lib/libfdt/fdt_strerror.c
lib/libfdt/fdt_sw.c renamed from libfdt/fdt_sw.c +0 -0
similarity index 100%
rename from libfdt/fdt_sw.c
rename to lib/libfdt/fdt_sw.c
lib/libfdt/fdt_wip.c renamed from libfdt/fdt_wip.c +0 -0
similarity index 100%
rename from libfdt/fdt_wip.c
rename to lib/libfdt/fdt_wip.c
lib/libfdt/libfdt_internal.h renamed from libfdt/libfdt_internal.h +0 -0
similarity index 100%
rename from libfdt/libfdt_internal.h
rename to lib/libfdt/libfdt_internal.h
tools/Makefile +3 -3
index a6f11c9..749d994 100644
@@ -122,7 +122,7 @@ endif
 # now $(obj) is defined
 HOSTSRCS += $(addprefix $(SRCTREE)/,$(EXT_OBJ_FILES-y:.o=.c))
 HOSTSRCS += $(addprefix $(SRCTREE)/tools/,$(OBJ_FILES-y:.o=.c))
-HOSTSRCS += $(addprefix $(SRCTREE)/libfdt/,$(LIBFDT_OBJ_FILES-y:.o=.c))
+HOSTSRCS += $(addprefix $(SRCTREE)/lib/libfdt/,$(LIBFDT_OBJ_FILES-y:.o=.c))
 BINS	:= $(addprefix $(obj),$(sort $(BIN_FILES-y)))
 LIBFDT_OBJS	:= $(addprefix $(obj),$(LIBFDT_OBJ_FILES-y))
 
@@ -136,7 +136,7 @@ NOPEDOBJS := $(addprefix $(obj),$(NOPED_OBJ_FILES-y))
 HOSTCPPFLAGS =	-idirafter $(SRCTREE)/include \
 		-idirafter $(OBJTREE)/include2 \
 		-idirafter $(OBJTREE)/include \
-	        -I $(SRCTREE)/libfdt \
+	        -I $(SRCTREE)/lib/libfdt \
 		-I $(SRCTREE)/tools \
 		-DTEXT_BASE=$(TEXT_BASE) -DUSE_HOSTCC \
 		-D__KERNEL_STRICT_NAMES
@@ -199,7 +199,7 @@ $(obj)%.o: $(SRCTREE)/common/%.c
 $(obj)%.o: $(SRCTREE)/lib/%.c
 	$(HOSTCC) -g $(HOSTCFLAGS) -c -o $@ $<
 
-$(obj)%.o: $(SRCTREE)/libfdt/%.c
+$(obj)%.o: $(SRCTREE)/lib/libfdt/%.c
 	$(HOSTCC) -g $(HOSTCFLAGS_NOPED) -c -o $@ $<
 
 subdirs:
tools/imls/Makefile +3 -3
index 82c2728..8407277 100644
@@ -41,7 +41,7 @@ LIBFDT_OBJ_FILES-y += fdt_wip.o
 # now $(obj) is defined
 SRCS	+= $(addprefix $(SRCTREE)/,$(EXT_OBJ_FILES-y:.o=.c))
 SRCS	+= $(addprefix $(SRCTREE)/tools/,$(OBJ_FILES-y:.o=.c))
-SRCS	+= $(addprefix $(SRCTREE)/libfdt/,$(LIBFDT_OBJ_FILES-y:.o=.c))
+SRCS	+= $(addprefix $(SRCTREE)/lib/libfdt/,$(LIBFDT_OBJ_FILES-y:.o=.c))
 BINS	:= $(addprefix $(obj),$(sort $(BIN_FILES-y)))
 LIBFDT_OBJS	:= $(addprefix $(obj),$(LIBFDT_OBJ_FILES-y))
 
@@ -52,7 +52,7 @@ LIBFDT_OBJS	:= $(addprefix $(obj),$(LIBFDT_OBJ_FILES-y))
 HOSTCPPFLAGS  = -idirafter $(SRCTREE)/include \
 		-idirafter $(OBJTREE)/include2 \
 		-idirafter $(OBJTREE)/include \
-	        -I $(SRCTREE)/libfdt \
+	        -I $(SRCTREE)/lib/libfdt \
 		-I $(SRCTREE)/tools \
 		-DUSE_HOSTCC -D__KERNEL_STRICT_NAMES
 
@@ -81,7 +81,7 @@ $(obj)%.o: $(SRCTREE)/common/%.c
 $(obj)%.o: $(SRCTREE)/lib/%.c
 	$(CC) -g $(HOSTCFLAGS) -c -o $@ $<
 
-$(obj)%.o: $(SRCTREE)/libfdt/%.c
+$(obj)%.o: $(SRCTREE)/lib/libfdt/%.c
 	$(CC) -g $(HOSTCFLAGS_NOPED) -c -o $@ $<
 
 clean:
Signature · 1 line
1.6.2.1
#6 lore raw

PATCH v2 6/20 Replace "#include <asm-$ARCH/$FILE>" with "#include <asm/$FILE>"

In reply to Peter Tyser

The appropriate include/asm-$ARCH directory should already by symlinked to include/asm so using the whole "asm-$ARCH" path is unnecessary.

This change should also allow us to move the include/asm-$ARCH directories into their appropriate lib/$ARCH/ directories.

---
 board/amcc/bamboo/init.S                        |    2 +-
 board/amcc/canyonlands/init.S                   |    2 +-
 board/amcc/ebony/init.S                         |    2 +-
 board/amcc/katmai/init.S                        |    2 +-
 board/amcc/luan/init.S                          |    2 +-
 board/amcc/ocotea/init.S                        |    2 +-
 board/amcc/redwood/init.S                       |    2 +-
 board/amcc/redwood/redwood.c                    |    2 +-
 board/amcc/sequoia/init.S                       |    2 +-
 board/amcc/yucca/init.S                         |    2 +-
 board/bf537-stamp/cmd_bf537led.c                |    2 +-
 board/esd/du440/init.S                          |    2 +-
 board/esd/pmc440/init.S                         |    2 +-
 board/galaxy5200/galaxy5200.c                   |    2 +-
 board/gdsys/intip/init.S                        |    2 +-
 board/korat/init.S                              |    2 +-
 board/lwmon5/init.S                             |    2 +-
 board/m501sk/m501sk.h                           |    6 +++---
 board/netstal/hcu4/hcu4.c                       |    2 +-
 board/netstal/mcu25/mcu25.c                     |    2 +-
 board/phytec/pcm030/pcm030.c                    |    2 +-
 board/pleb2/pleb2.c                             |    2 +-
 board/prodrive/alpr/fpga.c                      |    2 +-
 board/sandburst/common/ppc440gx_i2c.c           |    2 +-
 board/tqc/tqm834x/tqm834x.c                     |    2 +-
 board/xilinx/ppc440-generic/init.S              |    2 +-
 cpu/ppc4xx/4xx_pcie.c                           |    2 +-
 cpu/ppc4xx/i2c.c                                |    2 +-
 include/asm-arm/arch-arm720t/hardware.h         |    2 +-
 include/asm-arm/arch-lpc2292/hardware.h         |    2 +-
 nand_spl/board/freescale/mpc8569mds/nand_boot.c |    2 +-
 nand_spl/board/freescale/p1_p2_rdb/nand_boot.c  |    2 +-
 nand_spl/nand_boot_fsl_nfc.c                    |    4 ++--
 33 files changed, 36 insertions(+), 36 deletions(-)
board/amcc/bamboo/init.S +1 -1
index a5c9d6d..7439c80 100644
@@ -25,7 +25,7 @@
 
 #include <ppc_asm.tmpl>
 #include <config.h>
-#include <asm-ppc/mmu.h>
+#include <asm/mmu.h>
 
 /**************************************************************************
  * TLB TABLE
board/amcc/canyonlands/init.S +1 -1
index 0b66796..993bec3 100644
@@ -23,7 +23,7 @@
 
 #include <ppc_asm.tmpl>
 #include <config.h>
-#include <asm-ppc/mmu.h>
+#include <asm/mmu.h>
 
 /**************************************************************************
  * TLB TABLE
board/amcc/ebony/init.S +1 -1
index 811a96a..153fa81 100644
@@ -22,7 +22,7 @@
 
 #include <ppc_asm.tmpl>
 #include <config.h>
-#include <asm-ppc/mmu.h>
+#include <asm/mmu.h>
 
 /**************************************************************************
  * TLB TABLE
board/amcc/katmai/init.S +1 -1
index 1c74a82..90598f6 100644
@@ -25,7 +25,7 @@
 
 #include <ppc_asm.tmpl>
 #include <config.h>
-#include <asm-ppc/mmu.h>
+#include <asm/mmu.h>
 
 /**************************************************************************
  * TLB TABLE
board/amcc/luan/init.S +1 -1
index fb54dea..513b0fc 100644
@@ -25,7 +25,7 @@
 
 #include <ppc_asm.tmpl>
 #include <config.h>
-#include <asm-ppc/mmu.h>
+#include <asm/mmu.h>
 
 /**************************************************************************
  * TLB TABLE
board/amcc/ocotea/init.S +1 -1
index 8bcfbb1..e7c75df 100644
@@ -22,7 +22,7 @@
 
 #include <ppc_asm.tmpl>
 #include <config.h>
-#include <asm-ppc/mmu.h>
+#include <asm/mmu.h>
 
 /**************************************************************************
  * TLB TABLE
board/amcc/redwood/init.S +1 -1
index 363d793..4da5869 100644
@@ -23,7 +23,7 @@
 
 #include <ppc_asm.tmpl>
 #include <config.h>
-#include <asm-ppc/mmu.h>
+#include <asm/mmu.h>
 
 /**************************************************************************
  * TLB TABLE
board/amcc/redwood/redwood.c +1 -1
index bc8cb0c..32fb8c5 100644
@@ -29,7 +29,7 @@
 #include <ppc4xx.h>
 #include <asm/processor.h>
 #include <i2c.h>
-#include <asm-ppc/io.h>
+#include <asm/io.h>
 
 int compare_to_true(char *str);
 char *remove_l_w_space(char *in_str);
board/amcc/sequoia/init.S +1 -1
index 3c0e400..f090070 100644
@@ -22,7 +22,7 @@
  */
 
 #include <ppc_asm.tmpl>
-#include <asm-ppc/mmu.h>
+#include <asm/mmu.h>
 #include <config.h>
 
 /*
board/amcc/yucca/init.S +1 -1
index 9308fda..f51035f 100644
@@ -25,7 +25,7 @@
 
 #include <ppc_asm.tmpl>
 #include <config.h>
-#include <asm-ppc/mmu.h>
+#include <asm/mmu.h>
 
 /**************************************************************************
  * TLB TABLE
board/bf537-stamp/cmd_bf537led.c +1 -1
index e65c4f8..317f088 100644
@@ -25,7 +25,7 @@
 #include <config.h>
 #include <command.h>
 #include <asm/blackfin.h>
-#include <asm-blackfin/string.h>
+#include <asm/string.h>
 #ifdef CONFIG_BF537_STAMP_LEDCMD
 
 /* Define the command usage in a reusable way */
board/esd/du440/init.S +1 -1
index 3cac6b1..afcf9c4 100644
@@ -22,7 +22,7 @@
  */
 
 #include <ppc_asm.tmpl>
-#include <asm-ppc/mmu.h>
+#include <asm/mmu.h>
 #include <config.h>
 
 /*
board/esd/pmc440/init.S +1 -1
index 6585fed..d51cd0c 100644
@@ -20,7 +20,7 @@
  */
 
 #include <ppc_asm.tmpl>
-#include <asm-ppc/mmu.h>
+#include <asm/mmu.h>
 #include <config.h>
 
 /*
board/galaxy5200/galaxy5200.c +1 -1
index 5aa9d3a..d4a2245 100644
@@ -33,7 +33,7 @@
 #include <common.h>
 #include <mpc5xxx.h>
 #include <pci.h>
-#include <asm-ppc/io.h>
+#include <asm/io.h>
 
 #ifndef CONFIG_SYS_RAMBOOT
 static void sdram_start(int hi_addr)
board/gdsys/intip/init.S +1 -1
index e205c9d..a8e8b6c 100644
@@ -27,7 +27,7 @@
 
 #include <ppc_asm.tmpl>
 #include <config.h>
-#include <asm-ppc/mmu.h>
+#include <asm/mmu.h>
 
 /**************************************************************************
  * TLB TABLE
board/korat/init.S +1 -1
index ea43a1f..c725bbb 100644
@@ -20,7 +20,7 @@
  */
 
 #include <ppc_asm.tmpl>
-#include <asm-ppc/mmu.h>
+#include <asm/mmu.h>
 #include <config.h>
 
 /**************************************************************************
board/lwmon5/init.S +1 -1
index 718cec6..c714fb7 100644
@@ -25,7 +25,7 @@
 
 #include <ppc_asm.tmpl>
 #include <config.h>
-#include <asm-ppc/mmu.h>
+#include <asm/mmu.h>
 
 /**************************************************************************
  * TLB TABLE
board/m501sk/m501sk.h +3 -3
index 42a6757..51d10f5 100644
@@ -1,5 +1,5 @@
 /*
- * linux/include/asm-arm/arch-at91/hardware.h
+ * linux/include/asm/arch-at91/hardware.h
  *
  *  Copyright (C) 2003 SAN People
  *
@@ -21,9 +21,9 @@
 #define __M501SK_H
 
 #ifndef __ASSEMBLY__
-#include <asm-arm/arch-at91rm9200/AT91RM9200.h>
+#include <asm/arch-at91rm9200/AT91RM9200.h>
 #else
-#include <asm-arm/arch-at91rm9200/AT91RM9200_inc.h>
+#include <asm/arch-at91rm9200/AT91RM9200_inc.h>
 #endif
 
 #define AT91C_PIO_PA22 ((unsigned int) 1 << 22) /* Pin Controlled by PA22 */
board/netstal/hcu4/hcu4.c +1 -1
index 3f07ff1..1c99405 100644
@@ -22,7 +22,7 @@
 #include  <ppc4xx.h>
 #include  <asm/processor.h>
 #include  <asm/io.h>
-#include  <asm-ppc/u-boot.h>
+#include  <asm/u-boot.h>
 #include  "../common/nm.h"
 
 DECLARE_GLOBAL_DATA_PTR;
board/netstal/mcu25/mcu25.c +1 -1
index cc2f998..87bc45e 100644
@@ -22,7 +22,7 @@
 #include  <ppc4xx.h>
 #include  <asm/processor.h>
 #include  <asm/io.h>
-#include  <asm-ppc/u-boot.h>
+#include  <asm/u-boot.h>
 #include  "../common/nm.h"
 
 DECLARE_GLOBAL_DATA_PTR;
board/phytec/pcm030/pcm030.c +1 -1
index 416d307..77ce389 100644
@@ -30,7 +30,7 @@
 #include <common.h>
 #include <mpc5xxx.h>
 #include <pci.h>
-#include <asm-ppc/io.h>
+#include <asm/io.h>
 
 #include "mt46v32m16-75.h"
 
board/pleb2/pleb2.c +1 -1
index dc6fac4..97c37ea 100644
@@ -26,7 +26,7 @@
  */
 
 #include <common.h>
-#include <asm-arm/mach-types.h>
+#include <asm/mach-types.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
board/prodrive/alpr/fpga.c +1 -1
index 7571cd9..f3bc1fa 100644
@@ -30,7 +30,7 @@
 #include <altera.h>
 #include <ACEX1K.h>
 #include <command.h>
-#include <asm-ppc/processor.h>
+#include <asm/processor.h>
 #include <ppc440.h>
 #include "fpga.h"
 
board/sandburst/common/ppc440gx_i2c.c +1 -1
index 35c4e60..dbc0cee 100644
@@ -31,7 +31,7 @@
 #include <i2c.h>
 #include <command.h>
 #include "ppc440gx_i2c.h"
-#include <asm-ppc/io.h>
+#include <asm/io.h>
 
 #ifdef CONFIG_I2C_BUS1
 
board/tqc/tqm834x/tqm834x.c +1 -1
index 4fd8cd6..e564879 100644
@@ -28,7 +28,7 @@
 #include <asm/mpc8349_pci.h>
 #include <i2c.h>
 #include <miiphy.h>
-#include <asm-ppc/mmu.h>
+#include <asm/mmu.h>
 #include <pci.h>
 
 DECLARE_GLOBAL_DATA_PTR;
board/xilinx/ppc440-generic/init.S +1 -1
index 1409467..54f2d7f 100644
@@ -19,7 +19,7 @@
 
 #include <ppc_asm.tmpl>
 #include <config.h>
-#include <asm-ppc/mmu.h>
+#include <asm/mmu.h>
 
 .section .bootpg,"ax"
 .globl tlbtab
cpu/ppc4xx/4xx_pcie.c +1 -1
index f3b9214..10b58b7 100644
@@ -29,7 +29,7 @@
 #include <pci.h>
 #include <ppc4xx.h>
 #include <asm/processor.h>
-#include <asm-ppc/io.h>
+#include <asm/io.h>
 #include <asm/errno.h>
 
 #if (defined(CONFIG_440SPE) || defined(CONFIG_405EX) ||	\
cpu/ppc4xx/i2c.c +1 -1
index 9b86187..e9548f1 100644
@@ -30,7 +30,7 @@
 #include <ppc4xx.h>
 #include <4xx_i2c.h>
 #include <i2c.h>
-#include <asm-ppc/io.h>
+#include <asm/io.h>
 
 #ifdef CONFIG_HARD_I2C
 
include/asm-arm/arch-arm720t/hardware.h +1 -1
index ec053c9..9bee19f 100644
@@ -25,7 +25,7 @@
  */
 
 #if defined(CONFIG_NETARM)
-#include <asm-arm/arch-arm720t/netarm_registers.h>
+#include <asm/arch-arm720t/netarm_registers.h>
 #elif defined(CONFIG_IMPA7)
 /* include IMPA7 specific hardware file if there was one */
 #elif defined(CONFIG_EP7312)
include/asm-arm/arch-lpc2292/hardware.h +1 -1
index fd2b464..5e227e3 100644
@@ -25,7 +25,7 @@
  */
 
 #if defined(CONFIG_LPC2292)
-#include <asm-arm/arch-lpc2292/lpc2292_registers.h>
+#include <asm/arch-lpc2292/lpc2292_registers.h>
 #else
 #error No hardware file defined for this configuration
 #endif
nand_spl/board/freescale/mpc8569mds/nand_boot.c +1 -1
index e030656..047da34 100644
@@ -20,7 +20,7 @@
  */
 #include <common.h>
 #include <mpc85xx.h>
-#include <asm-ppc/io.h>
+#include <asm/io.h>
 #include <ns16550.h>
 #include <nand.h>
 #include <asm/mmu.h>
nand_spl/board/freescale/p1_p2_rdb/nand_boot.c +1 -1
index af442ea..16a756c 100644
@@ -20,7 +20,7 @@
  */
 #include <common.h>
 #include <mpc85xx.h>
-#include <asm-ppc/io.h>
+#include <asm/io.h>
 #include <ns16550.h>
 #include <nand.h>
 #include <asm/mmu.h>
nand_spl/nand_boot_fsl_nfc.c +2 -2
index f4040a7..bfae30e 100644
@@ -27,9 +27,9 @@
 #include <common.h>
 #include <nand.h>
 #ifdef CONFIG_MX31
-#include <asm-arm/arch/mx31-regs.h>
+#include <asm/arch/mx31-regs.h>
 #else
-#include <asm-arm/arch/imx-regs.h>
+#include <asm/arch/imx-regs.h>
 #endif
 #include <asm/io.h>
 #include <fsl_nfc.h>
Signature · 1 line
1.6.2.1