All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/9] Clean up top-level directory structure
@ 2009-07-09 15:08 Peter Tyser
  2009-07-09 15:08 ` [U-Boot] [PATCH 1/9] Move architecture specific config.mk files into subdirs Peter Tyser
                   ` (9 more replies)
  0 siblings, 10 replies; 20+ messages in thread
From: Peter Tyser @ 2009-07-09 15:08 UTC (permalink / raw)
  To: u-boot

This series moves api_examples to api/examples and moves all
lib* directories into a common lib/ directory.  It also
moves the <ARCH>_config.mk files into their corresponding
lib directory.

Seeing 12 lib_<ARCH> directories and 12 <ARCH>_config.mk
files in U-Boot's top level always annoyed me, and I
finally had some time to reorganize:)

I compile tested on all PPC boards and verified an out of
tree build.

This series needs the api_examples Make cleanup applied:
http://www.mail-archive.com/u-boot at lists.denx.de/msg16032.html

Peter Tyser (9):
  Move architecture specific config.mk files into subdirs
  Move lib_ppc to lib/ppc
  Move lib_arm to lib/arm
  Move lib_i386 to lib/i386
  Move lib_m68k to lib/m68k
  Move remaining lib_<ARCH> to lib/<ARCH>
  Move lib_generic to lib/generic
  Move libfdt to lib/libfdt
  Move api_examples to api/examples

 Makefile                                           |   20 ++++++++--------
 README                                             |   24 ++++++++++----------
 {api_examples => api/examples}/.gitignore          |    0
 {api_examples => api/examples}/Makefile            |   22 +++++++++---------
 {api_examples => api/examples}/crt0.S              |    0
 {api_examples => api/examples}/demo.c              |    0
 {api_examples => api/examples}/glue.c              |    0
 {api_examples => api/examples}/glue.h              |    0
 {api_examples => api/examples}/libgenwrap.c        |    2 +-
 board/BuS/EB+MCF-EV123/u-boot.lds                  |    8 +++---
 board/LEOX/elpt860/u-boot.lds                      |   18 +++++++-------
 board/LEOX/elpt860/u-boot.lds.debug                |    4 +-
 board/RPXClassic/u-boot.lds                        |    8 +++---
 board/RPXClassic/u-boot.lds.debug                  |    4 +-
 board/RPXlite/u-boot.lds                           |    8 +++---
 board/RPXlite/u-boot.lds.debug                     |    4 +-
 board/RPXlite_dw/u-boot.lds                        |    8 +++---
 board/RPXlite_dw/u-boot.lds.debug                  |    4 +-
 board/RRvision/u-boot.lds                          |   12 +++++-----
 board/actux1/u-boot.lds                            |    6 ++--
 board/actux2/u-boot.lds                            |    6 ++--
 board/actux3/u-boot.lds                            |    6 ++--
 board/amirix/ap1000/u-boot.lds                     |    6 ++--
 board/atum8548/u-boot.lds                          |    6 ++--
 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-ezkit/config.mk                        |    2 +-
 board/c2mon/u-boot.lds                             |    8 +++---
 board/c2mon/u-boot.lds.debug                       |    4 +-
 board/cm-bf527/config.mk                           |    2 +-
 board/cm-bf533/config.mk                           |    2 +-
 board/cm-bf537e/config.mk                          |    2 +-
 board/cm-bf548/config.mk                           |    2 +-
 board/cm-bf561/config.mk                           |    2 +-
 board/cobra5272/u-boot.lds                         |    4 +-
 board/cogent/u-boot.lds.debug                      |    4 +-
 board/cray/L1/u-boot.lds                           |    6 ++--
 board/cray/L1/u-boot.lds.debug                     |    6 ++--
 board/csb272/u-boot.lds                            |    8 +++---
 board/csb472/u-boot.lds                            |    8 +++---
 board/dave/PPChameleonEVB/u-boot.lds               |    6 ++--
 board/eltec/mhpc/u-boot.lds.debug                  |    4 +-
 board/emk/top860/u-boot.lds.debug                  |    6 ++--
 board/eric/u-boot.lds                              |    6 ++--
 board/esd/ocrtc/u-boot.lds                         |    6 ++--
 board/esd/tasreg/u-boot.lds                        |    4 +-
 board/esteem192e/u-boot.lds                        |    8 +++---
 board/etx094/u-boot.lds                            |    4 +-
 board/etx094/u-boot.lds.debug                      |    8 +++---
 board/exbitgen/u-boot.lds                          |    6 ++--
 board/fads/u-boot.lds.debug                        |    6 ++--
 board/flagadm/u-boot.lds.debug                     |    4 +-
 board/freescale/m52277evb/u-boot.spa               |    4 +-
 board/freescale/m5235evb/u-boot.16                 |    6 ++--
 board/freescale/m5235evb/u-boot.32                 |    4 +-
 board/freescale/m5249evb/u-boot.lds                |    4 +-
 board/freescale/m5253demo/u-boot.lds               |    4 +-
 board/freescale/m5253evbe/u-boot.lds               |    4 +-
 board/freescale/m5271evb/u-boot.lds                |    4 +-
 board/freescale/m5272c3/u-boot.lds                 |    4 +-
 board/freescale/m5275evb/u-boot.lds                |    4 +-
 board/freescale/m5282evb/u-boot.lds                |    6 ++--
 board/freescale/m53017evb/u-boot.lds               |    4 +-
 board/freescale/m5329evb/u-boot.lds                |    6 ++--
 board/freescale/m5373evb/u-boot.lds                |    6 ++--
 board/freescale/m54451evb/u-boot.spa               |    6 ++--
 board/freescale/m54451evb/u-boot.stm               |    4 +-
 board/freescale/m54455evb/u-boot.atm               |    6 ++--
 board/freescale/m54455evb/u-boot.int               |    6 ++--
 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             |    6 ++--
 board/freescale/mpc8641hpcn/u-boot.lds             |    6 ++--
 board/freescale/mx31ads/u-boot.lds                 |    2 +-
 board/genietv/u-boot.lds                           |    8 +++---
 board/genietv/u-boot.lds.debug                     |    8 +++---
 board/hermes/u-boot.lds                            |    8 +++---
 board/hermes/u-boot.lds.debug                      |    6 ++--
 board/hymod/u-boot.lds                             |    8 +++---
 board/hymod/u-boot.lds.debug                       |    4 +-
 board/icu862/u-boot.lds                            |    8 +++---
 board/icu862/u-boot.lds.debug                      |    6 ++--
 board/idmr/u-boot.lds                              |    4 +-
 board/ip860/u-boot.lds                             |    6 ++--
 board/ip860/u-boot.lds.debug                       |    6 ++--
 board/ivm/u-boot.lds.debug                         |    6 ++--
 board/jse/jse.c                                    |    6 ++--
 board/jse/sdram.c                                  |    2 +-
 board/keymile/km8xx/u-boot.lds                     |   12 +++++-----
 board/kup/kup4k/u-boot.lds                         |    8 +++---
 board/kup/kup4k/u-boot.lds.debug                   |    4 +-
 board/kup/kup4x/u-boot.lds                         |    8 +++---
 board/kup/kup4x/u-boot.lds.debug                   |    4 +-
 board/lantec/u-boot.lds                            |    8 +++---
 board/lantec/u-boot.lds.debug                      |    4 +-
 board/lwmon/u-boot.lds.debug                       |    6 ++--
 board/mbx8xx/u-boot.lds.debug                      |    6 ++--
 board/ml2/u-boot.lds                               |    6 ++--
 board/ml2/u-boot.lds.debug                         |    6 ++--
 board/mousse/u-boot.lds                            |   10 ++++----
 board/mousse/u-boot.lds.rom                        |    8 +++---
 board/mpc8540eval/u-boot.lds                       |    6 ++--
 board/mpl/mip405/u-boot.lds                        |    6 ++--
 board/mpl/pip405/u-boot.lds                        |    6 ++--
 board/mpl/pip405/u-boot.lds.debug                  |    6 ++--
 board/netphone/u-boot.lds                          |   12 +++++-----
 board/netphone/u-boot.lds.debug                    |    4 +-
 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/netstar/Makefile                             |    4 +-
 board/netta/u-boot.lds                             |   12 +++++-----
 board/netta/u-boot.lds.debug                       |    4 +-
 board/netta2/u-boot.lds                            |   12 +++++-----
 board/netta2/u-boot.lds.debug                      |    4 +-
 board/netvia/u-boot.lds                            |   12 +++++-----
 board/netvia/u-boot.lds.debug                      |    4 +-
 board/nx823/u-boot.lds.debug                       |    4 +-
 board/pcs440ep/u-boot.lds                          |    2 +-
 board/pm854/u-boot.lds                             |    6 ++--
 board/pm856/u-boot.lds                             |    6 ++--
 board/purple/u-boot.lds                            |    2 +-
 board/quantum/u-boot.lds                           |    8 +++---
 board/quantum/u-boot.lds.debug                     |    4 +-
 board/rbc823/u-boot.lds                            |    8 +++---
 board/rmu/u-boot.lds                               |    8 +++---
 board/rmu/u-boot.lds.debug                         |    4 +-
 board/sandburst/karef/u-boot.lds                   |    6 ++--
 board/sandburst/karef/u-boot.lds.debug             |    6 ++--
 board/sandburst/metrobox/u-boot.lds                |    6 ++--
 board/sandburst/metrobox/u-boot.lds.debug          |    6 ++--
 board/sbc405/u-boot.lds                            |    6 ++--
 board/sbc8548/u-boot.lds                           |    6 ++--
 board/sbc8560/u-boot.lds                           |    6 ++--
 board/sbc8641d/u-boot.lds                          |    6 ++--
 board/sc3/u-boot.lds                               |    6 ++--
 board/siemens/CCM/u-boot.lds                       |    8 +++---
 board/siemens/CCM/u-boot.lds.debug                 |    4 +-
 board/siemens/IAD210/u-boot.lds                    |    4 +-
 board/siemens/pcu_e/u-boot.lds.debug               |    6 ++--
 board/snmc/qs850/u-boot.lds                        |   12 +++++-----
 board/snmc/qs860t/u-boot.lds                       |   12 +++++-----
 board/socrates/u-boot.lds                          |    6 ++--
 board/spc1920/u-boot.lds                           |   12 +++++-----
 board/spd8xx/u-boot.lds.debug                      |    6 ++--
 board/stxgp3/u-boot.lds                            |    6 ++--
 board/stxssa/stxssa.c                              |    2 +-
 board/stxssa/u-boot.lds                            |    6 ++--
 board/stxxtc/u-boot.lds                            |   12 +++++-----
 board/stxxtc/u-boot.lds.debug                      |    4 +-
 board/svm_sc8xx/u-boot.lds                         |   12 +++++-----
 board/svm_sc8xx/u-boot.lds.debug                   |    4 +-
 board/tcm-bf537/config.mk                          |    2 +-
 board/tqc/tqm85xx/u-boot.lds                       |    6 ++--
 board/tqc/tqm8xx/u-boot.lds                        |   10 ++++----
 board/tqc/tqm8xx/u-boot.lds.debug                  |    4 +-
 board/trab/Makefile                                |    6 ++--
 board/trab/u-boot.lds                              |    8 +++---
 board/uc100/u-boot.lds                             |   12 +++++-----
 board/uc100/u-boot.lds.debug                       |    4 +-
 board/v37/u-boot.lds                               |   12 +++++-----
 board/voiceblue/Makefile                           |    2 +-
 board/w7o/u-boot.lds.debug                         |    6 ++--
 board/westel/amx860/u-boot.lds                     |    8 +++---
 board/westel/amx860/u-boot.lds.debug               |    6 ++--
 board/xes/xpedite5170/u-boot.lds                   |    6 ++--
 board/xilinx/ml300/u-boot.lds                      |    6 ++--
 board/xilinx/ml300/u-boot.lds.debug                |    6 ++--
 board/xpedite1k/u-boot.lds                         |    6 ++--
 board/xpedite1k/u-boot.lds.debug                   |    6 ++--
 config.mk                                          |    2 +-
 cpu/mpc5xxx/u-boot-customlayout.lds                |    6 ++--
 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 +-
 include/asm-i386/interrupt.h                       |    2 +-
 include/asm-i386/u-boot-i386.h                     |    4 +-
 include/common.h                                   |   14 +++++-----
 include/configs/B2.h                               |    2 +-
 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/ibf-dsp561.h                       |    4 +-
 include/configs/tcm-bf537.h                        |    2 +-
 include/lzma/LzmaDecode.h                          |    2 +-
 include/lzma/LzmaTools.h                           |    2 +-
 include/lzma/LzmaTypes.h                           |    2 +-
 {lib_arm => lib/arm}/Makefile                      |    0
 {lib_arm => lib/arm}/_ashldi3.S                    |    0
 {lib_arm => lib/arm}/_ashrdi3.S                    |    0
 {lib_arm => lib/arm}/_divsi3.S                     |    0
 {lib_arm => lib/arm}/_modsi3.S                     |    0
 {lib_arm => lib/arm}/_udivsi3.S                    |    0
 {lib_arm => lib/arm}/_umodsi3.S                    |    0
 {lib_arm => lib/arm}/board.c                       |    0
 {lib_arm => lib/arm}/bootm.c                       |    0
 {lib_arm => lib/arm}/cache-cp15.c                  |    0
 {lib_arm => lib/arm}/cache.c                       |    0
 arm_config.mk => lib/arm/config.mk                 |    0
 {lib_arm => lib/arm}/div0.c                        |    0
 {lib_arm => lib/arm}/interrupts.c                  |    0
 {lib_arm => lib/arm}/reset.c                       |    0
 {lib_avr32 => lib/avr32}/Makefile                  |    0
 {lib_avr32 => lib/avr32}/board.c                   |    0
 {lib_avr32 => lib/avr32}/bootm.c                   |    0
 avr32_config.mk => lib/avr32/config.mk             |    0
 {lib_avr32 => lib/avr32}/interrupts.c              |    0
 {lib_avr32 => lib/avr32}/memset.S                  |    0
 {lib_blackfin => lib/blackfin}/.gitignore          |    0
 {lib_blackfin => lib/blackfin}/Makefile            |    0
 {lib_blackfin => lib/blackfin}/board.c             |    0
 {lib_blackfin => lib/blackfin}/boot.c              |    0
 {lib_blackfin => lib/blackfin}/cache.c             |    0
 {lib_blackfin => lib/blackfin}/clocks.c            |    0
 blackfin_config.mk => lib/blackfin/config.mk       |    0
 {lib_blackfin => lib/blackfin}/memcmp.S            |    0
 {lib_blackfin => lib/blackfin}/memcpy.S            |    0
 {lib_blackfin => lib/blackfin}/memmove.S           |    0
 {lib_blackfin => lib/blackfin}/memset.S            |    0
 {lib_blackfin => lib/blackfin}/muldi3.c            |    0
 {lib_blackfin => lib/blackfin}/post.c              |    0
 {lib_blackfin => lib/blackfin}/string.c            |    0
 {lib_blackfin => lib/blackfin}/tests.c             |    0
 {lib_blackfin => lib/blackfin}/u-boot.lds.S        |    0
 {lib_generic => lib/generic}/Makefile              |    0
 {lib_generic => lib/generic}/addr_map.c            |    0
 {lib_generic => lib/generic}/bzlib.c               |    0
 {lib_generic => lib/generic}/bzlib_crctable.c      |    0
 {lib_generic => lib/generic}/bzlib_decompress.c    |    0
 {lib_generic => lib/generic}/bzlib_huffman.c       |    0
 {lib_generic => lib/generic}/bzlib_private.h       |    0
 {lib_generic => lib/generic}/bzlib_randtable.c     |    0
 {lib_generic => lib/generic}/crc16.c               |    0
 {lib_generic => lib/generic}/crc32.c               |    0
 {lib_generic => lib/generic}/ctype.c               |    0
 {lib_generic => lib/generic}/display_options.c     |    0
 {lib_generic => lib/generic}/div64.c               |    0
 {lib_generic => lib/generic}/gunzip.c              |    0
 {lib_generic => lib/generic}/ldiv.c                |    0
 {lib_generic => lib/generic}/lmb.c                 |    0
 {lib_generic => lib/generic}/lzma/LGPL.txt         |    0
 {lib_generic => lib/generic}/lzma/LzmaDecode.c     |    0
 {lib_generic => lib/generic}/lzma/LzmaDecode.h     |    0
 {lib_generic => lib/generic}/lzma/LzmaTools.c      |    0
 {lib_generic => lib/generic}/lzma/LzmaTools.h      |    0
 {lib_generic => lib/generic}/lzma/LzmaTypes.h      |    0
 {lib_generic => lib/generic}/lzma/Makefile         |    0
 {lib_generic => lib/generic}/lzma/README.txt       |    0
 {lib_generic => lib/generic}/lzma/history.txt      |    0
 .../generic}/lzma/import_lzmasdk.sh                |    0
 {lib_generic => lib/generic}/lzma/lzma.txt         |    0
 {lib_generic => lib/generic}/lzo/Makefile          |    0
 .../generic}/lzo/lzo1x_decompress.c                |    0
 {lib_generic => lib/generic}/lzo/lzodefs.h         |    0
 {lib_generic => lib/generic}/md5.c                 |    0
 {lib_generic => lib/generic}/rbtree.c              |    0
 {lib_generic => lib/generic}/sha1.c                |    0
 {lib_generic => lib/generic}/sha256.c              |    0
 {lib_generic => lib/generic}/string.c              |    0
 {lib_generic => lib/generic}/strmhz.c              |    0
 {lib_generic => lib/generic}/vsprintf.c            |    0
 {lib_generic => lib/generic}/zlib.c                |    0
 {lib_i386 => lib/i386}/Makefile                    |    0
 {lib_i386 => lib/i386}/bios.S                      |    0
 {lib_i386 => lib/i386}/bios.h                      |    0
 {lib_i386 => lib/i386}/bios_pci.S                  |    0
 {lib_i386 => lib/i386}/bios_setup.c                |    0
 {lib_i386 => lib/i386}/board.c                     |    0
 {lib_i386 => lib/i386}/bootm.c                     |    0
 i386_config.mk => lib/i386/config.mk               |    0
 {lib_i386 => lib/i386}/interrupts.c                |    0
 {lib_i386 => lib/i386}/pcat_interrupts.c           |    0
 {lib_i386 => lib/i386}/pcat_timer.c                |    0
 {lib_i386 => lib/i386}/pci.c                       |    0
 {lib_i386 => lib/i386}/pci_type1.c                 |    0
 {lib_i386 => lib/i386}/realmode.c                  |    0
 {lib_i386 => lib/i386}/realmode_switch.S           |    0
 {lib_i386 => lib/i386}/timer.c                     |    0
 {lib_i386 => lib/i386}/video.c                     |    0
 {lib_i386 => lib/i386}/video_bios.c                |    0
 {lib_i386 => lib/i386}/zimage.c                    |    0
 {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
 {lib_m68k => lib/m68k}/Makefile                    |    0
 {lib_m68k => lib/m68k}/board.c                     |    0
 {lib_m68k => lib/m68k}/bootm.c                     |    0
 {lib_m68k => lib/m68k}/cache.c                     |    0
 m68k_config.mk => lib/m68k/config.mk               |    0
 {lib_m68k => lib/m68k}/interrupts.c                |    0
 {lib_m68k => lib/m68k}/time.c                      |    0
 {lib_m68k => lib/m68k}/traps.c                     |    0
 {lib_microblaze => lib/microblaze}/Makefile        |    0
 {lib_microblaze => lib/microblaze}/board.c         |    0
 {lib_microblaze => lib/microblaze}/bootm.c         |    0
 {lib_microblaze => lib/microblaze}/cache.c         |    0
 microblaze_config.mk => lib/microblaze/config.mk   |    0
 {lib_microblaze => lib/microblaze}/time.c          |    0
 {lib_mips => lib/mips}/Makefile                    |    0
 {lib_mips => lib/mips}/board.c                     |    0
 {lib_mips => lib/mips}/bootm.c                     |    0
 {lib_mips => lib/mips}/bootm_qemu_mips.c           |    0
 mips_config.mk => lib/mips/config.mk               |    0
 {lib_mips => lib/mips}/time.c                      |    0
 {lib_nios => lib/nios}/Makefile                    |    0
 {lib_nios => lib/nios}/board.c                     |    0
 {lib_nios => lib/nios}/bootm.c                     |    0
 {lib_nios => lib/nios}/cache.c                     |    0
 nios_config.mk => lib/nios/config.mk               |    0
 {lib_nios => lib/nios}/divmod.c                    |    0
 {lib_nios => lib/nios}/math.h                      |    0
 {lib_nios => lib/nios}/mult.c                      |    0
 {lib_nios => lib/nios}/time.c                      |    0
 {lib_nios2 => lib/nios2}/Makefile                  |    0
 {lib_nios2 => lib/nios2}/board.c                   |    0
 {lib_nios2 => lib/nios2}/bootm.c                   |    0
 {lib_nios2 => lib/nios2}/cache.S                   |    0
 nios2_config.mk => lib/nios2/config.mk             |    0
 {lib_nios2 => lib/nios2}/divmod.c                  |    0
 {lib_nios2 => lib/nios2}/math.h                    |    0
 {lib_nios2 => lib/nios2}/mult.c                    |    0
 {lib_nios2 => lib/nios2}/time.c                    |    0
 {lib_ppc => lib/ppc}/Makefile                      |    0
 {lib_ppc => lib/ppc}/bat_rw.c                      |    0
 {lib_ppc => lib/ppc}/board.c                       |    0
 {lib_ppc => lib/ppc}/bootm.c                       |    0
 {lib_ppc => lib/ppc}/cache.c                       |    0
 ppc_config.mk => lib/ppc/config.mk                 |    0
 {lib_ppc => lib/ppc}/extable.c                     |    0
 {lib_ppc => lib/ppc}/interrupts.c                  |    0
 {lib_ppc => lib/ppc}/kgdb.c                        |    0
 {lib_ppc => lib/ppc}/ppccache.S                    |    0
 {lib_ppc => lib/ppc}/ppcstring.S                   |    0
 {lib_ppc => lib/ppc}/ticks.S                       |    0
 {lib_ppc => lib/ppc}/time.c                        |    0
 {lib_sh => lib/sh}/Makefile                        |    0
 {lib_sh => lib/sh}/board.c                         |    0
 {lib_sh => lib/sh}/bootm.c                         |    0
 sh_config.mk => lib/sh/config.mk                   |    0
 {lib_sh => lib/sh}/time.c                          |    0
 {lib_sh => lib/sh}/time_sh2.c                      |    0
 {lib_sparc => lib/sparc}/Makefile                  |    0
 {lib_sparc => lib/sparc}/board.c                   |    0
 {lib_sparc => lib/sparc}/bootm.c                   |    0
 {lib_sparc => lib/sparc}/cache.c                   |    0
 sparc_config.mk => lib/sparc/config.mk             |    0
 {lib_sparc => lib/sparc}/interrupts.c              |    0
 {lib_sparc => lib/sparc}/time.c                    |    0
 nand_spl/board/freescale/mpc8313erdb/Makefile      |    6 ++--
 nand_spl/board/sheldon/simpc8313/Makefile          |    6 ++--
 tools/Makefile                                     |   12 +++++-----
 tools/env/Makefile                                 |    2 +-
 tools/imls/Makefile                                |   14 +++++-----
 377 files changed, 606 insertions(+), 606 deletions(-)
 rename {api_examples => api/examples}/.gitignore (100%)
 rename {api_examples => api/examples}/Makefile (80%)
 rename {api_examples => api/examples}/crt0.S (100%)
 rename {api_examples => api/examples}/demo.c (100%)
 rename {api_examples => api/examples}/glue.c (100%)
 rename {api_examples => api/examples}/glue.h (100%)
 rename {api_examples => api/examples}/libgenwrap.c (96%)
 rename {lib_arm => lib/arm}/Makefile (100%)
 rename {lib_arm => lib/arm}/_ashldi3.S (100%)
 rename {lib_arm => lib/arm}/_ashrdi3.S (100%)
 rename {lib_arm => lib/arm}/_divsi3.S (100%)
 rename {lib_arm => lib/arm}/_modsi3.S (100%)
 rename {lib_arm => lib/arm}/_udivsi3.S (100%)
 rename {lib_arm => lib/arm}/_umodsi3.S (100%)
 rename {lib_arm => lib/arm}/board.c (100%)
 rename {lib_arm => lib/arm}/bootm.c (100%)
 rename {lib_arm => lib/arm}/cache-cp15.c (100%)
 rename {lib_arm => lib/arm}/cache.c (100%)
 rename arm_config.mk => lib/arm/config.mk (100%)
 rename {lib_arm => lib/arm}/div0.c (100%)
 rename {lib_arm => lib/arm}/interrupts.c (100%)
 rename {lib_arm => lib/arm}/reset.c (100%)
 rename {lib_avr32 => lib/avr32}/Makefile (100%)
 rename {lib_avr32 => lib/avr32}/board.c (100%)
 rename {lib_avr32 => lib/avr32}/bootm.c (100%)
 rename avr32_config.mk => lib/avr32/config.mk (100%)
 rename {lib_avr32 => lib/avr32}/interrupts.c (100%)
 rename {lib_avr32 => lib/avr32}/memset.S (100%)
 rename {lib_blackfin => lib/blackfin}/.gitignore (100%)
 rename {lib_blackfin => lib/blackfin}/Makefile (100%)
 rename {lib_blackfin => lib/blackfin}/board.c (100%)
 rename {lib_blackfin => lib/blackfin}/boot.c (100%)
 rename {lib_blackfin => lib/blackfin}/cache.c (100%)
 rename {lib_blackfin => lib/blackfin}/clocks.c (100%)
 rename blackfin_config.mk => lib/blackfin/config.mk (100%)
 rename {lib_blackfin => lib/blackfin}/memcmp.S (100%)
 rename {lib_blackfin => lib/blackfin}/memcpy.S (100%)
 rename {lib_blackfin => lib/blackfin}/memmove.S (100%)
 rename {lib_blackfin => lib/blackfin}/memset.S (100%)
 rename {lib_blackfin => lib/blackfin}/muldi3.c (100%)
 rename {lib_blackfin => lib/blackfin}/post.c (100%)
 rename {lib_blackfin => lib/blackfin}/string.c (100%)
 rename {lib_blackfin => lib/blackfin}/tests.c (100%)
 rename {lib_blackfin => lib/blackfin}/u-boot.lds.S (100%)
 rename {lib_generic => lib/generic}/Makefile (100%)
 rename {lib_generic => lib/generic}/addr_map.c (100%)
 rename {lib_generic => lib/generic}/bzlib.c (100%)
 rename {lib_generic => lib/generic}/bzlib_crctable.c (100%)
 rename {lib_generic => lib/generic}/bzlib_decompress.c (100%)
 rename {lib_generic => lib/generic}/bzlib_huffman.c (100%)
 rename {lib_generic => lib/generic}/bzlib_private.h (100%)
 rename {lib_generic => lib/generic}/bzlib_randtable.c (100%)
 rename {lib_generic => lib/generic}/crc16.c (100%)
 rename {lib_generic => lib/generic}/crc32.c (100%)
 rename {lib_generic => lib/generic}/ctype.c (100%)
 rename {lib_generic => lib/generic}/display_options.c (100%)
 rename {lib_generic => lib/generic}/div64.c (100%)
 rename {lib_generic => lib/generic}/gunzip.c (100%)
 rename {lib_generic => lib/generic}/ldiv.c (100%)
 rename {lib_generic => lib/generic}/lmb.c (100%)
 rename {lib_generic => lib/generic}/lzma/LGPL.txt (100%)
 rename {lib_generic => lib/generic}/lzma/LzmaDecode.c (100%)
 rename {lib_generic => lib/generic}/lzma/LzmaDecode.h (100%)
 rename {lib_generic => lib/generic}/lzma/LzmaTools.c (100%)
 rename {lib_generic => lib/generic}/lzma/LzmaTools.h (100%)
 rename {lib_generic => lib/generic}/lzma/LzmaTypes.h (100%)
 rename {lib_generic => lib/generic}/lzma/Makefile (100%)
 rename {lib_generic => lib/generic}/lzma/README.txt (100%)
 rename {lib_generic => lib/generic}/lzma/history.txt (100%)
 rename {lib_generic => lib/generic}/lzma/import_lzmasdk.sh (100%)
 rename {lib_generic => lib/generic}/lzma/lzma.txt (100%)
 rename {lib_generic => lib/generic}/lzo/Makefile (100%)
 rename {lib_generic => lib/generic}/lzo/lzo1x_decompress.c (100%)
 rename {lib_generic => lib/generic}/lzo/lzodefs.h (100%)
 rename {lib_generic => lib/generic}/md5.c (100%)
 rename {lib_generic => lib/generic}/rbtree.c (100%)
 rename {lib_generic => lib/generic}/sha1.c (100%)
 rename {lib_generic => lib/generic}/sha256.c (100%)
 rename {lib_generic => lib/generic}/string.c (100%)
 rename {lib_generic => lib/generic}/strmhz.c (100%)
 rename {lib_generic => lib/generic}/vsprintf.c (100%)
 rename {lib_generic => lib/generic}/zlib.c (100%)
 rename {lib_i386 => lib/i386}/Makefile (100%)
 rename {lib_i386 => lib/i386}/bios.S (100%)
 rename {lib_i386 => lib/i386}/bios.h (100%)
 rename {lib_i386 => lib/i386}/bios_pci.S (100%)
 rename {lib_i386 => lib/i386}/bios_setup.c (100%)
 rename {lib_i386 => lib/i386}/board.c (100%)
 rename {lib_i386 => lib/i386}/bootm.c (100%)
 rename i386_config.mk => lib/i386/config.mk (100%)
 rename {lib_i386 => lib/i386}/interrupts.c (100%)
 rename {lib_i386 => lib/i386}/pcat_interrupts.c (100%)
 rename {lib_i386 => lib/i386}/pcat_timer.c (100%)
 rename {lib_i386 => lib/i386}/pci.c (100%)
 rename {lib_i386 => lib/i386}/pci_type1.c (100%)
 rename {lib_i386 => lib/i386}/realmode.c (100%)
 rename {lib_i386 => lib/i386}/realmode_switch.S (100%)
 rename {lib_i386 => lib/i386}/timer.c (100%)
 rename {lib_i386 => lib/i386}/video.c (100%)
 rename {lib_i386 => lib/i386}/video_bios.c (100%)
 rename {lib_i386 => lib/i386}/zimage.c (100%)
 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%)
 rename {lib_m68k => lib/m68k}/Makefile (100%)
 rename {lib_m68k => lib/m68k}/board.c (100%)
 rename {lib_m68k => lib/m68k}/bootm.c (100%)
 rename {lib_m68k => lib/m68k}/cache.c (100%)
 rename m68k_config.mk => lib/m68k/config.mk (100%)
 rename {lib_m68k => lib/m68k}/interrupts.c (100%)
 rename {lib_m68k => lib/m68k}/time.c (100%)
 rename {lib_m68k => lib/m68k}/traps.c (100%)
 rename {lib_microblaze => lib/microblaze}/Makefile (100%)
 rename {lib_microblaze => lib/microblaze}/board.c (100%)
 rename {lib_microblaze => lib/microblaze}/bootm.c (100%)
 rename {lib_microblaze => lib/microblaze}/cache.c (100%)
 rename microblaze_config.mk => lib/microblaze/config.mk (100%)
 rename {lib_microblaze => lib/microblaze}/time.c (100%)
 rename {lib_mips => lib/mips}/Makefile (100%)
 rename {lib_mips => lib/mips}/board.c (100%)
 rename {lib_mips => lib/mips}/bootm.c (100%)
 rename {lib_mips => lib/mips}/bootm_qemu_mips.c (100%)
 rename mips_config.mk => lib/mips/config.mk (100%)
 rename {lib_mips => lib/mips}/time.c (100%)
 rename {lib_nios => lib/nios}/Makefile (100%)
 rename {lib_nios => lib/nios}/board.c (100%)
 rename {lib_nios => lib/nios}/bootm.c (100%)
 rename {lib_nios => lib/nios}/cache.c (100%)
 rename nios_config.mk => lib/nios/config.mk (100%)
 rename {lib_nios => lib/nios}/divmod.c (100%)
 rename {lib_nios => lib/nios}/math.h (100%)
 rename {lib_nios => lib/nios}/mult.c (100%)
 rename {lib_nios => lib/nios}/time.c (100%)
 rename {lib_nios2 => lib/nios2}/Makefile (100%)
 rename {lib_nios2 => lib/nios2}/board.c (100%)
 rename {lib_nios2 => lib/nios2}/bootm.c (100%)
 rename {lib_nios2 => lib/nios2}/cache.S (100%)
 rename nios2_config.mk => lib/nios2/config.mk (100%)
 rename {lib_nios2 => lib/nios2}/divmod.c (100%)
 rename {lib_nios2 => lib/nios2}/math.h (100%)
 rename {lib_nios2 => lib/nios2}/mult.c (100%)
 rename {lib_nios2 => lib/nios2}/time.c (100%)
 rename {lib_ppc => lib/ppc}/Makefile (100%)
 rename {lib_ppc => lib/ppc}/bat_rw.c (100%)
 rename {lib_ppc => lib/ppc}/board.c (100%)
 rename {lib_ppc => lib/ppc}/bootm.c (100%)
 rename {lib_ppc => lib/ppc}/cache.c (100%)
 rename ppc_config.mk => lib/ppc/config.mk (100%)
 rename {lib_ppc => lib/ppc}/extable.c (100%)
 rename {lib_ppc => lib/ppc}/interrupts.c (100%)
 rename {lib_ppc => lib/ppc}/kgdb.c (100%)
 rename {lib_ppc => lib/ppc}/ppccache.S (100%)
 rename {lib_ppc => lib/ppc}/ppcstring.S (100%)
 rename {lib_ppc => lib/ppc}/ticks.S (100%)
 rename {lib_ppc => lib/ppc}/time.c (100%)
 rename {lib_sh => lib/sh}/Makefile (100%)
 rename {lib_sh => lib/sh}/board.c (100%)
 rename {lib_sh => lib/sh}/bootm.c (100%)
 rename sh_config.mk => lib/sh/config.mk (100%)
 rename {lib_sh => lib/sh}/time.c (100%)
 rename {lib_sh => lib/sh}/time_sh2.c (100%)
 rename {lib_sparc => lib/sparc}/Makefile (100%)
 rename {lib_sparc => lib/sparc}/board.c (100%)
 rename {lib_sparc => lib/sparc}/bootm.c (100%)
 rename {lib_sparc => lib/sparc}/cache.c (100%)
 rename sparc_config.mk => lib/sparc/config.mk (100%)
 rename {lib_sparc => lib/sparc}/interrupts.c (100%)
 rename {lib_sparc => lib/sparc}/time.c (100%)

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 1/9] Move architecture specific config.mk files into subdirs
  2009-07-09 15:08 [U-Boot] [PATCH 0/9] Clean up top-level directory structure Peter Tyser
@ 2009-07-09 15:08 ` Peter Tyser
  2009-07-09 15:08 ` [U-Boot] [PATCH 2/9] Move lib_ppc to lib/ppc Peter Tyser
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 20+ messages in thread
From: Peter Tyser @ 2009-07-09 15:08 UTC (permalink / raw)
  To: u-boot

This cleans up U-Boot's toplevel directory a bit and makes the
architecture 'config.mk' file naming and location similar to board and
cpu 'config.mk' files

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
---
 config.mk                                        |    2 +-
 arm_config.mk => lib_arm/config.mk               |    0
 avr32_config.mk => lib_avr32/config.mk           |    0
 blackfin_config.mk => lib_blackfin/config.mk     |    0
 i386_config.mk => lib_i386/config.mk             |    0
 m68k_config.mk => lib_m68k/config.mk             |    0
 microblaze_config.mk => lib_microblaze/config.mk |    0
 mips_config.mk => lib_mips/config.mk             |    0
 nios_config.mk => lib_nios/config.mk             |    0
 nios2_config.mk => lib_nios2/config.mk           |    0
 ppc_config.mk => lib_ppc/config.mk               |    0
 sh_config.mk => lib_sh/config.mk                 |    0
 sparc_config.mk => lib_sparc/config.mk           |    0
 13 files changed, 1 insertions(+), 1 deletions(-)
 rename arm_config.mk => lib_arm/config.mk (100%)
 rename avr32_config.mk => lib_avr32/config.mk (100%)
 rename blackfin_config.mk => lib_blackfin/config.mk (100%)
 rename i386_config.mk => lib_i386/config.mk (100%)
 rename m68k_config.mk => lib_m68k/config.mk (100%)
 rename microblaze_config.mk => lib_microblaze/config.mk (100%)
 rename mips_config.mk => lib_mips/config.mk (100%)
 rename nios_config.mk => lib_nios/config.mk (100%)
 rename nios2_config.mk => lib_nios2/config.mk (100%)
 rename ppc_config.mk => lib_ppc/config.mk (100%)
 rename sh_config.mk => lib_sh/config.mk (100%)
 rename sparc_config.mk => lib_sparc/config.mk (100%)

diff --git a/config.mk b/config.mk
index 7fc0453..02700f3 100644
--- a/config.mk
+++ b/config.mk
@@ -84,5 +84,5 @@ sinclude $(OBJTREE)/include/autoconf.mk
 
 ifdef	ARCH
-sinclude $(TOPDIR)/$(ARCH)_config.mk	# include architecture dependend rules
+sinclude $(TOPDIR)/lib_$(ARCH)/config.mk	# include architecture dependend rules
 endif
 ifdef	CPU
diff --git a/arm_config.mk b/lib_arm/config.mk
similarity index 100%
rename from arm_config.mk
rename to lib_arm/config.mk
diff --git a/avr32_config.mk b/lib_avr32/config.mk
similarity index 100%
rename from avr32_config.mk
rename to lib_avr32/config.mk
diff --git a/blackfin_config.mk b/lib_blackfin/config.mk
similarity index 100%
rename from blackfin_config.mk
rename to lib_blackfin/config.mk
diff --git a/i386_config.mk b/lib_i386/config.mk
similarity index 100%
rename from i386_config.mk
rename to lib_i386/config.mk
diff --git a/m68k_config.mk b/lib_m68k/config.mk
similarity index 100%
rename from m68k_config.mk
rename to lib_m68k/config.mk
diff --git a/microblaze_config.mk b/lib_microblaze/config.mk
similarity index 100%
rename from microblaze_config.mk
rename to lib_microblaze/config.mk
diff --git a/mips_config.mk b/lib_mips/config.mk
similarity index 100%
rename from mips_config.mk
rename to lib_mips/config.mk
diff --git a/nios_config.mk b/lib_nios/config.mk
similarity index 100%
rename from nios_config.mk
rename to lib_nios/config.mk
diff --git a/nios2_config.mk b/lib_nios2/config.mk
similarity index 100%
rename from nios2_config.mk
rename to lib_nios2/config.mk
diff --git a/ppc_config.mk b/lib_ppc/config.mk
similarity index 100%
rename from ppc_config.mk
rename to lib_ppc/config.mk
diff --git a/sh_config.mk b/lib_sh/config.mk
similarity index 100%
rename from sh_config.mk
rename to lib_sh/config.mk
diff --git a/sparc_config.mk b/lib_sparc/config.mk
similarity index 100%
rename from sparc_config.mk
rename to lib_sparc/config.mk
-- 
1.6.2.1

^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 2/9] Move lib_ppc to lib/ppc
  2009-07-09 15:08 [U-Boot] [PATCH 0/9] Clean up top-level directory structure Peter Tyser
  2009-07-09 15:08 ` [U-Boot] [PATCH 1/9] Move architecture specific config.mk files into subdirs Peter Tyser
@ 2009-07-09 15:08 ` Peter Tyser
  2009-07-09 15:08 ` [U-Boot] [PATCH 3/9] Move lib_arm to lib/arm Peter Tyser
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 20+ messages in thread
From: Peter Tyser @ 2009-07-09 15:08 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
---
 Makefile                                      |    4 ++++
 README                                        |    4 ++--
 api_examples/Makefile                         |    4 ++--
 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/amirix/ap1000/u-boot.lds                |    2 +-
 board/atum8548/u-boot.lds                     |    2 +-
 board/c2mon/u-boot.lds                        |    2 +-
 board/cray/L1/u-boot.lds                      |    2 +-
 board/cray/L1/u-boot.lds.debug                |    2 +-
 board/csb272/u-boot.lds                       |    4 ++--
 board/csb472/u-boot.lds                       |    4 ++--
 board/dave/PPChameleonEVB/u-boot.lds          |    2 +-
 board/emk/top860/u-boot.lds.debug             |    2 +-
 board/eric/u-boot.lds                         |    2 +-
 board/esd/ocrtc/u-boot.lds                    |    2 +-
 board/esteem192e/u-boot.lds                   |    2 +-
 board/etx094/u-boot.lds.debug                 |    4 ++--
 board/exbitgen/u-boot.lds                     |    2 +-
 board/fads/u-boot.lds.debug                   |    2 +-
 board/freescale/mpc7448hpc2/tsi108_init.c     |    2 +-
 board/freescale/mpc8610hpcd/u-boot.lds        |    2 +-
 board/freescale/mpc8641hpcn/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/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/mpc8540eval/u-boot.lds                  |    2 +-
 board/mpl/mip405/u-boot.lds                   |    2 +-
 board/mpl/pip405/u-boot.lds                   |    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/pm854/u-boot.lds                        |    2 +-
 board/pm856/u-boot.lds                        |    2 +-
 board/quantum/u-boot.lds                      |    2 +-
 board/rbc823/u-boot.lds                       |    2 +-
 board/rmu/u-boot.lds                          |    2 +-
 board/sandburst/karef/u-boot.lds              |    2 +-
 board/sandburst/karef/u-boot.lds.debug        |    2 +-
 board/sandburst/metrobox/u-boot.lds           |    2 +-
 board/sandburst/metrobox/u-boot.lds.debug     |    2 +-
 board/sbc405/u-boot.lds                       |    2 +-
 board/sbc8548/u-boot.lds                      |    2 +-
 board/sbc8560/u-boot.lds                      |    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/socrates/u-boot.lds                     |    2 +-
 board/spc1920/u-boot.lds                      |    6 +++---
 board/spd8xx/u-boot.lds.debug                 |    2 +-
 board/stxgp3/u-boot.lds                       |    2 +-
 board/stxssa/stxssa.c                         |    2 +-
 board/stxssa/u-boot.lds                       |    2 +-
 board/stxxtc/u-boot.lds                       |    6 +++---
 board/svm_sc8xx/u-boot.lds                    |    6 +++---
 board/tqc/tqm85xx/u-boot.lds                  |    2 +-
 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/xpedite5170/u-boot.lds              |    2 +-
 board/xilinx/ml300/u-boot.lds                 |    2 +-
 board/xilinx/ml300/u-boot.lds.debug           |    2 +-
 board/xpedite1k/u-boot.lds                    |    2 +-
 board/xpedite1k/u-boot.lds.debug              |    2 +-
 config.mk                                     |    1 +
 cpu/mpc5xxx/u-boot-customlayout.lds           |    4 ++--
 doc/README.alaska8220                         |    2 +-
 doc/README.mpc5xx                             |    6 +++---
 {lib_ppc => lib/ppc}/Makefile                 |    0
 {lib_ppc => lib/ppc}/bat_rw.c                 |    0
 {lib_ppc => lib/ppc}/board.c                  |    0
 {lib_ppc => lib/ppc}/bootm.c                  |    0
 {lib_ppc => lib/ppc}/cache.c                  |    0
 {lib_ppc => lib/ppc}/config.mk                |    0
 {lib_ppc => lib/ppc}/extable.c                |    0
 {lib_ppc => lib/ppc}/interrupts.c             |    0
 {lib_ppc => lib/ppc}/kgdb.c                   |    0
 {lib_ppc => lib/ppc}/ppccache.S               |    0
 {lib_ppc => lib/ppc}/ppcstring.S              |    0
 {lib_ppc => lib/ppc}/ticks.S                  |    0
 {lib_ppc => lib/ppc}/time.c                   |    0
 nand_spl/board/freescale/mpc8313erdb/Makefile |    6 +++---
 nand_spl/board/sheldon/simpc8313/Makefile     |    6 +++---
 118 files changed, 165 insertions(+), 160 deletions(-)
 rename {lib_ppc => lib/ppc}/Makefile (100%)
 rename {lib_ppc => lib/ppc}/bat_rw.c (100%)
 rename {lib_ppc => lib/ppc}/board.c (100%)
 rename {lib_ppc => lib/ppc}/bootm.c (100%)
 rename {lib_ppc => lib/ppc}/cache.c (100%)
 rename {lib_ppc => lib/ppc}/config.mk (100%)
 rename {lib_ppc => lib/ppc}/extable.c (100%)
 rename {lib_ppc => lib/ppc}/interrupts.c (100%)
 rename {lib_ppc => lib/ppc}/kgdb.c (100%)
 rename {lib_ppc => lib/ppc}/ppccache.S (100%)
 rename {lib_ppc => lib/ppc}/ppcstring.S (100%)
 rename {lib_ppc => lib/ppc}/ticks.S (100%)
 rename {lib_ppc => lib/ppc}/time.c (100%)

diff --git a/Makefile b/Makefile
index a061499..7902a47 100644
--- a/Makefile
+++ b/Makefile
@@ -229,5 +229,9 @@ ifeq ($(CPU),ixp)
 LIBS += cpu/ixp/npe/libnpe.a
 endif
+ifeq ($(SRCTREE)/lib/$(ARCH),$(wildcard $(SRCTREE)/lib/$(ARCH)))
+LIBS += lib/$(ARCH)/lib$(ARCH).a
+else
 LIBS += lib_$(ARCH)/lib$(ARCH).a
+endif
 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 \
diff --git a/README b/README
index 0e84337..28991c3 100644
--- a/README
+++ b/README
@@ -190,5 +190,5 @@ Directory Hierarchy:
 - lib_mips	Files generic to MIPS	 architecture
 - lib_nios	Files generic to NIOS	 architecture
-- lib_ppc	Files generic to PowerPC architecture
+- lib/ppc	Files generic to PowerPC architecture
 - lib_sparc	Files generic to SPARC	 architecture
 - libfdt	Library files to support flattened device trees
@@ -1891,5 +1891,5 @@ Legacy uImage format:
    15	lib_<arch>/bootm.c	All preparation done, transferring control to OS
 
-  -30	lib_ppc/board.c		Fatal error, hang the system
+  -30	lib/ppc/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()
diff --git a/api_examples/Makefile b/api_examples/Makefile
index 2a30bef..23b5e9c 100644
--- a/api_examples/Makefile
+++ b/api_examples/Makefile
@@ -46,5 +46,5 @@ EXT_COBJ_FILES-$(CONFIG_API) += lib_generic/string.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) += lib/ppc/ppcstring.o
 endif
 
@@ -78,5 +78,5 @@ $(obj)%.o: $(SRCTREE)/lib_generic/%.c
 
 # Rule to build architecture-specific library assembly files
-$(obj)%.o: $(SRCTREE)/lib_$(ARCH)/%.S
+$(obj)%.o: $(SRCTREE)/lib/$(ARCH)/%.S
 	$(CC) -g $(CFLAGS) -c -o $@ $<
 
diff --git a/board/LEOX/elpt860/u-boot.lds b/board/LEOX/elpt860/u-boot.lds
index c6b1f94..428ad52 100644
--- a/board/LEOX/elpt860/u-boot.lds
+++ b/board/LEOX/elpt860/u-boot.lds
@@ -67,13 +67,13 @@ SECTIONS
     cpu/mpc8xx/start.o			(.text)
     common/dlmalloc.o			(.text)
-    lib_ppc/ppcstring.o			(.text)
+    lib/ppc/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)
+    lib/ppc/cache.o			(.text)
+    lib/ppc/extable.o			(.text)
+    lib/ppc/time.o			(.text)
+    lib/ppc/ticks.o			(.text)
 
     . = env_offset;
diff --git a/board/RPXClassic/u-boot.lds b/board/RPXClassic/u-boot.lds
index faa1c6c..dd5b607 100644
--- a/board/RPXClassic/u-boot.lds
+++ b/board/RPXClassic/u-boot.lds
@@ -58,5 +58,5 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/RPXlite/u-boot.lds b/board/RPXlite/u-boot.lds
index faa1c6c..dd5b607 100644
--- a/board/RPXlite/u-boot.lds
+++ b/board/RPXlite/u-boot.lds
@@ -58,5 +58,5 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/RPXlite_dw/u-boot.lds b/board/RPXlite_dw/u-boot.lds
index 7b7b83b..d8e3c0c 100644
--- a/board/RPXlite_dw/u-boot.lds
+++ b/board/RPXlite_dw/u-boot.lds
@@ -58,5 +58,5 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/RRvision/u-boot.lds b/board/RRvision/u-boot.lds
index 17e6fa0..794f0f9 100644
--- a/board/RRvision/u-boot.lds
+++ b/board/RRvision/u-boot.lds
@@ -59,10 +59,10 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/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)
+    lib/ppc/cache.o		(.text)
+    lib/ppc/time.o		(.text)
 
     . = env_offset;
diff --git a/board/amirix/ap1000/u-boot.lds b/board/amirix/ap1000/u-boot.lds
index a4c48d6..e0c25d2 100644
--- a/board/amirix/ap1000/u-boot.lds
+++ b/board/amirix/ap1000/u-boot.lds
@@ -66,5 +66,5 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
diff --git a/board/atum8548/u-boot.lds b/board/atum8548/u-boot.lds
index 3067846..1342135 100644
--- a/board/atum8548/u-boot.lds
+++ b/board/atum8548/u-boot.lds
@@ -69,5 +69,5 @@ SECTIONS
     cpu/mpc85xx/speed.o (.text)
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
     *(.text)
diff --git a/board/c2mon/u-boot.lds b/board/c2mon/u-boot.lds
index 61650a8..b72e021 100644
--- a/board/c2mon/u-boot.lds
+++ b/board/c2mon/u-boot.lds
@@ -58,5 +58,5 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/cray/L1/u-boot.lds b/board/cray/L1/u-boot.lds
index 86c8ecb..fe69c93 100644
--- a/board/cray/L1/u-boot.lds
+++ b/board/cray/L1/u-boot.lds
@@ -72,5 +72,5 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
diff --git a/board/cray/L1/u-boot.lds.debug b/board/cray/L1/u-boot.lds.debug
index 338392a..f753355 100644
--- a/board/cray/L1/u-boot.lds.debug
+++ b/board/cray/L1/u-boot.lds.debug
@@ -60,5 +60,5 @@ SECTIONS
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
     common/env_embedded.o(.text)
diff --git a/board/csb272/u-boot.lds b/board/csb272/u-boot.lds
index 0aa6f8f..453cd3b 100644
--- a/board/csb272/u-boot.lds
+++ b/board/csb272/u-boot.lds
@@ -73,6 +73,6 @@ SECTIONS
     lib_generic/crc32.o		(.text)
 
-    lib_ppc/extable.o	(.text)
-    lib_ppc/board.o	(.text)
+    lib/ppc/extable.o	(.text)
+    lib/ppc/board.o	(.text)
     lib_generic/zlib.o	(.text)
 /*    . = env_offset;*/
diff --git a/board/csb472/u-boot.lds b/board/csb472/u-boot.lds
index 565e021..21682bb 100644
--- a/board/csb472/u-boot.lds
+++ b/board/csb472/u-boot.lds
@@ -73,6 +73,6 @@ SECTIONS
     lib_generic/crc32.o		(.text)
 
-    lib_ppc/extable.o	(.text)
-    lib_ppc/board.o	(.text)
+    lib/ppc/extable.o	(.text)
+    lib/ppc/board.o	(.text)
     lib_generic/zlib.o	(.text)
 /*    . = env_offset;*/
diff --git a/board/dave/PPChameleonEVB/u-boot.lds b/board/dave/PPChameleonEVB/u-boot.lds
index b36827d..0468fe2 100644
--- a/board/dave/PPChameleonEVB/u-boot.lds
+++ b/board/dave/PPChameleonEVB/u-boot.lds
@@ -70,5 +70,5 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
diff --git a/board/emk/top860/u-boot.lds.debug b/board/emk/top860/u-boot.lds.debug
index 82e8dce..6e168a4 100644
--- a/board/emk/top860/u-boot.lds.debug
+++ b/board/emk/top860/u-boot.lds.debug
@@ -60,5 +60,5 @@ SECTIONS
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
     . = env_offset;
diff --git a/board/eric/u-boot.lds b/board/eric/u-boot.lds
index e62896f..2ab92e7 100644
--- a/board/eric/u-boot.lds
+++ b/board/eric/u-boot.lds
@@ -72,5 +72,5 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
diff --git a/board/esd/ocrtc/u-boot.lds b/board/esd/ocrtc/u-boot.lds
index 1b50b6d..03c164d 100644
--- a/board/esd/ocrtc/u-boot.lds
+++ b/board/esd/ocrtc/u-boot.lds
@@ -69,5 +69,5 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
diff --git a/board/esteem192e/u-boot.lds b/board/esteem192e/u-boot.lds
index 57aabed..704de98 100644
--- a/board/esteem192e/u-boot.lds
+++ b/board/esteem192e/u-boot.lds
@@ -58,5 +58,5 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/etx094/u-boot.lds.debug b/board/etx094/u-boot.lds.debug
index 28f8804..334b85a 100644
--- a/board/etx094/u-boot.lds.debug
+++ b/board/etx094/u-boot.lds.debug
@@ -63,6 +63,6 @@ SECTIONS
     cpu/mpc8xx/speed.o	(.text)
     cpu/mpc8xx/serial.o	(.text)
-    lib_ppc/extable.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/extable.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/string.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/exbitgen/u-boot.lds b/board/exbitgen/u-boot.lds
index 2798dc8..52d8ddd 100644
--- a/board/exbitgen/u-boot.lds
+++ b/board/exbitgen/u-boot.lds
@@ -71,5 +71,5 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
diff --git a/board/fads/u-boot.lds.debug b/board/fads/u-boot.lds.debug
index 67d37ae..515296b 100644
--- a/board/fads/u-boot.lds.debug
+++ b/board/fads/u-boot.lds.debug
@@ -60,5 +60,5 @@ SECTIONS
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
     . = env_offset;
diff --git a/board/freescale/mpc7448hpc2/tsi108_init.c b/board/freescale/mpc7448hpc2/tsi108_init.c
index 74bb564..f06890a 100644
--- a/board/freescale/mpc7448hpc2/tsi108_init.c
+++ b/board/freescale/mpc7448hpc2/tsi108_init.c
@@ -324,5 +324,5 @@ int board_early_init_r (void)
 	 * 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)
+	 * (lib/ppc/board.c)
 	 * Alternatively, we could use the I2C EEPROM@start-up to configure
 	 * and enable all HLP banks and not just HLP 0 as is being done for
diff --git a/board/freescale/mpc8610hpcd/u-boot.lds b/board/freescale/mpc8610hpcd/u-boot.lds
index 5cc88ae..c4e47c9 100644
--- a/board/freescale/mpc8610hpcd/u-boot.lds
+++ b/board/freescale/mpc8610hpcd/u-boot.lds
@@ -59,5 +59,5 @@ SECTIONS
     common/dlmalloc.o (.text)
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
     *(.text)
diff --git a/board/freescale/mpc8641hpcn/u-boot.lds b/board/freescale/mpc8641hpcn/u-boot.lds
index e188722..ae944d0 100644
--- a/board/freescale/mpc8641hpcn/u-boot.lds
+++ b/board/freescale/mpc8641hpcn/u-boot.lds
@@ -59,5 +59,5 @@ SECTIONS
     common/dlmalloc.o (.text)
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
     drivers/bios_emulator/atibios.o (.text)
diff --git a/board/genietv/u-boot.lds b/board/genietv/u-boot.lds
index ee0b719..d7f70b7 100644
--- a/board/genietv/u-boot.lds
+++ b/board/genietv/u-boot.lds
@@ -58,5 +58,5 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/genietv/u-boot.lds.debug b/board/genietv/u-boot.lds.debug
index 61fdfe5..d3bfb36 100644
--- a/board/genietv/u-boot.lds.debug
+++ b/board/genietv/u-boot.lds.debug
@@ -58,5 +58,5 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/hermes/u-boot.lds b/board/hermes/u-boot.lds
index 02216fb..eadcaf0 100644
--- a/board/hermes/u-boot.lds
+++ b/board/hermes/u-boot.lds
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o		(.text)
     cpu/mpc8xx/interrupts.o	(.text)
-    lib_ppc/time.o		(.text)
-    lib_ppc/ticks.o		(.text)
-    lib_ppc/cache.o		(.text)
+    lib/ppc/time.o		(.text)
+    lib/ppc/ticks.o		(.text)
+    lib/ppc/cache.o		(.text)
     lib_generic/crc32.o		(.text)
     . = env_offset;
diff --git a/board/hermes/u-boot.lds.debug b/board/hermes/u-boot.lds.debug
index 78456e6..a132c0e 100644
--- a/board/hermes/u-boot.lds.debug
+++ b/board/hermes/u-boot.lds.debug
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     cpu/mpc8xx/interrupts.o (.text)
-    lib_ppc/time.o		(.text)
-    lib_ppc/ticks.o		(.text)
+    lib/ppc/time.o		(.text)
+    lib/ppc/ticks.o		(.text)
     . = env_offset;
     common/env_embedded.o(.text)
diff --git a/board/hymod/u-boot.lds b/board/hymod/u-boot.lds
index 03fefec..73c5e74 100644
--- a/board/hymod/u-boot.lds
+++ b/board/hymod/u-boot.lds
@@ -59,5 +59,5 @@ SECTIONS
 /*
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/icu862/u-boot.lds b/board/icu862/u-boot.lds
index 9a28cfd..71cf813 100644
--- a/board/icu862/u-boot.lds
+++ b/board/icu862/u-boot.lds
@@ -60,5 +60,5 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/icu862/u-boot.lds.debug b/board/icu862/u-boot.lds.debug
index dbd1f9d..23e5c46 100644
--- a/board/icu862/u-boot.lds.debug
+++ b/board/icu862/u-boot.lds.debug
@@ -60,5 +60,5 @@ SECTIONS
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
     . = env_offset;
diff --git a/board/ip860/u-boot.lds b/board/ip860/u-boot.lds
index b47ae8e..82dcdcd 100644
--- a/board/ip860/u-boot.lds
+++ b/board/ip860/u-boot.lds
@@ -58,8 +58,8 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     cpu/mpc8xx/interrupts.o (.text)
-    lib_ppc/time.o		(.text)
-    lib_ppc/ticks.o		(.text)
+    lib/ppc/time.o		(.text)
+    lib/ppc/ticks.o		(.text)
 /**
     . = env_offset;
diff --git a/board/ip860/u-boot.lds.debug b/board/ip860/u-boot.lds.debug
index e8a47f7..d9cc71d 100644
--- a/board/ip860/u-boot.lds.debug
+++ b/board/ip860/u-boot.lds.debug
@@ -57,8 +57,8 @@ SECTIONS
 
     cpu/mpc8xx/start.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     cpu/mpc8xx/interrupts.o (.text)
-    lib_ppc/time.o		(.text)
-    lib_ppc/ticks.o		(.text)
+    lib/ppc/time.o		(.text)
+    lib/ppc/ticks.o		(.text)
 /**
     . = env_offset;
diff --git a/board/ivm/u-boot.lds.debug b/board/ivm/u-boot.lds.debug
index 4d49f1b..eac3d78 100644
--- a/board/ivm/u-boot.lds.debug
+++ b/board/ivm/u-boot.lds.debug
@@ -60,5 +60,5 @@ SECTIONS
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
     . = env_offset;
diff --git a/board/jse/jse.c b/board/jse/jse.c
index 6a6b9dd..1fde72a 100644
--- a/board/jse/jse.c
+++ b/board/jse/jse.c
@@ -27,5 +27,5 @@
 /*
  * 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 lib/ppc/board.c:board_init_f by virtue
  * of being in the init_sequence array.
  *
@@ -86,5 +86,5 @@ int board_pre_init (void)
 
 /*
- * This function is also called by lib_ppc/board.c:board_init_f (it is
+ * This function is also called by lib/ppc/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.
@@ -150,5 +150,5 @@ int checkboard (void)
 
 /*
- * This function is called by lib_ppc/board.c:board_init_r. At this
+ * This function is called by lib/ppc/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.
diff --git a/board/jse/sdram.c b/board/jse/sdram.c
index a1f526d..b3b9dff 100644
--- a/board/jse/sdram.c
+++ b/board/jse/sdram.c
@@ -28,5 +28,5 @@
  * 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 lib/ppc/board.c to initialize the memory and return what I
  * found.
  */
diff --git a/board/keymile/km8xx/u-boot.lds b/board/keymile/km8xx/u-boot.lds
index 5af36c9..0b2fc20 100644
--- a/board/keymile/km8xx/u-boot.lds
+++ b/board/keymile/km8xx/u-boot.lds
@@ -59,10 +59,10 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/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)
+    lib/ppc/cache.o		(.text)
+    lib/ppc/time.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/kup/kup4k/u-boot.lds b/board/kup/kup4k/u-boot.lds
index f2b6650..575e676 100644
--- a/board/kup/kup4k/u-boot.lds
+++ b/board/kup/kup4k/u-boot.lds
@@ -60,5 +60,5 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/kup/kup4x/u-boot.lds b/board/kup/kup4x/u-boot.lds
index f2b6650..575e676 100644
--- a/board/kup/kup4x/u-boot.lds
+++ b/board/kup/kup4x/u-boot.lds
@@ -60,5 +60,5 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/lantec/u-boot.lds b/board/lantec/u-boot.lds
index b9fa2d6..7e1b6ee 100644
--- a/board/lantec/u-boot.lds
+++ b/board/lantec/u-boot.lds
@@ -58,5 +58,5 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/lwmon/u-boot.lds.debug b/board/lwmon/u-boot.lds.debug
index bd9d76c..c035d63 100644
--- a/board/lwmon/u-boot.lds.debug
+++ b/board/lwmon/u-boot.lds.debug
@@ -60,5 +60,5 @@ SECTIONS
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
     . = env_offset;
diff --git a/board/mbx8xx/u-boot.lds.debug b/board/mbx8xx/u-boot.lds.debug
index 67d37ae..515296b 100644
--- a/board/mbx8xx/u-boot.lds.debug
+++ b/board/mbx8xx/u-boot.lds.debug
@@ -60,5 +60,5 @@ SECTIONS
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
     . = env_offset;
diff --git a/board/ml2/u-boot.lds b/board/ml2/u-boot.lds
index a6b6748..e81d4aa 100644
--- a/board/ml2/u-boot.lds
+++ b/board/ml2/u-boot.lds
@@ -66,5 +66,5 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
diff --git a/board/ml2/u-boot.lds.debug b/board/ml2/u-boot.lds.debug
index 338392a..f753355 100644
--- a/board/ml2/u-boot.lds.debug
+++ b/board/ml2/u-boot.lds.debug
@@ -60,5 +60,5 @@ SECTIONS
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
     common/env_embedded.o(.text)
diff --git a/board/mousse/u-boot.lds b/board/mousse/u-boot.lds
index 44144e2..7644b90 100644
--- a/board/mousse/u-boot.lds
+++ b/board/mousse/u-boot.lds
@@ -54,6 +54,6 @@ SECTIONS
   {
     cpu/mpc824x/start.o		(.text)
-    lib_ppc/board.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/board.o		(.text)
+    lib/ppc/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/mousse/u-boot.lds.rom b/board/mousse/u-boot.lds.rom
index 27d10b6..9111252 100644
--- a/board/mousse/u-boot.lds.rom
+++ b/board/mousse/u-boot.lds.rom
@@ -55,5 +55,5 @@ SECTIONS
     cpu/mpc824x/start.o	(.text)
 	 common/board.o (.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/mpc8540eval/u-boot.lds b/board/mpc8540eval/u-boot.lds
index 0747913..cb6ff82 100644
--- a/board/mpc8540eval/u-boot.lds
+++ b/board/mpc8540eval/u-boot.lds
@@ -64,5 +64,5 @@ SECTIONS
     common/dlmalloc.o (.text)
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
     *(.text)
diff --git a/board/mpl/mip405/u-boot.lds b/board/mpl/mip405/u-boot.lds
index d71a299..592c030 100644
--- a/board/mpl/mip405/u-boot.lds
+++ b/board/mpl/mip405/u-boot.lds
@@ -76,5 +76,5 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
diff --git a/board/mpl/pip405/u-boot.lds b/board/mpl/pip405/u-boot.lds
index f6f88a7..38184ad 100644
--- a/board/mpl/pip405/u-boot.lds
+++ b/board/mpl/pip405/u-boot.lds
@@ -71,5 +71,5 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
diff --git a/board/mpl/pip405/u-boot.lds.debug b/board/mpl/pip405/u-boot.lds.debug
index 338392a..f753355 100644
--- a/board/mpl/pip405/u-boot.lds.debug
+++ b/board/mpl/pip405/u-boot.lds.debug
@@ -60,5 +60,5 @@ SECTIONS
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
     common/env_embedded.o(.text)
diff --git a/board/netphone/u-boot.lds b/board/netphone/u-boot.lds
index 68fe165..fc6b123 100644
--- a/board/netphone/u-boot.lds
+++ b/board/netphone/u-boot.lds
@@ -56,10 +56,10 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/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)
+    lib/ppc/cache.o		(.text)
+    lib/ppc/time.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/netstal/hcu4/hcu4.c b/board/netstal/hcu4/hcu4.c
index aa8a097..0d333b0 100644
--- a/board/netstal/hcu4/hcu4.c
+++ b/board/netstal/hcu4/hcu4.c
@@ -35,5 +35,5 @@ 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 lib/ppc/board.c:board_init_f by virtue
  * of being in the init_sequence array.
  *
diff --git a/board/netstal/hcu5/README.txt b/board/netstal/hcu5/README.txt
index f649876..1288131 100644
--- a/board/netstal/hcu5/README.txt
+++ b/board/netstal/hcu5/README.txt
@@ -110,5 +110,5 @@ _start:
 
     call cpu_init_f
-    board_init_f: (lib_ppc\board.c)
+    board_init_f: (lib/ppc\board.c)
 	init_sequence defines a list of function to be called
 	    board_early_init_f: (board/netstal/hcu5/hcu5.c)
@@ -142,5 +142,5 @@ 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: (lib/ppc\board.c)
 	setup bd function pointers
 	trap_init
@@ -163,5 +163,5 @@ include/configs/hcu5.h
 board/netstal/hcu5/*
 cpu/ppc4xx/*
-lib_ppc/*
+lib/ppc/*
 include/ppc440.h
 
diff --git a/board/netstal/hcu5/hcu5.c b/board/netstal/hcu5/hcu5.c
index 6f4ec29..4e37c33 100644
--- a/board/netstal/hcu5/hcu5.c
+++ b/board/netstal/hcu5/hcu5.c
@@ -48,5 +48,5 @@ 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 lib/ppc/board.c:board_init_f by virtue
  * of being in the init_sequence array.
  *
diff --git a/board/netstal/mcu25/mcu25.c b/board/netstal/mcu25/mcu25.c
index 66ed95f..3ae8445 100644
--- a/board/netstal/mcu25/mcu25.c
+++ b/board/netstal/mcu25/mcu25.c
@@ -40,5 +40,5 @@ 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 lib/ppc/board.c:board_init_f by virtue
  * of being in the init_sequence array.
  *
diff --git a/board/netta/u-boot.lds b/board/netta/u-boot.lds
index 14201ac..2e060ba 100644
--- a/board/netta/u-boot.lds
+++ b/board/netta/u-boot.lds
@@ -56,10 +56,10 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/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)
+    lib/ppc/cache.o		(.text)
+    lib/ppc/time.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/netta2/u-boot.lds b/board/netta2/u-boot.lds
index 14201ac..2e060ba 100644
--- a/board/netta2/u-boot.lds
+++ b/board/netta2/u-boot.lds
@@ -56,10 +56,10 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/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)
+    lib/ppc/cache.o		(.text)
+    lib/ppc/time.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/netvia/u-boot.lds b/board/netvia/u-boot.lds
index 8c48f1f..3af9e85 100644
--- a/board/netvia/u-boot.lds
+++ b/board/netvia/u-boot.lds
@@ -56,10 +56,10 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/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)
+    lib/ppc/cache.o		(.text)
+    lib/ppc/time.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/pm854/u-boot.lds b/board/pm854/u-boot.lds
index 45aaadc..11e7785 100644
--- a/board/pm854/u-boot.lds
+++ b/board/pm854/u-boot.lds
@@ -72,5 +72,5 @@ SECTIONS
     common/dlmalloc.o (.text)
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
     *(.text)
diff --git a/board/pm856/u-boot.lds b/board/pm856/u-boot.lds
index 1dce2ab..19fa083 100644
--- a/board/pm856/u-boot.lds
+++ b/board/pm856/u-boot.lds
@@ -72,5 +72,5 @@ SECTIONS
     common/dlmalloc.o (.text)
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
     *(.text)
diff --git a/board/quantum/u-boot.lds b/board/quantum/u-boot.lds
index faa1c6c..dd5b607 100644
--- a/board/quantum/u-boot.lds
+++ b/board/quantum/u-boot.lds
@@ -58,5 +58,5 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/rbc823/u-boot.lds b/board/rbc823/u-boot.lds
index 552f15d..bfdfffa 100644
--- a/board/rbc823/u-boot.lds
+++ b/board/rbc823/u-boot.lds
@@ -58,5 +58,5 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/rmu/u-boot.lds b/board/rmu/u-boot.lds
index faa1c6c..dd5b607 100644
--- a/board/rmu/u-boot.lds
+++ b/board/rmu/u-boot.lds
@@ -58,5 +58,5 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/sandburst/karef/u-boot.lds b/board/sandburst/karef/u-boot.lds
index f509100..f157d17 100644
--- a/board/sandburst/karef/u-boot.lds
+++ b/board/sandburst/karef/u-boot.lds
@@ -78,5 +78,5 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
diff --git a/board/sandburst/karef/u-boot.lds.debug b/board/sandburst/karef/u-boot.lds.debug
index d00e252..97b3a80 100644
--- a/board/sandburst/karef/u-boot.lds.debug
+++ b/board/sandburst/karef/u-boot.lds.debug
@@ -68,5 +68,5 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
diff --git a/board/sandburst/metrobox/u-boot.lds b/board/sandburst/metrobox/u-boot.lds
index f1bc4a0..7bd3ca4 100644
--- a/board/sandburst/metrobox/u-boot.lds
+++ b/board/sandburst/metrobox/u-boot.lds
@@ -78,5 +78,5 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
diff --git a/board/sandburst/metrobox/u-boot.lds.debug b/board/sandburst/metrobox/u-boot.lds.debug
index a3350f2..0d2674d 100644
--- a/board/sandburst/metrobox/u-boot.lds.debug
+++ b/board/sandburst/metrobox/u-boot.lds.debug
@@ -68,5 +68,5 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
diff --git a/board/sbc405/u-boot.lds b/board/sbc405/u-boot.lds
index d9410fa..36d128b 100644
--- a/board/sbc405/u-boot.lds
+++ b/board/sbc405/u-boot.lds
@@ -70,5 +70,5 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
diff --git a/board/sbc8548/u-boot.lds b/board/sbc8548/u-boot.lds
index a54a001..8cd87a6 100644
--- a/board/sbc8548/u-boot.lds
+++ b/board/sbc8548/u-boot.lds
@@ -71,5 +71,5 @@ SECTIONS
     common/dlmalloc.o (.text)
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
     *(.text)
diff --git a/board/sbc8560/u-boot.lds b/board/sbc8560/u-boot.lds
index 8c12ba4..41e2b6f 100644
--- a/board/sbc8560/u-boot.lds
+++ b/board/sbc8560/u-boot.lds
@@ -77,5 +77,5 @@ SECTIONS
     common/dlmalloc.o (.text)
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
     *(.text)
diff --git a/board/sbc8641d/u-boot.lds b/board/sbc8641d/u-boot.lds
index f156d4f..2a5baa7 100644
--- a/board/sbc8641d/u-boot.lds
+++ b/board/sbc8641d/u-boot.lds
@@ -59,5 +59,5 @@ SECTIONS
     common/dlmalloc.o (.text)
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
     *(.text)
diff --git a/board/sc3/u-boot.lds b/board/sc3/u-boot.lds
index 75174e1..9e8213c 100644
--- a/board/sc3/u-boot.lds
+++ b/board/sc3/u-boot.lds
@@ -71,5 +71,5 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
diff --git a/board/siemens/CCM/u-boot.lds b/board/siemens/CCM/u-boot.lds
index 61650a8..b72e021 100644
--- a/board/siemens/CCM/u-boot.lds
+++ b/board/siemens/CCM/u-boot.lds
@@ -58,5 +58,5 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/siemens/IAD210/u-boot.lds b/board/siemens/IAD210/u-boot.lds
index 12a53ba..646a156 100644
--- a/board/siemens/IAD210/u-boot.lds
+++ b/board/siemens/IAD210/u-boot.lds
@@ -58,7 +58,7 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     cpu/mpc8xx/interrupts.o (.text)
-    lib_ppc/time.o		(.text)
+    lib/ppc/time.o		(.text)
     . = env_offset;
     common/env_embedded.o(.text)
diff --git a/board/siemens/pcu_e/u-boot.lds.debug b/board/siemens/pcu_e/u-boot.lds.debug
index bd9d76c..c035d63 100644
--- a/board/siemens/pcu_e/u-boot.lds.debug
+++ b/board/siemens/pcu_e/u-boot.lds.debug
@@ -60,5 +60,5 @@ SECTIONS
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
     . = env_offset;
diff --git a/board/snmc/qs850/u-boot.lds b/board/snmc/qs850/u-boot.lds
index 7de0de8..d9e329d 100644
--- a/board/snmc/qs850/u-boot.lds
+++ b/board/snmc/qs850/u-boot.lds
@@ -59,10 +59,10 @@ SECTIONS
 	cpu/mpc8xx/traps.o		(.text)
 	common/dlmalloc.o		(.text)
-	lib_ppc/ppcstring.o		(.text)
+	lib/ppc/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)
+	lib/ppc/cache.o		(.text)
+	lib/ppc/time.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/snmc/qs860t/u-boot.lds b/board/snmc/qs860t/u-boot.lds
index 7de0de8..d9e329d 100644
--- a/board/snmc/qs860t/u-boot.lds
+++ b/board/snmc/qs860t/u-boot.lds
@@ -59,10 +59,10 @@ SECTIONS
 	cpu/mpc8xx/traps.o		(.text)
 	common/dlmalloc.o		(.text)
-	lib_ppc/ppcstring.o		(.text)
+	lib/ppc/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)
+	lib/ppc/cache.o		(.text)
+	lib/ppc/time.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/socrates/u-boot.lds b/board/socrates/u-boot.lds
index 9241b5c..8f33d44 100644
--- a/board/socrates/u-boot.lds
+++ b/board/socrates/u-boot.lds
@@ -75,5 +75,5 @@ SECTIONS
     common/dlmalloc.o (.text)
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
     *(.text)
diff --git a/board/spc1920/u-boot.lds b/board/spc1920/u-boot.lds
index 4e221bc..caf1f08 100644
--- a/board/spc1920/u-boot.lds
+++ b/board/spc1920/u-boot.lds
@@ -59,10 +59,10 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/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)
+    lib/ppc/cache.o		(.text)
+    lib/ppc/time.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/spd8xx/u-boot.lds.debug b/board/spd8xx/u-boot.lds.debug
index 67d37ae..515296b 100644
--- a/board/spd8xx/u-boot.lds.debug
+++ b/board/spd8xx/u-boot.lds.debug
@@ -60,5 +60,5 @@ SECTIONS
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
     . = env_offset;
diff --git a/board/stxgp3/u-boot.lds b/board/stxgp3/u-boot.lds
index 182e940..6ff1629 100644
--- a/board/stxgp3/u-boot.lds
+++ b/board/stxgp3/u-boot.lds
@@ -79,5 +79,5 @@ SECTIONS
     common/dlmalloc.o (.text)
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
     *(.text)
diff --git a/board/stxssa/stxssa.c b/board/stxssa/stxssa.c
index 73dddf3..cff5367 100644
--- a/board/stxssa/stxssa.c
+++ b/board/stxssa/stxssa.c
@@ -260,5 +260,5 @@ board_early_init_f(void)
 
 	/* Why is the phy reset done _after_ the ethernet
-	 * initialization in lib_ppc/board.c?
+	 * initialization in lib/ppc/board.c?
 	 * Do it here so it's done before the TSECs are used.
 	 */
diff --git a/board/stxssa/u-boot.lds b/board/stxssa/u-boot.lds
index 750ddb3..3e25716 100644
--- a/board/stxssa/u-boot.lds
+++ b/board/stxssa/u-boot.lds
@@ -79,5 +79,5 @@ SECTIONS
     common/dlmalloc.o (.text)
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
     *(.text)
diff --git a/board/stxxtc/u-boot.lds b/board/stxxtc/u-boot.lds
index 14201ac..2e060ba 100644
--- a/board/stxxtc/u-boot.lds
+++ b/board/stxxtc/u-boot.lds
@@ -56,10 +56,10 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/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)
+    lib/ppc/cache.o		(.text)
+    lib/ppc/time.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/svm_sc8xx/u-boot.lds b/board/svm_sc8xx/u-boot.lds
index 11a819a..145541a 100644
--- a/board/svm_sc8xx/u-boot.lds
+++ b/board/svm_sc8xx/u-boot.lds
@@ -59,10 +59,10 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/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)
+    lib/ppc/cache.o		(.text)
+    lib/ppc/time.o		(.text)
 
     . = env_offset;
diff --git a/board/tqc/tqm85xx/u-boot.lds b/board/tqc/tqm85xx/u-boot.lds
index 91c8952..666abf5 100644
--- a/board/tqc/tqm85xx/u-boot.lds
+++ b/board/tqc/tqm85xx/u-boot.lds
@@ -72,5 +72,5 @@ SECTIONS
     common/dlmalloc.o (.text)
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
     *(.text)
diff --git a/board/tqc/tqm8xx/u-boot.lds b/board/tqc/tqm8xx/u-boot.lds
index 19c1541..e63f593 100644
--- a/board/tqc/tqm8xx/u-boot.lds
+++ b/board/tqc/tqm8xx/u-boot.lds
@@ -59,9 +59,9 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/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/cache.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/uc100/u-boot.lds b/board/uc100/u-boot.lds
index 1450d37..3ab0eb0 100644
--- a/board/uc100/u-boot.lds
+++ b/board/uc100/u-boot.lds
@@ -59,10 +59,10 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/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)
+    lib/ppc/cache.o		(.text)
+    lib/ppc/time.o		(.text)
 
     common/env_embedded.o	(.text)
diff --git a/board/v37/u-boot.lds b/board/v37/u-boot.lds
index d24289c..b9407b6 100644
--- a/board/v37/u-boot.lds
+++ b/board/v37/u-boot.lds
@@ -59,10 +59,10 @@ SECTIONS
     cpu/mpc8xx/traps.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/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)
+    lib/ppc/cache.o		(.text)
+    lib/ppc/time.o		(.text)
 
 /*
diff --git a/board/w7o/u-boot.lds.debug b/board/w7o/u-boot.lds.debug
index d2089de..403c29a 100644
--- a/board/w7o/u-boot.lds.debug
+++ b/board/w7o/u-boot.lds.debug
@@ -60,5 +60,5 @@ SECTIONS
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
     common/env_embedded.o(.text)
diff --git a/board/westel/amx860/u-boot.lds b/board/westel/amx860/u-boot.lds
index 61650a8..b72e021 100644
--- a/board/westel/amx860/u-boot.lds
+++ b/board/westel/amx860/u-boot.lds
@@ -58,5 +58,5 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
diff --git a/board/westel/amx860/u-boot.lds.debug b/board/westel/amx860/u-boot.lds.debug
index dbd1f9d..23e5c46 100644
--- a/board/westel/amx860/u-boot.lds.debug
+++ b/board/westel/amx860/u-boot.lds.debug
@@ -60,5 +60,5 @@ SECTIONS
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
     . = env_offset;
diff --git a/board/xes/xpedite5170/u-boot.lds b/board/xes/xpedite5170/u-boot.lds
index b71a7d6..b65a68d 100644
--- a/board/xes/xpedite5170/u-boot.lds
+++ b/board/xes/xpedite5170/u-boot.lds
@@ -59,5 +59,5 @@ SECTIONS
     common/dlmalloc.o (.text)
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
     *(.text)
diff --git a/board/xilinx/ml300/u-boot.lds b/board/xilinx/ml300/u-boot.lds
index fa60e6b..d77cd49 100644
--- a/board/xilinx/ml300/u-boot.lds
+++ b/board/xilinx/ml300/u-boot.lds
@@ -68,5 +68,5 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 */
diff --git a/board/xilinx/ml300/u-boot.lds.debug b/board/xilinx/ml300/u-boot.lds.debug
index 338392a..f753355 100644
--- a/board/xilinx/ml300/u-boot.lds.debug
+++ b/board/xilinx/ml300/u-boot.lds.debug
@@ -60,5 +60,5 @@ SECTIONS
     lib_generic/vsprintf.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
     common/env_embedded.o(.text)
diff --git a/board/xpedite1k/u-boot.lds b/board/xpedite1k/u-boot.lds
index c8f9646..19814df 100644
--- a/board/xpedite1k/u-boot.lds
+++ b/board/xpedite1k/u-boot.lds
@@ -76,5 +76,5 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
diff --git a/board/xpedite1k/u-boot.lds.debug b/board/xpedite1k/u-boot.lds.debug
index 5824cd9..f7ddf62 100644
--- a/board/xpedite1k/u-boot.lds.debug
+++ b/board/xpedite1k/u-boot.lds.debug
@@ -66,5 +66,5 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
 
diff --git a/config.mk b/config.mk
index 02700f3..b7418c5 100644
--- a/config.mk
+++ b/config.mk
@@ -85,4 +85,5 @@ sinclude $(OBJTREE)/include/autoconf.mk
 ifdef	ARCH
 sinclude $(TOPDIR)/lib_$(ARCH)/config.mk	# include architecture dependend rules
+sinclude $(TOPDIR)/lib/$(ARCH)/config.mk	# include architecture dependend rules
 endif
 ifdef	CPU
diff --git a/cpu/mpc5xxx/u-boot-customlayout.lds b/cpu/mpc5xxx/u-boot-customlayout.lds
index 9563690..cd37491 100644
--- a/cpu/mpc5xxx/u-boot-customlayout.lds
+++ b/cpu/mpc5xxx/u-boot-customlayout.lds
@@ -59,6 +59,6 @@ SECTIONS
     cpu/mpc5xxx/traps.o          (.text)
     lib_generic/crc32.o         (.text)
-    lib_ppc/cache.o             (.text)
-    lib_ppc/time.o              (.text)
+    lib/ppc/cache.o             (.text)
+    lib/ppc/time.o              (.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/doc/README.alaska8220 b/doc/README.alaska8220
index 0bd68d9..8573f98 100644
--- a/doc/README.alaska8220
+++ b/doc/README.alaska8220
@@ -23,5 +23,5 @@ Changed files:
 			    vco_clk, pev_clk, flb_clk, and bExtUart
 
-- lib_ppc/board.c	    added CONFIG_MPC8220 support
+- lib/ppc/board.c	    added CONFIG_MPC8220 support
 
 - net/eth.c		    added FEC support for MPC8220
diff --git a/doc/README.mpc5xx b/doc/README.mpc5xx
index 07be863..4392beb 100644
--- a/doc/README.mpc5xx
+++ b/doc/README.mpc5xx
@@ -35,7 +35,7 @@ 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/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/Makefile
 u-boot-0.2.0/CREDITS
diff --git a/lib_ppc/Makefile b/lib/ppc/Makefile
similarity index 100%
rename from lib_ppc/Makefile
rename to lib/ppc/Makefile
diff --git a/lib_ppc/bat_rw.c b/lib/ppc/bat_rw.c
similarity index 100%
rename from lib_ppc/bat_rw.c
rename to lib/ppc/bat_rw.c
diff --git a/lib_ppc/board.c b/lib/ppc/board.c
similarity index 100%
rename from lib_ppc/board.c
rename to lib/ppc/board.c
diff --git a/lib_ppc/bootm.c b/lib/ppc/bootm.c
similarity index 100%
rename from lib_ppc/bootm.c
rename to lib/ppc/bootm.c
diff --git a/lib_ppc/cache.c b/lib/ppc/cache.c
similarity index 100%
rename from lib_ppc/cache.c
rename to lib/ppc/cache.c
diff --git a/lib_ppc/config.mk b/lib/ppc/config.mk
similarity index 100%
rename from lib_ppc/config.mk
rename to lib/ppc/config.mk
diff --git a/lib_ppc/extable.c b/lib/ppc/extable.c
similarity index 100%
rename from lib_ppc/extable.c
rename to lib/ppc/extable.c
diff --git a/lib_ppc/interrupts.c b/lib/ppc/interrupts.c
similarity index 100%
rename from lib_ppc/interrupts.c
rename to lib/ppc/interrupts.c
diff --git a/lib_ppc/kgdb.c b/lib/ppc/kgdb.c
similarity index 100%
rename from lib_ppc/kgdb.c
rename to lib/ppc/kgdb.c
diff --git a/lib_ppc/ppccache.S b/lib/ppc/ppccache.S
similarity index 100%
rename from lib_ppc/ppccache.S
rename to lib/ppc/ppccache.S
diff --git a/lib_ppc/ppcstring.S b/lib/ppc/ppcstring.S
similarity index 100%
rename from lib_ppc/ppcstring.S
rename to lib/ppc/ppcstring.S
diff --git a/lib_ppc/ticks.S b/lib/ppc/ticks.S
similarity index 100%
rename from lib_ppc/ticks.S
rename to lib/ppc/ticks.S
diff --git a/lib_ppc/time.c b/lib/ppc/time.c
similarity index 100%
rename from lib_ppc/time.c
rename to lib/ppc/time.c
diff --git a/nand_spl/board/freescale/mpc8313erdb/Makefile b/nand_spl/board/freescale/mpc8313erdb/Makefile
index 1a8f6ff..4dd83fd 100644
--- a/nand_spl/board/freescale/mpc8313erdb/Makefile
+++ b/nand_spl/board/freescale/mpc8313erdb/Makefile
@@ -82,11 +82,11 @@ $(obj)nand_init.c:
 
 $(obj)cache.c:
-	ln -sf $(SRCTREE)/lib_ppc/cache.c $(obj)cache.c
+	ln -sf $(SRCTREE)/lib/ppc/cache.c $(obj)cache.c
 
 $(obj)time.c:
-	ln -sf $(SRCTREE)/lib_ppc/time.c $(obj)time.c
+	ln -sf $(SRCTREE)/lib/ppc/time.c $(obj)time.c
 
 $(obj)ticks.S:
-	ln -sf $(SRCTREE)/lib_ppc/ticks.S $(obj)ticks.S
+	ln -sf $(SRCTREE)/lib/ppc/ticks.S $(obj)ticks.S
 
 #########################################################################
diff --git a/nand_spl/board/sheldon/simpc8313/Makefile b/nand_spl/board/sheldon/simpc8313/Makefile
index 20199c7..7898040 100644
--- a/nand_spl/board/sheldon/simpc8313/Makefile
+++ b/nand_spl/board/sheldon/simpc8313/Makefile
@@ -88,13 +88,13 @@ $(obj)nand_init.c:
 $(obj)cache.c:
 	@rm -f $@
-	ln -s $(SRCTREE)/lib_ppc/cache.c $@
+	ln -s $(SRCTREE)/lib/ppc/cache.c $@
 
 $(obj)time.c:
 	@rm -f $@
-	ln -s $(SRCTREE)/lib_ppc/time.c $@
+	ln -s $(SRCTREE)/lib/ppc/time.c $@
 
 $(obj)ticks.S:
 	@rm -f $@
-	ln -s $(SRCTREE)/lib_ppc/ticks.S $@
+	ln -s $(SRCTREE)/lib/ppc/ticks.S $@
 
 #########################################################################
-- 
1.6.2.1

^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 3/9] Move lib_arm to lib/arm
  2009-07-09 15:08 [U-Boot] [PATCH 0/9] Clean up top-level directory structure Peter Tyser
  2009-07-09 15:08 ` [U-Boot] [PATCH 1/9] Move architecture specific config.mk files into subdirs Peter Tyser
  2009-07-09 15:08 ` [U-Boot] [PATCH 2/9] Move lib_ppc to lib/ppc Peter Tyser
@ 2009-07-09 15:08 ` Peter Tyser
  2009-07-09 15:08 ` [U-Boot] [PATCH 4/9] Move lib_i386 to lib/i386 Peter Tyser
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 20+ messages in thread
From: Peter Tyser @ 2009-07-09 15:08 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
---
 README                             |    2 +-
 board/actux1/u-boot.lds            |    2 +-
 board/actux2/u-boot.lds            |    2 +-
 board/actux3/u-boot.lds            |    2 +-
 board/freescale/mx31ads/u-boot.lds |    2 +-
 board/trab/Makefile                |    4 ++--
 board/trab/u-boot.lds              |    2 +-
 doc/README.LED                     |    2 +-
 include/configs/B2.h               |    2 +-
 {lib_arm => lib/arm}/Makefile      |    0
 {lib_arm => lib/arm}/_ashldi3.S    |    0
 {lib_arm => lib/arm}/_ashrdi3.S    |    0
 {lib_arm => lib/arm}/_divsi3.S     |    0
 {lib_arm => lib/arm}/_modsi3.S     |    0
 {lib_arm => lib/arm}/_udivsi3.S    |    0
 {lib_arm => lib/arm}/_umodsi3.S    |    0
 {lib_arm => lib/arm}/board.c       |    0
 {lib_arm => lib/arm}/bootm.c       |    0
 {lib_arm => lib/arm}/cache-cp15.c  |    0
 {lib_arm => lib/arm}/cache.c       |    0
 {lib_arm => lib/arm}/config.mk     |    0
 {lib_arm => lib/arm}/div0.c        |    0
 {lib_arm => lib/arm}/interrupts.c  |    0
 {lib_arm => lib/arm}/reset.c       |    0
 24 files changed, 10 insertions(+), 10 deletions(-)
 rename {lib_arm => lib/arm}/Makefile (100%)
 rename {lib_arm => lib/arm}/_ashldi3.S (100%)
 rename {lib_arm => lib/arm}/_ashrdi3.S (100%)
 rename {lib_arm => lib/arm}/_divsi3.S (100%)
 rename {lib_arm => lib/arm}/_modsi3.S (100%)
 rename {lib_arm => lib/arm}/_udivsi3.S (100%)
 rename {lib_arm => lib/arm}/_umodsi3.S (100%)
 rename {lib_arm => lib/arm}/board.c (100%)
 rename {lib_arm => lib/arm}/bootm.c (100%)
 rename {lib_arm => lib/arm}/cache-cp15.c (100%)
 rename {lib_arm => lib/arm}/cache.c (100%)
 rename {lib_arm => lib/arm}/config.mk (100%)
 rename {lib_arm => lib/arm}/div0.c (100%)
 rename {lib_arm => lib/arm}/interrupts.c (100%)
 rename {lib_arm => lib/arm}/reset.c (100%)

diff --git a/README b/README
index 28991c3..e3ea156 100644
--- a/README
+++ b/README
@@ -182,5 +182,5 @@ Directory Hierarchy:
 - examples	Example code for standalone applications, etc.
 - include	Header Files
-- lib_arm	Files generic to ARM	 architecture
+- lib/arm	Files generic to ARM	 architecture
 - lib_avr32	Files generic to AVR32	 architecture
 - lib_blackfin	Files generic to Blackfin architecture
diff --git a/board/actux1/u-boot.lds b/board/actux1/u-boot.lds
index 836775f..a695056 100644
--- a/board/actux1/u-boot.lds
+++ b/board/actux1/u-boot.lds
@@ -34,5 +34,5 @@ SECTIONS
 		lib_generic/string.o(.text)
 		lib_generic/vsprintf.o(.text)
-		lib_arm/board.o(.text)
+		lib/arm/board.o(.text)
 		common/dlmalloc.o(.text)
 		cpu/ixp/cpu.o(.text)
diff --git a/board/actux2/u-boot.lds b/board/actux2/u-boot.lds
index 0752656..4423000 100644
--- a/board/actux2/u-boot.lds
+++ b/board/actux2/u-boot.lds
@@ -34,5 +34,5 @@ SECTIONS
 		lib_generic/string.o(.text)
 		lib_generic/vsprintf.o(.text)
-		lib_arm/board.o(.text)
+		lib/arm/board.o(.text)
 		common/dlmalloc.o(.text)
 		cpu/ixp/cpu.o(.text)
diff --git a/board/actux3/u-boot.lds b/board/actux3/u-boot.lds
index a69e7db..985271d 100644
--- a/board/actux3/u-boot.lds
+++ b/board/actux3/u-boot.lds
@@ -34,5 +34,5 @@ SECTIONS
 		lib_generic/string.o (.text)
 		lib_generic/vsprintf.o (.text)
-		lib_arm/board.o (.text)
+		lib/arm/board.o (.text)
 		common/dlmalloc.o (.text)
 		cpu/ixp/cpu.o (.text)
diff --git a/board/freescale/mx31ads/u-boot.lds b/board/freescale/mx31ads/u-boot.lds
index 3182aa6..9482d60 100644
--- a/board/freescale/mx31ads/u-boot.lds
+++ b/board/freescale/mx31ads/u-boot.lds
@@ -40,5 +40,5 @@ SECTIONS
 	  cpu/arm1136/start.o			(.text)
 	  board/freescale/mx31ads/libmx31ads.a	(.text)
-	  lib_arm/libarm.a			(.text)
+	  lib/arm/libarm.a			(.text)
 	  net/libnet.a				(.text)
 	  drivers/mtd/libmtd.a			(.text)
diff --git a/board/trab/Makefile b/board/trab/Makefile
index 30e5fbb..9233f49 100644
--- a/board/trab/Makefile
+++ b/board/trab/Makefile
@@ -52,6 +52,6 @@ $(obj)trab_fkt.srec:	$(OBJS_FKT) $(LIB)
 		-L$(obj)../../examples -lstubs \
 		-L$(obj)../../lib_generic -lgeneric \
-		$(obj)../../lib_arm/div0.o \
-		$(obj)../../lib_arm/_*.o
+		$(obj)../../lib/arm/div0.o \
+		$(obj)../../lib/arm/_*.o
 	$(OBJCOPY) -O srec $(<:.o=) $@
 
diff --git a/board/trab/u-boot.lds b/board/trab/u-boot.lds
index d8bcfa4..2e0e721 100644
--- a/board/trab/u-boot.lds
+++ b/board/trab/u-boot.lds
@@ -34,5 +34,5 @@ SECTIONS
 	{
 	  cpu/arm920t/start.o	(.text)
-	  lib_arm/_umodsi3.o	(.text)
+	  lib/arm/_umodsi3.o	(.text)
 	  lib_generic/zlib.o	(.text)
 	  lib_generic/crc32.o	(.text)
diff --git a/doc/README.LED b/doc/README.LED
index 94e552a..db3e8b0 100644
--- a/doc/README.LED
+++ b/doc/README.LED
@@ -70,5 +70,5 @@ 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 lib/arm/board.c to noops. Where applicable, define
 these functions in the board specific source.
 
diff --git a/include/configs/B2.h b/include/configs/B2.h
index e5439f3..5c2c8c9 100644
--- a/include/configs/B2.h
+++ b/include/configs/B2.h
@@ -208,5 +208,5 @@
 
 /*
-	Linux TAGs (see lib_arm/armlinux.c)
+	Linux TAGs (see lib/arm/armlinux.c)
 */
 #define CONFIG_CMDLINE_TAG
diff --git a/lib_arm/Makefile b/lib/arm/Makefile
similarity index 100%
rename from lib_arm/Makefile
rename to lib/arm/Makefile
diff --git a/lib_arm/_ashldi3.S b/lib/arm/_ashldi3.S
similarity index 100%
rename from lib_arm/_ashldi3.S
rename to lib/arm/_ashldi3.S
diff --git a/lib_arm/_ashrdi3.S b/lib/arm/_ashrdi3.S
similarity index 100%
rename from lib_arm/_ashrdi3.S
rename to lib/arm/_ashrdi3.S
diff --git a/lib_arm/_divsi3.S b/lib/arm/_divsi3.S
similarity index 100%
rename from lib_arm/_divsi3.S
rename to lib/arm/_divsi3.S
diff --git a/lib_arm/_modsi3.S b/lib/arm/_modsi3.S
similarity index 100%
rename from lib_arm/_modsi3.S
rename to lib/arm/_modsi3.S
diff --git a/lib_arm/_udivsi3.S b/lib/arm/_udivsi3.S
similarity index 100%
rename from lib_arm/_udivsi3.S
rename to lib/arm/_udivsi3.S
diff --git a/lib_arm/_umodsi3.S b/lib/arm/_umodsi3.S
similarity index 100%
rename from lib_arm/_umodsi3.S
rename to lib/arm/_umodsi3.S
diff --git a/lib_arm/board.c b/lib/arm/board.c
similarity index 100%
rename from lib_arm/board.c
rename to lib/arm/board.c
diff --git a/lib_arm/bootm.c b/lib/arm/bootm.c
similarity index 100%
rename from lib_arm/bootm.c
rename to lib/arm/bootm.c
diff --git a/lib_arm/cache-cp15.c b/lib/arm/cache-cp15.c
similarity index 100%
rename from lib_arm/cache-cp15.c
rename to lib/arm/cache-cp15.c
diff --git a/lib_arm/cache.c b/lib/arm/cache.c
similarity index 100%
rename from lib_arm/cache.c
rename to lib/arm/cache.c
diff --git a/lib_arm/config.mk b/lib/arm/config.mk
similarity index 100%
rename from lib_arm/config.mk
rename to lib/arm/config.mk
diff --git a/lib_arm/div0.c b/lib/arm/div0.c
similarity index 100%
rename from lib_arm/div0.c
rename to lib/arm/div0.c
diff --git a/lib_arm/interrupts.c b/lib/arm/interrupts.c
similarity index 100%
rename from lib_arm/interrupts.c
rename to lib/arm/interrupts.c
diff --git a/lib_arm/reset.c b/lib/arm/reset.c
similarity index 100%
rename from lib_arm/reset.c
rename to lib/arm/reset.c
-- 
1.6.2.1

^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 4/9] Move lib_i386 to lib/i386
  2009-07-09 15:08 [U-Boot] [PATCH 0/9] Clean up top-level directory structure Peter Tyser
                   ` (2 preceding siblings ...)
  2009-07-09 15:08 ` [U-Boot] [PATCH 3/9] Move lib_arm to lib/arm Peter Tyser
@ 2009-07-09 15:08 ` Peter Tyser
  2009-07-09 15:08 ` [U-Boot] [PATCH 5/9] Move lib_m68k to lib/m68k Peter Tyser
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 20+ messages in thread
From: Peter Tyser @ 2009-07-09 15:08 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
---
 README                                   |    2 +-
 doc/TODO-i386                            |    2 +-
 include/asm-i386/interrupt.h             |    2 +-
 include/asm-i386/u-boot-i386.h           |    4 ++--
 {lib_i386 => lib/i386}/Makefile          |    0
 {lib_i386 => lib/i386}/bios.S            |    0
 {lib_i386 => lib/i386}/bios.h            |    0
 {lib_i386 => lib/i386}/bios_pci.S        |    0
 {lib_i386 => lib/i386}/bios_setup.c      |    0
 {lib_i386 => lib/i386}/board.c           |    0
 {lib_i386 => lib/i386}/bootm.c           |    0
 {lib_i386 => lib/i386}/config.mk         |    0
 {lib_i386 => lib/i386}/interrupts.c      |    0
 {lib_i386 => lib/i386}/pcat_interrupts.c |    0
 {lib_i386 => lib/i386}/pcat_timer.c      |    0
 {lib_i386 => lib/i386}/pci.c             |    0
 {lib_i386 => lib/i386}/pci_type1.c       |    0
 {lib_i386 => lib/i386}/realmode.c        |    0
 {lib_i386 => lib/i386}/realmode_switch.S |    0
 {lib_i386 => lib/i386}/timer.c           |    0
 {lib_i386 => lib/i386}/video.c           |    0
 {lib_i386 => lib/i386}/video_bios.c      |    0
 {lib_i386 => lib/i386}/zimage.c          |    0
 23 files changed, 5 insertions(+), 5 deletions(-)
 rename {lib_i386 => lib/i386}/Makefile (100%)
 rename {lib_i386 => lib/i386}/bios.S (100%)
 rename {lib_i386 => lib/i386}/bios.h (100%)
 rename {lib_i386 => lib/i386}/bios_pci.S (100%)
 rename {lib_i386 => lib/i386}/bios_setup.c (100%)
 rename {lib_i386 => lib/i386}/board.c (100%)
 rename {lib_i386 => lib/i386}/bootm.c (100%)
 rename {lib_i386 => lib/i386}/config.mk (100%)
 rename {lib_i386 => lib/i386}/interrupts.c (100%)
 rename {lib_i386 => lib/i386}/pcat_interrupts.c (100%)
 rename {lib_i386 => lib/i386}/pcat_timer.c (100%)
 rename {lib_i386 => lib/i386}/pci.c (100%)
 rename {lib_i386 => lib/i386}/pci_type1.c (100%)
 rename {lib_i386 => lib/i386}/realmode.c (100%)
 rename {lib_i386 => lib/i386}/realmode_switch.S (100%)
 rename {lib_i386 => lib/i386}/timer.c (100%)
 rename {lib_i386 => lib/i386}/video.c (100%)
 rename {lib_i386 => lib/i386}/video_bios.c (100%)
 rename {lib_i386 => lib/i386}/zimage.c (100%)

diff --git a/README b/README
index e3ea156..7de0a86 100644
--- a/README
+++ b/README
@@ -186,5 +186,5 @@ Directory Hierarchy:
 - lib_blackfin	Files generic to Blackfin architecture
 - lib_generic	Files generic to all	 architectures
-- lib_i386	Files generic to i386	 architecture
+- lib/i386	Files generic to i386	 architecture
 - lib_m68k	Files generic to m68k	 architecture
 - lib_mips	Files generic to MIPS	 architecture
diff --git a/doc/TODO-i386 b/doc/TODO-i386
index 84113f8..9769578 100644
--- a/doc/TODO-i386
+++ b/doc/TODO-i386
@@ -9,5 +9,5 @@ i386 port missing features:
   (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 lib/i386 and cpu/i386
 * speaker beep interface
 
diff --git a/include/asm-i386/interrupt.h b/include/asm-i386/interrupt.h
index 7f408cb..ae7540f 100644
--- a/include/asm-i386/interrupt.h
+++ b/include/asm-i386/interrupt.h
@@ -31,5 +31,5 @@
 void set_vector(u8 intnum, void *routine);
 
-/* lib_i386/interupts.c */
+/* lib/i386/interupts.c */
 void disable_irq(int irq);
 void enable_irq(int irq);
diff --git a/include/asm-i386/u-boot-i386.h b/include/asm-i386/u-boot-i386.h
index 3921e01..b9c6d25 100644
--- a/include/asm-i386/u-boot-i386.h
+++ b/include/asm-i386/u-boot-i386.h
@@ -50,5 +50,5 @@ 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/, lib/i386/, or $(BOARD)/ */
 int timer_init(void);
 
@@ -66,5 +66,5 @@ void isa_unmap_rom(u32 addr);
 u32 isa_map_rom(u32 bus_addr, int size);
 
-/* lib_i386/... */
+/* lib/i386/... */
 int video_bios_init(void);
 int video_init(void);
diff --git a/lib_i386/Makefile b/lib/i386/Makefile
similarity index 100%
rename from lib_i386/Makefile
rename to lib/i386/Makefile
diff --git a/lib_i386/bios.S b/lib/i386/bios.S
similarity index 100%
rename from lib_i386/bios.S
rename to lib/i386/bios.S
diff --git a/lib_i386/bios.h b/lib/i386/bios.h
similarity index 100%
rename from lib_i386/bios.h
rename to lib/i386/bios.h
diff --git a/lib_i386/bios_pci.S b/lib/i386/bios_pci.S
similarity index 100%
rename from lib_i386/bios_pci.S
rename to lib/i386/bios_pci.S
diff --git a/lib_i386/bios_setup.c b/lib/i386/bios_setup.c
similarity index 100%
rename from lib_i386/bios_setup.c
rename to lib/i386/bios_setup.c
diff --git a/lib_i386/board.c b/lib/i386/board.c
similarity index 100%
rename from lib_i386/board.c
rename to lib/i386/board.c
diff --git a/lib_i386/bootm.c b/lib/i386/bootm.c
similarity index 100%
rename from lib_i386/bootm.c
rename to lib/i386/bootm.c
diff --git a/lib_i386/config.mk b/lib/i386/config.mk
similarity index 100%
rename from lib_i386/config.mk
rename to lib/i386/config.mk
diff --git a/lib_i386/interrupts.c b/lib/i386/interrupts.c
similarity index 100%
rename from lib_i386/interrupts.c
rename to lib/i386/interrupts.c
diff --git a/lib_i386/pcat_interrupts.c b/lib/i386/pcat_interrupts.c
similarity index 100%
rename from lib_i386/pcat_interrupts.c
rename to lib/i386/pcat_interrupts.c
diff --git a/lib_i386/pcat_timer.c b/lib/i386/pcat_timer.c
similarity index 100%
rename from lib_i386/pcat_timer.c
rename to lib/i386/pcat_timer.c
diff --git a/lib_i386/pci.c b/lib/i386/pci.c
similarity index 100%
rename from lib_i386/pci.c
rename to lib/i386/pci.c
diff --git a/lib_i386/pci_type1.c b/lib/i386/pci_type1.c
similarity index 100%
rename from lib_i386/pci_type1.c
rename to lib/i386/pci_type1.c
diff --git a/lib_i386/realmode.c b/lib/i386/realmode.c
similarity index 100%
rename from lib_i386/realmode.c
rename to lib/i386/realmode.c
diff --git a/lib_i386/realmode_switch.S b/lib/i386/realmode_switch.S
similarity index 100%
rename from lib_i386/realmode_switch.S
rename to lib/i386/realmode_switch.S
diff --git a/lib_i386/timer.c b/lib/i386/timer.c
similarity index 100%
rename from lib_i386/timer.c
rename to lib/i386/timer.c
diff --git a/lib_i386/video.c b/lib/i386/video.c
similarity index 100%
rename from lib_i386/video.c
rename to lib/i386/video.c
diff --git a/lib_i386/video_bios.c b/lib/i386/video_bios.c
similarity index 100%
rename from lib_i386/video_bios.c
rename to lib/i386/video_bios.c
diff --git a/lib_i386/zimage.c b/lib/i386/zimage.c
similarity index 100%
rename from lib_i386/zimage.c
rename to lib/i386/zimage.c
-- 
1.6.2.1

^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 5/9] Move lib_m68k to lib/m68k
  2009-07-09 15:08 [U-Boot] [PATCH 0/9] Clean up top-level directory structure Peter Tyser
                   ` (3 preceding siblings ...)
  2009-07-09 15:08 ` [U-Boot] [PATCH 4/9] Move lib_i386 to lib/i386 Peter Tyser
@ 2009-07-09 15:08 ` Peter Tyser
  2009-07-09 15:08 ` [U-Boot] [PATCH 6/9] Move remaining lib_<ARCH> to lib/<ARCH> Peter Tyser
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 20+ messages in thread
From: Peter Tyser @ 2009-07-09 15:08 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
---
 README                               |    2 +-
 board/cobra5272/u-boot.lds           |    2 +-
 board/esd/tasreg/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 |    4 ++--
 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/idmr/u-boot.lds                |    2 +-
 doc/README.m52277evb                 |   12 ++++++------
 doc/README.m53017evb                 |   12 ++++++------
 doc/README.m5373evb                  |   12 ++++++------
 doc/README.m54455evb                 |   12 ++++++------
 doc/README.m5475evb                  |   10 +++++-----
 {lib_m68k => lib/m68k}/Makefile      |    0
 {lib_m68k => lib/m68k}/board.c       |    0
 {lib_m68k => lib/m68k}/bootm.c       |    0
 {lib_m68k => lib/m68k}/cache.c       |    0
 {lib_m68k => lib/m68k}/config.mk     |    0
 {lib_m68k => lib/m68k}/interrupts.c  |    0
 {lib_m68k => lib/m68k}/time.c        |    0
 {lib_m68k => lib/m68k}/traps.c       |    0
 34 files changed, 58 insertions(+), 58 deletions(-)
 rename {lib_m68k => lib/m68k}/Makefile (100%)
 rename {lib_m68k => lib/m68k}/board.c (100%)
 rename {lib_m68k => lib/m68k}/bootm.c (100%)
 rename {lib_m68k => lib/m68k}/cache.c (100%)
 rename {lib_m68k => lib/m68k}/config.mk (100%)
 rename {lib_m68k => lib/m68k}/interrupts.c (100%)
 rename {lib_m68k => lib/m68k}/time.c (100%)
 rename {lib_m68k => lib/m68k}/traps.c (100%)

diff --git a/README b/README
index 7de0a86..95ac65b 100644
--- a/README
+++ b/README
@@ -187,5 +187,5 @@ Directory Hierarchy:
 - lib_generic	Files generic to all	 architectures
 - lib/i386	Files generic to i386	 architecture
-- lib_m68k	Files generic to m68k	 architecture
+- lib/m68k	Files generic to m68k	 architecture
 - lib_mips	Files generic to MIPS	 architecture
 - lib_nios	Files generic to NIOS	 architecture
diff --git a/board/cobra5272/u-boot.lds b/board/cobra5272/u-boot.lds
index 7e716bb..e866689 100644
--- a/board/cobra5272/u-boot.lds
+++ b/board/cobra5272/u-boot.lds
@@ -57,5 +57,5 @@ SECTIONS
     cpu/mcf52x2/start.o		(.text)
     cpu/mcf52x2/cpu_init.o	(.text)
-    lib_m68k/traps.o		(.text)
+    lib/m68k/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
diff --git a/board/esd/tasreg/u-boot.lds b/board/esd/tasreg/u-boot.lds
index e3230b9..e072c5d 100644
--- a/board/esd/tasreg/u-boot.lds
+++ b/board/esd/tasreg/u-boot.lds
@@ -57,5 +57,5 @@ SECTIONS
 
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    lib/m68k/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
diff --git a/board/freescale/m52277evb/u-boot.spa b/board/freescale/m52277evb/u-boot.spa
index 7ae70d4..1105456 100644
--- a/board/freescale/m52277evb/u-boot.spa
+++ b/board/freescale/m52277evb/u-boot.spa
@@ -58,5 +58,5 @@ SECTIONS
     cpu/mcf5227x/start.o	(.text)
     cpu/mcf5227x/libmcf5227x.a	(.text)
-    lib_m68k/libm68k.a		(.text)
+    lib/m68k/libm68k.a		(.text)
     lib_generic/libgeneric.a	(.text)
     common/cmd_mem.o		(.text)
diff --git a/board/freescale/m5235evb/u-boot.16 b/board/freescale/m5235evb/u-boot.16
index c134884..da9b61a 100644
--- a/board/freescale/m5235evb/u-boot.16
+++ b/board/freescale/m5235evb/u-boot.16
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mcf523x/start.o		(.text)
     cpu/mcf523x/cpu_init.o	(.text)
-    lib_m68k/traps.o		(.text)
-    lib_m68k/interrupts.o	(.text)
+    lib/m68k/traps.o		(.text)
+    lib/m68k/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
diff --git a/board/freescale/m5235evb/u-boot.32 b/board/freescale/m5235evb/u-boot.32
index 53c337d..99cdd78 100644
--- a/board/freescale/m5235evb/u-boot.32
+++ b/board/freescale/m5235evb/u-boot.32
@@ -61,5 +61,5 @@ SECTIONS
     cpu/mcf523x/interrupts.o	(.text)
     cpu/mcf523x/speed.o		(.text)
-    lib_m68k/libm68k.a		(.text)
+    lib/m68k/libm68k.a		(.text)
     common/dlmalloc.o		(.text)
     common/cmd_bootm.o		(.text)
diff --git a/board/freescale/m5249evb/u-boot.lds b/board/freescale/m5249evb/u-boot.lds
index e3230b9..e072c5d 100644
--- a/board/freescale/m5249evb/u-boot.lds
+++ b/board/freescale/m5249evb/u-boot.lds
@@ -57,5 +57,5 @@ SECTIONS
 
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    lib/m68k/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
diff --git a/board/freescale/m5253demo/u-boot.lds b/board/freescale/m5253demo/u-boot.lds
index 6cb5ee0..f5f334d 100644
--- a/board/freescale/m5253demo/u-boot.lds
+++ b/board/freescale/m5253demo/u-boot.lds
@@ -57,5 +57,5 @@ SECTIONS
 
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    lib/m68k/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
diff --git a/board/freescale/m5253evbe/u-boot.lds b/board/freescale/m5253evbe/u-boot.lds
index 132fccf..814d5c2 100644
--- a/board/freescale/m5253evbe/u-boot.lds
+++ b/board/freescale/m5253evbe/u-boot.lds
@@ -57,5 +57,5 @@ SECTIONS
 
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    lib/m68k/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
diff --git a/board/freescale/m5271evb/u-boot.lds b/board/freescale/m5271evb/u-boot.lds
index 00c1f2a..2d1bf3a 100644
--- a/board/freescale/m5271evb/u-boot.lds
+++ b/board/freescale/m5271evb/u-boot.lds
@@ -58,5 +58,5 @@ SECTIONS
 
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    lib/m68k/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
diff --git a/board/freescale/m5272c3/u-boot.lds b/board/freescale/m5272c3/u-boot.lds
index 9d20b22..bde5d86 100644
--- a/board/freescale/m5272c3/u-boot.lds
+++ b/board/freescale/m5272c3/u-boot.lds
@@ -57,5 +57,5 @@ SECTIONS
 
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    lib/m68k/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
diff --git a/board/freescale/m53017evb/u-boot.lds b/board/freescale/m53017evb/u-boot.lds
index c79d06c..52ca4f8 100644
--- a/board/freescale/m53017evb/u-boot.lds
+++ b/board/freescale/m53017evb/u-boot.lds
@@ -58,5 +58,5 @@ SECTIONS
     cpu/mcf532x/start.o		(.text)
     cpu/mcf532x/libmcf532x.a	(.text)
-    lib_m68k/libm68k.a		(.text)
+    lib/m68k/libm68k.a		(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
diff --git a/board/freescale/m5329evb/u-boot.lds b/board/freescale/m5329evb/u-boot.lds
index af31098..5c9720e 100644
--- a/board/freescale/m5329evb/u-boot.lds
+++ b/board/freescale/m5329evb/u-boot.lds
@@ -57,6 +57,6 @@ SECTIONS
 
     cpu/mcf532x/start.o		(.text)
-    lib_m68k/traps.o		(.text)
-    lib_m68k/interrupts.o	(.text)
+    lib/m68k/traps.o		(.text)
+    lib/m68k/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
diff --git a/board/freescale/m5373evb/u-boot.lds b/board/freescale/m5373evb/u-boot.lds
index dff74b6..30fb272 100644
--- a/board/freescale/m5373evb/u-boot.lds
+++ b/board/freescale/m5373evb/u-boot.lds
@@ -57,6 +57,6 @@ SECTIONS
 
     cpu/mcf532x/start.o		(.text)
-    lib_m68k/traps.o		(.text)
-    lib_m68k/interrupts.o	(.text)
+    lib/m68k/traps.o		(.text)
+    lib/m68k/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
diff --git a/board/freescale/m54451evb/u-boot.spa b/board/freescale/m54451evb/u-boot.spa
index 08e184c..d568688 100644
--- a/board/freescale/m54451evb/u-boot.spa
+++ b/board/freescale/m54451evb/u-boot.spa
@@ -57,6 +57,6 @@ SECTIONS
 
     cpu/mcf5445x/start.o		(.text)
-    lib_m68k/traps.o		(.text)
-    lib_m68k/interrupts.o	(.text)
+    lib/m68k/traps.o		(.text)
+    lib/m68k/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
diff --git a/board/freescale/m54451evb/u-boot.stm b/board/freescale/m54451evb/u-boot.stm
index e9eac67..92880d9 100644
--- a/board/freescale/m54451evb/u-boot.stm
+++ b/board/freescale/m54451evb/u-boot.stm
@@ -62,5 +62,5 @@ SECTIONS
     cpu/mcf5445x/interrupt.o		(.text)
     cpu/mcf5445x/speed.o		(.text)
-    lib_m68k/board.o			(.text)
+    lib/m68k/board.o			(.text)
     common/serial.o			(.text)
     common/console.o			(.text)
diff --git a/board/freescale/m54455evb/u-boot.atm b/board/freescale/m54455evb/u-boot.atm
index 08e184c..d568688 100644
--- a/board/freescale/m54455evb/u-boot.atm
+++ b/board/freescale/m54455evb/u-boot.atm
@@ -57,6 +57,6 @@ SECTIONS
 
     cpu/mcf5445x/start.o		(.text)
-    lib_m68k/traps.o		(.text)
-    lib_m68k/interrupts.o	(.text)
+    lib/m68k/traps.o		(.text)
+    lib/m68k/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
diff --git a/board/freescale/m54455evb/u-boot.int b/board/freescale/m54455evb/u-boot.int
index 4d504a2..58419c0 100644
--- a/board/freescale/m54455evb/u-boot.int
+++ b/board/freescale/m54455evb/u-boot.int
@@ -57,6 +57,6 @@ SECTIONS
 
     cpu/mcf5445x/start.o		(.text)
-    lib_m68k/traps.o		(.text)
-    lib_m68k/interrupts.o	(.text)
+    lib/m68k/traps.o		(.text)
+    lib/m68k/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
     lib_generic/zlib.o		(.text)
diff --git a/board/freescale/m547xevb/u-boot.lds b/board/freescale/m547xevb/u-boot.lds
index a3014bd..3251b0a 100644
--- a/board/freescale/m547xevb/u-boot.lds
+++ b/board/freescale/m547xevb/u-boot.lds
@@ -57,6 +57,6 @@ SECTIONS
 
     cpu/mcf547x_8x/start.o		(.text)
-    lib_m68k/traps.o		(.text)
-    lib_m68k/interrupts.o	(.text)
+    lib/m68k/traps.o		(.text)
+    lib/m68k/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
 
diff --git a/board/freescale/m548xevb/u-boot.lds b/board/freescale/m548xevb/u-boot.lds
index a3014bd..3251b0a 100644
--- a/board/freescale/m548xevb/u-boot.lds
+++ b/board/freescale/m548xevb/u-boot.lds
@@ -57,6 +57,6 @@ SECTIONS
 
     cpu/mcf547x_8x/start.o		(.text)
-    lib_m68k/traps.o		(.text)
-    lib_m68k/interrupts.o	(.text)
+    lib/m68k/traps.o		(.text)
+    lib/m68k/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
 
diff --git a/board/idmr/u-boot.lds b/board/idmr/u-boot.lds
index 00c1f2a..2d1bf3a 100644
--- a/board/idmr/u-boot.lds
+++ b/board/idmr/u-boot.lds
@@ -58,5 +58,5 @@ SECTIONS
 
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    lib/m68k/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
diff --git a/doc/README.m52277evb b/doc/README.m52277evb
index bec77b4..819db40 100644
--- a/doc/README.m52277evb
+++ b/doc/README.m52277evb
@@ -54,10 +54,10 @@ 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
+- 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
 
 1 MCF52277 specific Options/Settings
diff --git a/doc/README.m53017evb b/doc/README.m53017evb
index 60cfa95..02d91a1 100644
--- a/doc/README.m53017evb
+++ b/doc/README.m53017evb
@@ -52,10 +52,10 @@ 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
+- 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
 
 1 MCF5301x specific Options/Settings
diff --git a/doc/README.m5373evb b/doc/README.m5373evb
index 0bd1101..ab48b7d 100644
--- a/doc/README.m5373evb
+++ b/doc/README.m5373evb
@@ -51,10 +51,10 @@ 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
+- 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
 
 1 MCF5373 specific Options/Settings
diff --git a/doc/README.m54455evb b/doc/README.m54455evb
index b769ff9..fdff6ff 100644
--- a/doc/README.m54455evb
+++ b/doc/README.m54455evb
@@ -53,10 +53,10 @@ 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
+- 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
 
 - rtc/mcfrtc.c				Realtime clock Driver
diff --git a/doc/README.m5475evb b/doc/README.m5475evb
index 936c018..bc76f85 100644
--- a/doc/README.m5475evb
+++ b/doc/README.m5475evb
@@ -59,9 +59,9 @@ 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
+- 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
 
 1 MCF547x specific Options/Settings
diff --git a/lib_m68k/Makefile b/lib/m68k/Makefile
similarity index 100%
rename from lib_m68k/Makefile
rename to lib/m68k/Makefile
diff --git a/lib_m68k/board.c b/lib/m68k/board.c
similarity index 100%
rename from lib_m68k/board.c
rename to lib/m68k/board.c
diff --git a/lib_m68k/bootm.c b/lib/m68k/bootm.c
similarity index 100%
rename from lib_m68k/bootm.c
rename to lib/m68k/bootm.c
diff --git a/lib_m68k/cache.c b/lib/m68k/cache.c
similarity index 100%
rename from lib_m68k/cache.c
rename to lib/m68k/cache.c
diff --git a/lib_m68k/config.mk b/lib/m68k/config.mk
similarity index 100%
rename from lib_m68k/config.mk
rename to lib/m68k/config.mk
diff --git a/lib_m68k/interrupts.c b/lib/m68k/interrupts.c
similarity index 100%
rename from lib_m68k/interrupts.c
rename to lib/m68k/interrupts.c
diff --git a/lib_m68k/time.c b/lib/m68k/time.c
similarity index 100%
rename from lib_m68k/time.c
rename to lib/m68k/time.c
diff --git a/lib_m68k/traps.c b/lib/m68k/traps.c
similarity index 100%
rename from lib_m68k/traps.c
rename to lib/m68k/traps.c
-- 
1.6.2.1

^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 6/9] Move remaining lib_<ARCH> to lib/<ARCH>
  2009-07-09 15:08 [U-Boot] [PATCH 0/9] Clean up top-level directory structure Peter Tyser
                   ` (4 preceding siblings ...)
  2009-07-09 15:08 ` [U-Boot] [PATCH 5/9] Move lib_m68k to lib/m68k Peter Tyser
@ 2009-07-09 15:08 ` Peter Tyser
  2009-07-09 15:08 ` [U-Boot] [PATCH 7/9] Move lib_generic to lib/generic Peter Tyser
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 20+ messages in thread
From: Peter Tyser @ 2009-07-09 15:08 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
---
 Makefile                                     |    8 ++------
 README                                       |   12 ++++++------
 config.mk                                    |    1 -
 doc/README.nios                              |    2 +-
 include/common.h                             |    8 ++++----
 {lib_avr32 => lib/avr32}/Makefile            |    0
 {lib_avr32 => lib/avr32}/board.c             |    0
 {lib_avr32 => lib/avr32}/bootm.c             |    0
 {lib_avr32 => lib/avr32}/config.mk           |    0
 {lib_avr32 => lib/avr32}/interrupts.c        |    0
 {lib_avr32 => lib/avr32}/memset.S            |    0
 {lib_blackfin => lib/blackfin}/.gitignore    |    0
 {lib_blackfin => lib/blackfin}/Makefile      |    0
 {lib_blackfin => lib/blackfin}/board.c       |    0
 {lib_blackfin => lib/blackfin}/boot.c        |    0
 {lib_blackfin => lib/blackfin}/cache.c       |    0
 {lib_blackfin => lib/blackfin}/clocks.c      |    0
 {lib_blackfin => lib/blackfin}/config.mk     |    0
 {lib_blackfin => lib/blackfin}/memcmp.S      |    0
 {lib_blackfin => lib/blackfin}/memcpy.S      |    0
 {lib_blackfin => lib/blackfin}/memmove.S     |    0
 {lib_blackfin => lib/blackfin}/memset.S      |    0
 {lib_blackfin => lib/blackfin}/muldi3.c      |    0
 {lib_blackfin => lib/blackfin}/post.c        |    0
 {lib_blackfin => lib/blackfin}/string.c      |    0
 {lib_blackfin => lib/blackfin}/tests.c       |    0
 {lib_blackfin => lib/blackfin}/u-boot.lds.S  |    0
 {lib_microblaze => lib/microblaze}/Makefile  |    0
 {lib_microblaze => lib/microblaze}/board.c   |    0
 {lib_microblaze => lib/microblaze}/bootm.c   |    0
 {lib_microblaze => lib/microblaze}/cache.c   |    0
 {lib_microblaze => lib/microblaze}/config.mk |    0
 {lib_microblaze => lib/microblaze}/time.c    |    0
 {lib_mips => lib/mips}/Makefile              |    0
 {lib_mips => lib/mips}/board.c               |    0
 {lib_mips => lib/mips}/bootm.c               |    0
 {lib_mips => lib/mips}/bootm_qemu_mips.c     |    0
 {lib_mips => lib/mips}/config.mk             |    0
 {lib_mips => lib/mips}/time.c                |    0
 {lib_nios => lib/nios}/Makefile              |    0
 {lib_nios => lib/nios}/board.c               |    0
 {lib_nios => lib/nios}/bootm.c               |    0
 {lib_nios => lib/nios}/cache.c               |    0
 {lib_nios => lib/nios}/config.mk             |    0
 {lib_nios => lib/nios}/divmod.c              |    0
 {lib_nios => lib/nios}/math.h                |    0
 {lib_nios => lib/nios}/mult.c                |    0
 {lib_nios => lib/nios}/time.c                |    0
 {lib_nios2 => lib/nios2}/Makefile            |    0
 {lib_nios2 => lib/nios2}/board.c             |    0
 {lib_nios2 => lib/nios2}/bootm.c             |    0
 {lib_nios2 => lib/nios2}/cache.S             |    0
 {lib_nios2 => lib/nios2}/config.mk           |    0
 {lib_nios2 => lib/nios2}/divmod.c            |    0
 {lib_nios2 => lib/nios2}/math.h              |    0
 {lib_nios2 => lib/nios2}/mult.c              |    0
 {lib_nios2 => lib/nios2}/time.c              |    0
 {lib_sh => lib/sh}/Makefile                  |    0
 {lib_sh => lib/sh}/board.c                   |    0
 {lib_sh => lib/sh}/bootm.c                   |    0
 {lib_sh => lib/sh}/config.mk                 |    0
 {lib_sh => lib/sh}/time.c                    |    0
 {lib_sh => lib/sh}/time_sh2.c                |    0
 {lib_sparc => lib/sparc}/Makefile            |    0
 {lib_sparc => lib/sparc}/board.c             |    0
 {lib_sparc => lib/sparc}/bootm.c             |    0
 {lib_sparc => lib/sparc}/cache.c             |    0
 {lib_sparc => lib/sparc}/config.mk           |    0
 {lib_sparc => lib/sparc}/interrupts.c        |    0
 {lib_sparc => lib/sparc}/time.c              |    0
 70 files changed, 13 insertions(+), 18 deletions(-)
 rename {lib_avr32 => lib/avr32}/Makefile (100%)
 rename {lib_avr32 => lib/avr32}/board.c (100%)
 rename {lib_avr32 => lib/avr32}/bootm.c (100%)
 rename {lib_avr32 => lib/avr32}/config.mk (100%)
 rename {lib_avr32 => lib/avr32}/interrupts.c (100%)
 rename {lib_avr32 => lib/avr32}/memset.S (100%)
 rename {lib_blackfin => lib/blackfin}/.gitignore (100%)
 rename {lib_blackfin => lib/blackfin}/Makefile (100%)
 rename {lib_blackfin => lib/blackfin}/board.c (100%)
 rename {lib_blackfin => lib/blackfin}/boot.c (100%)
 rename {lib_blackfin => lib/blackfin}/cache.c (100%)
 rename {lib_blackfin => lib/blackfin}/clocks.c (100%)
 rename {lib_blackfin => lib/blackfin}/config.mk (100%)
 rename {lib_blackfin => lib/blackfin}/memcmp.S (100%)
 rename {lib_blackfin => lib/blackfin}/memcpy.S (100%)
 rename {lib_blackfin => lib/blackfin}/memmove.S (100%)
 rename {lib_blackfin => lib/blackfin}/memset.S (100%)
 rename {lib_blackfin => lib/blackfin}/muldi3.c (100%)
 rename {lib_blackfin => lib/blackfin}/post.c (100%)
 rename {lib_blackfin => lib/blackfin}/string.c (100%)
 rename {lib_blackfin => lib/blackfin}/tests.c (100%)
 rename {lib_blackfin => lib/blackfin}/u-boot.lds.S (100%)
 rename {lib_microblaze => lib/microblaze}/Makefile (100%)
 rename {lib_microblaze => lib/microblaze}/board.c (100%)
 rename {lib_microblaze => lib/microblaze}/bootm.c (100%)
 rename {lib_microblaze => lib/microblaze}/cache.c (100%)
 rename {lib_microblaze => lib/microblaze}/config.mk (100%)
 rename {lib_microblaze => lib/microblaze}/time.c (100%)
 rename {lib_mips => lib/mips}/Makefile (100%)
 rename {lib_mips => lib/mips}/board.c (100%)
 rename {lib_mips => lib/mips}/bootm.c (100%)
 rename {lib_mips => lib/mips}/bootm_qemu_mips.c (100%)
 rename {lib_mips => lib/mips}/config.mk (100%)
 rename {lib_mips => lib/mips}/time.c (100%)
 rename {lib_nios => lib/nios}/Makefile (100%)
 rename {lib_nios => lib/nios}/board.c (100%)
 rename {lib_nios => lib/nios}/bootm.c (100%)
 rename {lib_nios => lib/nios}/cache.c (100%)
 rename {lib_nios => lib/nios}/config.mk (100%)
 rename {lib_nios => lib/nios}/divmod.c (100%)
 rename {lib_nios => lib/nios}/math.h (100%)
 rename {lib_nios => lib/nios}/mult.c (100%)
 rename {lib_nios => lib/nios}/time.c (100%)
 rename {lib_nios2 => lib/nios2}/Makefile (100%)
 rename {lib_nios2 => lib/nios2}/board.c (100%)
 rename {lib_nios2 => lib/nios2}/bootm.c (100%)
 rename {lib_nios2 => lib/nios2}/cache.S (100%)
 rename {lib_nios2 => lib/nios2}/config.mk (100%)
 rename {lib_nios2 => lib/nios2}/divmod.c (100%)
 rename {lib_nios2 => lib/nios2}/math.h (100%)
 rename {lib_nios2 => lib/nios2}/mult.c (100%)
 rename {lib_nios2 => lib/nios2}/time.c (100%)
 rename {lib_sh => lib/sh}/Makefile (100%)
 rename {lib_sh => lib/sh}/board.c (100%)
 rename {lib_sh => lib/sh}/bootm.c (100%)
 rename {lib_sh => lib/sh}/config.mk (100%)
 rename {lib_sh => lib/sh}/time.c (100%)
 rename {lib_sh => lib/sh}/time_sh2.c (100%)
 rename {lib_sparc => lib/sparc}/Makefile (100%)
 rename {lib_sparc => lib/sparc}/board.c (100%)
 rename {lib_sparc => lib/sparc}/bootm.c (100%)
 rename {lib_sparc => lib/sparc}/cache.c (100%)
 rename {lib_sparc => lib/sparc}/config.mk (100%)
 rename {lib_sparc => lib/sparc}/interrupts.c (100%)
 rename {lib_sparc => lib/sparc}/time.c (100%)

diff --git a/Makefile b/Makefile
index 7902a47..b0dd4c5 100644
--- a/Makefile
+++ b/Makefile
@@ -229,9 +229,5 @@ ifeq ($(CPU),ixp)
 LIBS += cpu/ixp/npe/libnpe.a
 endif
-ifeq ($(SRCTREE)/lib/$(ARCH),$(wildcard $(SRCTREE)/lib/$(ARCH)))
 LIBS += lib/$(ARCH)/lib$(ARCH).a
-else
-LIBS += lib_$(ARCH)/lib$(ARCH).a
-endif
 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 \
@@ -414,5 +410,5 @@ TAG_SUBDIRS += include
 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
 TAG_SUBDIRS += cpu/$(CPU)
-TAG_SUBDIRS += lib_$(ARCH)
+TAG_SUBDIRS += lib/$(ARCH)
 TAG_SUBDIRS += fs/cramfs
 TAG_SUBDIRS += fs/fat
@@ -3608,5 +3604,5 @@ clean:
 	       $(obj)board/trab/trab_fkt   $(obj)board/voiceblue/eeprom   \
 	       $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds  \
-	       $(obj)lib_blackfin/u-boot.lds				  \
+	       $(obj)lib/blackfin/u-boot.lds				  \
 	       $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
 	@rm -f $(obj)include/bmp_logo.h
diff --git a/README b/README
index 95ac65b..b88dc1c 100644
--- a/README
+++ b/README
@@ -183,13 +183,13 @@ Directory Hierarchy:
 - include	Header Files
 - lib/arm	Files generic to ARM	 architecture
-- lib_avr32	Files generic to AVR32	 architecture
-- lib_blackfin	Files generic to Blackfin architecture
+- lib/avr32	Files generic to AVR32	 architecture
+- lib/blackfin	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_mips	Files generic to MIPS	 architecture
-- lib_nios	Files generic to NIOS	 architecture
+- lib/mips	Files generic to MIPS	 architecture
+- lib/nios	Files generic to NIOS	 architecture
 - lib/ppc	Files generic to PowerPC architecture
-- lib_sparc	Files generic to SPARC	 architecture
+- lib/sparc	Files generic to SPARC	 architecture
 - libfdt	Library files to support flattened device trees
 - net		Networking code
@@ -1889,5 +1889,5 @@ Legacy uImage format:
    14	common/image.c		No initial ramdisk, no multifile, continue.
 
-   15	lib_<arch>/bootm.c	All preparation done, transferring control to OS
+   15	lib/<arch>/bootm.c	All preparation done, transferring control to OS
 
   -30	lib/ppc/board.c		Fatal error, hang the system
diff --git a/config.mk b/config.mk
index b7418c5..9934f29 100644
--- a/config.mk
+++ b/config.mk
@@ -84,5 +84,4 @@ sinclude $(OBJTREE)/include/autoconf.mk
 
 ifdef	ARCH
-sinclude $(TOPDIR)/lib_$(ARCH)/config.mk	# include architecture dependend rules
 sinclude $(TOPDIR)/lib/$(ARCH)/config.mk	# include architecture dependend rules
 endif
diff --git a/doc/README.nios b/doc/README.nios
index 7f34938..a92f72b 100644
--- a/doc/README.nios
+++ b/doc/README.nios
@@ -245,5 +245,5 @@ cover most of the individual functions to get you started.
 		(gdb) directory common
 		(gdb) directory cpu/nios
-		(gdb) directory lib_nios
+		(gdb) directory lib/nios
 		(gdb) directory board/altera/dk1c20
 
diff --git a/include/common.h b/include/common.h
index 6284b8a..703775e 100644
--- a/include/common.h
+++ b/include/common.h
@@ -221,5 +221,5 @@ void	init_cmd_timeout(void);
 void	reset_cmd_timeout(void);
 
-/* lib_$(ARCH)/board.c */
+/* lib/$(ARCH)/board.c */
 void	board_init_f  (ulong) __attribute__ ((noreturn));
 void	board_init_r  (gd_t *, ulong) __attribute__ ((noreturn));
@@ -589,5 +589,5 @@ ulong	vfd_setmem (ulong);
 ulong	video_setmem (ulong);
 
-/* lib_$(ARCH)/cache.c */
+/* lib/$(ARCH)/cache.c */
 void	flush_cache   (unsigned long, unsigned long);
 void	flush_dcache_range(unsigned long start, unsigned long stop);
@@ -595,9 +595,9 @@ void	invalidate_dcache_range(unsigned long start, unsigned long stop);
 
 
-/* lib_$(ARCH)/ticks.S */
+/* lib/$(ARCH)/ticks.S */
 unsigned long long get_ticks(void);
 void	wait_ticks    (unsigned long);
 
-/* lib_$(ARCH)/time.c */
+/* lib/$(ARCH)/time.c */
 void	udelay	      (unsigned long);
 ulong	usec2ticks    (unsigned long usec);
diff --git a/lib_avr32/Makefile b/lib/avr32/Makefile
similarity index 100%
rename from lib_avr32/Makefile
rename to lib/avr32/Makefile
diff --git a/lib_avr32/board.c b/lib/avr32/board.c
similarity index 100%
rename from lib_avr32/board.c
rename to lib/avr32/board.c
diff --git a/lib_avr32/bootm.c b/lib/avr32/bootm.c
similarity index 100%
rename from lib_avr32/bootm.c
rename to lib/avr32/bootm.c
diff --git a/lib_avr32/config.mk b/lib/avr32/config.mk
similarity index 100%
rename from lib_avr32/config.mk
rename to lib/avr32/config.mk
diff --git a/lib_avr32/interrupts.c b/lib/avr32/interrupts.c
similarity index 100%
rename from lib_avr32/interrupts.c
rename to lib/avr32/interrupts.c
diff --git a/lib_avr32/memset.S b/lib/avr32/memset.S
similarity index 100%
rename from lib_avr32/memset.S
rename to lib/avr32/memset.S
diff --git a/lib_blackfin/.gitignore b/lib/blackfin/.gitignore
similarity index 100%
rename from lib_blackfin/.gitignore
rename to lib/blackfin/.gitignore
diff --git a/lib_blackfin/Makefile b/lib/blackfin/Makefile
similarity index 100%
rename from lib_blackfin/Makefile
rename to lib/blackfin/Makefile
diff --git a/lib_blackfin/board.c b/lib/blackfin/board.c
similarity index 100%
rename from lib_blackfin/board.c
rename to lib/blackfin/board.c
diff --git a/lib_blackfin/boot.c b/lib/blackfin/boot.c
similarity index 100%
rename from lib_blackfin/boot.c
rename to lib/blackfin/boot.c
diff --git a/lib_blackfin/cache.c b/lib/blackfin/cache.c
similarity index 100%
rename from lib_blackfin/cache.c
rename to lib/blackfin/cache.c
diff --git a/lib_blackfin/clocks.c b/lib/blackfin/clocks.c
similarity index 100%
rename from lib_blackfin/clocks.c
rename to lib/blackfin/clocks.c
diff --git a/lib_blackfin/config.mk b/lib/blackfin/config.mk
similarity index 100%
rename from lib_blackfin/config.mk
rename to lib/blackfin/config.mk
diff --git a/lib_blackfin/memcmp.S b/lib/blackfin/memcmp.S
similarity index 100%
rename from lib_blackfin/memcmp.S
rename to lib/blackfin/memcmp.S
diff --git a/lib_blackfin/memcpy.S b/lib/blackfin/memcpy.S
similarity index 100%
rename from lib_blackfin/memcpy.S
rename to lib/blackfin/memcpy.S
diff --git a/lib_blackfin/memmove.S b/lib/blackfin/memmove.S
similarity index 100%
rename from lib_blackfin/memmove.S
rename to lib/blackfin/memmove.S
diff --git a/lib_blackfin/memset.S b/lib/blackfin/memset.S
similarity index 100%
rename from lib_blackfin/memset.S
rename to lib/blackfin/memset.S
diff --git a/lib_blackfin/muldi3.c b/lib/blackfin/muldi3.c
similarity index 100%
rename from lib_blackfin/muldi3.c
rename to lib/blackfin/muldi3.c
diff --git a/lib_blackfin/post.c b/lib/blackfin/post.c
similarity index 100%
rename from lib_blackfin/post.c
rename to lib/blackfin/post.c
diff --git a/lib_blackfin/string.c b/lib/blackfin/string.c
similarity index 100%
rename from lib_blackfin/string.c
rename to lib/blackfin/string.c
diff --git a/lib_blackfin/tests.c b/lib/blackfin/tests.c
similarity index 100%
rename from lib_blackfin/tests.c
rename to lib/blackfin/tests.c
diff --git a/lib_blackfin/u-boot.lds.S b/lib/blackfin/u-boot.lds.S
similarity index 100%
rename from lib_blackfin/u-boot.lds.S
rename to lib/blackfin/u-boot.lds.S
diff --git a/lib_microblaze/Makefile b/lib/microblaze/Makefile
similarity index 100%
rename from lib_microblaze/Makefile
rename to lib/microblaze/Makefile
diff --git a/lib_microblaze/board.c b/lib/microblaze/board.c
similarity index 100%
rename from lib_microblaze/board.c
rename to lib/microblaze/board.c
diff --git a/lib_microblaze/bootm.c b/lib/microblaze/bootm.c
similarity index 100%
rename from lib_microblaze/bootm.c
rename to lib/microblaze/bootm.c
diff --git a/lib_microblaze/cache.c b/lib/microblaze/cache.c
similarity index 100%
rename from lib_microblaze/cache.c
rename to lib/microblaze/cache.c
diff --git a/lib_microblaze/config.mk b/lib/microblaze/config.mk
similarity index 100%
rename from lib_microblaze/config.mk
rename to lib/microblaze/config.mk
diff --git a/lib_microblaze/time.c b/lib/microblaze/time.c
similarity index 100%
rename from lib_microblaze/time.c
rename to lib/microblaze/time.c
diff --git a/lib_mips/Makefile b/lib/mips/Makefile
similarity index 100%
rename from lib_mips/Makefile
rename to lib/mips/Makefile
diff --git a/lib_mips/board.c b/lib/mips/board.c
similarity index 100%
rename from lib_mips/board.c
rename to lib/mips/board.c
diff --git a/lib_mips/bootm.c b/lib/mips/bootm.c
similarity index 100%
rename from lib_mips/bootm.c
rename to lib/mips/bootm.c
diff --git a/lib_mips/bootm_qemu_mips.c b/lib/mips/bootm_qemu_mips.c
similarity index 100%
rename from lib_mips/bootm_qemu_mips.c
rename to lib/mips/bootm_qemu_mips.c
diff --git a/lib_mips/config.mk b/lib/mips/config.mk
similarity index 100%
rename from lib_mips/config.mk
rename to lib/mips/config.mk
diff --git a/lib_mips/time.c b/lib/mips/time.c
similarity index 100%
rename from lib_mips/time.c
rename to lib/mips/time.c
diff --git a/lib_nios/Makefile b/lib/nios/Makefile
similarity index 100%
rename from lib_nios/Makefile
rename to lib/nios/Makefile
diff --git a/lib_nios/board.c b/lib/nios/board.c
similarity index 100%
rename from lib_nios/board.c
rename to lib/nios/board.c
diff --git a/lib_nios/bootm.c b/lib/nios/bootm.c
similarity index 100%
rename from lib_nios/bootm.c
rename to lib/nios/bootm.c
diff --git a/lib_nios/cache.c b/lib/nios/cache.c
similarity index 100%
rename from lib_nios/cache.c
rename to lib/nios/cache.c
diff --git a/lib_nios/config.mk b/lib/nios/config.mk
similarity index 100%
rename from lib_nios/config.mk
rename to lib/nios/config.mk
diff --git a/lib_nios/divmod.c b/lib/nios/divmod.c
similarity index 100%
rename from lib_nios/divmod.c
rename to lib/nios/divmod.c
diff --git a/lib_nios/math.h b/lib/nios/math.h
similarity index 100%
rename from lib_nios/math.h
rename to lib/nios/math.h
diff --git a/lib_nios/mult.c b/lib/nios/mult.c
similarity index 100%
rename from lib_nios/mult.c
rename to lib/nios/mult.c
diff --git a/lib_nios/time.c b/lib/nios/time.c
similarity index 100%
rename from lib_nios/time.c
rename to lib/nios/time.c
diff --git a/lib_nios2/Makefile b/lib/nios2/Makefile
similarity index 100%
rename from lib_nios2/Makefile
rename to lib/nios2/Makefile
diff --git a/lib_nios2/board.c b/lib/nios2/board.c
similarity index 100%
rename from lib_nios2/board.c
rename to lib/nios2/board.c
diff --git a/lib_nios2/bootm.c b/lib/nios2/bootm.c
similarity index 100%
rename from lib_nios2/bootm.c
rename to lib/nios2/bootm.c
diff --git a/lib_nios2/cache.S b/lib/nios2/cache.S
similarity index 100%
rename from lib_nios2/cache.S
rename to lib/nios2/cache.S
diff --git a/lib_nios2/config.mk b/lib/nios2/config.mk
similarity index 100%
rename from lib_nios2/config.mk
rename to lib/nios2/config.mk
diff --git a/lib_nios2/divmod.c b/lib/nios2/divmod.c
similarity index 100%
rename from lib_nios2/divmod.c
rename to lib/nios2/divmod.c
diff --git a/lib_nios2/math.h b/lib/nios2/math.h
similarity index 100%
rename from lib_nios2/math.h
rename to lib/nios2/math.h
diff --git a/lib_nios2/mult.c b/lib/nios2/mult.c
similarity index 100%
rename from lib_nios2/mult.c
rename to lib/nios2/mult.c
diff --git a/lib_nios2/time.c b/lib/nios2/time.c
similarity index 100%
rename from lib_nios2/time.c
rename to lib/nios2/time.c
diff --git a/lib_sh/Makefile b/lib/sh/Makefile
similarity index 100%
rename from lib_sh/Makefile
rename to lib/sh/Makefile
diff --git a/lib_sh/board.c b/lib/sh/board.c
similarity index 100%
rename from lib_sh/board.c
rename to lib/sh/board.c
diff --git a/lib_sh/bootm.c b/lib/sh/bootm.c
similarity index 100%
rename from lib_sh/bootm.c
rename to lib/sh/bootm.c
diff --git a/lib_sh/config.mk b/lib/sh/config.mk
similarity index 100%
rename from lib_sh/config.mk
rename to lib/sh/config.mk
diff --git a/lib_sh/time.c b/lib/sh/time.c
similarity index 100%
rename from lib_sh/time.c
rename to lib/sh/time.c
diff --git a/lib_sh/time_sh2.c b/lib/sh/time_sh2.c
similarity index 100%
rename from lib_sh/time_sh2.c
rename to lib/sh/time_sh2.c
diff --git a/lib_sparc/Makefile b/lib/sparc/Makefile
similarity index 100%
rename from lib_sparc/Makefile
rename to lib/sparc/Makefile
diff --git a/lib_sparc/board.c b/lib/sparc/board.c
similarity index 100%
rename from lib_sparc/board.c
rename to lib/sparc/board.c
diff --git a/lib_sparc/bootm.c b/lib/sparc/bootm.c
similarity index 100%
rename from lib_sparc/bootm.c
rename to lib/sparc/bootm.c
diff --git a/lib_sparc/cache.c b/lib/sparc/cache.c
similarity index 100%
rename from lib_sparc/cache.c
rename to lib/sparc/cache.c
diff --git a/lib_sparc/config.mk b/lib/sparc/config.mk
similarity index 100%
rename from lib_sparc/config.mk
rename to lib/sparc/config.mk
diff --git a/lib_sparc/interrupts.c b/lib/sparc/interrupts.c
similarity index 100%
rename from lib_sparc/interrupts.c
rename to lib/sparc/interrupts.c
diff --git a/lib_sparc/time.c b/lib/sparc/time.c
similarity index 100%
rename from lib_sparc/time.c
rename to lib/sparc/time.c
-- 
1.6.2.1

^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 7/9] Move lib_generic to lib/generic
  2009-07-09 15:08 [U-Boot] [PATCH 0/9] Clean up top-level directory structure Peter Tyser
                   ` (5 preceding siblings ...)
  2009-07-09 15:08 ` [U-Boot] [PATCH 6/9] Move remaining lib_<ARCH> to lib/<ARCH> Peter Tyser
@ 2009-07-09 15:08 ` Peter Tyser
  2009-07-09 15:08 ` [U-Boot] [PATCH 8/9] Move libfdt to lib/libfdt Peter Tyser
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 20+ messages in thread
From: Peter Tyser @ 2009-07-09 15:08 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
---
 Makefile                                           |    8 ++++----
 README                                             |    2 +-
 api_examples/Makefile                              |   10 +++++-----
 api_examples/libgenwrap.c                          |    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/atum8548/u-boot.lds                          |    4 ++--
 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-ezkit/config.mk                        |    2 +-
 board/c2mon/u-boot.lds                             |    6 +++---
 board/c2mon/u-boot.lds.debug                       |    4 ++--
 board/cm-bf527/config.mk                           |    2 +-
 board/cm-bf533/config.mk                           |    2 +-
 board/cm-bf537e/config.mk                          |    2 +-
 board/cm-bf548/config.mk                           |    2 +-
 board/cm-bf561/config.mk                           |    2 +-
 board/cobra5272/u-boot.lds                         |    2 +-
 board/cogent/u-boot.lds.debug                      |    4 ++--
 board/cray/L1/u-boot.lds                           |    4 ++--
 board/cray/L1/u-boot.lds.debug                     |    4 ++--
 board/csb272/u-boot.lds                            |    4 ++--
 board/csb472/u-boot.lds                            |    4 ++--
 board/dave/PPChameleonEVB/u-boot.lds               |    4 ++--
 board/eltec/mhpc/u-boot.lds.debug                  |    4 ++--
 board/emk/top860/u-boot.lds.debug                  |    4 ++--
 board/eric/u-boot.lds                              |    4 ++--
 board/esd/ocrtc/u-boot.lds                         |    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/exbitgen/u-boot.lds                          |    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/mpc8540eval/u-boot.lds                       |    4 ++--
 board/mpl/mip405/u-boot.lds                        |    4 ++--
 board/mpl/pip405/u-boot.lds                        |    4 ++--
 board/mpl/pip405/u-boot.lds.debug                  |    4 ++--
 board/netphone/u-boot.lds                          |    6 +++---
 board/netphone/u-boot.lds.debug                    |    4 ++--
 board/netstar/Makefile                             |    4 ++--
 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/pcs440ep/u-boot.lds                          |    2 +-
 board/pm854/u-boot.lds                             |    4 ++--
 board/pm856/u-boot.lds                             |    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                   |    4 ++--
 board/sandburst/karef/u-boot.lds.debug             |    4 ++--
 board/sandburst/metrobox/u-boot.lds                |    4 ++--
 board/sandburst/metrobox/u-boot.lds.debug          |    4 ++--
 board/sbc405/u-boot.lds                            |    4 ++--
 board/sbc8548/u-boot.lds                           |    4 ++--
 board/sbc8560/u-boot.lds                           |    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/socrates/u-boot.lds                          |    4 ++--
 board/spc1920/u-boot.lds                           |    6 +++---
 board/spd8xx/u-boot.lds.debug                      |    4 ++--
 board/stxgp3/u-boot.lds                            |    4 ++--
 board/stxssa/u-boot.lds                            |    4 ++--
 board/stxxtc/u-boot.lds                            |    6 +++---
 board/stxxtc/u-boot.lds.debug                      |    4 ++--
 board/svm_sc8xx/u-boot.lds                         |    6 +++---
 board/svm_sc8xx/u-boot.lds.debug                   |    4 ++--
 board/tcm-bf537/config.mk                          |    2 +-
 board/tqc/tqm85xx/u-boot.lds                       |    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/voiceblue/Makefile                           |    2 +-
 board/w7o/u-boot.lds.debug                         |    4 ++--
 board/westel/amx860/u-boot.lds                     |    6 +++---
 board/westel/amx860/u-boot.lds.debug               |    4 ++--
 board/xes/xpedite5170/u-boot.lds                   |    4 ++--
 board/xilinx/ml300/u-boot.lds                      |    4 ++--
 board/xilinx/ml300/u-boot.lds.debug                |    4 ++--
 board/xpedite1k/u-boot.lds                         |    4 ++--
 board/xpedite1k/u-boot.lds.debug                   |    4 ++--
 cpu/mpc5xxx/u-boot-customlayout.lds                |    2 +-
 include/common.h                                   |    6 +++---
 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/ibf-dsp561.h                       |    4 ++--
 include/configs/tcm-bf537.h                        |    2 +-
 include/lzma/LzmaDecode.h                          |    2 +-
 include/lzma/LzmaTools.h                           |    2 +-
 include/lzma/LzmaTypes.h                           |    2 +-
 {lib_generic => lib/generic}/Makefile              |    0
 {lib_generic => lib/generic}/addr_map.c            |    0
 {lib_generic => lib/generic}/bzlib.c               |    0
 {lib_generic => lib/generic}/bzlib_crctable.c      |    0
 {lib_generic => lib/generic}/bzlib_decompress.c    |    0
 {lib_generic => lib/generic}/bzlib_huffman.c       |    0
 {lib_generic => lib/generic}/bzlib_private.h       |    0
 {lib_generic => lib/generic}/bzlib_randtable.c     |    0
 {lib_generic => lib/generic}/crc16.c               |    0
 {lib_generic => lib/generic}/crc32.c               |    0
 {lib_generic => lib/generic}/ctype.c               |    0
 {lib_generic => lib/generic}/display_options.c     |    0
 {lib_generic => lib/generic}/div64.c               |    0
 {lib_generic => lib/generic}/gunzip.c              |    0
 {lib_generic => lib/generic}/ldiv.c                |    0
 {lib_generic => lib/generic}/lmb.c                 |    0
 {lib_generic => lib/generic}/lzma/LGPL.txt         |    0
 {lib_generic => lib/generic}/lzma/LzmaDecode.c     |    0
 {lib_generic => lib/generic}/lzma/LzmaDecode.h     |    0
 {lib_generic => lib/generic}/lzma/LzmaTools.c      |    0
 {lib_generic => lib/generic}/lzma/LzmaTools.h      |    0
 {lib_generic => lib/generic}/lzma/LzmaTypes.h      |    0
 {lib_generic => lib/generic}/lzma/Makefile         |    0
 {lib_generic => lib/generic}/lzma/README.txt       |    0
 {lib_generic => lib/generic}/lzma/history.txt      |    0
 .../generic}/lzma/import_lzmasdk.sh                |    0
 {lib_generic => lib/generic}/lzma/lzma.txt         |    0
 {lib_generic => lib/generic}/lzo/Makefile          |    0
 .../generic}/lzo/lzo1x_decompress.c                |    0
 {lib_generic => lib/generic}/lzo/lzodefs.h         |    0
 {lib_generic => lib/generic}/md5.c                 |    0
 {lib_generic => lib/generic}/rbtree.c              |    0
 {lib_generic => lib/generic}/sha1.c                |    0
 {lib_generic => lib/generic}/sha256.c              |    0
 {lib_generic => lib/generic}/string.c              |    0
 {lib_generic => lib/generic}/strmhz.c              |    0
 {lib_generic => lib/generic}/vsprintf.c            |    0
 {lib_generic => lib/generic}/zlib.c                |    0
 tools/Makefile                                     |    8 ++++----
 tools/env/Makefile                                 |    2 +-
 tools/imls/Makefile                                |    8 ++++----
 212 files changed, 346 insertions(+), 346 deletions(-)
 rename {lib_generic => lib/generic}/Makefile (100%)
 rename {lib_generic => lib/generic}/addr_map.c (100%)
 rename {lib_generic => lib/generic}/bzlib.c (100%)
 rename {lib_generic => lib/generic}/bzlib_crctable.c (100%)
 rename {lib_generic => lib/generic}/bzlib_decompress.c (100%)
 rename {lib_generic => lib/generic}/bzlib_huffman.c (100%)
 rename {lib_generic => lib/generic}/bzlib_private.h (100%)
 rename {lib_generic => lib/generic}/bzlib_randtable.c (100%)
 rename {lib_generic => lib/generic}/crc16.c (100%)
 rename {lib_generic => lib/generic}/crc32.c (100%)
 rename {lib_generic => lib/generic}/ctype.c (100%)
 rename {lib_generic => lib/generic}/display_options.c (100%)
 rename {lib_generic => lib/generic}/div64.c (100%)
 rename {lib_generic => lib/generic}/gunzip.c (100%)
 rename {lib_generic => lib/generic}/ldiv.c (100%)
 rename {lib_generic => lib/generic}/lmb.c (100%)
 rename {lib_generic => lib/generic}/lzma/LGPL.txt (100%)
 rename {lib_generic => lib/generic}/lzma/LzmaDecode.c (100%)
 rename {lib_generic => lib/generic}/lzma/LzmaDecode.h (100%)
 rename {lib_generic => lib/generic}/lzma/LzmaTools.c (100%)
 rename {lib_generic => lib/generic}/lzma/LzmaTools.h (100%)
 rename {lib_generic => lib/generic}/lzma/LzmaTypes.h (100%)
 rename {lib_generic => lib/generic}/lzma/Makefile (100%)
 rename {lib_generic => lib/generic}/lzma/README.txt (100%)
 rename {lib_generic => lib/generic}/lzma/history.txt (100%)
 rename {lib_generic => lib/generic}/lzma/import_lzmasdk.sh (100%)
 rename {lib_generic => lib/generic}/lzma/lzma.txt (100%)
 rename {lib_generic => lib/generic}/lzo/Makefile (100%)
 rename {lib_generic => lib/generic}/lzo/lzo1x_decompress.c (100%)
 rename {lib_generic => lib/generic}/lzo/lzodefs.h (100%)
 rename {lib_generic => lib/generic}/md5.c (100%)
 rename {lib_generic => lib/generic}/rbtree.c (100%)
 rename {lib_generic => lib/generic}/sha1.c (100%)
 rename {lib_generic => lib/generic}/sha256.c (100%)
 rename {lib_generic => lib/generic}/string.c (100%)
 rename {lib_generic => lib/generic}/strmhz.c (100%)
 rename {lib_generic => lib/generic}/vsprintf.c (100%)
 rename {lib_generic => lib/generic}/zlib.c (100%)

diff --git a/Makefile b/Makefile
index b0dd4c5..d52b586 100644
--- a/Makefile
+++ b/Makefile
@@ -217,7 +217,7 @@ endif
 OBJS := $(addprefix $(obj),$(OBJS))
 
-LIBS  = lib_generic/libgeneric.a
-LIBS += lib_generic/lzma/liblzma.a
-LIBS += lib_generic/lzo/liblzo.a
+LIBS  = lib/generic/libgeneric.a
+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)
@@ -408,5 +408,5 @@ depend dep:	$(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
 
 TAG_SUBDIRS += include
-TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
+TAG_SUBDIRS += lib/generic board/$(BOARDDIR)
 TAG_SUBDIRS += cpu/$(CPU)
 TAG_SUBDIRS += lib/$(ARCH)
diff --git a/README b/README
index b88dc1c..33a872f 100644
--- a/README
+++ b/README
@@ -185,5 +185,5 @@ Directory Hierarchy:
 - lib/avr32	Files generic to AVR32	 architecture
 - lib/blackfin	Files generic to Blackfin architecture
-- lib_generic	Files generic to all	 architectures
+- lib/generic	Files generic to all	 architectures
 - lib/i386	Files generic to i386	 architecture
 - lib/m68k	Files generic to m68k	 architecture
diff --git a/api_examples/Makefile b/api_examples/Makefile
index 23b5e9c..db9f6ea 100644
--- a/api_examples/Makefile
+++ b/api_examples/Makefile
@@ -41,8 +41,8 @@ COBJ_FILES-$(CONFIG_API) += libgenwrap.o
 
 # Source files which exist outside the api_examples 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/string.o
-EXT_COBJ_FILES-$(CONFIG_API) += lib_generic/vsprintf.o
+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/string.o
+EXT_COBJ_FILES-$(CONFIG_API) += lib/generic/vsprintf.o
 ifeq ($(ARCH),ppc)
 EXT_SOBJ_FILES-$(CONFIG_API) += lib/ppc/ppcstring.o
@@ -74,5 +74,5 @@ $(OUTPUT):	$(OBJS)
 
 # Rule to build generic library C files
-$(obj)%.o: $(SRCTREE)/lib_generic/%.c
+$(obj)%.o: $(SRCTREE)/lib/generic/%.c
 	$(CC) -g $(CFLAGS) -c -o $@ $<
 
diff --git a/api_examples/libgenwrap.c b/api_examples/libgenwrap.c
index 2b62bad..1616f9f 100644
--- a/api_examples/libgenwrap.c
+++ b/api_examples/libgenwrap.c
@@ -24,5 +24,5 @@
  *
  * 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/generic in the standalone app. This way way we can re-use
  * existing code e.g. operations on strings and similar.
  *
diff --git a/board/BuS/EB+MCF-EV123/u-boot.lds b/board/BuS/EB+MCF-EV123/u-boot.lds
index 3450793..a9e8879 100644
--- a/board/BuS/EB+MCF-EV123/u-boot.lds
+++ b/board/BuS/EB+MCF-EV123/u-boot.lds
@@ -58,8 +58,8 @@ 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/generic/string.o	(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o	(.text)
+    lib/generic/zlib.o	(.text)
 
 /*    . = env_offset; */
diff --git a/board/LEOX/elpt860/u-boot.lds b/board/LEOX/elpt860/u-boot.lds
index 428ad52..6c6fc96 100644
--- a/board/LEOX/elpt860/u-boot.lds
+++ b/board/LEOX/elpt860/u-boot.lds
@@ -68,8 +68,8 @@ SECTIONS
     common/dlmalloc.o			(.text)
     lib/ppc/ppcstring.o			(.text)
-    lib_generic/vsprintf.o		(.text)
-    lib_generic/crc32.o			(.text)
-    lib_generic/zlib.o			(.text)
-    lib_generic/string.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)
diff --git a/board/LEOX/elpt860/u-boot.lds.debug b/board/LEOX/elpt860/u-boot.lds.debug
index 434c9b7..0cbfe2a 100644
--- a/board/LEOX/elpt860/u-boot.lds.debug
+++ b/board/LEOX/elpt860/u-boot.lds.debug
@@ -67,6 +67,6 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/RPXClassic/u-boot.lds b/board/RPXClassic/u-boot.lds
index dd5b607..d2ec27c 100644
--- a/board/RPXClassic/u-boot.lds
+++ b/board/RPXClassic/u-boot.lds
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 /* XXX ?
     . = env_offset;
diff --git a/board/RPXClassic/u-boot.lds.debug b/board/RPXClassic/u-boot.lds.debug
index ea85389..33813dc 100644
--- a/board/RPXClassic/u-boot.lds.debug
+++ b/board/RPXClassic/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/RPXlite/u-boot.lds b/board/RPXlite/u-boot.lds
index dd5b607..d2ec27c 100644
--- a/board/RPXlite/u-boot.lds
+++ b/board/RPXlite/u-boot.lds
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 /* XXX ?
     . = env_offset;
diff --git a/board/RPXlite/u-boot.lds.debug b/board/RPXlite/u-boot.lds.debug
index ea85389..33813dc 100644
--- a/board/RPXlite/u-boot.lds.debug
+++ b/board/RPXlite/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/RPXlite_dw/u-boot.lds b/board/RPXlite_dw/u-boot.lds
index d8e3c0c..0ae6d26 100644
--- a/board/RPXlite_dw/u-boot.lds
+++ b/board/RPXlite_dw/u-boot.lds
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 /* XXX ?
     . = env_offset;
diff --git a/board/RPXlite_dw/u-boot.lds.debug b/board/RPXlite_dw/u-boot.lds.debug
index 0f6ae69..ede7598 100644
--- a/board/RPXlite_dw/u-boot.lds.debug
+++ b/board/RPXlite_dw/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/RRvision/u-boot.lds b/board/RRvision/u-boot.lds
index 794f0f9..b382bdd 100644
--- a/board/RRvision/u-boot.lds
+++ b/board/RRvision/u-boot.lds
@@ -60,7 +60,7 @@ SECTIONS
     common/dlmalloc.o		(.text)
     lib/ppc/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.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)
diff --git a/board/actux1/u-boot.lds b/board/actux1/u-boot.lds
index a695056..9047815 100644
--- a/board/actux1/u-boot.lds
+++ b/board/actux1/u-boot.lds
@@ -32,6 +32,6 @@ SECTIONS
 	.text : {
 		cpu/ixp/start.o(.text)
-		lib_generic/string.o(.text)
-		lib_generic/vsprintf.o(.text)
+		lib/generic/string.o(.text)
+		lib/generic/vsprintf.o(.text)
 		lib/arm/board.o(.text)
 		common/dlmalloc.o(.text)
diff --git a/board/actux2/u-boot.lds b/board/actux2/u-boot.lds
index 4423000..d8d2fa1 100644
--- a/board/actux2/u-boot.lds
+++ b/board/actux2/u-boot.lds
@@ -32,6 +32,6 @@ SECTIONS
 	.text : {
 		cpu/ixp/start.o(.text)
-		lib_generic/string.o(.text)
-		lib_generic/vsprintf.o(.text)
+		lib/generic/string.o(.text)
+		lib/generic/vsprintf.o(.text)
 		lib/arm/board.o(.text)
 		common/dlmalloc.o(.text)
diff --git a/board/actux3/u-boot.lds b/board/actux3/u-boot.lds
index 985271d..a46cc46 100644
--- a/board/actux3/u-boot.lds
+++ b/board/actux3/u-boot.lds
@@ -32,6 +32,6 @@ SECTIONS
 	.text : {
 		cpu/ixp/start.o (.text)
-		lib_generic/string.o (.text)
-		lib_generic/vsprintf.o (.text)
+		lib/generic/string.o (.text)
+		lib/generic/vsprintf.o (.text)
 		lib/arm/board.o (.text)
 		common/dlmalloc.o (.text)
diff --git a/board/amirix/ap1000/u-boot.lds b/board/amirix/ap1000/u-boot.lds
index e0c25d2..5c164a8 100644
--- a/board/amirix/ap1000/u-boot.lds
+++ b/board/amirix/ap1000/u-boot.lds
@@ -65,7 +65,7 @@ SECTIONS
     cpu/ppc4xx/speed.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
 /*    . = env_offset;*/
diff --git a/board/atum8548/u-boot.lds b/board/atum8548/u-boot.lds
index 1342135..f21e087 100644
--- a/board/atum8548/u-boot.lds
+++ b/board/atum8548/u-boot.lds
@@ -68,7 +68,7 @@ SECTIONS
     cpu/mpc85xx/cpu.o (.text)
     cpu/mpc85xx/speed.o (.text)
-    lib_generic/crc32.o (.text)
+    lib/generic/crc32.o (.text)
     lib/ppc/extable.o (.text)
-    lib_generic/zlib.o (.text)
+    lib/generic/zlib.o (.text)
     *(.text)
     *(.fixup)
diff --git a/board/bf518f-ezbrd/config.mk b/board/bf518f-ezbrd/config.mk
index f85bef5..a6416ed 100644
--- a/board/bf518f-ezbrd/config.mk
+++ b/board/bf518f-ezbrd/config.mk
@@ -27,5 +27,5 @@
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
+CFLAGS_generic += -O2
 CFLAGS_lzma += -O2
 
diff --git a/board/bf526-ezbrd/config.mk b/board/bf526-ezbrd/config.mk
index f85bef5..a6416ed 100644
--- a/board/bf526-ezbrd/config.mk
+++ b/board/bf526-ezbrd/config.mk
@@ -27,5 +27,5 @@
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
+CFLAGS_generic += -O2
 CFLAGS_lzma += -O2
 
diff --git a/board/bf527-ezkit/config.mk b/board/bf527-ezkit/config.mk
index f85bef5..a6416ed 100644
--- a/board/bf527-ezkit/config.mk
+++ b/board/bf527-ezkit/config.mk
@@ -27,5 +27,5 @@
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
+CFLAGS_generic += -O2
 CFLAGS_lzma += -O2
 
diff --git a/board/bf533-ezkit/config.mk b/board/bf533-ezkit/config.mk
index 3c0b46f..bf87ab9 100644
--- a/board/bf533-ezkit/config.mk
+++ b/board/bf533-ezkit/config.mk
@@ -27,5 +27,5 @@
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
+CFLAGS_generic += -O2
 CFLAGS_lzma += -O2
 
diff --git a/board/bf533-stamp/config.mk b/board/bf533-stamp/config.mk
index 3c0b46f..bf87ab9 100644
--- a/board/bf533-stamp/config.mk
+++ b/board/bf533-stamp/config.mk
@@ -27,5 +27,5 @@
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
+CFLAGS_generic += -O2
 CFLAGS_lzma += -O2
 
diff --git a/board/bf537-stamp/config.mk b/board/bf537-stamp/config.mk
index bc14257..79ad79d 100644
--- a/board/bf537-stamp/config.mk
+++ b/board/bf537-stamp/config.mk
@@ -27,5 +27,5 @@
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
+CFLAGS_generic += -O2
 CFLAGS_lzma += -O2
 
diff --git a/board/bf538f-ezkit/config.mk b/board/bf538f-ezkit/config.mk
index 3c0b46f..bf87ab9 100644
--- a/board/bf538f-ezkit/config.mk
+++ b/board/bf538f-ezkit/config.mk
@@ -27,5 +27,5 @@
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
+CFLAGS_generic += -O2
 CFLAGS_lzma += -O2
 
diff --git a/board/bf548-ezkit/config.mk b/board/bf548-ezkit/config.mk
index 42ff946..0be9a22 100644
--- a/board/bf548-ezkit/config.mk
+++ b/board/bf548-ezkit/config.mk
@@ -27,5 +27,5 @@
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
+CFLAGS_generic += -O2
 CFLAGS_lzma += -O2
 
diff --git a/board/bf561-ezkit/config.mk b/board/bf561-ezkit/config.mk
index cfad21a..3f318f7 100644
--- a/board/bf561-ezkit/config.mk
+++ b/board/bf561-ezkit/config.mk
@@ -27,5 +27,5 @@
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
+CFLAGS_generic += -O2
 CFLAGS_lzma += -O2
 
diff --git a/board/c2mon/u-boot.lds b/board/c2mon/u-boot.lds
index b72e021..27ce175 100644
--- a/board/c2mon/u-boot.lds
+++ b/board/c2mon/u-boot.lds
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = env_offset;
diff --git a/board/c2mon/u-boot.lds.debug b/board/c2mon/u-boot.lds.debug
index dbec986..28d541f 100644
--- a/board/c2mon/u-boot.lds.debug
+++ b/board/c2mon/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/cm-bf527/config.mk b/board/cm-bf527/config.mk
index f85bef5..a6416ed 100644
--- a/board/cm-bf527/config.mk
+++ b/board/cm-bf527/config.mk
@@ -27,5 +27,5 @@
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
+CFLAGS_generic += -O2
 CFLAGS_lzma += -O2
 
diff --git a/board/cm-bf533/config.mk b/board/cm-bf533/config.mk
index 3c0b46f..bf87ab9 100644
--- a/board/cm-bf533/config.mk
+++ b/board/cm-bf533/config.mk
@@ -27,5 +27,5 @@
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
+CFLAGS_generic += -O2
 CFLAGS_lzma += -O2
 
diff --git a/board/cm-bf537e/config.mk b/board/cm-bf537e/config.mk
index 3c0b46f..bf87ab9 100644
--- a/board/cm-bf537e/config.mk
+++ b/board/cm-bf537e/config.mk
@@ -27,5 +27,5 @@
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
+CFLAGS_generic += -O2
 CFLAGS_lzma += -O2
 
diff --git a/board/cm-bf548/config.mk b/board/cm-bf548/config.mk
index 0c95b39..783ae5f 100644
--- a/board/cm-bf548/config.mk
+++ b/board/cm-bf548/config.mk
@@ -27,5 +27,5 @@
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
+CFLAGS_generic += -O2
 CFLAGS_lzma += -O2
 
diff --git a/board/cm-bf561/config.mk b/board/cm-bf561/config.mk
index cfad21a..3f318f7 100644
--- a/board/cm-bf561/config.mk
+++ b/board/cm-bf561/config.mk
@@ -27,5 +27,5 @@
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
+CFLAGS_generic += -O2
 CFLAGS_lzma += -O2
 
diff --git a/board/cobra5272/u-boot.lds b/board/cobra5272/u-boot.lds
index e866689..b70530d 100644
--- a/board/cobra5272/u-boot.lds
+++ b/board/cobra5272/u-boot.lds
@@ -60,5 +60,5 @@ SECTIONS
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/cogent/u-boot.lds.debug b/board/cogent/u-boot.lds.debug
index ea85389..33813dc 100644
--- a/board/cogent/u-boot.lds.debug
+++ b/board/cogent/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/cray/L1/u-boot.lds b/board/cray/L1/u-boot.lds
index fe69c93..60261b9 100644
--- a/board/cray/L1/u-boot.lds
+++ b/board/cray/L1/u-boot.lds
@@ -71,7 +71,7 @@ SECTIONS
     drivers/net/4xx_enet.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
 /*. = env_offset;*/
diff --git a/board/cray/L1/u-boot.lds.debug b/board/cray/L1/u-boot.lds.debug
index f753355..f15011f 100644
--- a/board/cray/L1/u-boot.lds.debug
+++ b/board/cray/L1/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
 
diff --git a/board/csb272/u-boot.lds b/board/csb272/u-boot.lds
index 453cd3b..567bc46 100644
--- a/board/csb272/u-boot.lds
+++ b/board/csb272/u-boot.lds
@@ -71,9 +71,9 @@ SECTIONS
     drivers/net/4xx_enet.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
 
     lib/ppc/extable.o	(.text)
     lib/ppc/board.o	(.text)
-    lib_generic/zlib.o	(.text)
+    lib/generic/zlib.o	(.text)
 /*    . = env_offset;*/
 /*    common/env_embedded.o(.text)*/
diff --git a/board/csb472/u-boot.lds b/board/csb472/u-boot.lds
index 21682bb..79f77aa 100644
--- a/board/csb472/u-boot.lds
+++ b/board/csb472/u-boot.lds
@@ -71,9 +71,9 @@ SECTIONS
     drivers/net/4xx_enet.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
 
     lib/ppc/extable.o	(.text)
     lib/ppc/board.o	(.text)
-    lib_generic/zlib.o	(.text)
+    lib/generic/zlib.o	(.text)
 /*    . = env_offset;*/
 /*    common/env_embedded.o(.text)*/
diff --git a/board/dave/PPChameleonEVB/u-boot.lds b/board/dave/PPChameleonEVB/u-boot.lds
index 0468fe2..c8c8819 100644
--- a/board/dave/PPChameleonEVB/u-boot.lds
+++ b/board/dave/PPChameleonEVB/u-boot.lds
@@ -69,7 +69,7 @@ SECTIONS
     drivers/net/4xx_enet.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     *(.text)
diff --git a/board/eltec/mhpc/u-boot.lds.debug b/board/eltec/mhpc/u-boot.lds.debug
index dbec986..28d541f 100644
--- a/board/eltec/mhpc/u-boot.lds.debug
+++ b/board/eltec/mhpc/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/emk/top860/u-boot.lds.debug b/board/emk/top860/u-boot.lds.debug
index 6e168a4..c9e9080 100644
--- a/board/emk/top860/u-boot.lds.debug
+++ b/board/emk/top860/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
 
diff --git a/board/eric/u-boot.lds b/board/eric/u-boot.lds
index 2ab92e7..382fa66 100644
--- a/board/eric/u-boot.lds
+++ b/board/eric/u-boot.lds
@@ -71,7 +71,7 @@ SECTIONS
     drivers/net/4xx_enet.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
 /*    . = env_offset;*/
diff --git a/board/esd/ocrtc/u-boot.lds b/board/esd/ocrtc/u-boot.lds
index 03c164d..d170a25 100644
--- a/board/esd/ocrtc/u-boot.lds
+++ b/board/esd/ocrtc/u-boot.lds
@@ -68,7 +68,7 @@ SECTIONS
     cpu/ppc4xx/speed.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
 /*    . = env_offset;*/
diff --git a/board/esd/tasreg/u-boot.lds b/board/esd/tasreg/u-boot.lds
index e072c5d..2f99597 100644
--- a/board/esd/tasreg/u-boot.lds
+++ b/board/esd/tasreg/u-boot.lds
@@ -60,5 +60,5 @@ SECTIONS
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/esteem192e/u-boot.lds b/board/esteem192e/u-boot.lds
index 704de98..b6c1fb9 100644
--- a/board/esteem192e/u-boot.lds
+++ b/board/esteem192e/u-boot.lds
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = env_offset;
diff --git a/board/etx094/u-boot.lds b/board/etx094/u-boot.lds
index eb3d487..2fbe163 100644
--- a/board/etx094/u-boot.lds
+++ b/board/etx094/u-boot.lds
@@ -63,6 +63,6 @@ SECTIONS
     cpu/mpc8xx/speed.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = env_offset;
diff --git a/board/etx094/u-boot.lds.debug b/board/etx094/u-boot.lds.debug
index 334b85a..f763062 100644
--- a/board/etx094/u-boot.lds.debug
+++ b/board/etx094/u-boot.lds.debug
@@ -65,6 +65,6 @@ SECTIONS
     lib/ppc/extable.o	(.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/string.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/string.o	(.text)
+    lib/generic/crc32.o		(.text)
     common/dlmalloc.o	(.text)
     . = env_offset;
diff --git a/board/exbitgen/u-boot.lds b/board/exbitgen/u-boot.lds
index 52d8ddd..5ced498 100644
--- a/board/exbitgen/u-boot.lds
+++ b/board/exbitgen/u-boot.lds
@@ -70,7 +70,7 @@ SECTIONS
     cpu/ppc4xx/speed.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
 /*    . = env_offset;*/
diff --git a/board/fads/u-boot.lds.debug b/board/fads/u-boot.lds.debug
index 515296b..87238ec 100644
--- a/board/fads/u-boot.lds.debug
+++ b/board/fads/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
 
diff --git a/board/flagadm/u-boot.lds.debug b/board/flagadm/u-boot.lds.debug
index dbec986..28d541f 100644
--- a/board/flagadm/u-boot.lds.debug
+++ b/board/flagadm/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/freescale/m52277evb/u-boot.spa b/board/freescale/m52277evb/u-boot.spa
index 1105456..930497e 100644
--- a/board/freescale/m52277evb/u-boot.spa
+++ b/board/freescale/m52277evb/u-boot.spa
@@ -59,5 +59,5 @@ SECTIONS
     cpu/mcf5227x/libmcf5227x.a	(.text)
     lib/m68k/libm68k.a		(.text)
-    lib_generic/libgeneric.a	(.text)
+    lib/generic/libgeneric.a	(.text)
     common/cmd_mem.o		(.text)
     common/main.o		(.text)
diff --git a/board/freescale/m5235evb/u-boot.16 b/board/freescale/m5235evb/u-boot.16
index da9b61a..ae05375 100644
--- a/board/freescale/m5235evb/u-boot.16
+++ b/board/freescale/m5235evb/u-boot.16
@@ -61,5 +61,5 @@ SECTIONS
     lib/m68k/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/freescale/m5235evb/u-boot.32 b/board/freescale/m5235evb/u-boot.32
index 99cdd78..43a6b44 100644
--- a/board/freescale/m5235evb/u-boot.32
+++ b/board/freescale/m5235evb/u-boot.32
@@ -69,5 +69,5 @@ SECTIONS
     common/console.o		(.text)
     common/main.o		(.text)
-    lib_generic/libgeneric.a	(.text)
+    lib/generic/libgeneric.a	(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/freescale/m5249evb/u-boot.lds b/board/freescale/m5249evb/u-boot.lds
index e072c5d..2f99597 100644
--- a/board/freescale/m5249evb/u-boot.lds
+++ b/board/freescale/m5249evb/u-boot.lds
@@ -60,5 +60,5 @@ SECTIONS
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/freescale/m5253demo/u-boot.lds b/board/freescale/m5253demo/u-boot.lds
index f5f334d..55a8dd9 100644
--- a/board/freescale/m5253demo/u-boot.lds
+++ b/board/freescale/m5253demo/u-boot.lds
@@ -60,5 +60,5 @@ SECTIONS
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/freescale/m5253evbe/u-boot.lds b/board/freescale/m5253evbe/u-boot.lds
index 814d5c2..532d246 100644
--- a/board/freescale/m5253evbe/u-boot.lds
+++ b/board/freescale/m5253evbe/u-boot.lds
@@ -60,5 +60,5 @@ SECTIONS
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/freescale/m5271evb/u-boot.lds b/board/freescale/m5271evb/u-boot.lds
index 2d1bf3a..06058fa 100644
--- a/board/freescale/m5271evb/u-boot.lds
+++ b/board/freescale/m5271evb/u-boot.lds
@@ -61,5 +61,5 @@ SECTIONS
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/freescale/m5272c3/u-boot.lds b/board/freescale/m5272c3/u-boot.lds
index bde5d86..b74d611 100644
--- a/board/freescale/m5272c3/u-boot.lds
+++ b/board/freescale/m5272c3/u-boot.lds
@@ -60,5 +60,5 @@ SECTIONS
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/freescale/m5275evb/u-boot.lds b/board/freescale/m5275evb/u-boot.lds
index daf8724..c3b3a87 100644
--- a/board/freescale/m5275evb/u-boot.lds
+++ b/board/freescale/m5275evb/u-boot.lds
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mcf52x2/start.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/string.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/string.o	(.text)
+    lib/generic/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/freescale/m5282evb/u-boot.lds b/board/freescale/m5282evb/u-boot.lds
index f46e025..c000a7e 100644
--- a/board/freescale/m5282evb/u-boot.lds
+++ b/board/freescale/m5282evb/u-boot.lds
@@ -58,7 +58,7 @@ 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/string.o	(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o	(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/freescale/m53017evb/u-boot.lds b/board/freescale/m53017evb/u-boot.lds
index 52ca4f8..e057018 100644
--- a/board/freescale/m53017evb/u-boot.lds
+++ b/board/freescale/m53017evb/u-boot.lds
@@ -60,5 +60,5 @@ SECTIONS
     lib/m68k/libm68k.a		(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/freescale/m5329evb/u-boot.lds b/board/freescale/m5329evb/u-boot.lds
index 5c9720e..371b5cb 100644
--- a/board/freescale/m5329evb/u-boot.lds
+++ b/board/freescale/m5329evb/u-boot.lds
@@ -60,5 +60,5 @@ SECTIONS
     lib/m68k/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/freescale/m5373evb/u-boot.lds b/board/freescale/m5373evb/u-boot.lds
index 30fb272..5b671f7 100644
--- a/board/freescale/m5373evb/u-boot.lds
+++ b/board/freescale/m5373evb/u-boot.lds
@@ -60,5 +60,5 @@ SECTIONS
     lib/m68k/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/freescale/m54451evb/u-boot.spa b/board/freescale/m54451evb/u-boot.spa
index d568688..40d452c 100644
--- a/board/freescale/m54451evb/u-boot.spa
+++ b/board/freescale/m54451evb/u-boot.spa
@@ -60,5 +60,5 @@ SECTIONS
     lib/m68k/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/freescale/m54451evb/u-boot.stm b/board/freescale/m54451evb/u-boot.stm
index 92880d9..2347065 100644
--- a/board/freescale/m54451evb/u-boot.stm
+++ b/board/freescale/m54451evb/u-boot.stm
@@ -65,5 +65,5 @@ SECTIONS
     common/serial.o			(.text)
     common/console.o			(.text)
-    lib_generic/display_options.o	(.text)
+    lib/generic/display_options.o	(.text)
     board/freescale/m54455evb/m54455evb.o	(.text)
 
diff --git a/board/freescale/m54455evb/u-boot.atm b/board/freescale/m54455evb/u-boot.atm
index d568688..40d452c 100644
--- a/board/freescale/m54455evb/u-boot.atm
+++ b/board/freescale/m54455evb/u-boot.atm
@@ -60,5 +60,5 @@ SECTIONS
     lib/m68k/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/freescale/m54455evb/u-boot.int b/board/freescale/m54455evb/u-boot.int
index 58419c0..73c87bc 100644
--- a/board/freescale/m54455evb/u-boot.int
+++ b/board/freescale/m54455evb/u-boot.int
@@ -60,5 +60,5 @@ SECTIONS
     lib/m68k/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     *(.text)
diff --git a/board/freescale/mpc8610hpcd/u-boot.lds b/board/freescale/mpc8610hpcd/u-boot.lds
index c4e47c9..30fefd8 100644
--- a/board/freescale/mpc8610hpcd/u-boot.lds
+++ b/board/freescale/mpc8610hpcd/u-boot.lds
@@ -58,7 +58,7 @@ SECTIONS
     cpu/mpc86xx/speed.o (.text)
     common/dlmalloc.o (.text)
-    lib_generic/crc32.o (.text)
+    lib/generic/crc32.o (.text)
     lib/ppc/extable.o (.text)
-    lib_generic/zlib.o (.text)
+    lib/generic/zlib.o (.text)
     *(.text)
     *(.fixup)
diff --git a/board/freescale/mpc8641hpcn/u-boot.lds b/board/freescale/mpc8641hpcn/u-boot.lds
index ae944d0..f59af5c 100644
--- a/board/freescale/mpc8641hpcn/u-boot.lds
+++ b/board/freescale/mpc8641hpcn/u-boot.lds
@@ -58,7 +58,7 @@ SECTIONS
     cpu/mpc86xx/speed.o (.text)
     common/dlmalloc.o (.text)
-    lib_generic/crc32.o (.text)
+    lib/generic/crc32.o (.text)
     lib/ppc/extable.o (.text)
-    lib_generic/zlib.o (.text)
+    lib/generic/zlib.o (.text)
     drivers/bios_emulator/atibios.o (.text)
     *(.text)
diff --git a/board/genietv/u-boot.lds b/board/genietv/u-boot.lds
index d7f70b7..fd80ace 100644
--- a/board/genietv/u-boot.lds
+++ b/board/genietv/u-boot.lds
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = env_offset;
diff --git a/board/genietv/u-boot.lds.debug b/board/genietv/u-boot.lds.debug
index d3bfb36..ff91c93 100644
--- a/board/genietv/u-boot.lds.debug
+++ b/board/genietv/u-boot.lds.debug
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = env_offset;
diff --git a/board/hermes/u-boot.lds b/board/hermes/u-boot.lds
index eadcaf0..d59230d 100644
--- a/board/hermes/u-boot.lds
+++ b/board/hermes/u-boot.lds
@@ -62,5 +62,5 @@ SECTIONS
     lib/ppc/ticks.o		(.text)
     lib/ppc/cache.o		(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     . = env_offset;
     common/env_embedded.o(.text)
diff --git a/board/hymod/u-boot.lds b/board/hymod/u-boot.lds
index 73c5e74..4cf9556 100644
--- a/board/hymod/u-boot.lds
+++ b/board/hymod/u-boot.lds
@@ -60,7 +60,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = env_offset;
diff --git a/board/hymod/u-boot.lds.debug b/board/hymod/u-boot.lds.debug
index ea85389..33813dc 100644
--- a/board/hymod/u-boot.lds.debug
+++ b/board/hymod/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/icu862/u-boot.lds b/board/icu862/u-boot.lds
index 71cf813..91349b5 100644
--- a/board/icu862/u-boot.lds
+++ b/board/icu862/u-boot.lds
@@ -61,7 +61,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = env_offset;
diff --git a/board/icu862/u-boot.lds.debug b/board/icu862/u-boot.lds.debug
index 23e5c46..b8e9478 100644
--- a/board/icu862/u-boot.lds.debug
+++ b/board/icu862/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
 
diff --git a/board/idmr/u-boot.lds b/board/idmr/u-boot.lds
index 2d1bf3a..06058fa 100644
--- a/board/idmr/u-boot.lds
+++ b/board/idmr/u-boot.lds
@@ -61,5 +61,5 @@ SECTIONS
     cpu/mcf52x2/interrupts.o	(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/ivm/u-boot.lds.debug b/board/ivm/u-boot.lds.debug
index eac3d78..75970a9 100644
--- a/board/ivm/u-boot.lds.debug
+++ b/board/ivm/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
 
diff --git a/board/keymile/km8xx/u-boot.lds b/board/keymile/km8xx/u-boot.lds
index 0b2fc20..5fa5ee2 100644
--- a/board/keymile/km8xx/u-boot.lds
+++ b/board/keymile/km8xx/u-boot.lds
@@ -60,7 +60,7 @@ SECTIONS
     common/dlmalloc.o		(.text)
     lib/ppc/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.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)
diff --git a/board/kup/kup4k/u-boot.lds b/board/kup/kup4k/u-boot.lds
index 575e676..9f35779 100644
--- a/board/kup/kup4k/u-boot.lds
+++ b/board/kup/kup4k/u-boot.lds
@@ -61,7 +61,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = env_offset;
diff --git a/board/kup/kup4k/u-boot.lds.debug b/board/kup/kup4k/u-boot.lds.debug
index 0f6ae69..ede7598 100644
--- a/board/kup/kup4k/u-boot.lds.debug
+++ b/board/kup/kup4k/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/kup/kup4x/u-boot.lds b/board/kup/kup4x/u-boot.lds
index 575e676..9f35779 100644
--- a/board/kup/kup4x/u-boot.lds
+++ b/board/kup/kup4x/u-boot.lds
@@ -61,7 +61,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = env_offset;
diff --git a/board/kup/kup4x/u-boot.lds.debug b/board/kup/kup4x/u-boot.lds.debug
index 0f6ae69..ede7598 100644
--- a/board/kup/kup4x/u-boot.lds.debug
+++ b/board/kup/kup4x/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/lantec/u-boot.lds b/board/lantec/u-boot.lds
index 7e1b6ee..9e2a34b 100644
--- a/board/lantec/u-boot.lds
+++ b/board/lantec/u-boot.lds
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = env_offset;
diff --git a/board/lantec/u-boot.lds.debug b/board/lantec/u-boot.lds.debug
index d5e2c1d..dba3fcf 100644
--- a/board/lantec/u-boot.lds.debug
+++ b/board/lantec/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/lwmon/u-boot.lds.debug b/board/lwmon/u-boot.lds.debug
index c035d63..fd7ef72 100644
--- a/board/lwmon/u-boot.lds.debug
+++ b/board/lwmon/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
 
diff --git a/board/mbx8xx/u-boot.lds.debug b/board/mbx8xx/u-boot.lds.debug
index 515296b..87238ec 100644
--- a/board/mbx8xx/u-boot.lds.debug
+++ b/board/mbx8xx/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
 
diff --git a/board/ml2/u-boot.lds b/board/ml2/u-boot.lds
index e81d4aa..7801c1c 100644
--- a/board/ml2/u-boot.lds
+++ b/board/ml2/u-boot.lds
@@ -65,7 +65,7 @@ SECTIONS
     cpu/ppc4xx/speed.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
 /*    . = env_offset;*/
diff --git a/board/ml2/u-boot.lds.debug b/board/ml2/u-boot.lds.debug
index f753355..f15011f 100644
--- a/board/ml2/u-boot.lds.debug
+++ b/board/ml2/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
 
diff --git a/board/mousse/u-boot.lds b/board/mousse/u-boot.lds
index 7644b90..698f241 100644
--- a/board/mousse/u-boot.lds
+++ b/board/mousse/u-boot.lds
@@ -56,7 +56,7 @@ SECTIONS
     lib/ppc/board.o		(.text)
     lib/ppc/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     *(.fixup)
diff --git a/board/mousse/u-boot.lds.rom b/board/mousse/u-boot.lds.rom
index 9111252..952ae26 100644
--- a/board/mousse/u-boot.lds.rom
+++ b/board/mousse/u-boot.lds.rom
@@ -56,7 +56,7 @@ SECTIONS
 	 common/board.o (.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 
 		. = env_offset;
diff --git a/board/mpc8540eval/u-boot.lds b/board/mpc8540eval/u-boot.lds
index cb6ff82..1bdf29b 100644
--- a/board/mpc8540eval/u-boot.lds
+++ b/board/mpc8540eval/u-boot.lds
@@ -63,7 +63,7 @@ SECTIONS
     cpu/mpc85xx/pci.o (.text)
     common/dlmalloc.o (.text)
-    lib_generic/crc32.o (.text)
+    lib/generic/crc32.o (.text)
     lib/ppc/extable.o (.text)
-    lib_generic/zlib.o (.text)
+    lib/generic/zlib.o (.text)
     *(.text)
     *(.fixup)
diff --git a/board/mpl/mip405/u-boot.lds b/board/mpl/mip405/u-boot.lds
index 592c030..0d63e2b 100644
--- a/board/mpl/mip405/u-boot.lds
+++ b/board/mpl/mip405/u-boot.lds
@@ -75,7 +75,7 @@ SECTIONS
     drivers/net/4xx_enet.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
 /*    . = env_offset;*/
diff --git a/board/mpl/pip405/u-boot.lds b/board/mpl/pip405/u-boot.lds
index 38184ad..2cf6916 100644
--- a/board/mpl/pip405/u-boot.lds
+++ b/board/mpl/pip405/u-boot.lds
@@ -70,7 +70,7 @@ SECTIONS
     cpu/ppc4xx/speed.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
 /*    . = env_offset;*/
diff --git a/board/mpl/pip405/u-boot.lds.debug b/board/mpl/pip405/u-boot.lds.debug
index f753355..f15011f 100644
--- a/board/mpl/pip405/u-boot.lds.debug
+++ b/board/mpl/pip405/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
 
diff --git a/board/netphone/u-boot.lds b/board/netphone/u-boot.lds
index fc6b123..b4cc3ff 100644
--- a/board/netphone/u-boot.lds
+++ b/board/netphone/u-boot.lds
@@ -57,7 +57,7 @@ SECTIONS
     common/dlmalloc.o		(.text)
     lib/ppc/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.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)
diff --git a/board/netphone/u-boot.lds.debug b/board/netphone/u-boot.lds.debug
index d47c408..8eaa915 100644
--- a/board/netphone/u-boot.lds.debug
+++ b/board/netphone/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/netstar/Makefile b/board/netstar/Makefile
index 91bac38..9646498 100644
--- a/board/netstar/Makefile
+++ b/board/netstar/Makefile
@@ -55,5 +55,5 @@ $(obj)eeprom.srec:	$(obj)eeprom.o $(obj)eeprom_start.o
 		-o $(<:.o=) -e eeprom eeprom.o eeprom_start.o \
 		-L$(obj)../../examples -lstubs \
-		-L$(obj)../../lib_generic -lgeneric \
+		-L$(obj)../../lib/generic -lgeneric \
 		-L$(gcclibdir) -lgcc
 	$(OBJCOPY) -O srec $(<:.o=) $@
@@ -76,5 +76,5 @@ $(obj)crcit.o:	crcit.c
 	$(HOSTCC) $(HOST_CFLAGS) -o $@ -c $<
 
-$(obj)crc32.o:	$(SRCTREE)/lib_generic/crc32.c
+$(obj)crc32.o:	$(SRCTREE)/lib/generic/crc32.c
 	$(HOSTCC) $(HOST_CFLAGS) -DUSE_HOSTCC -o $@ -c $<
 
diff --git a/board/netta/u-boot.lds b/board/netta/u-boot.lds
index 2e060ba..12db4c3 100644
--- a/board/netta/u-boot.lds
+++ b/board/netta/u-boot.lds
@@ -57,7 +57,7 @@ SECTIONS
     common/dlmalloc.o		(.text)
     lib/ppc/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.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)
diff --git a/board/netta/u-boot.lds.debug b/board/netta/u-boot.lds.debug
index d47c408..8eaa915 100644
--- a/board/netta/u-boot.lds.debug
+++ b/board/netta/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/netta2/u-boot.lds b/board/netta2/u-boot.lds
index 2e060ba..12db4c3 100644
--- a/board/netta2/u-boot.lds
+++ b/board/netta2/u-boot.lds
@@ -57,7 +57,7 @@ SECTIONS
     common/dlmalloc.o		(.text)
     lib/ppc/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.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)
diff --git a/board/netta2/u-boot.lds.debug b/board/netta2/u-boot.lds.debug
index d47c408..8eaa915 100644
--- a/board/netta2/u-boot.lds.debug
+++ b/board/netta2/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/netvia/u-boot.lds b/board/netvia/u-boot.lds
index 3af9e85..3d4f77d 100644
--- a/board/netvia/u-boot.lds
+++ b/board/netvia/u-boot.lds
@@ -57,7 +57,7 @@ SECTIONS
     common/dlmalloc.o		(.text)
     lib/ppc/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.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)
diff --git a/board/netvia/u-boot.lds.debug b/board/netvia/u-boot.lds.debug
index 9210c43..60629b3 100644
--- a/board/netvia/u-boot.lds.debug
+++ b/board/netvia/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/nx823/u-boot.lds.debug b/board/nx823/u-boot.lds.debug
index dbec986..28d541f 100644
--- a/board/nx823/u-boot.lds.debug
+++ b/board/nx823/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/pcs440ep/u-boot.lds b/board/pcs440ep/u-boot.lds
index a4c537e..d050b4d 100644
--- a/board/pcs440ep/u-boot.lds
+++ b/board/pcs440ep/u-boot.lds
@@ -65,5 +65,5 @@ SECTIONS
     cpu/ppc4xx/start.o	(.text)
     board/pcs440ep/init.o	(.text)
-    lib_generic/sha1.o		(.text)
+    lib/generic/sha1.o		(.text)
 
     *(.text)
diff --git a/board/pm854/u-boot.lds b/board/pm854/u-boot.lds
index 11e7785..0869d3f 100644
--- a/board/pm854/u-boot.lds
+++ b/board/pm854/u-boot.lds
@@ -71,7 +71,7 @@ SECTIONS
     cpu/mpc85xx/pci.o (.text)
     common/dlmalloc.o (.text)
-    lib_generic/crc32.o (.text)
+    lib/generic/crc32.o (.text)
     lib/ppc/extable.o (.text)
-    lib_generic/zlib.o (.text)
+    lib/generic/zlib.o (.text)
     *(.text)
     *(.fixup)
diff --git a/board/pm856/u-boot.lds b/board/pm856/u-boot.lds
index 19fa083..4815b3b 100644
--- a/board/pm856/u-boot.lds
+++ b/board/pm856/u-boot.lds
@@ -71,7 +71,7 @@ SECTIONS
     cpu/mpc85xx/speed.o (.text)
     common/dlmalloc.o (.text)
-    lib_generic/crc32.o (.text)
+    lib/generic/crc32.o (.text)
     lib/ppc/extable.o (.text)
-    lib_generic/zlib.o (.text)
+    lib/generic/zlib.o (.text)
     *(.text)
     *(.fixup)
diff --git a/board/purple/u-boot.lds b/board/purple/u-boot.lds
index 04a641a..9dc0ce8 100644
--- a/board/purple/u-boot.lds
+++ b/board/purple/u-boot.lds
@@ -41,5 +41,5 @@ SECTIONS
 	  common/dlmalloc.o		(.text)
 	  common/cmd_boot.o		(.text)
-	  lib_generic/zlib.o		(.text)
+	  lib/generic/zlib.o		(.text)
 	  . = DEFINED(env_offset) ? env_offset : .;
 	  common/env_embedded.o	(.ppcenv)
diff --git a/board/quantum/u-boot.lds b/board/quantum/u-boot.lds
index dd5b607..d2ec27c 100644
--- a/board/quantum/u-boot.lds
+++ b/board/quantum/u-boot.lds
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 /* XXX ?
     . = env_offset;
diff --git a/board/quantum/u-boot.lds.debug b/board/quantum/u-boot.lds.debug
index 016048d..a52c06f 100644
--- a/board/quantum/u-boot.lds.debug
+++ b/board/quantum/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/rbc823/u-boot.lds b/board/rbc823/u-boot.lds
index bfdfffa..1b0567a 100644
--- a/board/rbc823/u-boot.lds
+++ b/board/rbc823/u-boot.lds
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = env_offset;
diff --git a/board/rmu/u-boot.lds b/board/rmu/u-boot.lds
index dd5b607..d2ec27c 100644
--- a/board/rmu/u-boot.lds
+++ b/board/rmu/u-boot.lds
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 /* XXX ?
     . = env_offset;
diff --git a/board/rmu/u-boot.lds.debug b/board/rmu/u-boot.lds.debug
index 016048d..a52c06f 100644
--- a/board/rmu/u-boot.lds.debug
+++ b/board/rmu/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/sandburst/karef/u-boot.lds b/board/sandburst/karef/u-boot.lds
index f157d17..264db8f 100644
--- a/board/sandburst/karef/u-boot.lds
+++ b/board/sandburst/karef/u-boot.lds
@@ -77,7 +77,7 @@ SECTIONS
     drivers/net/4xx_enet.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
 /*    . = env_offset;*/
diff --git a/board/sandburst/karef/u-boot.lds.debug b/board/sandburst/karef/u-boot.lds.debug
index 97b3a80..653a7f4 100644
--- a/board/sandburst/karef/u-boot.lds.debug
+++ b/board/sandburst/karef/u-boot.lds.debug
@@ -67,7 +67,7 @@ SECTIONS
     drivers/net/4xx_enet.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
 /*    common/env_embedded.o(.text) */
diff --git a/board/sandburst/metrobox/u-boot.lds b/board/sandburst/metrobox/u-boot.lds
index 7bd3ca4..134d697 100644
--- a/board/sandburst/metrobox/u-boot.lds
+++ b/board/sandburst/metrobox/u-boot.lds
@@ -77,7 +77,7 @@ SECTIONS
     drivers/net/4xx_enet.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
 /*    . = env_offset;*/
diff --git a/board/sandburst/metrobox/u-boot.lds.debug b/board/sandburst/metrobox/u-boot.lds.debug
index 0d2674d..88fcfce 100644
--- a/board/sandburst/metrobox/u-boot.lds.debug
+++ b/board/sandburst/metrobox/u-boot.lds.debug
@@ -67,7 +67,7 @@ SECTIONS
     drivers/net/4xx_enet.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
 /*    common/env_embedded.o(.text) */
diff --git a/board/sbc405/u-boot.lds b/board/sbc405/u-boot.lds
index 36d128b..7407290 100644
--- a/board/sbc405/u-boot.lds
+++ b/board/sbc405/u-boot.lds
@@ -69,7 +69,7 @@ SECTIONS
     drivers/net/4xx_enet.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
 /*    . = env_offset;*/
diff --git a/board/sbc8548/u-boot.lds b/board/sbc8548/u-boot.lds
index 8cd87a6..79bf39f 100644
--- a/board/sbc8548/u-boot.lds
+++ b/board/sbc8548/u-boot.lds
@@ -70,7 +70,7 @@ SECTIONS
     cpu/mpc85xx/speed.o (.text)
     common/dlmalloc.o (.text)
-    lib_generic/crc32.o (.text)
+    lib/generic/crc32.o (.text)
     lib/ppc/extable.o (.text)
-    lib_generic/zlib.o (.text)
+    lib/generic/zlib.o (.text)
     *(.text)
     *(.fixup)
diff --git a/board/sbc8560/u-boot.lds b/board/sbc8560/u-boot.lds
index 41e2b6f..a13970c 100644
--- a/board/sbc8560/u-boot.lds
+++ b/board/sbc8560/u-boot.lds
@@ -76,7 +76,7 @@ SECTIONS
     cpu/mpc85xx/speed.o (.text)
     common/dlmalloc.o (.text)
-    lib_generic/crc32.o (.text)
+    lib/generic/crc32.o (.text)
     lib/ppc/extable.o (.text)
-    lib_generic/zlib.o (.text)
+    lib/generic/zlib.o (.text)
     *(.text)
     *(.fixup)
diff --git a/board/sbc8641d/u-boot.lds b/board/sbc8641d/u-boot.lds
index 2a5baa7..c593ae3 100644
--- a/board/sbc8641d/u-boot.lds
+++ b/board/sbc8641d/u-boot.lds
@@ -58,7 +58,7 @@ SECTIONS
     cpu/mpc86xx/speed.o (.text)
     common/dlmalloc.o (.text)
-    lib_generic/crc32.o (.text)
+    lib/generic/crc32.o (.text)
     lib/ppc/extable.o (.text)
-    lib_generic/zlib.o (.text)
+    lib/generic/zlib.o (.text)
     *(.text)
     *(.fixup)
diff --git a/board/sc3/u-boot.lds b/board/sc3/u-boot.lds
index 9e8213c..db7ad16 100644
--- a/board/sc3/u-boot.lds
+++ b/board/sc3/u-boot.lds
@@ -70,7 +70,7 @@ SECTIONS
     cpu/ppc4xx/speed.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
 /*    . = env_offset;*/
diff --git a/board/siemens/CCM/u-boot.lds b/board/siemens/CCM/u-boot.lds
index b72e021..27ce175 100644
--- a/board/siemens/CCM/u-boot.lds
+++ b/board/siemens/CCM/u-boot.lds
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = env_offset;
diff --git a/board/siemens/CCM/u-boot.lds.debug b/board/siemens/CCM/u-boot.lds.debug
index 88dbd38..e6bf91c 100644
--- a/board/siemens/CCM/u-boot.lds.debug
+++ b/board/siemens/CCM/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 /*
     . = env_offset;
diff --git a/board/siemens/pcu_e/u-boot.lds.debug b/board/siemens/pcu_e/u-boot.lds.debug
index c035d63..fd7ef72 100644
--- a/board/siemens/pcu_e/u-boot.lds.debug
+++ b/board/siemens/pcu_e/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
 
diff --git a/board/snmc/qs850/u-boot.lds b/board/snmc/qs850/u-boot.lds
index d9e329d..4676cc0 100644
--- a/board/snmc/qs850/u-boot.lds
+++ b/board/snmc/qs850/u-boot.lds
@@ -60,7 +60,7 @@ SECTIONS
 	common/dlmalloc.o		(.text)
 	lib/ppc/ppcstring.o		(.text)
-	lib_generic/vsprintf.o	(.text)
-	lib_generic/crc32.o		(.text)
-	lib_generic/zlib.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)
diff --git a/board/snmc/qs860t/u-boot.lds b/board/snmc/qs860t/u-boot.lds
index d9e329d..4676cc0 100644
--- a/board/snmc/qs860t/u-boot.lds
+++ b/board/snmc/qs860t/u-boot.lds
@@ -60,7 +60,7 @@ SECTIONS
 	common/dlmalloc.o		(.text)
 	lib/ppc/ppcstring.o		(.text)
-	lib_generic/vsprintf.o	(.text)
-	lib_generic/crc32.o		(.text)
-	lib_generic/zlib.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)
diff --git a/board/socrates/u-boot.lds b/board/socrates/u-boot.lds
index 8f33d44..b0aada8 100644
--- a/board/socrates/u-boot.lds
+++ b/board/socrates/u-boot.lds
@@ -74,7 +74,7 @@ SECTIONS
     cpu/mpc85xx/pci.o (.text)
     common/dlmalloc.o (.text)
-    lib_generic/crc32.o (.text)
+    lib/generic/crc32.o (.text)
     lib/ppc/extable.o (.text)
-    lib_generic/zlib.o (.text)
+    lib/generic/zlib.o (.text)
     *(.text)
     *(.fixup)
diff --git a/board/spc1920/u-boot.lds b/board/spc1920/u-boot.lds
index caf1f08..5550c34 100644
--- a/board/spc1920/u-boot.lds
+++ b/board/spc1920/u-boot.lds
@@ -60,7 +60,7 @@ SECTIONS
     common/dlmalloc.o		(.text)
     lib/ppc/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.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)
diff --git a/board/spd8xx/u-boot.lds.debug b/board/spd8xx/u-boot.lds.debug
index 515296b..87238ec 100644
--- a/board/spd8xx/u-boot.lds.debug
+++ b/board/spd8xx/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
 
diff --git a/board/stxgp3/u-boot.lds b/board/stxgp3/u-boot.lds
index 6ff1629..ce162a2 100644
--- a/board/stxgp3/u-boot.lds
+++ b/board/stxgp3/u-boot.lds
@@ -78,7 +78,7 @@ SECTIONS
     cpu/mpc85xx/speed.o (.text)
     common/dlmalloc.o (.text)
-    lib_generic/crc32.o (.text)
+    lib/generic/crc32.o (.text)
     lib/ppc/extable.o (.text)
-    lib_generic/zlib.o (.text)
+    lib/generic/zlib.o (.text)
     *(.text)
     *(.fixup)
diff --git a/board/stxssa/u-boot.lds b/board/stxssa/u-boot.lds
index 3e25716..e7dff91 100644
--- a/board/stxssa/u-boot.lds
+++ b/board/stxssa/u-boot.lds
@@ -78,7 +78,7 @@ SECTIONS
     cpu/mpc85xx/speed.o (.text)
     common/dlmalloc.o (.text)
-    lib_generic/crc32.o (.text)
+    lib/generic/crc32.o (.text)
     lib/ppc/extable.o (.text)
-    lib_generic/zlib.o (.text)
+    lib/generic/zlib.o (.text)
     *(.text)
     *(.fixup)
diff --git a/board/stxxtc/u-boot.lds b/board/stxxtc/u-boot.lds
index 2e060ba..12db4c3 100644
--- a/board/stxxtc/u-boot.lds
+++ b/board/stxxtc/u-boot.lds
@@ -57,7 +57,7 @@ SECTIONS
     common/dlmalloc.o		(.text)
     lib/ppc/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.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)
diff --git a/board/stxxtc/u-boot.lds.debug b/board/stxxtc/u-boot.lds.debug
index d47c408..8eaa915 100644
--- a/board/stxxtc/u-boot.lds.debug
+++ b/board/stxxtc/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o		(.text)
     common/dlmalloc.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/svm_sc8xx/u-boot.lds b/board/svm_sc8xx/u-boot.lds
index 145541a..660b234 100644
--- a/board/svm_sc8xx/u-boot.lds
+++ b/board/svm_sc8xx/u-boot.lds
@@ -60,7 +60,7 @@ SECTIONS
     common/dlmalloc.o		(.text)
     lib/ppc/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.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)
diff --git a/board/svm_sc8xx/u-boot.lds.debug b/board/svm_sc8xx/u-boot.lds.debug
index 016048d..a52c06f 100644
--- a/board/svm_sc8xx/u-boot.lds.debug
+++ b/board/svm_sc8xx/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/tcm-bf537/config.mk b/board/tcm-bf537/config.mk
index 3c0b46f..bf87ab9 100644
--- a/board/tcm-bf537/config.mk
+++ b/board/tcm-bf537/config.mk
@@ -27,5 +27,5 @@
 #TEXT_BASE = do-not-use-me
 
-CFLAGS_lib_generic += -O2
+CFLAGS_generic += -O2
 CFLAGS_lzma += -O2
 
diff --git a/board/tqc/tqm85xx/u-boot.lds b/board/tqc/tqm85xx/u-boot.lds
index 666abf5..7961cb9 100644
--- a/board/tqc/tqm85xx/u-boot.lds
+++ b/board/tqc/tqm85xx/u-boot.lds
@@ -71,7 +71,7 @@ SECTIONS
     cpu/mpc85xx/pci.o (.text)
     common/dlmalloc.o (.text)
-    lib_generic/crc32.o (.text)
+    lib/generic/crc32.o (.text)
     lib/ppc/extable.o (.text)
-    lib_generic/zlib.o (.text)
+    lib/generic/zlib.o (.text)
     *(.text)
     *(.fixup)
diff --git a/board/tqc/tqm8xx/u-boot.lds b/board/tqc/tqm8xx/u-boot.lds
index e63f593..f9e2a1f 100644
--- a/board/tqc/tqm8xx/u-boot.lds
+++ b/board/tqc/tqm8xx/u-boot.lds
@@ -60,7 +60,7 @@ SECTIONS
     common/dlmalloc.o		(.text)
     lib/ppc/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
     lib/ppc/cache.o		(.text)
 
diff --git a/board/tqc/tqm8xx/u-boot.lds.debug b/board/tqc/tqm8xx/u-boot.lds.debug
index ea85389..33813dc 100644
--- a/board/tqc/tqm8xx/u-boot.lds.debug
+++ b/board/tqc/tqm8xx/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     . = env_offset;
diff --git a/board/trab/Makefile b/board/trab/Makefile
index 9233f49..4897a09 100644
--- a/board/trab/Makefile
+++ b/board/trab/Makefile
@@ -51,5 +51,5 @@ $(obj)trab_fkt.srec:	$(OBJS_FKT) $(LIB)
 	$(LD) -g -Ttext $(LOAD_ADDR) -o $(<:.o=) -e trab_fkt $^ $(LIB) \
 		-L$(obj)../../examples -lstubs \
-		-L$(obj)../../lib_generic -lgeneric \
+		-L$(obj)../../lib/generic -lgeneric \
 		$(obj)../../lib/arm/div0.o \
 		$(obj)../../lib/arm/_*.o
diff --git a/board/trab/u-boot.lds b/board/trab/u-boot.lds
index 2e0e721..5768f82 100644
--- a/board/trab/u-boot.lds
+++ b/board/trab/u-boot.lds
@@ -35,7 +35,7 @@ SECTIONS
 	  cpu/arm920t/start.o	(.text)
 	  lib/arm/_umodsi3.o	(.text)
-	  lib_generic/zlib.o	(.text)
-	  lib_generic/crc32.o	(.text)
-	  lib_generic/string.o	(.text)
+	  lib/generic/zlib.o	(.text)
+	  lib/generic/crc32.o	(.text)
+	  lib/generic/string.o	(.text)
 
 	. = DEFINED(env_offset) ? env_offset : .;
diff --git a/board/uc100/u-boot.lds b/board/uc100/u-boot.lds
index 3ab0eb0..ddc6320 100644
--- a/board/uc100/u-boot.lds
+++ b/board/uc100/u-boot.lds
@@ -60,7 +60,7 @@ SECTIONS
     common/dlmalloc.o		(.text)
     lib/ppc/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.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)
diff --git a/board/uc100/u-boot.lds.debug b/board/uc100/u-boot.lds.debug
index 5750657..b511542 100644
--- a/board/uc100/u-boot.lds.debug
+++ b/board/uc100/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
 
     common/env_embedded.o(.text)
diff --git a/board/v37/u-boot.lds b/board/v37/u-boot.lds
index b9407b6..1ef4811 100644
--- a/board/v37/u-boot.lds
+++ b/board/v37/u-boot.lds
@@ -60,7 +60,7 @@ SECTIONS
     common/dlmalloc.o		(.text)
     lib/ppc/ppcstring.o		(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.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)
diff --git a/board/voiceblue/Makefile b/board/voiceblue/Makefile
index e7c1cbb..e579093 100644
--- a/board/voiceblue/Makefile
+++ b/board/voiceblue/Makefile
@@ -49,5 +49,5 @@ $(obj)eeprom.srec:	$(obj)eeprom.o $(obj)eeprom_start.o
 		-o $(<:.o=) -e eeprom eeprom.o eeprom_start.o \
 		-L$(obj)../../examples -lstubs \
-		-L$(obj)../../lib_generic -lgeneric \
+		-L$(obj)../../lib/generic -lgeneric \
 		-L$(gcclibdir) -lgcc
 	$(OBJCOPY) -O srec $(<:.o=) $@
diff --git a/board/w7o/u-boot.lds.debug b/board/w7o/u-boot.lds.debug
index 403c29a..57ea485 100644
--- a/board/w7o/u-boot.lds.debug
+++ b/board/w7o/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
 
diff --git a/board/westel/amx860/u-boot.lds b/board/westel/amx860/u-boot.lds
index b72e021..27ce175 100644
--- a/board/westel/amx860/u-boot.lds
+++ b/board/westel/amx860/u-boot.lds
@@ -59,7 +59,7 @@ SECTIONS
     common/dlmalloc.o	(.text)
     lib/ppc/ppcstring.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
+    lib/generic/zlib.o		(.text)
 
     . = env_offset;
diff --git a/board/westel/amx860/u-boot.lds.debug b/board/westel/amx860/u-boot.lds.debug
index 23e5c46..b8e9478 100644
--- a/board/westel/amx860/u-boot.lds.debug
+++ b/board/westel/amx860/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     cpu/mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
 
diff --git a/board/xes/xpedite5170/u-boot.lds b/board/xes/xpedite5170/u-boot.lds
index b65a68d..aa3ecdf 100644
--- a/board/xes/xpedite5170/u-boot.lds
+++ b/board/xes/xpedite5170/u-boot.lds
@@ -58,7 +58,7 @@ SECTIONS
     cpu/mpc86xx/speed.o (.text)
     common/dlmalloc.o (.text)
-    lib_generic/crc32.o (.text)
+    lib/generic/crc32.o (.text)
     lib/ppc/extable.o (.text)
-    lib_generic/zlib.o (.text)
+    lib/generic/zlib.o (.text)
     *(.text)
     *(.got1)
diff --git a/board/xilinx/ml300/u-boot.lds b/board/xilinx/ml300/u-boot.lds
index d77cd49..771d088 100644
--- a/board/xilinx/ml300/u-boot.lds
+++ b/board/xilinx/ml300/u-boot.lds
@@ -67,7 +67,7 @@ SECTIONS
     drivers/net/4xx_enet.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 */
 /*    . = env_offset;*/
diff --git a/board/xilinx/ml300/u-boot.lds.debug b/board/xilinx/ml300/u-boot.lds.debug
index f753355..f15011f 100644
--- a/board/xilinx/ml300/u-boot.lds.debug
+++ b/board/xilinx/ml300/u-boot.lds.debug
@@ -58,6 +58,6 @@ SECTIONS
     mpc8xx/start.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/vsprintf.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/vsprintf.o	(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
 
diff --git a/board/xpedite1k/u-boot.lds b/board/xpedite1k/u-boot.lds
index 19814df..c852186 100644
--- a/board/xpedite1k/u-boot.lds
+++ b/board/xpedite1k/u-boot.lds
@@ -75,7 +75,7 @@ SECTIONS
     cpu/ppc4xx/speed.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
 /*    . = env_offset;*/
diff --git a/board/xpedite1k/u-boot.lds.debug b/board/xpedite1k/u-boot.lds.debug
index f7ddf62..48c506f 100644
--- a/board/xpedite1k/u-boot.lds.debug
+++ b/board/xpedite1k/u-boot.lds.debug
@@ -65,7 +65,7 @@ SECTIONS
     cpu/ppc4xx/speed.o	(.text)
     common/dlmalloc.o	(.text)
-    lib_generic/crc32.o		(.text)
+    lib/generic/crc32.o		(.text)
     lib/ppc/extable.o	(.text)
-    lib_generic/zlib.o		(.text)
+    lib/generic/zlib.o		(.text)
 
 /*    common/env_embedded.o(.text) */
diff --git a/cpu/mpc5xxx/u-boot-customlayout.lds b/cpu/mpc5xxx/u-boot-customlayout.lds
index cd37491..67dcc6b 100644
--- a/cpu/mpc5xxx/u-boot-customlayout.lds
+++ b/cpu/mpc5xxx/u-boot-customlayout.lds
@@ -58,5 +58,5 @@ SECTIONS
     cpu/mpc5xxx/start.o          (.text)
     cpu/mpc5xxx/traps.o          (.text)
-    lib_generic/crc32.o         (.text)
+    lib/generic/crc32.o         (.text)
     lib/ppc/cache.o             (.text)
     lib/ppc/time.o              (.text)
diff --git a/include/common.h b/include/common.h
index 703775e..a301d36 100644
--- a/include/common.h
+++ b/include/common.h
@@ -605,5 +605,5 @@ ulong	ticks2usec    (unsigned long ticks);
 int	init_timebase (void);
 
-/* lib_generic/vsprintf.c */
+/* lib/generic/vsprintf.c */
 ulong	simple_strtoul(const char *cp,char **endp,unsigned int base);
 #ifdef CONFIG_SYS_64BIT_VSPRINTF
@@ -617,8 +617,8 @@ int	sprintf(char * buf, const char *fmt, ...)
 int	vsprintf(char *buf, const char *fmt, va_list args);
 
-/* lib_generic/strmhz.c */
+/* lib/generic/strmhz.c */
 char *	strmhz(char *buf, long hz);
 
-/* lib_generic/crc32.c */
+/* lib/generic/crc32.c */
 uint32_t crc32 (uint32_t, const unsigned char *, uint);
 uint32_t crc32_wd (uint32_t, const unsigned char *, uint, uint);
diff --git a/include/configs/bf533-stamp.h b/include/configs/bf533-stamp.h
index c03561c..df37a1a 100644
--- a/include/configs/bf533-stamp.h
+++ b/include/configs/bf533-stamp.h
@@ -129,5 +129,5 @@
 	cpu/blackfin/serial.o		(.text .text.*); \
 	common/dlmalloc.o		(.text .text.*); \
-	lib_generic/crc32.o		(.text .text.*); \
+	lib/generic/crc32.o		(.text .text.*); \
 	. = DEFINED(env_offset) ? env_offset : .; \
 	common/env_embedded.o		(.text .text.*);
diff --git a/include/configs/bf537-pnav.h b/include/configs/bf537-pnav.h
index 0f908ef..9b70013 100644
--- a/include/configs/bf537-pnav.h
+++ b/include/configs/bf537-pnav.h
@@ -117,5 +117,5 @@
 	cpu/blackfin/serial.o		(.text .text.*); \
 	common/dlmalloc.o		(.text .text.*); \
-	lib_generic/crc32.o		(.text .text.*); \
+	lib/generic/crc32.o		(.text .text.*); \
 	. = DEFINED(env_offset) ? env_offset : .; \
 	common/env_embedded.o		(.text .text.*);
diff --git a/include/configs/bf537-stamp.h b/include/configs/bf537-stamp.h
index 0a86e83..85e1c6b 100644
--- a/include/configs/bf537-stamp.h
+++ b/include/configs/bf537-stamp.h
@@ -127,5 +127,5 @@
 	cpu/blackfin/serial.o		(.text .text.*); \
 	common/dlmalloc.o		(.text .text.*); \
-	lib_generic/crc32.o		(.text .text.*); \
+	lib/generic/crc32.o		(.text .text.*); \
 	. = DEFINED(env_offset) ? env_offset : .; \
 	common/env_embedded.o		(.text .text.*);
diff --git a/include/configs/bf538f-ezkit.h b/include/configs/bf538f-ezkit.h
index 535687f..0c97233 100644
--- a/include/configs/bf538f-ezkit.h
+++ b/include/configs/bf538f-ezkit.h
@@ -123,5 +123,5 @@
 	cpu/blackfin/serial.o		(.text .text.*); \
 	common/dlmalloc.o		(.text .text.*); \
-	lib_generic/crc32.o		(.text .text.*); \
+	lib/generic/crc32.o		(.text .text.*); \
 	. = DEFINED(env_offset) ? env_offset : .; \
 	common/env_embedded.o		(.text .text.*);
diff --git a/include/configs/bf561-ezkit.h b/include/configs/bf561-ezkit.h
index 4779a97..d516180 100644
--- a/include/configs/bf561-ezkit.h
+++ b/include/configs/bf561-ezkit.h
@@ -100,6 +100,6 @@
 	cpu/blackfin/serial.o		(.text .text.*); \
 	common/dlmalloc.o		(.text .text.*); \
-	lib_generic/crc32.o		(.text .text.*); \
-	lib_generic/zlib.o		(.text .text.*); \
+	lib/generic/crc32.o		(.text .text.*); \
+	lib/generic/zlib.o		(.text .text.*); \
 	board/bf561-ezkit/bf561-ezkit.o	(.text .text.*); \
 	. = DEFINED(env_offset) ? env_offset : .; \
diff --git a/include/configs/cm-bf537e.h b/include/configs/cm-bf537e.h
index 021b631..66b4ec9 100644
--- a/include/configs/cm-bf537e.h
+++ b/include/configs/cm-bf537e.h
@@ -106,5 +106,5 @@
 	cpu/blackfin/serial.o		(.text .text.*); \
 	common/dlmalloc.o		(.text .text.*); \
-	lib_generic/crc32.o		(.text .text.*); \
+	lib/generic/crc32.o		(.text .text.*); \
 	. = DEFINED(env_offset) ? env_offset : .; \
 	common/env_embedded.o		(.text .text.*);
diff --git a/include/configs/ibf-dsp561.h b/include/configs/ibf-dsp561.h
index 066859f..568407d 100644
--- a/include/configs/ibf-dsp561.h
+++ b/include/configs/ibf-dsp561.h
@@ -89,6 +89,6 @@
 	cpu/blackfin/serial.o		(.text .text.*); \
 	common/dlmalloc.o		(.text .text.*); \
-	lib_generic/crc32.o		(.text .text.*); \
-	lib_generic/zlib.o		(.text .text.*); \
+	lib/generic/crc32.o		(.text .text.*); \
+	lib/generic/zlib.o		(.text .text.*); \
 	board/ibf-dsp561/ibf-dsp561.o	(.text .text.*); \
 	. = DEFINED(env_offset) ? env_offset : .; \
diff --git a/include/configs/tcm-bf537.h b/include/configs/tcm-bf537.h
index 9794e1b..59ebb8d 100644
--- a/include/configs/tcm-bf537.h
+++ b/include/configs/tcm-bf537.h
@@ -107,5 +107,5 @@
 	cpu/blackfin/serial.o		(.text .text.*); \
 	common/dlmalloc.o		(.text .text.*); \
-	lib_generic/crc32.o		(.text .text.*); \
+	lib/generic/crc32.o		(.text .text.*); \
 	. = DEFINED(env_offset) ? env_offset : .; \
 	common/env_embedded.o		(.text .text.*);
diff --git a/include/lzma/LzmaDecode.h b/include/lzma/LzmaDecode.h
index 8fdb2c0..188265c 100644
--- a/include/lzma/LzmaDecode.h
+++ b/include/lzma/LzmaDecode.h
@@ -27,5 +27,5 @@
 #define __LZMADECODE_H__FAKE__
 
-#include "../../lib_generic/lzma/LzmaDecode.h"
+#include "../../lib/generic/lzma/LzmaDecode.h"
 
 #endif
diff --git a/include/lzma/LzmaTools.h b/include/lzma/LzmaTools.h
index 7c5eea1..5133774 100644
--- a/include/lzma/LzmaTools.h
+++ b/include/lzma/LzmaTools.h
@@ -27,5 +27,5 @@
 #define __LZMATOOLS_H__FAKE__
 
-#include "../../lib_generic/lzma/LzmaTools.h"
+#include "../../lib/generic/lzma/LzmaTools.h"
 
 #endif
diff --git a/include/lzma/LzmaTypes.h b/include/lzma/LzmaTypes.h
index 02daa59..855b34b 100644
--- a/include/lzma/LzmaTypes.h
+++ b/include/lzma/LzmaTypes.h
@@ -27,5 +27,5 @@
 #define __LZMATYPES_H__FAKE__
 
-#include "../../lib_generic/lzma/LzmaTypes.h"
+#include "../../lib/generic/lzma/LzmaTypes.h"
 
 #endif
diff --git a/lib_generic/Makefile b/lib/generic/Makefile
similarity index 100%
rename from lib_generic/Makefile
rename to lib/generic/Makefile
diff --git a/lib_generic/addr_map.c b/lib/generic/addr_map.c
similarity index 100%
rename from lib_generic/addr_map.c
rename to lib/generic/addr_map.c
diff --git a/lib_generic/bzlib.c b/lib/generic/bzlib.c
similarity index 100%
rename from lib_generic/bzlib.c
rename to lib/generic/bzlib.c
diff --git a/lib_generic/bzlib_crctable.c b/lib/generic/bzlib_crctable.c
similarity index 100%
rename from lib_generic/bzlib_crctable.c
rename to lib/generic/bzlib_crctable.c
diff --git a/lib_generic/bzlib_decompress.c b/lib/generic/bzlib_decompress.c
similarity index 100%
rename from lib_generic/bzlib_decompress.c
rename to lib/generic/bzlib_decompress.c
diff --git a/lib_generic/bzlib_huffman.c b/lib/generic/bzlib_huffman.c
similarity index 100%
rename from lib_generic/bzlib_huffman.c
rename to lib/generic/bzlib_huffman.c
diff --git a/lib_generic/bzlib_private.h b/lib/generic/bzlib_private.h
similarity index 100%
rename from lib_generic/bzlib_private.h
rename to lib/generic/bzlib_private.h
diff --git a/lib_generic/bzlib_randtable.c b/lib/generic/bzlib_randtable.c
similarity index 100%
rename from lib_generic/bzlib_randtable.c
rename to lib/generic/bzlib_randtable.c
diff --git a/lib_generic/crc16.c b/lib/generic/crc16.c
similarity index 100%
rename from lib_generic/crc16.c
rename to lib/generic/crc16.c
diff --git a/lib_generic/crc32.c b/lib/generic/crc32.c
similarity index 100%
rename from lib_generic/crc32.c
rename to lib/generic/crc32.c
diff --git a/lib_generic/ctype.c b/lib/generic/ctype.c
similarity index 100%
rename from lib_generic/ctype.c
rename to lib/generic/ctype.c
diff --git a/lib_generic/display_options.c b/lib/generic/display_options.c
similarity index 100%
rename from lib_generic/display_options.c
rename to lib/generic/display_options.c
diff --git a/lib_generic/div64.c b/lib/generic/div64.c
similarity index 100%
rename from lib_generic/div64.c
rename to lib/generic/div64.c
diff --git a/lib_generic/gunzip.c b/lib/generic/gunzip.c
similarity index 100%
rename from lib_generic/gunzip.c
rename to lib/generic/gunzip.c
diff --git a/lib_generic/ldiv.c b/lib/generic/ldiv.c
similarity index 100%
rename from lib_generic/ldiv.c
rename to lib/generic/ldiv.c
diff --git a/lib_generic/lmb.c b/lib/generic/lmb.c
similarity index 100%
rename from lib_generic/lmb.c
rename to lib/generic/lmb.c
diff --git a/lib_generic/lzma/LGPL.txt b/lib/generic/lzma/LGPL.txt
similarity index 100%
rename from lib_generic/lzma/LGPL.txt
rename to lib/generic/lzma/LGPL.txt
diff --git a/lib_generic/lzma/LzmaDecode.c b/lib/generic/lzma/LzmaDecode.c
similarity index 100%
rename from lib_generic/lzma/LzmaDecode.c
rename to lib/generic/lzma/LzmaDecode.c
diff --git a/lib_generic/lzma/LzmaDecode.h b/lib/generic/lzma/LzmaDecode.h
similarity index 100%
rename from lib_generic/lzma/LzmaDecode.h
rename to lib/generic/lzma/LzmaDecode.h
diff --git a/lib_generic/lzma/LzmaTools.c b/lib/generic/lzma/LzmaTools.c
similarity index 100%
rename from lib_generic/lzma/LzmaTools.c
rename to lib/generic/lzma/LzmaTools.c
diff --git a/lib_generic/lzma/LzmaTools.h b/lib/generic/lzma/LzmaTools.h
similarity index 100%
rename from lib_generic/lzma/LzmaTools.h
rename to lib/generic/lzma/LzmaTools.h
diff --git a/lib_generic/lzma/LzmaTypes.h b/lib/generic/lzma/LzmaTypes.h
similarity index 100%
rename from lib_generic/lzma/LzmaTypes.h
rename to lib/generic/lzma/LzmaTypes.h
diff --git a/lib_generic/lzma/Makefile b/lib/generic/lzma/Makefile
similarity index 100%
rename from lib_generic/lzma/Makefile
rename to lib/generic/lzma/Makefile
diff --git a/lib_generic/lzma/README.txt b/lib/generic/lzma/README.txt
similarity index 100%
rename from lib_generic/lzma/README.txt
rename to lib/generic/lzma/README.txt
diff --git a/lib_generic/lzma/history.txt b/lib/generic/lzma/history.txt
similarity index 100%
rename from lib_generic/lzma/history.txt
rename to lib/generic/lzma/history.txt
diff --git a/lib_generic/lzma/import_lzmasdk.sh b/lib/generic/lzma/import_lzmasdk.sh
similarity index 100%
rename from lib_generic/lzma/import_lzmasdk.sh
rename to lib/generic/lzma/import_lzmasdk.sh
diff --git a/lib_generic/lzma/lzma.txt b/lib/generic/lzma/lzma.txt
similarity index 100%
rename from lib_generic/lzma/lzma.txt
rename to lib/generic/lzma/lzma.txt
diff --git a/lib_generic/lzo/Makefile b/lib/generic/lzo/Makefile
similarity index 100%
rename from lib_generic/lzo/Makefile
rename to lib/generic/lzo/Makefile
diff --git a/lib_generic/lzo/lzo1x_decompress.c b/lib/generic/lzo/lzo1x_decompress.c
similarity index 100%
rename from lib_generic/lzo/lzo1x_decompress.c
rename to lib/generic/lzo/lzo1x_decompress.c
diff --git a/lib_generic/lzo/lzodefs.h b/lib/generic/lzo/lzodefs.h
similarity index 100%
rename from lib_generic/lzo/lzodefs.h
rename to lib/generic/lzo/lzodefs.h
diff --git a/lib_generic/md5.c b/lib/generic/md5.c
similarity index 100%
rename from lib_generic/md5.c
rename to lib/generic/md5.c
diff --git a/lib_generic/rbtree.c b/lib/generic/rbtree.c
similarity index 100%
rename from lib_generic/rbtree.c
rename to lib/generic/rbtree.c
diff --git a/lib_generic/sha1.c b/lib/generic/sha1.c
similarity index 100%
rename from lib_generic/sha1.c
rename to lib/generic/sha1.c
diff --git a/lib_generic/sha256.c b/lib/generic/sha256.c
similarity index 100%
rename from lib_generic/sha256.c
rename to lib/generic/sha256.c
diff --git a/lib_generic/string.c b/lib/generic/string.c
similarity index 100%
rename from lib_generic/string.c
rename to lib/generic/string.c
diff --git a/lib_generic/strmhz.c b/lib/generic/strmhz.c
similarity index 100%
rename from lib_generic/strmhz.c
rename to lib/generic/strmhz.c
diff --git a/lib_generic/vsprintf.c b/lib/generic/vsprintf.c
similarity index 100%
rename from lib_generic/vsprintf.c
rename to lib/generic/vsprintf.c
diff --git a/lib_generic/zlib.c b/lib/generic/zlib.c
similarity index 100%
rename from lib_generic/zlib.c
rename to lib/generic/zlib.c
diff --git a/tools/Makefile b/tools/Makefile
index 43c284c..c9af71f 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -82,7 +82,7 @@ BIN_FILES-$(CONFIG_NETCONSOLE) += ncb$(SFX)
 # Source files which exist outside the tools directory
 EXT_OBJ_FILES-y += common/env_embedded.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/generic/crc32.o
+EXT_OBJ_FILES-y += lib/generic/md5.o
+EXT_OBJ_FILES-y += lib/generic/sha1.o
 EXT_OBJ_FILES-y += common/image.o
 
@@ -210,5 +210,5 @@ $(obj)%.o: $(SRCTREE)/common/%.c
 	$(CC) -g $(FIT_CFLAGS) -c -o $@ $<
 
-$(obj)%.o: $(SRCTREE)/lib_generic/%.c
+$(obj)%.o: $(SRCTREE)/lib/generic/%.c
 	$(CC) -g $(CFLAGS) -c -o $@ $<
 
diff --git a/tools/env/Makefile b/tools/env/Makefile
index 9629ee5..da6bef6 100644
--- a/tools/env/Makefile
+++ b/tools/env/Makefile
@@ -42,5 +42,5 @@ clean:
 
 $(obj)crc32.c:
-	ln -s $(src)../../lib_generic/crc32.c $(obj)crc32.c
+	ln -s $(src)../../lib/generic/crc32.c $(obj)crc32.c
 
 #########################################################################
diff --git a/tools/imls/Makefile b/tools/imls/Makefile
index 04ab31a..fa48501 100644
--- a/tools/imls/Makefile
+++ b/tools/imls/Makefile
@@ -26,7 +26,7 @@ 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/generic/crc32.o
+EXT_OBJ_FILES-y += lib/generic/md5.o
+EXT_OBJ_FILES-y += lib/generic/sha1.o
 EXT_OBJ_FILES-y += common/image.o
 
@@ -88,5 +88,5 @@ $(obj)%.o: $(SRCTREE)/common/%.c
 	$(CC) -g $(FIT_CFLAGS) -c -o $@ $<
 
-$(obj)%.o: $(SRCTREE)/lib_generic/%.c
+$(obj)%.o: $(SRCTREE)/lib/generic/%.c
 	$(CC) -g $(CFLAGS) -c -o $@ $<
 
-- 
1.6.2.1

^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 8/9] Move libfdt to lib/libfdt
  2009-07-09 15:08 [U-Boot] [PATCH 0/9] Clean up top-level directory structure Peter Tyser
                   ` (6 preceding siblings ...)
  2009-07-09 15:08 ` [U-Boot] [PATCH 7/9] Move lib_generic to lib/generic Peter Tyser
@ 2009-07-09 15:08 ` Peter Tyser
  2009-07-09 15:08 ` [U-Boot] [PATCH 9/9] Move api_examples to api/examples Peter Tyser
  2009-07-09 17:57 ` [U-Boot] [PATCH 0/9] Clean up top-level directory structure Mike Frysinger
  9 siblings, 0 replies; 20+ messages in thread
From: Peter Tyser @ 2009-07-09 15:08 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
---
 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                           |    4 ++--
 tools/imls/Makefile                      |    6 +++---
 12 files changed, 6 insertions(+), 6 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%)

diff --git a/Makefile b/Makefile
index d52b586..ee3b6bf 100644
--- a/Makefile
+++ b/Makefile
@@ -278,5 +278,5 @@ 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
diff --git a/libfdt/Makefile b/lib/libfdt/Makefile
similarity index 100%
rename from libfdt/Makefile
rename to lib/libfdt/Makefile
diff --git a/libfdt/README b/lib/libfdt/README
similarity index 100%
rename from libfdt/README
rename to lib/libfdt/README
diff --git a/libfdt/fdt.c b/lib/libfdt/fdt.c
similarity index 100%
rename from libfdt/fdt.c
rename to lib/libfdt/fdt.c
diff --git a/libfdt/fdt_ro.c b/lib/libfdt/fdt_ro.c
similarity index 100%
rename from libfdt/fdt_ro.c
rename to lib/libfdt/fdt_ro.c
diff --git a/libfdt/fdt_rw.c b/lib/libfdt/fdt_rw.c
similarity index 100%
rename from libfdt/fdt_rw.c
rename to lib/libfdt/fdt_rw.c
diff --git a/libfdt/fdt_strerror.c b/lib/libfdt/fdt_strerror.c
similarity index 100%
rename from libfdt/fdt_strerror.c
rename to lib/libfdt/fdt_strerror.c
diff --git a/libfdt/fdt_sw.c b/lib/libfdt/fdt_sw.c
similarity index 100%
rename from libfdt/fdt_sw.c
rename to lib/libfdt/fdt_sw.c
diff --git a/libfdt/fdt_wip.c b/lib/libfdt/fdt_wip.c
similarity index 100%
rename from libfdt/fdt_wip.c
rename to lib/libfdt/fdt_wip.c
diff --git a/libfdt/libfdt_internal.h b/lib/libfdt/libfdt_internal.h
similarity index 100%
rename from libfdt/libfdt_internal.h
rename to lib/libfdt/libfdt_internal.h
diff --git a/tools/Makefile b/tools/Makefile
index c9af71f..7c03fc5 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -130,5 +130,5 @@ endif
 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))
@@ -141,5 +141,5 @@ CPPFLAGS   = -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 \
diff --git a/tools/imls/Makefile b/tools/imls/Makefile
index fa48501..1ec037c 100644
--- a/tools/imls/Makefile
+++ b/tools/imls/Makefile
@@ -44,5 +44,5 @@ LIBFDT_OBJ_FILES-y += fdt_wip.o
 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))
@@ -55,5 +55,5 @@ CPPFLAGS   = -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
@@ -91,5 +91,5 @@ $(obj)%.o: $(SRCTREE)/lib/generic/%.c
 	$(CC) -g $(CFLAGS) -c -o $@ $<
 
-$(obj)%.o: $(SRCTREE)/libfdt/%.c
+$(obj)%.o: $(SRCTREE)/lib/libfdt/%.c
 	$(CC) -g $(FIT_CFLAGS) -c -o $@ $<
 
-- 
1.6.2.1

^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 9/9] Move api_examples to api/examples
  2009-07-09 15:08 [U-Boot] [PATCH 0/9] Clean up top-level directory structure Peter Tyser
                   ` (7 preceding siblings ...)
  2009-07-09 15:08 ` [U-Boot] [PATCH 8/9] Move libfdt to lib/libfdt Peter Tyser
@ 2009-07-09 15:08 ` Peter Tyser
  2009-07-09 16:22   ` Rafal Jaworowski
  2009-07-09 17:57 ` [U-Boot] [PATCH 0/9] Clean up top-level directory structure Mike Frysinger
  9 siblings, 1 reply; 20+ messages in thread
From: Peter Tyser @ 2009-07-09 15:08 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
---
 Makefile                                    |    4 ++--
 {api_examples => api/examples}/.gitignore   |    0
 {api_examples => api/examples}/Makefile     |    8 ++++----
 {api_examples => api/examples}/crt0.S       |    0
 {api_examples => api/examples}/demo.c       |    0
 {api_examples => api/examples}/glue.c       |    0
 {api_examples => api/examples}/glue.h       |    0
 {api_examples => api/examples}/libgenwrap.c |    0
 8 files changed, 6 insertions(+), 6 deletions(-)
 rename {api_examples => api/examples}/.gitignore (100%)
 rename {api_examples => api/examples}/Makefile (91%)
 rename {api_examples => api/examples}/crt0.S (100%)
 rename {api_examples => api/examples}/demo.c (100%)
 rename {api_examples => api/examples}/glue.c (100%)
 rename {api_examples => api/examples}/glue.h (100%)
 rename {api_examples => api/examples}/libgenwrap.c (100%)

diff --git a/Makefile b/Makefile
index ee3b6bf..41a40e2 100644
--- a/Makefile
+++ b/Makefile
@@ -142,5 +142,5 @@ endif
 SUBDIRS	= tools \
 	  examples \
-	  api_examples
+	  api/examples
 
 .PHONY : $(SUBDIRS)
@@ -3609,5 +3609,5 @@ clean:
 	@rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
 	@rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
-	@rm -f $(obj)api_examples/demo $(TIMESTAMP_FILE) $(VERSION_FILE)
+	@rm -f $(obj)api/examples/demo $(TIMESTAMP_FILE) $(VERSION_FILE)
 	@find $(OBJTREE) -type f \
 		\( -name 'core' -o -name '*.bak' -o -name '*~' \
diff --git a/api_examples/.gitignore b/api/examples/.gitignore
similarity index 100%
rename from api_examples/.gitignore
rename to api/examples/.gitignore
diff --git a/api_examples/Makefile b/api/examples/Makefile
similarity index 91%
rename from api_examples/Makefile
rename to api/examples/Makefile
index db9f6ea..5ca1584 100644
--- a/api_examples/Makefile
+++ b/api/examples/Makefile
@@ -34,5 +34,5 @@ OUTPUT-$(CONFIG_API) = $(obj)demo
 OUTPUT = $(OUTPUT-y)
 
-# Source files located in the api_examples directory
+# Source files located in the api/examples directory
 SOBJ_FILES-$(CONFIG_API) += crt0.o
 COBJ_FILES-$(CONFIG_API) += demo.o
@@ -40,5 +40,5 @@ COBJ_FILES-$(CONFIG_API) += glue.o
 COBJ_FILES-$(CONFIG_API) += libgenwrap.o
 
-# Source files which exist outside the api_examples directory
+# Source files which exist outside the api/examples directory
 EXT_COBJ_FILES-$(CONFIG_API) += lib/generic/crc32.o
 EXT_COBJ_FILES-$(CONFIG_API) += lib/generic/ctype.o
@@ -52,6 +52,6 @@ endif
 SRCS	+= $(addprefix $(SRCTREE)/,$(EXT_COBJ_FILES-y:.o=.c))
 SRCS	+= $(addprefix $(SRCTREE)/,$(EXT_SOBJ_FILES-y:.o=.S))
-SRCS	+= $(addprefix $(SRCTREE)/api_examples/,$(COBJ_FILES-y:.o=.c))
-SRCS	+= $(addprefix $(SRCTREE)/api_examples/,$(SOBJ_FILES-y:.o=.S))
+SRCS	+= $(addprefix $(SRCTREE)/api/examples/,$(COBJ_FILES-y:.o=.c))
+SRCS	+= $(addprefix $(SRCTREE)/api/examples/,$(SOBJ_FILES-y:.o=.S))
 
 # Create a list of object files to be compiled
diff --git a/api_examples/crt0.S b/api/examples/crt0.S
similarity index 100%
rename from api_examples/crt0.S
rename to api/examples/crt0.S
diff --git a/api_examples/demo.c b/api/examples/demo.c
similarity index 100%
rename from api_examples/demo.c
rename to api/examples/demo.c
diff --git a/api_examples/glue.c b/api/examples/glue.c
similarity index 100%
rename from api_examples/glue.c
rename to api/examples/glue.c
diff --git a/api_examples/glue.h b/api/examples/glue.h
similarity index 100%
rename from api_examples/glue.h
rename to api/examples/glue.h
diff --git a/api_examples/libgenwrap.c b/api/examples/libgenwrap.c
similarity index 100%
rename from api_examples/libgenwrap.c
rename to api/examples/libgenwrap.c
-- 
1.6.2.1

^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 9/9] Move api_examples to api/examples
  2009-07-09 15:08 ` [U-Boot] [PATCH 9/9] Move api_examples to api/examples Peter Tyser
@ 2009-07-09 16:22   ` Rafal Jaworowski
  2009-07-09 16:36     ` Peter Tyser
  0 siblings, 1 reply; 20+ messages in thread
From: Rafal Jaworowski @ 2009-07-09 16:22 UTC (permalink / raw)
  To: u-boot


On 2009-07-09, at 17:08, Peter Tyser wrote:

> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> ---
> Makefile                                    |    4 ++--
> {api_examples => api/examples}/.gitignore   |    0
> {api_examples => api/examples}/Makefile     |    8 ++++----
> {api_examples => api/examples}/crt0.S       |    0
> {api_examples => api/examples}/demo.c       |    0
> {api_examples => api/examples}/glue.c       |    0
> {api_examples => api/examples}/glue.h       |    0
> {api_examples => api/examples}/libgenwrap.c |    0

Hi Peter,
Please don't do this. I would like to have api_examples stay clear  
from the API proper and such organization was introduced on purpose.  
While the core API code is integral part of U-Boot code image, the  
example/demo/other app is physically separate tangible entity. I think  
it seems proper that directories' layout reflects this. What we could  
do is provide a top level directory grouping all items non-integral  
wrt U-Boot itself (examples, api_examples) and put them there.

Rafal

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 9/9] Move api_examples to api/examples
  2009-07-09 16:22   ` Rafal Jaworowski
@ 2009-07-09 16:36     ` Peter Tyser
  2009-07-09 20:07       ` Wolfgang Denk
  2009-07-10 13:22       ` Rafal Jaworowski
  0 siblings, 2 replies; 20+ messages in thread
From: Peter Tyser @ 2009-07-09 16:36 UTC (permalink / raw)
  To: u-boot

Hi Rafal,

On Thu, 2009-07-09 at 18:22 +0200, Rafal Jaworowski wrote:
> On 2009-07-09, at 17:08, Peter Tyser wrote:
> 
> > Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
> > ---
> > Makefile                                    |    4 ++--
> > {api_examples => api/examples}/.gitignore   |    0
> > {api_examples => api/examples}/Makefile     |    8 ++++----
> > {api_examples => api/examples}/crt0.S       |    0
> > {api_examples => api/examples}/demo.c       |    0
> > {api_examples => api/examples}/glue.c       |    0
> > {api_examples => api/examples}/glue.h       |    0
> > {api_examples => api/examples}/libgenwrap.c |    0
> 
> Hi Peter,
> Please don't do this. I would like to have api_examples stay clear  
> from the API proper and such organization was introduced on purpose.  
> While the core API code is integral part of U-Boot code image, the  
> example/demo/other app is physically separate tangible entity. I think  
> it seems proper that directories' layout reflects this. What we could  
> do is provide a top level directory grouping all items non-integral  
> wrt U-Boot itself (examples, api_examples) and put them there.

Hi Rafal,
I don't really follow...  The api_example/ directory is an example of
how to use the functionality provided by the code in the api/ directory,
right?  If so, they are very closely related and I'd argue that the
api_example/ directory should be moved into api/ since conceptually it
makes more sense as well as cleans up the directory structure.

If the number of API applications grows from the current "example",
we're not going to put them in their own /api_app1, /api_app2, etc
directories, are we?  Wouldn't /api/app1, /api/app2, etc make more
sense?

Let me know if I'm missing something.

Best,
Peter

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 0/9] Clean up top-level directory structure
  2009-07-09 15:08 [U-Boot] [PATCH 0/9] Clean up top-level directory structure Peter Tyser
                   ` (8 preceding siblings ...)
  2009-07-09 15:08 ` [U-Boot] [PATCH 9/9] Move api_examples to api/examples Peter Tyser
@ 2009-07-09 17:57 ` Mike Frysinger
  2009-07-09 18:49   ` Peter Tyser
  9 siblings, 1 reply; 20+ messages in thread
From: Mike Frysinger @ 2009-07-09 17:57 UTC (permalink / raw)
  To: u-boot

On Thursday 09 July 2009 11:08:17 Peter Tyser wrote:
> Peter Tyser (9):
>   Move architecture specific config.mk files into subdirs

if nothing else changes, this should go in.  acked-by-me for this.

>   Move lib_ppc to lib/ppc
>   Move lib_arm to lib/arm
>   Move lib_i386 to lib/i386
>   Move lib_m68k to lib/m68k
>   Move remaining lib_<ARCH> to lib/<ARCH>

why is ppc/arm/i386/m68k special ?  seems like it'd make more sense to either 
have one patch for every arch or squash them altogether.  a squash here sounds 
ok to me.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090709/e233b7dc/attachment.pgp 

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 0/9] Clean up top-level directory structure
  2009-07-09 17:57 ` [U-Boot] [PATCH 0/9] Clean up top-level directory structure Mike Frysinger
@ 2009-07-09 18:49   ` Peter Tyser
  2009-07-09 19:15     ` Mike Frysinger
  0 siblings, 1 reply; 20+ messages in thread
From: Peter Tyser @ 2009-07-09 18:49 UTC (permalink / raw)
  To: u-boot


> >   Move lib_ppc to lib/ppc
> >   Move lib_arm to lib/arm
> >   Move lib_i386 to lib/i386
> >   Move lib_m68k to lib/m68k
> >   Move remaining lib_<ARCH> to lib/<ARCH>
> 
> why is ppc/arm/i386/m68k special ?  seems like it'd make more sense to either 
> have one patch for every arch or squash them altogether.  a squash here sounds 
> ok to me.

I originally didn't squash them all together because of the 100KB
mailing list limit.  It looked like I'd need to only use 1 line of patch
context to get the lib_<arch> changes to be < 100KB, so I split them up
instead.

I originally was going to do each arch independently, but realized there
was no real significant change for avr32, blackfin, mips, nios, nios2,
and sparc so I squashed them together.

Anyway, that's the logic, I can resubmit if necessary.  Or the arch
changes can be squashed together by whoever pushes the changes to get
around the mailing list limit.

Peter

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 0/9] Clean up top-level directory structure
  2009-07-09 18:49   ` Peter Tyser
@ 2009-07-09 19:15     ` Mike Frysinger
  2009-07-09 19:31       ` Peter Tyser
  0 siblings, 1 reply; 20+ messages in thread
From: Mike Frysinger @ 2009-07-09 19:15 UTC (permalink / raw)
  To: u-boot

On Thursday 09 July 2009 14:49:07 Peter Tyser wrote:
> > >   Move lib_ppc to lib/ppc
> > >   Move lib_arm to lib/arm
> > >   Move lib_i386 to lib/i386
> > >   Move lib_m68k to lib/m68k
> > >   Move remaining lib_<ARCH> to lib/<ARCH>
> >
> > why is ppc/arm/i386/m68k special ?  seems like it'd make more sense to
> > either have one patch for every arch or squash them altogether.  a squash
> > here sounds ok to me.
>
> I originally didn't squash them all together because of the 100KB
> mailing list limit.  It looked like I'd need to only use 1 line of patch
> context to get the lib_<arch> changes to be < 100KB, so I split them up
> instead.
>
> I originally was going to do each arch independently, but realized there
> was no real significant change for avr32, blackfin, mips, nios, nios2,
> and sparc so I squashed them together.

since it's pretty much all renames, i would have thought git-format-patch with 
the -M option would produce a summary that is under 100kB ?

> Anyway, that's the logic, I can resubmit if necessary.  Or the arch
> changes can be squashed together by whoever pushes the changes to get
> around the mailing list limit.

up to Wolfgang how he wants it
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090709/3a312f35/attachment-0001.pgp 

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 0/9] Clean up top-level directory structure
  2009-07-09 19:15     ` Mike Frysinger
@ 2009-07-09 19:31       ` Peter Tyser
  2009-07-09 20:20         ` Wolfgang Denk
  0 siblings, 1 reply; 20+ messages in thread
From: Peter Tyser @ 2009-07-09 19:31 UTC (permalink / raw)
  To: u-boot

On Thu, 2009-07-09 at 15:15 -0400, Mike Frysinger wrote:
> On Thursday 09 July 2009 14:49:07 Peter Tyser wrote:
> > > >   Move lib_ppc to lib/ppc
> > > >   Move lib_arm to lib/arm
> > > >   Move lib_i386 to lib/i386
> > > >   Move lib_m68k to lib/m68k
> > > >   Move remaining lib_<ARCH> to lib/<ARCH>
> > >
> > > why is ppc/arm/i386/m68k special ?  seems like it'd make more sense to
> > > either have one patch for every arch or squash them altogether.  a squash
> > > here sounds ok to me.
> >
> > I originally didn't squash them all together because of the 100KB
> > mailing list limit.  It looked like I'd need to only use 1 line of patch
> > context to get the lib_<arch> changes to be < 100KB, so I split them up
> > instead.
> >
> > I originally was going to do each arch independently, but realized there
> > was no real significant change for avr32, blackfin, mips, nios, nios2,
> > and sparc so I squashed them together.
> 
> since it's pretty much all renames, i would have thought git-format-patch with 
> the -M option would produce a summary that is under 100kB ?

Without the -M option the patches were hundreds of KB, with -M and only
2 lines of context they are still pretty large (as sent to the mailing
list):
  55K  0002-Move-lib_ppc-to-lib-ppc.patch
 7.2K  0003-Move-lib_arm-to-lib-arm.patch
 6.7K  0004-Move-lib_i386-to-lib-i386.patch
  16K  0005-Move-lib_m68k-to-lib-m68k.patch
  20K  0006-Move-remaining-lib_-ARCH-to-lib-ARCH.patch
  98K  0007-Move-lib_generic-to-lib-generic.patch

> > Anyway, that's the logic, I can resubmit if necessary.  Or the arch
> > changes can be squashed together by whoever pushes the changes to get
> > around the mailing list limit.
> 
> up to Wolfgang how he wants it

Wolfgang, let me know if you want this series reorganized.

Best,
Peter

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 9/9] Move api_examples to api/examples
  2009-07-09 16:36     ` Peter Tyser
@ 2009-07-09 20:07       ` Wolfgang Denk
  2009-07-10 13:22       ` Rafal Jaworowski
  1 sibling, 0 replies; 20+ messages in thread
From: Wolfgang Denk @ 2009-07-09 20:07 UTC (permalink / raw)
  To: u-boot

Dear Peter Tyser,

In message <1247157371.905.16.camel@localhost.localdomain> you wrote:
> 
> > Please don't do this. I would like to have api_examples stay clear  
> > from the API proper and such organization was introduced on purpose.  
> > While the core API code is integral part of U-Boot code image, the  
> > example/demo/other app is physically separate tangible entity. I think  
> > it seems proper that directories' layout reflects this. What we could  
> > do is provide a top level directory grouping all items non-integral  
> > wrt U-Boot itself (examples, api_examples) and put them there.
> 
> I don't really follow...  The api_example/ directory is an example of
> how to use the functionality provided by the code in the api/ directory,
> right?  If so, they are very closely related and I'd argue that the
> api_example/ directory should be moved into api/ since conceptually it
> makes more sense as well as cleans up the directory structure.

If a directory gets created, I'd prefer to see this under

	examples/api/

then, assuming that more types of example code might get added over
time, and I think it would be nice to have these together.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
In the realm of scientific observation, luck is granted only to those
who are prepared.                                     - Louis Pasteur

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 0/9] Clean up top-level directory structure
  2009-07-09 19:31       ` Peter Tyser
@ 2009-07-09 20:20         ` Wolfgang Denk
  2009-07-09 20:25           ` Peter Tyser
  0 siblings, 1 reply; 20+ messages in thread
From: Wolfgang Denk @ 2009-07-09 20:20 UTC (permalink / raw)
  To: u-boot

Dear Peter Tyser,

In message <1247167919.905.50.camel@localhost.localdomain> you wrote:
>
> Without the -M option the patches were hundreds of KB, with -M and only
> 2 lines of context they are still pretty large (as sent to the mailing
> list):
>   55K  0002-Move-lib_ppc-to-lib-ppc.patch
>  7.2K  0003-Move-lib_arm-to-lib-arm.patch
>  6.7K  0004-Move-lib_i386-to-lib-i386.patch
>   16K  0005-Move-lib_m68k-to-lib-m68k.patch
>   20K  0006-Move-remaining-lib_-ARCH-to-lib-ARCH.patch

Please pack these together into one patch...

>   98K  0007-Move-lib_generic-to-lib-generic.patch

... and leave this as a separate one.

> Wolfgang, let me know if you want this series reorganized.

Thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Be wiser than other people if you can, but do not tell them so.
                                       -- Philip Earl of Chesterfield

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 0/9] Clean up top-level directory structure
  2009-07-09 20:20         ` Wolfgang Denk
@ 2009-07-09 20:25           ` Peter Tyser
  0 siblings, 0 replies; 20+ messages in thread
From: Peter Tyser @ 2009-07-09 20:25 UTC (permalink / raw)
  To: u-boot

On Thu, 2009-07-09 at 22:20 +0200, Wolfgang Denk wrote:
> Dear Peter Tyser,
> 
> In message <1247167919.905.50.camel@localhost.localdomain> you wrote:
> >
> > Without the -M option the patches were hundreds of KB, with -M and only
> > 2 lines of context they are still pretty large (as sent to the mailing
> > list):
> >   55K  0002-Move-lib_ppc-to-lib-ppc.patch
> >  7.2K  0003-Move-lib_arm-to-lib-arm.patch
> >  6.7K  0004-Move-lib_i386-to-lib-i386.patch
> >   16K  0005-Move-lib_m68k-to-lib-m68k.patch
> >   20K  0006-Move-remaining-lib_-ARCH-to-lib-ARCH.patch
> 
> Please pack these together into one patch...

Will do.  I'm assuming you'll be OK with only having 1 line of context
due to the mailing list size limit...

Best,
Peter

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [U-Boot] [PATCH 9/9] Move api_examples to api/examples
  2009-07-09 16:36     ` Peter Tyser
  2009-07-09 20:07       ` Wolfgang Denk
@ 2009-07-10 13:22       ` Rafal Jaworowski
  1 sibling, 0 replies; 20+ messages in thread
From: Rafal Jaworowski @ 2009-07-10 13:22 UTC (permalink / raw)
  To: u-boot


On 2009-07-09, at 18:36, Peter Tyser wrote:

> On Thu, 2009-07-09 at 18:22 +0200, Rafal Jaworowski wrote:
>> On 2009-07-09, at 17:08, Peter Tyser wrote:
>>
>>> Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
>>> ---
>>> Makefile                                    |    4 ++--
>>> {api_examples => api/examples}/.gitignore   |    0
>>> {api_examples => api/examples}/Makefile     |    8 ++++----
>>> {api_examples => api/examples}/crt0.S       |    0
>>> {api_examples => api/examples}/demo.c       |    0
>>> {api_examples => api/examples}/glue.c       |    0
>>> {api_examples => api/examples}/glue.h       |    0
>>> {api_examples => api/examples}/libgenwrap.c |    0
>>
>> Hi Peter,
>> Please don't do this. I would like to have api_examples stay clear
>> from the API proper and such organization was introduced on purpose.
>> While the core API code is integral part of U-Boot code image, the
>> example/demo/other app is physically separate tangible entity. I  
>> think
>> it seems proper that directories' layout reflects this. What we could
>> do is provide a top level directory grouping all items non-integral
>> wrt U-Boot itself (examples, api_examples) and put them there.
>
> Hi Rafal,
> I don't really follow...  The api_example/ directory is an example of
> how to use the functionality provided by the code in the api/  
> directory,
> right?  If so, they are very closely related and I'd argue that the
> api_example/ directory should be moved into api/ since conceptually it
> makes more sense as well as cleans up the directory structure.

The API core and its example/demo app are indeed closely related, but  
the example/demo code is complementary to the core API, not part of  
it. My concern is that putting examples in the core API directory is  
misleading as would give an impression of the example being part of  
the API, where it's a physically separate thing pertaining to another  
domain (standalone applications as opposed to the integral U-Boot  
code); I would prefer to keep them separate.

> If the number of API applications grows from the current "example",
> we're not going to put them in their own /api_app1, /api_app2, etc
> directories, are we?  Wouldn't /api/app1, /api/app2, etc make more
> sense?

When we grow more example apps, they could simply all live in the  
api_examples directory (which can be managed with a single makefile).

kind regards,
Rafal

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2009-07-10 13:22 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-09 15:08 [U-Boot] [PATCH 0/9] Clean up top-level directory structure Peter Tyser
2009-07-09 15:08 ` [U-Boot] [PATCH 1/9] Move architecture specific config.mk files into subdirs Peter Tyser
2009-07-09 15:08 ` [U-Boot] [PATCH 2/9] Move lib_ppc to lib/ppc Peter Tyser
2009-07-09 15:08 ` [U-Boot] [PATCH 3/9] Move lib_arm to lib/arm Peter Tyser
2009-07-09 15:08 ` [U-Boot] [PATCH 4/9] Move lib_i386 to lib/i386 Peter Tyser
2009-07-09 15:08 ` [U-Boot] [PATCH 5/9] Move lib_m68k to lib/m68k Peter Tyser
2009-07-09 15:08 ` [U-Boot] [PATCH 6/9] Move remaining lib_<ARCH> to lib/<ARCH> Peter Tyser
2009-07-09 15:08 ` [U-Boot] [PATCH 7/9] Move lib_generic to lib/generic Peter Tyser
2009-07-09 15:08 ` [U-Boot] [PATCH 8/9] Move libfdt to lib/libfdt Peter Tyser
2009-07-09 15:08 ` [U-Boot] [PATCH 9/9] Move api_examples to api/examples Peter Tyser
2009-07-09 16:22   ` Rafal Jaworowski
2009-07-09 16:36     ` Peter Tyser
2009-07-09 20:07       ` Wolfgang Denk
2009-07-10 13:22       ` Rafal Jaworowski
2009-07-09 17:57 ` [U-Boot] [PATCH 0/9] Clean up top-level directory structure Mike Frysinger
2009-07-09 18:49   ` Peter Tyser
2009-07-09 19:15     ` Mike Frysinger
2009-07-09 19:31       ` Peter Tyser
2009-07-09 20:20         ` Wolfgang Denk
2009-07-09 20:25           ` Peter Tyser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.