Skip to contentSkip to conversation

Clean up top-level directory structure

PATCH Superseded Peter Tyser 9 participants 37 messages Jul 10, 2009 – Dec 8, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v2 cover Clean up top-level directory structure

Changes since v1:
- squashed lib_<ARCH> move into 1 commit
- moved examples to examples/standalone
- moved api_examples to examples/api

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 (6):
Move architecture specific config.mk files into subdirs Move lib_<ARCH> directories to lib/<ARCH>
Move lib_generic to lib/generic
Move libfdt to lib/libfdt
Move examples/ to examples/standalone
Move api_examples to examples/api

 Makefile                                           |   36 +++++++++++---------
 README                                             |   24 ++++++------
 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 +-
 {api_examples => examples/api}/.gitignore          |    0
 {api_examples => examples/api}/Makefile            |   22 ++++++------
 {api_examples => examples/api}/crt0.S              |    0
 {api_examples => examples/api}/demo.c              |    0
 {api_examples => examples/api}/glue.c              |    0
 {api_examples => examples/api}/glue.h              |    0
 {api_examples => examples/api}/libgenwrap.c        |    2 +-
 examples/{ => standalone}/.gitignore               |    0
 examples/{ => standalone}/82559_eeprom.c           |    0
 examples/{ => standalone}/Makefile                 |    0
 examples/{ => standalone}/README.smc91111_eeprom   |    0
 examples/{ => standalone}/eepro100_eeprom.c        |    0
 examples/{ => standalone}/hello_world.c            |    0
 examples/{ => standalone}/interrupt.c              |    0
 examples/{ => standalone}/mem_to_mem_idma2intr.c   |    0
 examples/{ => standalone}/mips.lds                 |    0
 examples/{ => standalone}/nios.lds                 |    0
 examples/{ => standalone}/nios2.lds                |    0
 examples/{ => standalone}/ppc_longjmp.S            |    0
 examples/{ => standalone}/ppc_setjmp.S             |    0
 examples/{ => standalone}/sched.c                  |    0
 examples/{ => standalone}/smc91111_eeprom.c        |    0
 examples/{ => standalone}/smc911x_eeprom.c         |    0
 examples/{ => standalone}/sparc.lds                |    0
 examples/{ => standalone}/stubs.c                  |    0
 examples/{ => standalone}/test_burst.c             |    0
 examples/{ => standalone}/test_burst.h             |    0
 examples/{ => standalone}/test_burst_lib.S         |    0
 examples/{ => standalone}/timer.c                  |    0
 examples/{ => standalone}/x86-testapp.c            |    0
 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       |    2 +-
 {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 ++++----
 400 files changed, 617 insertions(+), 613 deletions(-)
 rename {api_examples => examples/api}/.gitignore (100%)
 rename {api_examples => examples/api}/Makefile (80%)
 rename {api_examples => examples/api}/crt0.S (100%)
 rename {api_examples => examples/api}/demo.c (100%)
 rename {api_examples => examples/api}/glue.c (100%)
 rename {api_examples => examples/api}/glue.h (100%)
 rename {api_examples => examples/api}/libgenwrap.c (96%)
 rename examples/{ => standalone}/.gitignore (100%)
 rename examples/{ => standalone}/82559_eeprom.c (100%)
 rename examples/{ => standalone}/Makefile (100%)
 rename examples/{ => standalone}/README.smc91111_eeprom (100%)
 rename examples/{ => standalone}/eepro100_eeprom.c (100%)
 rename examples/{ => standalone}/hello_world.c (100%)
 rename examples/{ => standalone}/interrupt.c (100%)
 rename examples/{ => standalone}/mem_to_mem_idma2intr.c (100%)
 rename examples/{ => standalone}/mips.lds (100%)
 rename examples/{ => standalone}/nios.lds (100%)
 rename examples/{ => standalone}/nios2.lds (100%)
 rename examples/{ => standalone}/ppc_longjmp.S (100%)
 rename examples/{ => standalone}/ppc_setjmp.S (100%)
 rename examples/{ => standalone}/sched.c (100%)
 rename examples/{ => standalone}/smc91111_eeprom.c (100%)
 rename examples/{ => standalone}/smc911x_eeprom.c (100%)
 rename examples/{ => standalone}/sparc.lds (100%)
 rename examples/{ => standalone}/stubs.c (100%)
 rename examples/{ => standalone}/test_burst.c (100%)
 rename examples/{ => standalone}/test_burst.h (100%)
 rename examples/{ => standalone}/test_burst_lib.S (100%)
 rename examples/{ => standalone}/timer.c (100%)
 rename examples/{ => standalone}/x86-testapp.c (100%)
 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 (98%)
 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%)
#1 lore raw

PATCH v2 1/6 Move architecture specific config.mk files into subdirs

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

---
 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%)
config.mk +1 -1
index 7fc0453..02700f3 100644
@@ -85,3 +85,3 @@ 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
lib_arm/config.mk renamed from arm_config.mk +0 -0
similarity index 100%
rename from arm_config.mk
rename to lib_arm/config.mk
lib_avr32/config.mk renamed from avr32_config.mk +0 -0
similarity index 100%
rename from avr32_config.mk
rename to lib_avr32/config.mk
lib_blackfin/config.mk renamed from blackfin_config.mk +0 -0
similarity index 100%
rename from blackfin_config.mk
rename to lib_blackfin/config.mk
lib_i386/config.mk renamed from i386_config.mk +0 -0
similarity index 100%
rename from i386_config.mk
rename to lib_i386/config.mk
lib_m68k/config.mk renamed from m68k_config.mk +0 -0
similarity index 100%
rename from m68k_config.mk
rename to lib_m68k/config.mk
lib_microblaze/config.mk renamed from microblaze_config.mk +0 -0
similarity index 100%
rename from microblaze_config.mk
rename to lib_microblaze/config.mk
lib_mips/config.mk renamed from mips_config.mk +0 -0
similarity index 100%
rename from mips_config.mk
rename to lib_mips/config.mk
lib_nios/config.mk renamed from nios_config.mk +0 -0
similarity index 100%
rename from nios_config.mk
rename to lib_nios/config.mk
lib_nios2/config.mk renamed from nios2_config.mk +0 -0
similarity index 100%
rename from nios2_config.mk
rename to lib_nios2/config.mk
lib_ppc/config.mk renamed from ppc_config.mk +0 -0
similarity index 100%
rename from ppc_config.mk
rename to lib_ppc/config.mk
lib_sh/config.mk renamed from sh_config.mk +0 -0
similarity index 100%
rename from sh_config.mk
rename to lib_sh/config.mk
lib_sparc/config.mk renamed from sparc_config.mk +0 -0
similarity index 100%
rename from sparc_config.mk
rename to lib_sparc/config.mk
Signature · 1 line
1.6.2.1
#2 lore raw

PATCH v2 1/6 Move architecture specific config.mk files into subdirs

Dear Peter Tyser,

Quoted 24 lines · In message <[email protected]> you wrote:

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

---
 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%)
Quoted 8 lines
 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%)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 6 lines
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
"Do we define evil as the absence of goodness? It seems only  logical
that shit happens--we discover this by the process of elimination."
                                                        -- Larry Wall
#3 lore raw

PATCH v2 2/6 Move lib_<ARCH> directories to lib/<ARCH>

In reply to Peter Tyser
---
 Makefile                                      |    6 +++---
 README                                        |   22 +++++++++++-----------
 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/actux1/u-boot.lds                       |    2 +-
 board/actux2/u-boot.lds                       |    2 +-
 board/actux3/u-boot.lds                       |    2 +-
 board/amirix/ap1000/u-boot.lds                |    2 +-
 board/atum8548/u-boot.lds                     |    2 +-
 board/c2mon/u-boot.lds                        |    2 +-
 board/cobra5272/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/esd/tasreg/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/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/freescale/mpc7448hpc2/tsi108_init.c     |    2 +-
 board/freescale/mpc8610hpcd/u-boot.lds        |    2 +-
 board/freescale/mpc8641hpcn/u-boot.lds        |    2 +-
 board/freescale/mx31ads/u-boot.lds            |    2 +-
 board/genietv/u-boot.lds                      |    2 +-
 board/genietv/u-boot.lds.debug                |    2 +-
 board/hermes/u-boot.lds                       |    6 +++---
 board/hermes/u-boot.lds.debug                 |    6 +++---
 board/hymod/u-boot.lds                        |    2 +-
 board/icu862/u-boot.lds                       |    2 +-
 board/icu862/u-boot.lds.debug                 |    2 +-
 board/idmr/u-boot.lds                         |    2 +-
 board/ip860/u-boot.lds                        |    6 +++---
 board/ip860/u-boot.lds.debug                  |    6 +++---
 board/ivm/u-boot.lds.debug                    |    2 +-
 board/jse/jse.c                               |    6 +++---
 board/jse/sdram.c                             |    2 +-
 board/keymile/km8xx/u-boot.lds                |    6 +++---
 board/kup/kup4k/u-boot.lds                    |    2 +-
 board/kup/kup4x/u-boot.lds                    |    2 +-
 board/lantec/u-boot.lds                       |    2 +-
 board/lwmon/u-boot.lds.debug                  |    2 +-
 board/mbx8xx/u-boot.lds.debug                 |    2 +-
 board/ml2/u-boot.lds                          |    2 +-
 board/ml2/u-boot.lds.debug                    |    2 +-
 board/mousse/u-boot.lds                       |    4 ++--
 board/mousse/u-boot.lds.rom                   |    2 +-
 board/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/trab/Makefile                           |    4 ++--
 board/trab/u-boot.lds                         |    2 +-
 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                                     |    2 +-
 cpu/mpc5xxx/u-boot-customlayout.lds           |    4 ++--
 doc/README.LED                                |    2 +-
 doc/README.alaska8220                         |    2 +-
 doc/README.m52277evb                          |   12 ++++++------
 doc/README.m53017evb                          |   12 ++++++------
 doc/README.m5373evb                           |   12 ++++++------
 doc/README.m54455evb                          |   12 ++++++------
 doc/README.m5475evb                           |   10 +++++-----
 doc/README.mpc5xx                             |    6 +++---
 doc/README.nios                               |    2 +-
 doc/TODO-i386                                 |    2 +-
 include/asm-i386/interrupt.h                  |    2 +-
 include/asm-i386/u-boot-i386.h                |    4 ++--
 include/common.h                              |    8 ++++----
 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
 {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      |    2 +-
 {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_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
 {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
 {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_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
 {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
 nand_spl/board/freescale/mpc8313erdb/Makefile |    6 +++---
 nand_spl/board/sheldon/simpc8313/Makefile     |    6 +++---
 263 files changed, 249 insertions(+), 249 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%)
 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 (98%)
 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_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%)
 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%)
 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_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%)
 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%)
Makefile +3 -3
index a061499..b0dd4c5 100644
@@ -230,3 +230,3 @@ LIBS += cpu/ixp/npe/libnpe.a
 endif
-LIBS += lib_$(ARCH)/lib$(ARCH).a
+LIBS += lib/$(ARCH)/lib$(ARCH).a
 LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
@@ -411,3 +411,3 @@ TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
 TAG_SUBDIRS += cpu/$(CPU)
-TAG_SUBDIRS += lib_$(ARCH)
+TAG_SUBDIRS += lib/$(ARCH)
 TAG_SUBDIRS += fs/cramfs
@@ -3605,3 +3605,3 @@ clean:
 	       $(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]
README +11 -11
index 0e84337..b88dc1c 100644
@@ -183,12 +183,12 @@ 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/arm	Files generic to ARM	 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_ppc	Files generic to PowerPC architecture
-- lib_sparc	Files generic to SPARC	 architecture
+- 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/ppc	Files generic to PowerPC architecture
+- lib/sparc	Files generic to SPARC	 architecture
 - libfdt	Library files to support flattened device trees
@@ -1890,5 +1890,5 @@ Legacy uImage format:
 
-   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
+  -30	lib/ppc/board.c		Fatal error, hang the system
   -31	post/post.c		POST test failed, detected by post_output_backlog()
api_examples/Makefile +2 -2
index 2a30bef..23b5e9c 100644
@@ -47,3 +47,3 @@ 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
@@ -79,3 +79,3 @@ $(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 $@ $<
board/LEOX/elpt860/u-boot.lds +5 -5
index c6b1f94..428ad52 100644
@@ -68,3 +68,3 @@ SECTIONS
     common/dlmalloc.o			(.text)
-    lib_ppc/ppcstring.o			(.text)
+    lib/ppc/ppcstring.o			(.text)
     lib_generic/vsprintf.o		(.text)
@@ -73,6 +73,6 @@ SECTIONS
     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)
 
board/RPXClassic/u-boot.lds +1 -1
index faa1c6c..dd5b607 100644
@@ -59,3 +59,3 @@ SECTIONS
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
board/RPXlite/u-boot.lds +1 -1
index faa1c6c..dd5b607 100644
@@ -59,3 +59,3 @@ SECTIONS
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
board/RPXlite_dw/u-boot.lds +1 -1
index 7b7b83b..d8e3c0c 100644
@@ -59,3 +59,3 @@ SECTIONS
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
board/RRvision/u-boot.lds +3 -3
index 17e6fa0..794f0f9 100644
@@ -60,3 +60,3 @@ SECTIONS
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
@@ -64,4 +64,4 @@ SECTIONS
     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)
 
board/actux1/u-boot.lds +1 -1
index 836775f..a695056 100644
@@ -35,3 +35,3 @@ SECTIONS
 		lib_generic/vsprintf.o(.text)
-		lib_arm/board.o(.text)
+		lib/arm/board.o(.text)
 		common/dlmalloc.o(.text)
board/actux2/u-boot.lds +1 -1
index 0752656..4423000 100644
@@ -35,3 +35,3 @@ SECTIONS
 		lib_generic/vsprintf.o(.text)
-		lib_arm/board.o(.text)
+		lib/arm/board.o(.text)
 		common/dlmalloc.o(.text)
board/actux3/u-boot.lds +1 -1
index a69e7db..985271d 100644
@@ -35,3 +35,3 @@ SECTIONS
 		lib_generic/vsprintf.o (.text)
-		lib_arm/board.o (.text)
+		lib/arm/board.o (.text)
 		common/dlmalloc.o (.text)
board/amirix/ap1000/u-boot.lds +1 -1
index a4c48d6..e0c25d2 100644
@@ -67,3 +67,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
board/atum8548/u-boot.lds +1 -1
index 3067846..1342135 100644
@@ -70,3 +70,3 @@ SECTIONS
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
board/c2mon/u-boot.lds +1 -1
index 61650a8..b72e021 100644
@@ -59,3 +59,3 @@ SECTIONS
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
board/cobra5272/u-boot.lds +1 -1
index 7e716bb..e866689 100644
@@ -58,3 +58,3 @@ SECTIONS
     cpu/mcf52x2/cpu_init.o	(.text)
-    lib_m68k/traps.o		(.text)
+    lib/m68k/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
board/cray/L1/u-boot.lds +1 -1
index 86c8ecb..fe69c93 100644
@@ -73,3 +73,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
board/cray/L1/u-boot.lds.debug +1 -1
index 338392a..f753355 100644
@@ -61,3 +61,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
board/csb272/u-boot.lds +2 -2
index 0aa6f8f..453cd3b 100644
@@ -74,4 +74,4 @@ SECTIONS
 
-    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)
board/csb472/u-boot.lds +2 -2
index 565e021..21682bb 100644
@@ -74,4 +74,4 @@ SECTIONS
 
-    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)
board/dave/PPChameleonEVB/u-boot.lds +1 -1
index b36827d..0468fe2 100644
@@ -71,3 +71,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
board/emk/top860/u-boot.lds.debug +1 -1
index 82e8dce..6e168a4 100644
@@ -61,3 +61,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
board/eric/u-boot.lds +1 -1
index e62896f..2ab92e7 100644
@@ -73,3 +73,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
board/esd/ocrtc/u-boot.lds +1 -1
index 1b50b6d..03c164d 100644
@@ -70,3 +70,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
board/esd/tasreg/u-boot.lds +1 -1
index e3230b9..e072c5d 100644
@@ -58,3 +58,3 @@ SECTIONS
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    lib/m68k/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
board/esteem192e/u-boot.lds +1 -1
index 57aabed..704de98 100644
@@ -59,3 +59,3 @@ SECTIONS
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
board/etx094/u-boot.lds.debug +2 -2
index 28f8804..334b85a 100644
@@ -64,4 +64,4 @@ SECTIONS
     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)
board/exbitgen/u-boot.lds +1 -1
index 2798dc8..52d8ddd 100644
@@ -72,3 +72,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
board/fads/u-boot.lds.debug +1 -1
index 67d37ae..515296b 100644
@@ -61,3 +61,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
board/freescale/m52277evb/u-boot.spa +1 -1
index 7ae70d4..1105456 100644
@@ -59,3 +59,3 @@ SECTIONS
     cpu/mcf5227x/libmcf5227x.a	(.text)
-    lib_m68k/libm68k.a		(.text)
+    lib/m68k/libm68k.a		(.text)
     lib_generic/libgeneric.a	(.text)
board/freescale/m5235evb/u-boot.16 +2 -2
index c134884..da9b61a 100644
@@ -59,4 +59,4 @@ SECTIONS
     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)
board/freescale/m5235evb/u-boot.32 +1 -1
index 53c337d..99cdd78 100644
@@ -62,3 +62,3 @@ SECTIONS
     cpu/mcf523x/speed.o		(.text)
-    lib_m68k/libm68k.a		(.text)
+    lib/m68k/libm68k.a		(.text)
     common/dlmalloc.o		(.text)
board/freescale/m5249evb/u-boot.lds +1 -1
index e3230b9..e072c5d 100644
@@ -58,3 +58,3 @@ SECTIONS
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    lib/m68k/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
board/freescale/m5253demo/u-boot.lds +1 -1
index 6cb5ee0..f5f334d 100644
@@ -58,3 +58,3 @@ SECTIONS
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    lib/m68k/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
board/freescale/m5253evbe/u-boot.lds +1 -1
index 132fccf..814d5c2 100644
@@ -58,3 +58,3 @@ SECTIONS
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    lib/m68k/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
board/freescale/m5271evb/u-boot.lds +1 -1
index 00c1f2a..2d1bf3a 100644
@@ -59,3 +59,3 @@ SECTIONS
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    lib/m68k/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
board/freescale/m5272c3/u-boot.lds +1 -1
index 9d20b22..bde5d86 100644
@@ -58,3 +58,3 @@ SECTIONS
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    lib/m68k/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
board/freescale/m53017evb/u-boot.lds +1 -1
index c79d06c..52ca4f8 100644
@@ -59,3 +59,3 @@ SECTIONS
     cpu/mcf532x/libmcf532x.a	(.text)
-    lib_m68k/libm68k.a		(.text)
+    lib/m68k/libm68k.a		(.text)
     common/dlmalloc.o		(.text)
board/freescale/m5329evb/u-boot.lds +2 -2
index af31098..5c9720e 100644
@@ -58,4 +58,4 @@ 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)
board/freescale/m5373evb/u-boot.lds +2 -2
index dff74b6..30fb272 100644
@@ -58,4 +58,4 @@ 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)
board/freescale/m54451evb/u-boot.spa +2 -2
index 08e184c..d568688 100644
@@ -58,4 +58,4 @@ 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)
board/freescale/m54451evb/u-boot.stm +1 -1
index e9eac67..92880d9 100644
@@ -63,3 +63,3 @@ SECTIONS
     cpu/mcf5445x/speed.o		(.text)
-    lib_m68k/board.o			(.text)
+    lib/m68k/board.o			(.text)
     common/serial.o			(.text)
board/freescale/m54455evb/u-boot.atm +2 -2
index 08e184c..d568688 100644
@@ -58,4 +58,4 @@ 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)
board/freescale/m54455evb/u-boot.int +2 -2
index 4d504a2..58419c0 100644
@@ -58,4 +58,4 @@ 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)
board/freescale/m547xevb/u-boot.lds +2 -2
index a3014bd..3251b0a 100644
@@ -58,4 +58,4 @@ 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)
board/freescale/m548xevb/u-boot.lds +2 -2
index a3014bd..3251b0a 100644
@@ -58,4 +58,4 @@ 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)
board/freescale/mpc7448hpc2/tsi108_init.c +1 -1
index 74bb564..f06890a 100644
@@ -325,3 +325,3 @@ int board_early_init_r (void)
 	 * 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
board/freescale/mpc8610hpcd/u-boot.lds +1 -1
index 5cc88ae..c4e47c9 100644
@@ -60,3 +60,3 @@ SECTIONS
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
board/freescale/mpc8641hpcn/u-boot.lds +1 -1
index e188722..ae944d0 100644
@@ -60,3 +60,3 @@ SECTIONS
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
board/freescale/mx31ads/u-boot.lds +1 -1
index 3182aa6..9482d60 100644
@@ -41,3 +41,3 @@ SECTIONS
 	  board/freescale/mx31ads/libmx31ads.a	(.text)
-	  lib_arm/libarm.a			(.text)
+	  lib/arm/libarm.a			(.text)
 	  net/libnet.a				(.text)
board/genietv/u-boot.lds +1 -1
index ee0b719..d7f70b7 100644
@@ -59,3 +59,3 @@ SECTIONS
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
board/genietv/u-boot.lds.debug +1 -1
index 61fdfe5..d3bfb36 100644
@@ -59,3 +59,3 @@ SECTIONS
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
board/hermes/u-boot.lds +3 -3
index 02216fb..eadcaf0 100644
@@ -60,5 +60,5 @@ SECTIONS
     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)
board/hermes/u-boot.lds.debug +3 -3
index 78456e6..a132c0e 100644
@@ -58,6 +58,6 @@ 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;
board/hymod/u-boot.lds +1 -1
index 03fefec..73c5e74 100644
@@ -60,3 +60,3 @@ SECTIONS
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
board/icu862/u-boot.lds +1 -1
index 9a28cfd..71cf813 100644
@@ -61,3 +61,3 @@ SECTIONS
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
board/icu862/u-boot.lds.debug +1 -1
index dbd1f9d..23e5c46 100644
@@ -61,3 +61,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
board/idmr/u-boot.lds +1 -1
index 00c1f2a..2d1bf3a 100644
@@ -59,3 +59,3 @@ SECTIONS
     cpu/mcf52x2/start.o		(.text)
-    lib_m68k/traps.o		(.text)
+    lib/m68k/traps.o		(.text)
     cpu/mcf52x2/interrupts.o	(.text)
board/ip860/u-boot.lds +3 -3
index b47ae8e..82dcdcd 100644
@@ -59,6 +59,6 @@ SECTIONS
     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)
 /**
board/ip860/u-boot.lds.debug +3 -3
index e8a47f7..d9cc71d 100644
@@ -58,6 +58,6 @@ 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)
 /**
board/ivm/u-boot.lds.debug +1 -1
index 4d49f1b..eac3d78 100644
@@ -61,3 +61,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
board/jse/jse.c +3 -3
index 6a6b9dd..1fde72a 100644
@@ -28,3 +28,3 @@
  * 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.
@@ -87,3 +87,3 @@ 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
@@ -151,3 +151,3 @@ 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
board/jse/sdram.c +1 -1
index a1f526d..b3b9dff 100644
@@ -29,3 +29,3 @@
  * 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.
board/keymile/km8xx/u-boot.lds +3 -3
index 5af36c9..0b2fc20 100644
@@ -60,3 +60,3 @@ SECTIONS
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
@@ -64,4 +64,4 @@ SECTIONS
     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)
 
board/kup/kup4k/u-boot.lds +1 -1
index f2b6650..575e676 100644
@@ -61,3 +61,3 @@ SECTIONS
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
board/kup/kup4x/u-boot.lds +1 -1
index f2b6650..575e676 100644
@@ -61,3 +61,3 @@ SECTIONS
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
board/lantec/u-boot.lds +1 -1
index b9fa2d6..7e1b6ee 100644
@@ -59,3 +59,3 @@ SECTIONS
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
board/lwmon/u-boot.lds.debug +1 -1
index bd9d76c..c035d63 100644
@@ -61,3 +61,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
board/mbx8xx/u-boot.lds.debug +1 -1
index 67d37ae..515296b 100644
@@ -61,3 +61,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
board/ml2/u-boot.lds +1 -1
index a6b6748..e81d4aa 100644
@@ -67,3 +67,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
board/ml2/u-boot.lds.debug +1 -1
index 338392a..f753355 100644
@@ -61,3 +61,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
board/mousse/u-boot.lds +2 -2
index 44144e2..7644b90 100644
@@ -55,4 +55,4 @@ 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)
board/mousse/u-boot.lds.rom +1 -1
index 27d10b6..9111252 100644
@@ -56,3 +56,3 @@ SECTIONS
 	 common/board.o (.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
board/mpc8540eval/u-boot.lds +1 -1
index 0747913..cb6ff82 100644
@@ -65,3 +65,3 @@ SECTIONS
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
board/mpl/mip405/u-boot.lds +1 -1
index d71a299..592c030 100644
@@ -77,3 +77,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
board/mpl/pip405/u-boot.lds +1 -1
index f6f88a7..38184ad 100644
@@ -72,3 +72,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
board/mpl/pip405/u-boot.lds.debug +1 -1
index 338392a..f753355 100644
@@ -61,3 +61,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
board/netphone/u-boot.lds +3 -3
index 68fe165..fc6b123 100644
@@ -57,3 +57,3 @@ SECTIONS
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
@@ -61,4 +61,4 @@ SECTIONS
     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)
 
board/netstal/hcu4/hcu4.c +1 -1
index aa8a097..0d333b0 100644
@@ -36,3 +36,3 @@ 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.
board/netstal/hcu5/README.txt +3 -3
index f649876..1288131 100644
@@ -111,3 +111,3 @@ _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
@@ -143,3 +143,3 @@ From now on our copy is in RAM and we will run from there,
 -------------------------------------------------------
-    board_init_r: (lib_ppc\board.c)
+    board_init_r: (lib/ppc\board.c)
 	setup bd function pointers
@@ -164,3 +164,3 @@ board/netstal/hcu5/*
 cpu/ppc4xx/*
-lib_ppc/*
+lib/ppc/*
 include/ppc440.h
board/netstal/hcu5/hcu5.c +1 -1
index 6f4ec29..4e37c33 100644
@@ -49,3 +49,3 @@ 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.
board/netstal/mcu25/mcu25.c +1 -1
index 66ed95f..3ae8445 100644
@@ -41,3 +41,3 @@ 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.
board/netta/u-boot.lds +3 -3
index 14201ac..2e060ba 100644
@@ -57,3 +57,3 @@ SECTIONS
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
@@ -61,4 +61,4 @@ SECTIONS
     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)
 
board/netta2/u-boot.lds +3 -3
index 14201ac..2e060ba 100644
@@ -57,3 +57,3 @@ SECTIONS
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
@@ -61,4 +61,4 @@ SECTIONS
     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)
 
board/netvia/u-boot.lds +3 -3
index 8c48f1f..3af9e85 100644
@@ -57,3 +57,3 @@ SECTIONS
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
@@ -61,4 +61,4 @@ SECTIONS
     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)
 
board/pm854/u-boot.lds +1 -1
index 45aaadc..11e7785 100644
@@ -73,3 +73,3 @@ SECTIONS
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
board/pm856/u-boot.lds +1 -1
index 1dce2ab..19fa083 100644
@@ -73,3 +73,3 @@ SECTIONS
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
board/quantum/u-boot.lds +1 -1
index faa1c6c..dd5b607 100644
@@ -59,3 +59,3 @@ SECTIONS
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
board/rbc823/u-boot.lds +1 -1
index 552f15d..bfdfffa 100644
@@ -59,3 +59,3 @@ SECTIONS
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
board/rmu/u-boot.lds +1 -1
index faa1c6c..dd5b607 100644
@@ -59,3 +59,3 @@ SECTIONS
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
board/sandburst/karef/u-boot.lds +1 -1
index f509100..f157d17 100644
@@ -79,3 +79,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
board/sandburst/karef/u-boot.lds.debug +1 -1
index d00e252..97b3a80 100644
@@ -69,3 +69,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
board/sandburst/metrobox/u-boot.lds +1 -1
index f1bc4a0..7bd3ca4 100644
@@ -79,3 +79,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
board/sandburst/metrobox/u-boot.lds.debug +1 -1
index a3350f2..0d2674d 100644
@@ -69,3 +69,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
board/sbc405/u-boot.lds +1 -1
index d9410fa..36d128b 100644
@@ -71,3 +71,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
board/sbc8548/u-boot.lds +1 -1
index a54a001..8cd87a6 100644
@@ -72,3 +72,3 @@ SECTIONS
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
board/sbc8560/u-boot.lds +1 -1
index 8c12ba4..41e2b6f 100644
@@ -78,3 +78,3 @@ SECTIONS
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
board/sbc8641d/u-boot.lds +1 -1
index f156d4f..2a5baa7 100644
@@ -60,3 +60,3 @@ SECTIONS
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
board/sc3/u-boot.lds +1 -1
index 75174e1..9e8213c 100644
@@ -72,3 +72,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
board/siemens/CCM/u-boot.lds +1 -1
index 61650a8..b72e021 100644
@@ -59,3 +59,3 @@ SECTIONS
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
board/siemens/IAD210/u-boot.lds +2 -2
index 12a53ba..646a156 100644
@@ -59,5 +59,5 @@ SECTIONS
     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;
board/siemens/pcu_e/u-boot.lds.debug +1 -1
index bd9d76c..c035d63 100644
@@ -61,3 +61,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
board/snmc/qs850/u-boot.lds +3 -3
index 7de0de8..d9e329d 100644
@@ -60,3 +60,3 @@ SECTIONS
 	common/dlmalloc.o		(.text)
-	lib_ppc/ppcstring.o		(.text)
+	lib/ppc/ppcstring.o		(.text)
 	lib_generic/vsprintf.o	(.text)
@@ -64,4 +64,4 @@ SECTIONS
 	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)
 
board/snmc/qs860t/u-boot.lds +3 -3
index 7de0de8..d9e329d 100644
@@ -60,3 +60,3 @@ SECTIONS
 	common/dlmalloc.o		(.text)
-	lib_ppc/ppcstring.o		(.text)
+	lib/ppc/ppcstring.o		(.text)
 	lib_generic/vsprintf.o	(.text)
@@ -64,4 +64,4 @@ SECTIONS
 	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)
 
board/socrates/u-boot.lds +1 -1
index 9241b5c..8f33d44 100644
@@ -76,3 +76,3 @@ SECTIONS
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
board/spc1920/u-boot.lds +3 -3
index 4e221bc..caf1f08 100644
@@ -60,3 +60,3 @@ SECTIONS
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
@@ -64,4 +64,4 @@ SECTIONS
     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)
 
board/spd8xx/u-boot.lds.debug +1 -1
index 67d37ae..515296b 100644
@@ -61,3 +61,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
board/stxgp3/u-boot.lds +1 -1
index 182e940..6ff1629 100644
@@ -80,3 +80,3 @@ SECTIONS
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
board/stxssa/stxssa.c +1 -1
index 73dddf3..cff5367 100644
@@ -261,3 +261,3 @@ 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.
board/stxssa/u-boot.lds +1 -1
index 750ddb3..3e25716 100644
@@ -80,3 +80,3 @@ SECTIONS
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
board/stxxtc/u-boot.lds +3 -3
index 14201ac..2e060ba 100644
@@ -57,3 +57,3 @@ SECTIONS
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
@@ -61,4 +61,4 @@ SECTIONS
     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)
 
board/svm_sc8xx/u-boot.lds +3 -3
index 11a819a..145541a 100644
@@ -60,3 +60,3 @@ SECTIONS
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
@@ -64,4 +64,4 @@ SECTIONS
     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)
 
board/tqc/tqm85xx/u-boot.lds +1 -1
index 91c8952..666abf5 100644
@@ -73,3 +73,3 @@ SECTIONS
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
board/tqc/tqm8xx/u-boot.lds +2 -2
index 19c1541..e63f593 100644
@@ -60,3 +60,3 @@ SECTIONS
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
@@ -64,3 +64,3 @@ SECTIONS
     lib_generic/zlib.o		(.text)
-    lib_ppc/cache.o		(.text)
+    lib/ppc/cache.o		(.text)
 
board/trab/Makefile +2 -2
index 30e5fbb..9233f49 100644
@@ -53,4 +53,4 @@ $(obj)trab_fkt.srec:	$(OBJS_FKT) $(LIB)
 		-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=) $@
board/trab/u-boot.lds +1 -1
index d8bcfa4..2e0e721 100644
@@ -35,3 +35,3 @@ SECTIONS
 	  cpu/arm920t/start.o	(.text)
-	  lib_arm/_umodsi3.o	(.text)
+	  lib/arm/_umodsi3.o	(.text)
 	  lib_generic/zlib.o	(.text)
board/uc100/u-boot.lds +3 -3
index 1450d37..3ab0eb0 100644
@@ -60,3 +60,3 @@ SECTIONS
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
@@ -64,4 +64,4 @@ SECTIONS
     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)
 
board/v37/u-boot.lds +3 -3
index d24289c..b9407b6 100644
@@ -60,3 +60,3 @@ SECTIONS
     common/dlmalloc.o		(.text)
-    lib_ppc/ppcstring.o		(.text)
+    lib/ppc/ppcstring.o		(.text)
     lib_generic/vsprintf.o	(.text)
@@ -64,4 +64,4 @@ SECTIONS
     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)
 
board/w7o/u-boot.lds.debug +1 -1
index d2089de..403c29a 100644
@@ -61,3 +61,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
board/westel/amx860/u-boot.lds +1 -1
index 61650a8..b72e021 100644
@@ -59,3 +59,3 @@ SECTIONS
     common/dlmalloc.o	(.text)
-    lib_ppc/ppcstring.o	(.text)
+    lib/ppc/ppcstring.o	(.text)
     lib_generic/vsprintf.o	(.text)
board/westel/amx860/u-boot.lds.debug +1 -1
index dbd1f9d..23e5c46 100644
@@ -61,3 +61,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
board/xes/xpedite5170/u-boot.lds +1 -1
index b71a7d6..b65a68d 100644
@@ -60,3 +60,3 @@ SECTIONS
     lib_generic/crc32.o (.text)
-    lib_ppc/extable.o (.text)
+    lib/ppc/extable.o (.text)
     lib_generic/zlib.o (.text)
board/xilinx/ml300/u-boot.lds +1 -1
index fa60e6b..d77cd49 100644
@@ -69,3 +69,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
board/xilinx/ml300/u-boot.lds.debug +1 -1
index 338392a..f753355 100644
@@ -61,3 +61,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
 
board/xpedite1k/u-boot.lds +1 -1
index c8f9646..19814df 100644
@@ -77,3 +77,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
board/xpedite1k/u-boot.lds.debug +1 -1
index 5824cd9..f7ddf62 100644
@@ -67,3 +67,3 @@ SECTIONS
     lib_generic/crc32.o		(.text)
-    lib_ppc/extable.o	(.text)
+    lib/ppc/extable.o	(.text)
     lib_generic/zlib.o		(.text)
config.mk +1 -1
index 02700f3..9934f29 100644
@@ -85,3 +85,3 @@ 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
cpu/mpc5xxx/u-boot-customlayout.lds +2 -2
index 9563690..cd37491 100644
@@ -60,4 +60,4 @@ SECTIONS
     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)
 
doc/README.LED +1 -1
index 94e552a..db3e8b0 100644
@@ -71,3 +71,3 @@ 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.
doc/README.alaska8220 +1 -1
index 0bd68d9..8573f98 100644
@@ -24,3 +24,3 @@ Changed files:
 
-- lib_ppc/board.c	    added CONFIG_MPC8220 support
+- lib/ppc/board.c	    added CONFIG_MPC8220 support
 
doc/README.m52277evb +6 -6
index bec77b4..819db40 100644
@@ -55,8 +55,8 @@ Changed files:
 
-- 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
 
doc/README.m53017evb +6 -6
index 60cfa95..02d91a1 100644
@@ -53,8 +53,8 @@ Changed files:
 
-- 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
 
doc/README.m5373evb +6 -6
index 0bd1101..ab48b7d 100644
@@ -52,8 +52,8 @@ Changed files:
 
-- 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
 
doc/README.m54455evb +6 -6
index b769ff9..fdff6ff 100644
@@ -54,8 +54,8 @@ Changed files:
 
-- 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
 
doc/README.m5475evb +5 -5
index 936c018..bc76f85 100644
@@ -60,7 +60,7 @@ Changed files:
 
-- 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
 
doc/README.mpc5xx +3 -3
index 07be863..4392beb 100644
@@ -36,5 +36,5 @@ 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
doc/README.nios +1 -1
index 7f34938..a92f72b 100644
@@ -246,3 +246,3 @@ cover most of the individual functions to get you started.
 		(gdb) directory cpu/nios
-		(gdb) directory lib_nios
+		(gdb) directory lib/nios
 		(gdb) directory board/altera/dk1c20
doc/TODO-i386 +1 -1
index 84113f8..9769578 100644
@@ -10,3 +10,3 @@ i386 port missing features:
    linux boot...) 
-* missing functions in lib_i386 and cpu/i386
+* missing functions in lib/i386 and cpu/i386
 * speaker beep interface
include/asm-i386/interrupt.h +1 -1
index 7f408cb..ae7540f 100644
@@ -32,3 +32,3 @@ void set_vector(u8 intnum, void *routine);
 
-/* lib_i386/interupts.c */
+/* lib/i386/interupts.c */
 void disable_irq(int irq);
include/asm-i386/u-boot-i386.h +2 -2
index 3921e01..b9c6d25 100644
@@ -51,3 +51,3 @@ 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);
@@ -67,3 +67,3 @@ u32 isa_map_rom(u32 bus_addr, int size);
 
-/* lib_i386/... */
+/* lib/i386/... */
 int video_bios_init(void);
include/common.h +4 -4
index 6284b8a..703775e 100644
@@ -222,3 +222,3 @@ void	reset_cmd_timeout(void);
 
-/* lib_$(ARCH)/board.c */
+/* lib/$(ARCH)/board.c */
 void	board_init_f  (ulong) __attribute__ ((noreturn));
@@ -590,3 +590,3 @@ ulong	video_setmem (ulong);
 
-/* lib_$(ARCH)/cache.c */
+/* lib/$(ARCH)/cache.c */
 void	flush_cache   (unsigned long, unsigned long);
@@ -596,3 +596,3 @@ void	invalidate_dcache_range(unsigned long start, unsigned long stop);
 
-/* lib_$(ARCH)/ticks.S */
+/* lib/$(ARCH)/ticks.S */
 unsigned long long get_ticks(void);
@@ -600,3 +600,3 @@ void	wait_ticks    (unsigned long);
 
-/* lib_$(ARCH)/time.c */
+/* lib/$(ARCH)/time.c */
 void	udelay	      (unsigned long);
include/configs/B2.h +1 -1
index e5439f3..5c2c8c9 100644
@@ -209,3 +209,3 @@
 /*
-	Linux TAGs (see lib_arm/armlinux.c)
+	Linux TAGs (see lib/arm/armlinux.c)
 */
lib/arm/Makefile renamed from lib_arm/Makefile +0 -0
similarity index 100%
rename from lib_arm/Makefile
rename to lib/arm/Makefile
lib/arm/_ashldi3.S renamed from lib_arm/_ashldi3.S +0 -0
similarity index 100%
rename from lib_arm/_ashldi3.S
rename to lib/arm/_ashldi3.S
lib/arm/_ashrdi3.S renamed from lib_arm/_ashrdi3.S +0 -0
similarity index 100%
rename from lib_arm/_ashrdi3.S
rename to lib/arm/_ashrdi3.S
lib/arm/_divsi3.S renamed from lib_arm/_divsi3.S +0 -0
similarity index 100%
rename from lib_arm/_divsi3.S
rename to lib/arm/_divsi3.S
lib/arm/_modsi3.S renamed from lib_arm/_modsi3.S +0 -0
similarity index 100%
rename from lib_arm/_modsi3.S
rename to lib/arm/_modsi3.S
lib/arm/_udivsi3.S renamed from lib_arm/_udivsi3.S +0 -0
similarity index 100%
rename from lib_arm/_udivsi3.S
rename to lib/arm/_udivsi3.S
lib/arm/_umodsi3.S renamed from lib_arm/_umodsi3.S +0 -0
similarity index 100%
rename from lib_arm/_umodsi3.S
rename to lib/arm/_umodsi3.S
lib/arm/board.c renamed from lib_arm/board.c +0 -0
similarity index 100%
rename from lib_arm/board.c
rename to lib/arm/board.c
lib/arm/bootm.c renamed from lib_arm/bootm.c +0 -0
similarity index 100%
rename from lib_arm/bootm.c
rename to lib/arm/bootm.c
lib/arm/cache-cp15.c renamed from lib_arm/cache-cp15.c +0 -0
similarity index 100%
rename from lib_arm/cache-cp15.c
rename to lib/arm/cache-cp15.c
lib/arm/cache.c renamed from lib_arm/cache.c +0 -0
similarity index 100%
rename from lib_arm/cache.c
rename to lib/arm/cache.c
lib/arm/config.mk renamed from lib_arm/config.mk +0 -0
similarity index 100%
rename from lib_arm/config.mk
rename to lib/arm/config.mk
lib/arm/div0.c renamed from lib_arm/div0.c +0 -0
similarity index 100%
rename from lib_arm/div0.c
rename to lib/arm/div0.c
lib/arm/interrupts.c renamed from lib_arm/interrupts.c +0 -0
similarity index 100%
rename from lib_arm/interrupts.c
rename to lib/arm/interrupts.c
lib/arm/reset.c renamed from lib_arm/reset.c +0 -0
similarity index 100%
rename from lib_arm/reset.c
rename to lib/arm/reset.c
lib/avr32/Makefile renamed from lib_avr32/Makefile +0 -0
similarity index 100%
rename from lib_avr32/Makefile
rename to lib/avr32/Makefile
lib/avr32/board.c renamed from lib_avr32/board.c +0 -0
similarity index 100%
rename from lib_avr32/board.c
rename to lib/avr32/board.c
lib/avr32/bootm.c renamed from lib_avr32/bootm.c +0 -0
similarity index 100%
rename from lib_avr32/bootm.c
rename to lib/avr32/bootm.c
lib/avr32/config.mk renamed from lib_avr32/config.mk +0 -0
similarity index 100%
rename from lib_avr32/config.mk
rename to lib/avr32/config.mk
lib/avr32/interrupts.c renamed from lib_avr32/interrupts.c +0 -0
similarity index 100%
rename from lib_avr32/interrupts.c
rename to lib/avr32/interrupts.c
lib/avr32/memset.S renamed from lib_avr32/memset.S +0 -0
similarity index 100%
rename from lib_avr32/memset.S
rename to lib/avr32/memset.S
lib/blackfin/.gitignore renamed from lib_blackfin/.gitignore +0 -0
similarity index 100%
rename from lib_blackfin/.gitignore
rename to lib/blackfin/.gitignore
lib/blackfin/Makefile renamed from lib_blackfin/Makefile +0 -0
similarity index 100%
rename from lib_blackfin/Makefile
rename to lib/blackfin/Makefile
lib/blackfin/board.c renamed from lib_blackfin/board.c +0 -0
similarity index 100%
rename from lib_blackfin/board.c
rename to lib/blackfin/board.c
lib/blackfin/boot.c renamed from lib_blackfin/boot.c +0 -0
similarity index 100%
rename from lib_blackfin/boot.c
rename to lib/blackfin/boot.c
lib/blackfin/cache.c renamed from lib_blackfin/cache.c +0 -0
similarity index 100%
rename from lib_blackfin/cache.c
rename to lib/blackfin/cache.c
lib/blackfin/clocks.c renamed from lib_blackfin/clocks.c +0 -0
similarity index 100%
rename from lib_blackfin/clocks.c
rename to lib/blackfin/clocks.c
lib/blackfin/config.mk renamed from lib_blackfin/config.mk +1 -1
similarity index 98%
rename from lib_blackfin/config.mk
rename to lib/blackfin/config.mk
index 821f082..0d56a3f 100644
@@ -62,3 +62,3 @@ LDR_FLAGS += $(LDR_FLAGS-y)
 ifeq ($(wildcard $(TOPDIR)/board/$(BOARD)/u-boot.lds*),)
-LDSCRIPT = $(obj)lib_$(ARCH)/u-boot.lds
+LDSCRIPT = $(obj)lib/$(ARCH)/u-boot.lds
 endif
lib/blackfin/memcmp.S renamed from lib_blackfin/memcmp.S +0 -0
similarity index 100%
rename from lib_blackfin/memcmp.S
rename to lib/blackfin/memcmp.S
lib/blackfin/memcpy.S renamed from lib_blackfin/memcpy.S +0 -0
similarity index 100%
rename from lib_blackfin/memcpy.S
rename to lib/blackfin/memcpy.S
lib/blackfin/memmove.S renamed from lib_blackfin/memmove.S +0 -0
similarity index 100%
rename from lib_blackfin/memmove.S
rename to lib/blackfin/memmove.S
lib/blackfin/memset.S renamed from lib_blackfin/memset.S +0 -0
similarity index 100%
rename from lib_blackfin/memset.S
rename to lib/blackfin/memset.S
lib/blackfin/muldi3.c renamed from lib_blackfin/muldi3.c +0 -0
similarity index 100%
rename from lib_blackfin/muldi3.c
rename to lib/blackfin/muldi3.c
lib/blackfin/post.c renamed from lib_blackfin/post.c +0 -0
similarity index 100%
rename from lib_blackfin/post.c
rename to lib/blackfin/post.c
lib/blackfin/string.c renamed from lib_blackfin/string.c +0 -0
similarity index 100%
rename from lib_blackfin/string.c
rename to lib/blackfin/string.c
lib/blackfin/tests.c renamed from lib_blackfin/tests.c +0 -0
similarity index 100%
rename from lib_blackfin/tests.c
rename to lib/blackfin/tests.c
lib/blackfin/u-boot.lds.S renamed from lib_blackfin/u-boot.lds.S +0 -0
similarity index 100%
rename from lib_blackfin/u-boot.lds.S
rename to lib/blackfin/u-boot.lds.S
lib/i386/Makefile renamed from lib_i386/Makefile +0 -0
similarity index 100%
rename from lib_i386/Makefile
rename to lib/i386/Makefile
lib/i386/bios.S renamed from lib_i386/bios.S +0 -0
similarity index 100%
rename from lib_i386/bios.S
rename to lib/i386/bios.S
lib/i386/bios.h renamed from lib_i386/bios.h +0 -0
similarity index 100%
rename from lib_i386/bios.h
rename to lib/i386/bios.h
lib/i386/bios_pci.S renamed from lib_i386/bios_pci.S +0 -0
similarity index 100%
rename from lib_i386/bios_pci.S
rename to lib/i386/bios_pci.S
lib/i386/bios_setup.c renamed from lib_i386/bios_setup.c +0 -0
similarity index 100%
rename from lib_i386/bios_setup.c
rename to lib/i386/bios_setup.c
lib/i386/board.c renamed from lib_i386/board.c +0 -0
similarity index 100%
rename from lib_i386/board.c
rename to lib/i386/board.c
lib/i386/bootm.c renamed from lib_i386/bootm.c +0 -0
similarity index 100%
rename from lib_i386/bootm.c
rename to lib/i386/bootm.c
lib/i386/config.mk renamed from lib_i386/config.mk +0 -0
similarity index 100%
rename from lib_i386/config.mk
rename to lib/i386/config.mk
lib/i386/interrupts.c renamed from lib_i386/interrupts.c +0 -0
similarity index 100%
rename from lib_i386/interrupts.c
rename to lib/i386/interrupts.c
lib/i386/pcat_interrupts.c renamed from lib_i386/pcat_interrupts.c +0 -0
similarity index 100%
rename from lib_i386/pcat_interrupts.c
rename to lib/i386/pcat_interrupts.c
lib/i386/pcat_timer.c renamed from lib_i386/pcat_timer.c +0 -0
similarity index 100%
rename from lib_i386/pcat_timer.c
rename to lib/i386/pcat_timer.c
lib/i386/pci.c renamed from lib_i386/pci.c +0 -0
similarity index 100%
rename from lib_i386/pci.c
rename to lib/i386/pci.c
lib/i386/pci_type1.c renamed from lib_i386/pci_type1.c +0 -0
similarity index 100%
rename from lib_i386/pci_type1.c
rename to lib/i386/pci_type1.c
lib/i386/realmode.c renamed from lib_i386/realmode.c +0 -0
similarity index 100%
rename from lib_i386/realmode.c
rename to lib/i386/realmode.c
lib/i386/realmode_switch.S renamed from lib_i386/realmode_switch.S +0 -0
similarity index 100%
rename from lib_i386/realmode_switch.S
rename to lib/i386/realmode_switch.S
lib/i386/timer.c renamed from lib_i386/timer.c +0 -0
similarity index 100%
rename from lib_i386/timer.c
rename to lib/i386/timer.c
lib/i386/video.c renamed from lib_i386/video.c +0 -0
similarity index 100%
rename from lib_i386/video.c
rename to lib/i386/video.c
lib/i386/video_bios.c renamed from lib_i386/video_bios.c +0 -0
similarity index 100%
rename from lib_i386/video_bios.c
rename to lib/i386/video_bios.c
lib/i386/zimage.c renamed from lib_i386/zimage.c +0 -0
similarity index 100%
rename from lib_i386/zimage.c
rename to lib/i386/zimage.c
lib/m68k/Makefile renamed from lib_m68k/Makefile +0 -0
similarity index 100%
rename from lib_m68k/Makefile
rename to lib/m68k/Makefile
lib/m68k/board.c renamed from lib_m68k/board.c +0 -0
similarity index 100%
rename from lib_m68k/board.c
rename to lib/m68k/board.c
lib/m68k/bootm.c renamed from lib_m68k/bootm.c +0 -0
similarity index 100%
rename from lib_m68k/bootm.c
rename to lib/m68k/bootm.c
lib/m68k/cache.c renamed from lib_m68k/cache.c +0 -0
similarity index 100%
rename from lib_m68k/cache.c
rename to lib/m68k/cache.c
lib/m68k/config.mk renamed from lib_m68k/config.mk +0 -0
similarity index 100%
rename from lib_m68k/config.mk
rename to lib/m68k/config.mk
lib/m68k/interrupts.c renamed from lib_m68k/interrupts.c +0 -0
similarity index 100%
rename from lib_m68k/interrupts.c
rename to lib/m68k/interrupts.c
lib/m68k/time.c renamed from lib_m68k/time.c +0 -0
similarity index 100%
rename from lib_m68k/time.c
rename to lib/m68k/time.c
lib/m68k/traps.c renamed from lib_m68k/traps.c +0 -0
similarity index 100%
rename from lib_m68k/traps.c
rename to lib/m68k/traps.c
lib/microblaze/Makefile renamed from lib_microblaze/Makefile +0 -0
similarity index 100%
rename from lib_microblaze/Makefile
rename to lib/microblaze/Makefile
lib/microblaze/board.c renamed from lib_microblaze/board.c +0 -0
similarity index 100%
rename from lib_microblaze/board.c
rename to lib/microblaze/board.c
lib/microblaze/bootm.c renamed from lib_microblaze/bootm.c +0 -0
similarity index 100%
rename from lib_microblaze/bootm.c
rename to lib/microblaze/bootm.c
lib/microblaze/cache.c renamed from lib_microblaze/cache.c +0 -0
similarity index 100%
rename from lib_microblaze/cache.c
rename to lib/microblaze/cache.c
lib/microblaze/config.mk renamed from lib_microblaze/config.mk +0 -0
similarity index 100%
rename from lib_microblaze/config.mk
rename to lib/microblaze/config.mk
lib/microblaze/time.c renamed from lib_microblaze/time.c +0 -0
similarity index 100%
rename from lib_microblaze/time.c
rename to lib/microblaze/time.c
lib/mips/Makefile renamed from lib_mips/Makefile +0 -0
similarity index 100%
rename from lib_mips/Makefile
rename to lib/mips/Makefile
lib/mips/board.c renamed from lib_mips/board.c +0 -0
similarity index 100%
rename from lib_mips/board.c
rename to lib/mips/board.c
lib/mips/bootm.c renamed from lib_mips/bootm.c +0 -0
similarity index 100%
rename from lib_mips/bootm.c
rename to lib/mips/bootm.c
lib/mips/bootm_qemu_mips.c renamed from lib_mips/bootm_qemu_mips.c +0 -0
similarity index 100%
rename from lib_mips/bootm_qemu_mips.c
rename to lib/mips/bootm_qemu_mips.c
lib/mips/config.mk renamed from lib_mips/config.mk +0 -0
similarity index 100%
rename from lib_mips/config.mk
rename to lib/mips/config.mk
lib/mips/time.c renamed from lib_mips/time.c +0 -0
similarity index 100%
rename from lib_mips/time.c
rename to lib/mips/time.c
lib/nios/Makefile renamed from lib_nios/Makefile +0 -0
similarity index 100%
rename from lib_nios/Makefile
rename to lib/nios/Makefile
lib/nios/board.c renamed from lib_nios/board.c +0 -0
similarity index 100%
rename from lib_nios/board.c
rename to lib/nios/board.c
lib/nios/bootm.c renamed from lib_nios/bootm.c +0 -0
similarity index 100%
rename from lib_nios/bootm.c
rename to lib/nios/bootm.c
lib/nios/cache.c renamed from lib_nios/cache.c +0 -0
similarity index 100%
rename from lib_nios/cache.c
rename to lib/nios/cache.c
lib/nios/config.mk renamed from lib_nios/config.mk +0 -0
similarity index 100%
rename from lib_nios/config.mk
rename to lib/nios/config.mk
lib/nios/divmod.c renamed from lib_nios/divmod.c +0 -0
similarity index 100%
rename from lib_nios/divmod.c
rename to lib/nios/divmod.c
lib/nios/math.h renamed from lib_nios/math.h +0 -0
similarity index 100%
rename from lib_nios/math.h
rename to lib/nios/math.h
lib/nios/mult.c renamed from lib_nios/mult.c +0 -0
similarity index 100%
rename from lib_nios/mult.c
rename to lib/nios/mult.c
lib/nios/time.c renamed from lib_nios/time.c +0 -0
similarity index 100%
rename from lib_nios/time.c
rename to lib/nios/time.c
lib/nios2/Makefile renamed from lib_nios2/Makefile +0 -0
similarity index 100%
rename from lib_nios2/Makefile
rename to lib/nios2/Makefile
lib/nios2/board.c renamed from lib_nios2/board.c +0 -0
similarity index 100%
rename from lib_nios2/board.c
rename to lib/nios2/board.c
lib/nios2/bootm.c renamed from lib_nios2/bootm.c +0 -0
similarity index 100%
rename from lib_nios2/bootm.c
rename to lib/nios2/bootm.c
lib/nios2/cache.S renamed from lib_nios2/cache.S +0 -0
similarity index 100%
rename from lib_nios2/cache.S
rename to lib/nios2/cache.S
lib/nios2/config.mk renamed from lib_nios2/config.mk +0 -0
similarity index 100%
rename from lib_nios2/config.mk
rename to lib/nios2/config.mk
lib/nios2/divmod.c renamed from lib_nios2/divmod.c +0 -0
similarity index 100%
rename from lib_nios2/divmod.c
rename to lib/nios2/divmod.c
lib/nios2/math.h renamed from lib_nios2/math.h +0 -0
similarity index 100%
rename from lib_nios2/math.h
rename to lib/nios2/math.h
lib/nios2/mult.c renamed from lib_nios2/mult.c +0 -0
similarity index 100%
rename from lib_nios2/mult.c
rename to lib/nios2/mult.c
lib/nios2/time.c renamed from lib_nios2/time.c +0 -0
similarity index 100%
rename from lib_nios2/time.c
rename to lib/nios2/time.c
lib/ppc/Makefile renamed from lib_ppc/Makefile +0 -0
similarity index 100%
rename from lib_ppc/Makefile
rename to lib/ppc/Makefile
lib/ppc/bat_rw.c renamed from lib_ppc/bat_rw.c +0 -0
similarity index 100%
rename from lib_ppc/bat_rw.c
rename to lib/ppc/bat_rw.c
lib/ppc/board.c renamed from lib_ppc/board.c +0 -0
similarity index 100%
rename from lib_ppc/board.c
rename to lib/ppc/board.c
lib/ppc/bootm.c renamed from lib_ppc/bootm.c +0 -0
similarity index 100%
rename from lib_ppc/bootm.c
rename to lib/ppc/bootm.c
lib/ppc/cache.c renamed from lib_ppc/cache.c +0 -0
similarity index 100%
rename from lib_ppc/cache.c
rename to lib/ppc/cache.c
lib/ppc/config.mk renamed from lib_ppc/config.mk +0 -0
similarity index 100%
rename from lib_ppc/config.mk
rename to lib/ppc/config.mk
lib/ppc/extable.c renamed from lib_ppc/extable.c +0 -0
similarity index 100%
rename from lib_ppc/extable.c
rename to lib/ppc/extable.c
lib/ppc/interrupts.c renamed from lib_ppc/interrupts.c +0 -0
similarity index 100%
rename from lib_ppc/interrupts.c
rename to lib/ppc/interrupts.c
lib/ppc/kgdb.c renamed from lib_ppc/kgdb.c +0 -0
similarity index 100%
rename from lib_ppc/kgdb.c
rename to lib/ppc/kgdb.c
lib/ppc/ppccache.S renamed from lib_ppc/ppccache.S +0 -0
similarity index 100%
rename from lib_ppc/ppccache.S
rename to lib/ppc/ppccache.S
lib/ppc/ppcstring.S renamed from lib_ppc/ppcstring.S +0 -0
similarity index 100%
rename from lib_ppc/ppcstring.S
rename to lib/ppc/ppcstring.S
lib/ppc/ticks.S renamed from lib_ppc/ticks.S +0 -0
similarity index 100%
rename from lib_ppc/ticks.S
rename to lib/ppc/ticks.S
lib/ppc/time.c renamed from lib_ppc/time.c +0 -0
similarity index 100%
rename from lib_ppc/time.c
rename to lib/ppc/time.c
lib/sh/Makefile renamed from lib_sh/Makefile +0 -0
similarity index 100%
rename from lib_sh/Makefile
rename to lib/sh/Makefile
lib/sh/board.c renamed from lib_sh/board.c +0 -0
similarity index 100%
rename from lib_sh/board.c
rename to lib/sh/board.c
lib/sh/bootm.c renamed from lib_sh/bootm.c +0 -0
similarity index 100%
rename from lib_sh/bootm.c
rename to lib/sh/bootm.c
lib/sh/config.mk renamed from lib_sh/config.mk +0 -0
similarity index 100%
rename from lib_sh/config.mk
rename to lib/sh/config.mk
lib/sh/time.c renamed from lib_sh/time.c +0 -0
similarity index 100%
rename from lib_sh/time.c
rename to lib/sh/time.c
lib/sh/time_sh2.c renamed from lib_sh/time_sh2.c +0 -0
similarity index 100%
rename from lib_sh/time_sh2.c
rename to lib/sh/time_sh2.c
lib/sparc/Makefile renamed from lib_sparc/Makefile +0 -0
similarity index 100%
rename from lib_sparc/Makefile
rename to lib/sparc/Makefile
lib/sparc/board.c renamed from lib_sparc/board.c +0 -0
similarity index 100%
rename from lib_sparc/board.c
rename to lib/sparc/board.c
lib/sparc/bootm.c renamed from lib_sparc/bootm.c +0 -0
similarity index 100%
rename from lib_sparc/bootm.c
rename to lib/sparc/bootm.c
lib/sparc/cache.c renamed from lib_sparc/cache.c +0 -0
similarity index 100%
rename from lib_sparc/cache.c
rename to lib/sparc/cache.c
lib/sparc/config.mk renamed from lib_sparc/config.mk +0 -0
similarity index 100%
rename from lib_sparc/config.mk
rename to lib/sparc/config.mk
lib/sparc/interrupts.c renamed from lib_sparc/interrupts.c +0 -0
similarity index 100%
rename from lib_sparc/interrupts.c
rename to lib/sparc/interrupts.c
lib/sparc/time.c renamed from lib_sparc/time.c +0 -0
similarity index 100%
rename from lib_sparc/time.c
rename to lib/sparc/time.c
nand_spl/board/freescale/mpc8313erdb/Makefile +3 -3
index 1a8f6ff..4dd83fd 100644
@@ -83,9 +83,9 @@ $(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
 
nand_spl/board/sheldon/simpc8313/Makefile +3 -3
index 20199c7..7898040 100644
@@ -89,3 +89,3 @@ $(obj)cache.c:
 	@rm -f $@
-	ln -s $(SRCTREE)/lib_ppc/cache.c $@
+	ln -s $(SRCTREE)/lib/ppc/cache.c $@
 
@@ -93,3 +93,3 @@ $(obj)time.c:
 	@rm -f $@
-	ln -s $(SRCTREE)/lib_ppc/time.c $@
+	ln -s $(SRCTREE)/lib/ppc/time.c $@
 
@@ -97,3 +97,3 @@ $(obj)ticks.S:
 	@rm -f $@
-	ln -s $(SRCTREE)/lib_ppc/ticks.S $@
+	ln -s $(SRCTREE)/lib/ppc/ticks.S $@
 
Signature · 1 line
1.6.2.1
#4 lore raw

PATCH v2 2/6 Move lib_<ARCH> directories to lib/<ARCH>

Dear Peter Tyser,

Quoted 1 line · In message <[email protected]> you wrote:

Could you please rebase this patch, and the other two in this series:
[PATCH v2 3/6] Move lib_generic to lib/generic
[PATCH v2 4/6] Move libfdt to lib/libfdt

against current "next" branch?

Thanks in advance.

Best regards,

Wolfgang Denk

Signature · 5 lines
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
Presidency:  The greased pig in the field game of American politics.
- Ambrose Bierce
#5 lore raw

PATCH v2 2/6 Move lib_<ARCH> directories to lib/<ARCH>

Quoted 10 lines · Wolfgang Denk

Dear Peter Tyser,

Quoted 1 line · In message <[email protected]> you wrote:

Could you please rebase this patch, and the other two in this series:
[PATCH v2 3/6] Move lib_generic to lib/generic
[PATCH v2 4/6] Move libfdt to lib/libfdt

against current "next" branch?

Sure. There was some discussion that was spawned when this patch was originally sent and it sounded like the consensus was to add new arch/$ARCH directories instead of creating new lib/$ARCH directories. My personal preference would be to take it a step further and organize like:

/arch/$ARCH/
/lib/<sources currently in lib_$ARCH/> /include/asm/<headers currently in incluce/asm-$ARCH/> /cpu/<appropriate cpu directories in cpu/> /config.mk (old lib_$ARCH/config.mk)

/lib/

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

This layout would more closely match the Linux layout and is cleaner overall in my opinion. What do others think of this idea?

Here's the original discussion for reference:
http://www.mail-archive.com/u-boot at lists.denx.de/msg17593.html

Best,
Peter

#6 lore raw

PATCH v2 2/6 Move lib_<ARCH> directories to lib/<ARCH>

Dear Peter Tyser,

Quoted 10 lines · In message <1258943983.9357.20.camel@ptyser-laptop> you wrote:

My personal preference would be to take it a step further and organize like:

/arch/$ARCH/
/lib/<sources currently in lib_$ARCH/> /include/asm/<headers currently in incluce/asm-$ARCH/> /cpu/<appropriate cpu directories in cpu/> /config.mk (old lib_$ARCH/config.mk)

Quoted 8 lines

/lib/

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

This layout would more closely match the Linux layout and is cleaner overall in my opinion. What do others think of this idea?

I generally agree with the idea, with the exception of /include/asm/<headers> - I really hate this change in the Linux kernel, and still fail to see any advantages of this. Except for that, such a change would be OK with me.

Best regards,

Wolfgang Denk

Signature · 5 lines
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
"What if" is a trademark of Hewlett Packard, so stop using it in your
sentences without permission, or risk being sued.
#7 lore raw

PATCH v2 2/6 Move lib_<ARCH> directories to lib/<ARCH>

Quoted 18 lines · Wolfgang Denk

Dear Peter Tyser,

Quoted 15 lines · In message <1258943983.9357.20.camel@ptyser-laptop> you wrote:

My personal preference would be to take it a step further and organize like:

/arch/$ARCH/
/lib/<sources currently in lib_$ARCH/> /include/asm/<headers currently in incluce/asm-$ARCH/> /cpu/<appropriate cpu directories in cpu/> /config.mk (old lib_$ARCH/config.mk)

/lib/

        /<source files currently in lib_generic>
        /libfdt/
        /lzma/
        /lzo/
Quoted 6 lines
Quoted 2 lines

This layout would more closely match the Linux layout and is cleaner overall in my opinion. What do others think of this idea?

I generally agree with the idea, with the exception of /include/asm/<headers> - I really hate this change in the Linux kernel, and still fail to see any advantages of this.

I really like only having one subtree to grep for arch stuff, and it would avoid presenting files that are in git, under a path that git doesn't know about.

Plus, the symlink is one less thing that the makefiles would need to keep in sync when arch changes.

-Scott

#8 lore raw

PATCH v2 2/6 Move lib_<ARCH> directories to lib/<ARCH>

Quoted 26 lines · Scott Wood
Quoted 18 lines · Wolfgang Denk

Dear Peter Tyser,

Quoted 15 lines · In message <1258943983.9357.20.camel@ptyser-laptop> you wrote:

My personal preference would be to take it a step further and organize like:

/arch/$ARCH/
/lib/<sources currently in lib_$ARCH/> /include/asm/<headers currently in incluce/asm-$ARCH/> /cpu/<appropriate cpu directories in cpu/> /config.mk (old lib_$ARCH/config.mk)

/lib/

        /<source files currently in lib_generic>
        /libfdt/
        /lzma/
        /lzo/
Quoted 6 lines
Quoted 2 lines

This layout would more closely match the Linux layout and is cleaner overall in my opinion. What do others think of this idea?

I generally agree with the idea, with the exception of /include/asm/<headers> - I really hate this change in the Linux kernel, and still fail to see any advantages of this.

Quoted 6 lines

I really like only having one subtree to grep for arch stuff, and it would avoid presenting files that are in git, under a path that git doesn't know about.

Plus, the symlink is one less thing that the makefiles would need to keep in sync when arch changes.

I agree with Scott, especially the point about grepping for arch stuff in one directory. It also seems like a generally logical separation of arch-specific code/headers.

What is the downside of splitting out the headers to arch/ directories? Or the advantage of keeping them in include/asm-<arch>?

Best,
Peter

#9 lore raw

PATCH v2 3/6 Move lib_generic to lib/generic

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

PATCH v2 4/6 Move libfdt to lib/libfdt

In reply to Peter Tyser
---
 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%)
Makefile +1 -1
index d52b586..ee3b6bf 100644
@@ -279,3 +279,3 @@ LIBS += drivers/watchdog/libwatchdog.a
 LIBS += common/libcommon.a
-LIBS += libfdt/libfdt.a
+LIBS += lib/libfdt/libfdt.a
 LIBS += api/libapi.a
lib/libfdt/Makefile renamed from libfdt/Makefile +0 -0
similarity index 100%
rename from libfdt/Makefile
rename to lib/libfdt/Makefile
lib/libfdt/README renamed from libfdt/README +0 -0
similarity index 100%
rename from libfdt/README
rename to lib/libfdt/README
lib/libfdt/fdt.c renamed from libfdt/fdt.c +0 -0
similarity index 100%
rename from libfdt/fdt.c
rename to lib/libfdt/fdt.c
lib/libfdt/fdt_ro.c renamed from libfdt/fdt_ro.c +0 -0
similarity index 100%
rename from libfdt/fdt_ro.c
rename to lib/libfdt/fdt_ro.c
lib/libfdt/fdt_rw.c renamed from libfdt/fdt_rw.c +0 -0
similarity index 100%
rename from libfdt/fdt_rw.c
rename to lib/libfdt/fdt_rw.c
lib/libfdt/fdt_strerror.c renamed from libfdt/fdt_strerror.c +0 -0
similarity index 100%
rename from libfdt/fdt_strerror.c
rename to lib/libfdt/fdt_strerror.c
lib/libfdt/fdt_sw.c renamed from libfdt/fdt_sw.c +0 -0
similarity index 100%
rename from libfdt/fdt_sw.c
rename to lib/libfdt/fdt_sw.c
lib/libfdt/fdt_wip.c renamed from libfdt/fdt_wip.c +0 -0
similarity index 100%
rename from libfdt/fdt_wip.c
rename to lib/libfdt/fdt_wip.c
lib/libfdt/libfdt_internal.h renamed from libfdt/libfdt_internal.h +0 -0
similarity index 100%
rename from libfdt/libfdt_internal.h
rename to lib/libfdt/libfdt_internal.h
tools/Makefile +2 -2
index c9af71f..7c03fc5 100644
@@ -131,3 +131,3 @@ 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)))
@@ -142,3 +142,3 @@ CPPFLAGS   = -idirafter $(SRCTREE)/include \
 		-idirafter $(OBJTREE)/include \
-	        -I $(SRCTREE)/libfdt \
+	        -I $(SRCTREE)/lib/libfdt \
 		-I $(SRCTREE)/tools \
tools/imls/Makefile +3 -3
index fa48501..1ec037c 100644
@@ -45,3 +45,3 @@ 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)))
@@ -56,3 +56,3 @@ CPPFLAGS   = -idirafter $(SRCTREE)/include \
 		-idirafter $(OBJTREE)/include \
-	        -I $(SRCTREE)/libfdt \
+	        -I $(SRCTREE)/lib/libfdt \
 		-I $(SRCTREE)/tools \
@@ -92,3 +92,3 @@ $(obj)%.o: $(SRCTREE)/lib/generic/%.c
 
-$(obj)%.o: $(SRCTREE)/libfdt/%.c
+$(obj)%.o: $(SRCTREE)/lib/libfdt/%.c
 	$(CC) -g $(FIT_CFLAGS) -c -o $@ $<
Signature · 1 line
1.6.2.1
#11 lore raw

PATCH v2 5/6 Move examples/ to examples/standalone

In reply to Peter Tyser

The current files in examples are all standalone application examples, so put them in their own subdirectory for organizational purposes

---
 Makefile                                         |   16 ++++++++++------
 examples/{ => standalone}/.gitignore             |    0
 examples/{ => standalone}/82559_eeprom.c         |    0
 examples/{ => standalone}/Makefile               |    0
 examples/{ => standalone}/README.smc91111_eeprom |    0
 examples/{ => standalone}/eepro100_eeprom.c      |    0
 examples/{ => standalone}/hello_world.c          |    0
 examples/{ => standalone}/interrupt.c            |    0
 examples/{ => standalone}/mem_to_mem_idma2intr.c |    0
 examples/{ => standalone}/mips.lds               |    0
 examples/{ => standalone}/nios.lds               |    0
 examples/{ => standalone}/nios2.lds              |    0
 examples/{ => standalone}/ppc_longjmp.S          |    0
 examples/{ => standalone}/ppc_setjmp.S           |    0
 examples/{ => standalone}/sched.c                |    0
 examples/{ => standalone}/smc91111_eeprom.c      |    0
 examples/{ => standalone}/smc911x_eeprom.c       |    0
 examples/{ => standalone}/sparc.lds              |    0
 examples/{ => standalone}/stubs.c                |    0
 examples/{ => standalone}/test_burst.c           |    0
 examples/{ => standalone}/test_burst.h           |    0
 examples/{ => standalone}/test_burst_lib.S       |    0
 examples/{ => standalone}/timer.c                |    0
 examples/{ => standalone}/x86-testapp.c          |    0
 24 files changed, 10 insertions(+), 6 deletions(-)
 rename examples/{ => standalone}/.gitignore (100%)
 rename examples/{ => standalone}/82559_eeprom.c (100%)
 rename examples/{ => standalone}/Makefile (100%)
 rename examples/{ => standalone}/README.smc91111_eeprom (100%)
 rename examples/{ => standalone}/eepro100_eeprom.c (100%)
 rename examples/{ => standalone}/hello_world.c (100%)
 rename examples/{ => standalone}/interrupt.c (100%)
 rename examples/{ => standalone}/mem_to_mem_idma2intr.c (100%)
 rename examples/{ => standalone}/mips.lds (100%)
 rename examples/{ => standalone}/nios.lds (100%)
 rename examples/{ => standalone}/nios2.lds (100%)
 rename examples/{ => standalone}/ppc_longjmp.S (100%)
 rename examples/{ => standalone}/ppc_setjmp.S (100%)
 rename examples/{ => standalone}/sched.c (100%)
 rename examples/{ => standalone}/smc91111_eeprom.c (100%)
 rename examples/{ => standalone}/smc911x_eeprom.c (100%)
 rename examples/{ => standalone}/sparc.lds (100%)
 rename examples/{ => standalone}/stubs.c (100%)
 rename examples/{ => standalone}/test_burst.c (100%)
 rename examples/{ => standalone}/test_burst.h (100%)
 rename examples/{ => standalone}/test_burst_lib.S (100%)
 rename examples/{ => standalone}/timer.c (100%)
 rename examples/{ => standalone}/x86-testapp.c (100%)
Makefile +10 -6
index ee3b6bf..c143d66 100644
@@ -142,3 +142,3 @@ endif
 SUBDIRS	= tools \
-	  examples \
+	  examples/standalone \
 	  api_examples
@@ -3589,7 +3589,11 @@ grsim_leon2_config : unconfig
 clean:
-	@rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
-	       $(obj)examples/hello_world  $(obj)examples/interrupt	  \
-	       $(obj)examples/mem_to_mem_idma2intr			  \
-	       $(obj)examples/sched	   $(obj)examples/smc91111_eeprom \
-	       $(obj)examples/test_burst   $(obj)examples/timer
+	@rm -f $(obj)examples/standalone/82559_eeprom			  \
+	       $(obj)examples/standalone/eepro100_eeprom		  \
+	       $(obj)examples/standalone/hello_world			  \
+	       $(obj)examples/standalone/interrupt			  \
+	       $(obj)examples/standalone/mem_to_mem_idma2intr		  \
+	       $(obj)examples/standalone/sched				  \
+	       $(obj)examples/standalone/smc91111_eeprom		  \
+	       $(obj)examples/standalone/test_burst			  \
+	       $(obj)examples/standalone/timer
 	@rm -f $(obj)tools/bmp_logo	   $(obj)tools/easylogo/easylogo  \
examples/standalone/.gitignore renamed from examples/.gitignore +0 -0
similarity index 100%
rename from examples/.gitignore
rename to examples/standalone/.gitignore
examples/standalone/82559_eeprom.c renamed from examples/82559_eeprom.c +0 -0
similarity index 100%
rename from examples/82559_eeprom.c
rename to examples/standalone/82559_eeprom.c
examples/standalone/Makefile renamed from examples/Makefile +0 -0
similarity index 100%
rename from examples/Makefile
rename to examples/standalone/Makefile
examples/standalone/README.smc91111_eeprom renamed from examples/README.smc91111_eeprom +0 -0
similarity index 100%
rename from examples/README.smc91111_eeprom
rename to examples/standalone/README.smc91111_eeprom
examples/standalone/eepro100_eeprom.c renamed from examples/eepro100_eeprom.c +0 -0
similarity index 100%
rename from examples/eepro100_eeprom.c
rename to examples/standalone/eepro100_eeprom.c
examples/standalone/hello_world.c renamed from examples/hello_world.c +0 -0
similarity index 100%
rename from examples/hello_world.c
rename to examples/standalone/hello_world.c
examples/standalone/interrupt.c renamed from examples/interrupt.c +0 -0
similarity index 100%
rename from examples/interrupt.c
rename to examples/standalone/interrupt.c
examples/standalone/mem_to_mem_idma2intr.c renamed from examples/mem_to_mem_idma2intr.c +0 -0
similarity index 100%
rename from examples/mem_to_mem_idma2intr.c
rename to examples/standalone/mem_to_mem_idma2intr.c
examples/standalone/mips.lds renamed from examples/mips.lds +0 -0
similarity index 100%
rename from examples/mips.lds
rename to examples/standalone/mips.lds
examples/standalone/nios.lds renamed from examples/nios.lds +0 -0
similarity index 100%
rename from examples/nios.lds
rename to examples/standalone/nios.lds
examples/standalone/nios2.lds renamed from examples/nios2.lds +0 -0
similarity index 100%
rename from examples/nios2.lds
rename to examples/standalone/nios2.lds
examples/standalone/ppc_longjmp.S renamed from examples/ppc_longjmp.S +0 -0
similarity index 100%
rename from examples/ppc_longjmp.S
rename to examples/standalone/ppc_longjmp.S
examples/standalone/ppc_setjmp.S renamed from examples/ppc_setjmp.S +0 -0
similarity index 100%
rename from examples/ppc_setjmp.S
rename to examples/standalone/ppc_setjmp.S
examples/standalone/sched.c renamed from examples/sched.c +0 -0
similarity index 100%
rename from examples/sched.c
rename to examples/standalone/sched.c
examples/standalone/smc91111_eeprom.c renamed from examples/smc91111_eeprom.c +0 -0
similarity index 100%
rename from examples/smc91111_eeprom.c
rename to examples/standalone/smc91111_eeprom.c
examples/standalone/smc911x_eeprom.c renamed from examples/smc911x_eeprom.c +0 -0
similarity index 100%
rename from examples/smc911x_eeprom.c
rename to examples/standalone/smc911x_eeprom.c
examples/standalone/sparc.lds renamed from examples/sparc.lds +0 -0
similarity index 100%
rename from examples/sparc.lds
rename to examples/standalone/sparc.lds
examples/standalone/stubs.c renamed from examples/stubs.c +0 -0
similarity index 100%
rename from examples/stubs.c
rename to examples/standalone/stubs.c
examples/standalone/test_burst.c renamed from examples/test_burst.c +0 -0
similarity index 100%
rename from examples/test_burst.c
rename to examples/standalone/test_burst.c
examples/standalone/test_burst.h renamed from examples/test_burst.h +0 -0
similarity index 100%
rename from examples/test_burst.h
rename to examples/standalone/test_burst.h
examples/standalone/test_burst_lib.S renamed from examples/test_burst_lib.S +0 -0
similarity index 100%
rename from examples/test_burst_lib.S
rename to examples/standalone/test_burst_lib.S
examples/standalone/timer.c renamed from examples/timer.c +0 -0
similarity index 100%
rename from examples/timer.c
rename to examples/standalone/timer.c
examples/standalone/x86-testapp.c renamed from examples/x86-testapp.c +0 -0
similarity index 100%
rename from examples/x86-testapp.c
rename to examples/standalone/x86-testapp.c
Signature · 1 line
1.6.2.1
#12 lore raw

PATCH v2 5/6 Move examples/ to examples/standalone

Quoted 2 lines · On Friday 10 July 2009 12:03:19 Peter Tyser wrote:

The current files in examples are all standalone application examples, so put them in their own subdirectory for organizational purposes

semi-related to your change, i wonder if it's appropriate to continue keeping applications that arent really examples here. the eeprom helpers are designed to get real work done, not really to show off the standalone api.
-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/20090710/b6bbbfe8/attachment.pgp

#13 lore raw

PATCH v2 5/6 Move examples/ to examples/standalone

In reply to Peter Tyser

Dear Peter Tyser,

Quoted 45 lines · In message <[email protected]> you wrote:

The current files in examples are all standalone application examples, so put them in their own subdirectory for organizational purposes

---
 Makefile                                         |   16 ++++++++++------
 examples/{ => standalone}/.gitignore             |    0
 examples/{ => standalone}/82559_eeprom.c         |    0
 examples/{ => standalone}/Makefile               |    0
 examples/{ => standalone}/README.smc91111_eeprom |    0
 examples/{ => standalone}/eepro100_eeprom.c      |    0
 examples/{ => standalone}/hello_world.c          |    0
 examples/{ => standalone}/interrupt.c            |    0
 examples/{ => standalone}/mem_to_mem_idma2intr.c |    0
 examples/{ => standalone}/mips.lds               |    0
 examples/{ => standalone}/nios.lds               |    0
 examples/{ => standalone}/nios2.lds              |    0
 examples/{ => standalone}/ppc_longjmp.S          |    0
 examples/{ => standalone}/ppc_setjmp.S           |    0
 examples/{ => standalone}/sched.c                |    0
 examples/{ => standalone}/smc91111_eeprom.c      |    0
 examples/{ => standalone}/smc911x_eeprom.c       |    0
 examples/{ => standalone}/sparc.lds              |    0
 examples/{ => standalone}/stubs.c                |    0
 examples/{ => standalone}/test_burst.c           |    0
 examples/{ => standalone}/test_burst.h           |    0
 examples/{ => standalone}/test_burst_lib.S       |    0
 examples/{ => standalone}/timer.c                |    0
 examples/{ => standalone}/x86-testapp.c          |    0
 24 files changed, 10 insertions(+), 6 deletions(-)
 rename examples/{ => standalone}/.gitignore (100%)
 rename examples/{ => standalone}/82559_eeprom.c (100%)
 rename examples/{ => standalone}/Makefile (100%)
 rename examples/{ => standalone}/README.smc91111_eeprom (100%)
 rename examples/{ => standalone}/eepro100_eeprom.c (100%)
 rename examples/{ => standalone}/hello_world.c (100%)
 rename examples/{ => standalone}/interrupt.c (100%)
 rename examples/{ => standalone}/mem_to_mem_idma2intr.c (100%)
 rename examples/{ => standalone}/mips.lds (100%)
 rename examples/{ => standalone}/nios.lds (100%)
 rename examples/{ => standalone}/nios2.lds (100%)
 rename examples/{ => standalone}/ppc_longjmp.S (100%)
 rename examples/{ => standalone}/ppc_setjmp.S (100%)
 rename examples/{ => standalone}/sched.c (100%)
 rename examples/{ => standalone}/smc91111_eeprom.c (100%)
Quoted 8 lines
 rename examples/{ => standalone}/smc911x_eeprom.c (100%)
 rename examples/{ => standalone}/sparc.lds (100%)
 rename examples/{ => standalone}/stubs.c (100%)
 rename examples/{ => standalone}/test_burst.c (100%)
 rename examples/{ => standalone}/test_burst.h (100%)
 rename examples/{ => standalone}/test_burst_lib.S (100%)
 rename examples/{ => standalone}/timer.c (100%)
 rename examples/{ => standalone}/x86-testapp.c (100%)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
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
A right is not what someone gives you; it's what no one can take from
you.                                                   - Ramsey Clark
#14 lore raw

PATCH 1/1 Fix "ld: cannot find -lstubs" build error

In reply to Peter Tyser

Commit 1bc15386 moved the examples/ to examples/standalone but failed to adapt the Makefiles that need to link against libstubs.a

Cc Signed-off-by: Peter Tyser <[email protected]>
---
 board/netstar/Makefile   |    2 +-
 board/trab/Makefile      |    2 +-
 board/voiceblue/Makefile |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
board/netstar/Makefile +1 -1
index 91bac38..cb3f7c9 100644
@@ -53,7 +53,7 @@ $(LIB):	$(OBJS) $(SOBJS)
 $(obj)eeprom.srec:	$(obj)eeprom.o $(obj)eeprom_start.o
 	cd $(lnk) && $(LD) -T $(LDSCRIPT) -g -Ttext $(LOAD_ADDR) \
 		-o $(<:.o=) -e eeprom eeprom.o eeprom_start.o \
-		-L$(obj)../../examples -lstubs \
+		-L$(obj)../../examples/standalone -lstubs \
 		-L$(obj)../../lib_generic -lgeneric \
 		-L$(gcclibdir) -lgcc
 	$(OBJCOPY) -O srec $(<:.o=) $@
board/trab/Makefile +1 -1
index 30e5fbb..3a92c0d 100644
@@ -49,7 +49,7 @@ $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 
 $(obj)trab_fkt.srec:	$(OBJS_FKT) $(LIB)
 	$(LD) -g -Ttext $(LOAD_ADDR) -o $(<:.o=) -e trab_fkt $^ $(LIB) \
-		-L$(obj)../../examples -lstubs \
+		-L$(obj)../../examples/standalone -lstubs \
 		-L$(obj)../../lib_generic -lgeneric \
 		$(obj)../../lib_arm/div0.o \
 		$(obj)../../lib_arm/_*.o
board/voiceblue/Makefile +1 -1
index e7c1cbb..7bb92a6 100644
@@ -47,7 +47,7 @@ $(LIB):	$(OBJS) $(SOBJS)
 $(obj)eeprom.srec:	$(obj)eeprom.o $(obj)eeprom_start.o
 	cd $(lnk) && $(LD) -T $(LDSCRIPT) -g -Ttext $(LOAD_ADDR) \
 		-o $(<:.o=) -e eeprom eeprom.o eeprom_start.o \
-		-L$(obj)../../examples -lstubs \
+		-L$(obj)../../examples/standalone -lstubs \
 		-L$(obj)../../lib_generic -lgeneric \
 		-L$(gcclibdir) -lgcc
 	$(OBJCOPY) -O srec $(<:.o=) $@
Signature · 1 line
1.6.0.6
#15 lore raw

PATCH v2 6/6 Move api_examples to examples/api

In reply to Peter Tyser
---
 Makefile                                    |    4 ++--
 {api_examples => examples/api}/.gitignore   |    0
 {api_examples => examples/api}/Makefile     |    8 ++++----
 {api_examples => examples/api}/crt0.S       |    0
 {api_examples => examples/api}/demo.c       |    0
 {api_examples => examples/api}/glue.c       |    0
 {api_examples => examples/api}/glue.h       |    0
 {api_examples => examples/api}/libgenwrap.c |    0
 8 files changed, 6 insertions(+), 6 deletions(-)
 rename {api_examples => examples/api}/.gitignore (100%)
 rename {api_examples => examples/api}/Makefile (91%)
 rename {api_examples => examples/api}/crt0.S (100%)
 rename {api_examples => examples/api}/demo.c (100%)
 rename {api_examples => examples/api}/glue.c (100%)
 rename {api_examples => examples/api}/glue.h (100%)
 rename {api_examples => examples/api}/libgenwrap.c (100%)
Makefile +2 -2
index c143d66..f43a6cb 100644
@@ -143,3 +143,3 @@ SUBDIRS	= tools \
 	  examples/standalone \
-	  api_examples
+	  examples/api
 
@@ -3598,2 +3598,3 @@ clean:
 	       $(obj)examples/standalone/timer
+	@rm -f $(obj)examples/api/demo $(TIMESTAMP_FILE) $(VERSION_FILE)
 	@rm -f $(obj)tools/bmp_logo	   $(obj)tools/easylogo/easylogo  \
@@ -3614,3 +3615,2 @@ clean:
 	@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)
 	@find $(OBJTREE) -type f \
examples/api/.gitignore renamed from api_examples/.gitignore +0 -0
similarity index 100%
rename from api_examples/.gitignore
rename to examples/api/.gitignore
examples/api/Makefile renamed from api_examples/Makefile +4 -4
similarity index 91%
rename from api_examples/Makefile
rename to examples/api/Makefile
index db9f6ea..ec36782 100644
@@ -35,3 +35,3 @@ OUTPUT = $(OUTPUT-y)
 
-# Source files located in the api_examples directory
+# Source files located in the examples/api directory
 SOBJ_FILES-$(CONFIG_API) += crt0.o
@@ -41,3 +41,3 @@ COBJ_FILES-$(CONFIG_API) += libgenwrap.o
 
-# Source files which exist outside the api_examples directory
+# Source files which exist outside the examples/api directory
 EXT_COBJ_FILES-$(CONFIG_API) += lib/generic/crc32.o
@@ -53,4 +53,4 @@ 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)/examples/api/,$(COBJ_FILES-y:.o=.c))
+SRCS	+= $(addprefix $(SRCTREE)/examples/api/,$(SOBJ_FILES-y:.o=.S))
 
examples/api/crt0.S renamed from api_examples/crt0.S +0 -0
similarity index 100%
rename from api_examples/crt0.S
rename to examples/api/crt0.S
examples/api/demo.c renamed from api_examples/demo.c +0 -0
similarity index 100%
rename from api_examples/demo.c
rename to examples/api/demo.c
examples/api/glue.c renamed from api_examples/glue.c +0 -0
similarity index 100%
rename from api_examples/glue.c
rename to examples/api/glue.c
examples/api/glue.h renamed from api_examples/glue.h +0 -0
similarity index 100%
rename from api_examples/glue.h
rename to examples/api/glue.h
examples/api/libgenwrap.c renamed from api_examples/libgenwrap.c +0 -0
similarity index 100%
rename from api_examples/libgenwrap.c
rename to examples/api/libgenwrap.c
Signature · 1 line
1.6.2.1
#16 lore raw

PATCH v2 6/6 Move api_examples to examples/api

Dear Peter Tyser,

Quoted 10 lines · In message <[email protected]> you wrote:
---
 Makefile                                    |    4 ++--
 {api_examples => examples/api}/.gitignore   |    0
 {api_examples => examples/api}/Makefile     |    8 ++++----
 {api_examples => examples/api}/crt0.S       |    0
 {api_examples => examples/api}/demo.c       |    0
 {api_examples => examples/api}/glue.c       |    0
 {api_examples => examples/api}/glue.h       |    0
 {api_examples => examples/api}/libgenwrap.c |    0
Quoted 8 lines
 8 files changed, 6 insertions(+), 6 deletions(-)
 rename {api_examples => examples/api}/.gitignore (100%)
 rename {api_examples => examples/api}/Makefile (91%)
 rename {api_examples => examples/api}/crt0.S (100%)
 rename {api_examples => examples/api}/demo.c (100%)
 rename {api_examples => examples/api}/glue.c (100%)
 rename {api_examples => examples/api}/glue.h (100%)
 rename {api_examples => examples/api}/libgenwrap.c (100%)

This patch doesn't apply (at least not to the current code base):

Applying: Move api_examples to examples/api
error: patch failed: api_examples/Makefile:41
error: api_examples/Makefile: patch does not apply
fatal: sha1 information is lacking or useless (Makefile). Repository lacks necessary blobs to fall back on 3-way merge. Cannot fall back to three-way merge.
Patch failed at 0001.

Please resubmit (eventually in new context).

Best regards,

Wolfgang Denk

Signature · 5 lines
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
The heart is not a logical organ.
	-- Dr. Janet Wallace, "The Deadly Years", stardate 3479.4
#17 lore raw

v2 cover Clean up top-level directory structure

In reply to Peter Tyser

Hi,

Quoted 7 lines · Peter Tyser

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,

Me, too.

Before verifying MIPS builds, I'd like to make sure that why you take lib/$(ARCH)/ alternative, not $(ARCH)/lib/. If there were any discussion on #IRC, is there any chance we could share the summary or decision to follow?

Please note that I agree with such cleanup, of course. I just would like to make sure that lib/$(ARCH)/ is an authorized policy or not. If authorized one, I'm fine.

Thanks in advance,

#18 lore raw

v2 cover Clean up top-level directory structure

Quoted 11 lines · Shinya Kuribayashi

Hi,

Quoted 7 lines · Peter Tyser

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,

Quoted 6 lines

Me, too.

Before verifying MIPS builds, I'd like to make sure that why you take lib/$(ARCH)/ alternative, not $(ARCH)/lib/. If there were any discussion on #IRC, is there any chance we could share the summary or decision to follow?

There was no discussion, /lib/$(ARCH) just made more sense to me and it was functionally a direct translation from lib_$(ARCH) to lib/$(ARCH).

Using $(ARCH)/lib wouldn't clean up the top-level directory structure much and would open a can of worms that I'm not prepared to deal with at this time. For example, if there was an architecture specific directory, it would seem logical to put cpus of that $(ARCH) type in it too, eg
ppc/

	lib/
	mpc8260
	mpc85xx/
	mpc86xx/

sh/

	lib/
	sh2/
	sh3/
	sh4/

...

My change was just meant to be an incremental improvement, but I could see advantages to using the $(ARCH)/... structure if we wanted to make larger changes. Anyway, I'd be curious to hear other's opinions about other directory layouts.

While we're talking about it, I'd always thought it would be nice to split out all the cmd_* files from common/ into their own command/ directory similar to u-boot-v2.

Quoted 3 lines

Please note that I agree with such cleanup, of course. I just would like to make sure that lib/$(ARCH)/ is an authorized policy or not. If authorized one, I'm fine.

I was just scratching an itch, nothing official:)

Best,
Peter

#19 lore raw

v2 cover Clean up top-level directory structure

Quoted 11 lines · Peter Tyser
Quoted 4 lines

Before verifying MIPS builds, I'd like to make sure that why you take lib/$(ARCH)/ alternative, not $(ARCH)/lib/. If there were any discussion on #IRC, is there any chance we could share the summary or decision to follow?

There was no discussion, /lib/$(ARCH) just made more sense to me and it was functionally a direct translation from lib_$(ARCH) to lib/$(ARCH).

Using $(ARCH)/lib wouldn't clean up the top-level directory structure much and would open a can of worms that I'm not prepared to deal with at this time. For example, if there was an architecture specific

Oops, I wanted to say "arch/$(ARCH)/lib/", not $(ARCH)/lib/, sorry.

Quoted 16 lines

directory, it would seem logical to put cpus of that $(ARCH) type in it too, eg
ppc/

	lib/
	mpc8260
	mpc85xx/
	mpc86xx/

sh/

	lib/
	sh2/
	sh3/
	sh4/

...

Quoted 8 lines

My change was just meant to be an incremental improvement, but I could see advantages to using the $(ARCH)/... structure if we wanted to make larger changes. Anyway, I'd be curious to hear other's opinions about other directory layouts.

While we're talking about it, I'd always thought it would be nice to split out all the cmd_* files from common/ into their own command/ directory similar to u-boot-v2.

Ack. The directory structure in u-boot-v2 looks nice, at least, to me, anyway.

Quoted 5 lines
Quoted 3 lines

Please note that I agree with such cleanup, of course. I just would like to make sure that lib/$(ARCH)/ is an authorized policy or not. If authorized one, I'm fine.

I was just scratching an itch, nothing official:)

Got it.

Thanks for the kind explanation,

#20 lore raw

v2 cover Clean up top-level directory structure

Quoted 6 lines · On Friday 10 July 2009 21:20:45 Shinya Kuribayashi wrote:
Quoted 5 lines · Peter Tyser
Quoted 4 lines

Before verifying MIPS builds, I'd like to make sure that why you take lib/$(ARCH)/ alternative, not $(ARCH)/lib/. If there were any discussion on #IRC, is there any chance we could share the summary or decision to follow?

Quoted 8 lines
Quoted 6 lines

There was no discussion, /lib/$(ARCH) just made more sense to me and it was functionally a direct translation from lib_$(ARCH) to lib/$(ARCH).

Using $(ARCH)/lib wouldn't clean up the top-level directory structure much and would open a can of worms that I'm not prepared to deal with at this time. For example, if there was an architecture specific

Oops, I wanted to say "arch/$(ARCH)/lib/", not $(ARCH)/lib/, sorry.

i thought that originally, but i dont care much either way. having arch/$(ARCH)/ would line up with u-boot-v2 and the linux kernel though.

i dont understand needing a lib/ subdir under arch/$(ARCH)/ though.

Quoted 6 lines
Quoted 3 lines

While we're talking about it, I'd always thought it would be nice to split out all the cmd_* files from common/ into their own command/ directory similar to u-boot-v2.

Ack. The directory structure in u-boot-v2 looks nice, at least, to me, anyway.

makes sense to me too
-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/20090710/23b8bfc1/attachment.pgp

#21 lore raw

v2 cover Clean up top-level directory structure

Quoted 14 lines · Mike Frysinger
Quoted 13 lines · On Friday 10 July 2009 21:20:45 Shinya Kuribayashi wrote:
Quoted 11 lines · Peter Tyser
Quoted 4 lines

Before verifying MIPS builds, I'd like to make sure that why you take lib/$(ARCH)/ alternative, not $(ARCH)/lib/. If there were any discussion on #IRC, is there any chance we could share the summary or decision to follow?

There was no discussion, /lib/$(ARCH) just made more sense to me and it was functionally a direct translation from lib_$(ARCH) to lib/$(ARCH).

Using $(ARCH)/lib wouldn't clean up the top-level directory structure much and would open a can of worms that I'm not prepared to deal with at this time. For example, if there was an architecture specific

Quoted 13 lines
Quoted 1 line

Oops, I wanted to say "arch/$(ARCH)/lib/", not $(ARCH)/lib/, sorry.

i thought that originally, but i dont care much either way. having arch/$(ARCH)/ would line up with u-boot-v2 and the linux kernel though.

i dont understand needing a lib/ subdir under arch/$(ARCH)/ though.

Quoted 6 lines
Quoted 3 lines

While we're talking about it, I'd always thought it would be nice to split out all the cmd_* files from common/ into their own command/ directory similar to u-boot-v2.

Ack. The directory structure in u-boot-v2 looks nice, at least, to me, anyway.

I prefer the
arch/$(ARCH)/lib
so will could also move the cpu stuff there too

for the command dir why not

Best Regards,
J.

#22 lore raw

v2 cover Clean up top-level directory structure

Quoted 26 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 25 lines · Mike Frysinger
Quoted 6 lines · On Friday 10 July 2009 21:20:45 Shinya Kuribayashi wrote:
Quoted 5 lines · Peter Tyser
Quoted 4 lines

Before verifying MIPS builds, I'd like to make sure that why you take lib/$(ARCH)/ alternative, not $(ARCH)/lib/. If there were any discussion on #IRC, is there any chance we could share the summary or decision to follow?

Quoted 8 lines
Quoted 6 lines

There was no discussion, /lib/$(ARCH) just made more sense to me and it was functionally a direct translation from lib_$(ARCH) to lib/$(ARCH).

Using $(ARCH)/lib wouldn't clean up the top-level directory structure much and would open a can of worms that I'm not prepared to deal with at this time. For example, if there was an architecture specific

Oops, I wanted to say "arch/$(ARCH)/lib/", not $(ARCH)/lib/, sorry.

i thought that originally, but i dont care much either way. having arch/$(ARCH)/ would line up with u-boot-v2 and the linux kernel though.

i dont understand needing a lib/ subdir under arch/$(ARCH)/ though.

Quoted 4 lines
Quoted 3 lines

While we're talking about it, I'd always thought it would be nice to split out all the cmd_* files from common/ into their own command/ directory similar to u-boot-v2.

Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

Ack. The directory structure in u-boot-v2 looks nice, at least, to me, anyway.

I prefer the
arch/$(ARCH)/lib
so will could also move the cpu stuff there too

I like the Linux and u-boot-v2 directory layout too the more I think about it too. How about if I resend this series but with the final directory structure looking like:

/arch/$(ARCH)/lib/<source files currently in lib_$(ARCH)

/lib/

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

/examples/

	/api/
	/standalone/

That will lay the groundwork for moving additional files into /arch/$(ARCH)/ down the road. eg I think it would be nice to move the directories in /cpu/* into their respective /arch/$(ARCH)/ directory, and possibly the /include/asm-$(ARCH) directories in the long run.

What do others think of this?

Best,
Peter

#23 lore raw

v2 cover Clean up top-level directory structure

Quoted 21 lines · On Tuesday 14 July 2009 17:20:43 Peter Tyser wrote:
Quoted 3 lines

I prefer the
arch/$(ARCH)/lib
so will could also move the cpu stuff there too

I like the Linux and u-boot-v2 directory layout too the more I think about it too. How about if I resend this series but with the final directory structure looking like:

/arch/$(ARCH)/lib/<source files currently in lib_$(ARCH)

/lib/

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

/examples/

	/api/
	/standalone/
Quoted 7 lines

That will lay the groundwork for moving additional files into /arch/$(ARCH)/ down the road. eg I think it would be nice to move the directories in /cpu/* into their respective /arch/$(ARCH)/ directory, and possibly the /include/asm-$(ARCH) directories in the long run.

What do others think of this?

I like this idea. So +1 from me.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================

#24 lore raw

v2 cover Clean up top-level directory structure

In reply to Peter Tyser
Quoted 47 lines · Peter Tyser
Quoted 19 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 18 lines · Mike Frysinger
Quoted 5 lines · On Friday 10 July 2009 21:20:45 Shinya Kuribayashi wrote:
Quoted 4 lines · Peter Tyser
Quoted 4 lines

Before verifying MIPS builds, I'd like to make sure that why you take lib/$(ARCH)/ alternative, not $(ARCH)/lib/. If there were any discussion on #IRC, is there any chance we could share the summary or decision to follow?

Quoted 7 lines
Quoted 6 lines

There was no discussion, /lib/$(ARCH) just made more sense to me and it was functionally a direct translation from lib_$(ARCH) to lib/$(ARCH).

Using $(ARCH)/lib wouldn't clean up the top-level directory structure much and would open a can of worms that I'm not prepared to deal with at this time. For example, if there was an architecture specific

Oops, I wanted to say "arch/$(ARCH)/lib/", not $(ARCH)/lib/, sorry.

i thought that originally, but i dont care much either way. having arch/$(ARCH)/ would line up with u-boot-v2 and the linux kernel though.

i dont understand needing a lib/ subdir under arch/$(ARCH)/ though.

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

While we're talking about it, I'd always thought it would be nice to split out all the cmd_* files from common/ into their own command/ directory similar to u-boot-v2.

Ack. The directory structure in u-boot-v2 looks nice, at least, to me, anyway.

I prefer the
arch/$(ARCH)/lib
so will could also move the cpu stuff there too

I like the Linux and u-boot-v2 directory layout too the more I think about it too. How about if I resend this series but with the final directory structure looking like:

/arch/$(ARCH)/lib/<source files currently in lib_$(ARCH)

/lib/

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

/examples/

	/api/
	/standalone/
Quoted 7 lines

That will lay the groundwork for moving additional files into /arch/$(ARCH)/ down the road. eg I think it would be nice to move the directories in /cpu/* into their respective /arch/$(ARCH)/ directory, and possibly the /include/asm-$(ARCH) directories in the long run.

What do others think of this?

There were some discussions we'd better to reflect back on about this topic.

I can't toss the URLs of them at the moment as I'm behind a firewall, but these might help:

Date: Thu, 13 Sep 2007 17:28:47 -0600
From: "Grant Likely" <[email protected]>
To: uboot <[email protected]>,
"Jon Loeliger" <[email protected]>,
"Wolfgang Denk" <[email protected]>
Subject: [U-Boot-Users] [RFC] u-boot migration to kconfig

and

Date: Sat, 22 Sep 2007 12:27:38 +0200
From: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
To: <[email protected]>
Subject: [U-Boot-Users] [RFC] u-boot migration to kconfig

Signature · 2 lines
Shinya Kuribayashi
NEC Electronics
#25 lore raw

v2 cover Clean up top-level directory structure

Quoted 62 lines · Shinya Kuribayashi
Quoted 47 lines · Peter Tyser
Quoted 19 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 18 lines · Mike Frysinger
Quoted 5 lines · On Friday 10 July 2009 21:20:45 Shinya Kuribayashi wrote:
Quoted 4 lines · Peter Tyser
Quoted 4 lines

Before verifying MIPS builds, I'd like to make sure that why you take lib/$(ARCH)/ alternative, not $(ARCH)/lib/. If there were any discussion on #IRC, is there any chance we could share the summary or decision to follow?

Quoted 7 lines
Quoted 6 lines

There was no discussion, /lib/$(ARCH) just made more sense to me and it was functionally a direct translation from lib_$(ARCH) to lib/$(ARCH).

Using $(ARCH)/lib wouldn't clean up the top-level directory structure much and would open a can of worms that I'm not prepared to deal with at this time. For example, if there was an architecture specific

Oops, I wanted to say "arch/$(ARCH)/lib/", not $(ARCH)/lib/, sorry.

i thought that originally, but i dont care much either way. having arch/$(ARCH)/ would line up with u-boot-v2 and the linux kernel though.

i dont understand needing a lib/ subdir under arch/$(ARCH)/ though.

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

While we're talking about it, I'd always thought it would be nice to split out all the cmd_* files from common/ into their own command/ directory similar to u-boot-v2.

Ack. The directory structure in u-boot-v2 looks nice, at least, to me, anyway.

I prefer the
arch/$(ARCH)/lib
so will could also move the cpu stuff there too

I like the Linux and u-boot-v2 directory layout too the more I think about it too. How about if I resend this series but with the final directory structure looking like:

/arch/$(ARCH)/lib/<source files currently in lib_$(ARCH)

/lib/

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

/examples/

	/api/
	/standalone/
Quoted 7 lines

That will lay the groundwork for moving additional files into /arch/$(ARCH)/ down the road. eg I think it would be nice to move the directories in /cpu/* into their respective /arch/$(ARCH)/ directory, and possibly the /include/asm-$(ARCH) directories in the long run.

What do others think of this?

There were some discussions we'd better to reflect back on about this topic.

I can't toss the URLs of them at the moment as I'm behind a firewall, but these might help:

Quoted 6 lines

Date: Thu, 13 Sep 2007 17:28:47 -0600
From: "Grant Likely" <[email protected]>
To: uboot <[email protected]>,
"Jon Loeliger" <[email protected]>,
"Wolfgang Denk" <[email protected]>
Subject: [U-Boot-Users] [RFC] u-boot migration to kconfig

Jean-Christophe submitted some patches for consideration earlier this year. No one really bit as far as taking the necessary steps to get the Kbuild system fully functional if my memory is correct. I don't think those patches are going to make it into the upcoming release in any case.

I'd vote to get the directory structure changed as desired (in this release), then integrate the Kconfig-based build system in the next release once the directory layout is stable. Jean-Christophe is the most familiar with the Kbuild system and might have a better idea what its state is, how hard it would be to adapt to a new directory layout, etc. Do you have any input Jean-Christophe?

Best,
Peter

#26 lore raw

v2 cover Clean up top-level directory structure

Quoted 76 lines · Peter Tyser
Quoted 62 lines · Shinya Kuribayashi
Quoted 47 lines · Peter Tyser
Quoted 19 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 18 lines · Mike Frysinger
Quoted 5 lines · On Friday 10 July 2009 21:20:45 Shinya Kuribayashi wrote:
Quoted 4 lines · Peter Tyser
Quoted 4 lines

Before verifying MIPS builds, I'd like to make sure that why you take lib/$(ARCH)/ alternative, not $(ARCH)/lib/. If there were any discussion on #IRC, is there any chance we could share the summary or decision to follow?

Quoted 7 lines
Quoted 6 lines

There was no discussion, /lib/$(ARCH) just made more sense to me and it was functionally a direct translation from lib_$(ARCH) to lib/$(ARCH).

Using $(ARCH)/lib wouldn't clean up the top-level directory structure much and would open a can of worms that I'm not prepared to deal with at this time. For example, if there was an architecture specific

Oops, I wanted to say "arch/$(ARCH)/lib/", not $(ARCH)/lib/, sorry.

i thought that originally, but i dont care much either way. having arch/$(ARCH)/ would line up with u-boot-v2 and the linux kernel though.

i dont understand needing a lib/ subdir under arch/$(ARCH)/ though.

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

While we're talking about it, I'd always thought it would be nice to split out all the cmd_* files from common/ into their own command/ directory similar to u-boot-v2.

Ack. The directory structure in u-boot-v2 looks nice, at least, to me, anyway.

I prefer the
arch/$(ARCH)/lib
so will could also move the cpu stuff there too

I like the Linux and u-boot-v2 directory layout too the more I think about it too. How about if I resend this series but with the final directory structure looking like:

/arch/$(ARCH)/lib/<source files currently in lib_$(ARCH)

/lib/

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

/examples/

	/api/
	/standalone/
Quoted 7 lines

That will lay the groundwork for moving additional files into /arch/$(ARCH)/ down the road. eg I think it would be nice to move the directories in /cpu/* into their respective /arch/$(ARCH)/ directory, and possibly the /include/asm-$(ARCH) directories in the long run.

What do others think of this?

There were some discussions we'd better to reflect back on about this topic.

I can't toss the URLs of them at the moment as I'm behind a firewall, but these might help:

Quoted 6 lines

Date: Thu, 13 Sep 2007 17:28:47 -0600
From: "Grant Likely" <[email protected]>
To: uboot <[email protected]>,
"Jon Loeliger" <[email protected]>,
"Wolfgang Denk" <[email protected]>
Subject: [U-Boot-Users] [RFC] u-boot migration to kconfig

Jean-Christophe submitted some patches for consideration earlier this year. No one really bit as far as taking the necessary steps to get the Kbuild system fully functional if my memory is correct. I don't think those patches are going to make it into the upcoming release in any case.

Quoted 6 lines

I'd vote to get the directory structure changed as desired (in this release), then integrate the Kconfig-based build system in the next release once the directory layout is stable. Jean-Christophe is the most familiar with the Kbuild system and might have a better idea what its state is, how hard it would be to adapt to a new directory layout, etc. Do you have any input Jean-Christophe?

more we will be close to the linux organisation more easier it will be to integrate it and update it
the only really important think is to merge to KConfig first.

Please note that the Kconfig is already ready I just not have the time to rebase the patch before tomorow as I've to do my custudian work first

Best Regards,
J.

#27 lore raw

v2 cover Clean up top-level directory structure

Quoted 9 lines
Quoted 7 lines

I'd vote to get the directory structure changed as desired (in this release), then integrate the Kconfig-based build system in the next release once the directory layout is stable. Jean-Christophe is the most familiar with the Kbuild system and might have a better idea what its state is, how hard it would be to adapt to a new directory layout, etc. Do you have any input Jean-Christophe?

more we will be close to the linux organisation more easier it will be to integrate it and update it

Your sentence above implies you'd like the directory structure to match Linux's BEFORE adding Kconfig support...

Quoted 1 line

the only really important think is to merge to KConfig first.

But this sentence states you'd prefer to change the directory structure AFTER adding Kconfig support?

I'd still vote for changing the directory structure in this release, then apply the Kconfig changes in the next one. The same Kconfig files you've already made could still be used regardless of directory layout, correct? ie all you'd have to do is change the "source oldpath" to "source newpath" in some Kconfig files and maybe update a Makefile or 2?

In any case, one of us would have to fix up the Kconfig support to work with a new directory layout. In my opinion, if its not hard to update the Kconfigs to work with a new directory layout it would make more sense for you to do it at the same time as adding Kconfig support instead of me making both directory layout and Kconfig changes at the same time.

Anyway, that's my $.02

Peter

#28 lore raw

v2 cover Clean up top-level directory structure

Quoted 10 lines · Peter Tyser
Quoted 9 lines
Quoted 7 lines

I'd vote to get the directory structure changed as desired (in this release), then integrate the Kconfig-based build system in the next release once the directory layout is stable. Jean-Christophe is the most familiar with the Kbuild system and might have a better idea what its state is, how hard it would be to adapt to a new directory layout, etc. Do you have any input Jean-Christophe?

more we will be close to the linux organisation more easier it will be to integrate it and update it

Quoted 7 lines

Your sentence above implies you'd like the directory structure to match Linux's BEFORE adding Kconfig support...

Quoted 1 line

the only really important think is to merge to KConfig first.

But this sentence states you'd prefer to change the directory structure AFTER adding Kconfig support?

I do not care that much for the Kconfig
but we need to have it before the Kbuild support which is different

Quoted 7 lines

I'd still vote for changing the directory structure in this release, then apply the Kconfig changes in the next one. The same Kconfig files you've already made could still be used regardless of directory layout, correct? ie all you'd have to do is change the "source oldpath" to "source newpath" in some Kconfig files and maybe update a Makefile or 2?

Quoted 6 lines

In any case, one of us would have to fix up the Kconfig support to work with a new directory layout. In my opinion, if its not hard to update the Kconfigs to work with a new directory layout it would make more sense for you to do it at the same time as adding Kconfig support instead of me making both directory layout and Kconfig changes at the same time.

that's fine for me

Best Regards,
J.

#29 lore raw

v2 cover Clean up top-level directory structure

In reply to Peter Tyser

Dear Peter Tyser,

Quoted 2 lines · In message <1247935062.9174.14.camel@ptyser-laptop> you wrote:

I'd still vote for changing the directory structure in this release,

NAK. Such heavily restructuring changes should be prepared and submitted at (or even before) the begin of the merge window, not at it's very end.

For this release it's too late for such a change.

Best regards,

Wolfgang Denk

Signature · 4 lines
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
"Deliver yesterday, code today, think tomorrow."
#30 lore raw

v2 cover Clean up top-level directory structure

Quoted 11 lines · Wolfgang Denk

Dear Peter Tyser,

Quoted 2 lines · In message <1247935062.9174.14.camel@ptyser-laptop> you wrote:

I'd still vote for changing the directory structure in this release,

NAK. Such heavily restructuring changes should be prepared and submitted at (or even before) the begin of the merge window, not at it's very end.

For this release it's too late for such a change.

Any interest in picking up the following patches from this series for the upcoming release:
1/6 Move architecture specific config.mk files into subdirs 5/6 Move examples/ to examples/standalone
6/6 Move api_examples to examples/api

They're pretty straightforward and are 3 less changes to carry around.

Peter

#31 lore raw

v2 cover Clean up top-level directory structure

Dear Peter Tyser,

Quoted 13 lines · In message <1248033674.15400.9.camel@ptyser-laptop> you wrote:
Quoted 11 lines · Wolfgang Denk

Dear Peter Tyser,

Quoted 2 lines · In message <1247935062.9174.14.camel@ptyser-laptop> you wrote:

I'd still vote for changing the directory structure in this release,

NAK. Such heavily restructuring changes should be prepared and submitted at (or even before) the begin of the merge window, not at it's very end.

For this release it's too late for such a change.

Quoted 7 lines

Any interest in picking up the following patches from this series for the upcoming release:
1/6 Move architecture specific config.mk files into subdirs 5/6 Move examples/ to examples/standalone
6/6 Move api_examples to examples/api

They're pretty straightforward and are 3 less changes to carry around.

I will look into this patch series ASAP (still fighting with some backlog; just completed June's patches) - it was submitted while the merge window was open, so there is no reason to ignore them without at least carefully checking.

Best regards,

Wolfgang Denk

Signature · 5 lines
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
"Who is the oldest inhabitant of this village?"
"We haven't got one; we had one, but he died three weeks ago."
#32 lore raw

v2 cover Clean up top-level directory structure

In reply to Peter Tyser

Dear Peter Tyser,

Quoted 13 lines · In message <1248033674.15400.9.camel@ptyser-laptop> you wrote:
Quoted 11 lines · Wolfgang Denk

Dear Peter Tyser,

Quoted 2 lines · In message <1247935062.9174.14.camel@ptyser-laptop> you wrote:

I'd still vote for changing the directory structure in this release,

NAK. Such heavily restructuring changes should be prepared and submitted at (or even before) the begin of the merge window, not at it's very end.

For this release it's too late for such a change.

Quoted 7 lines

Any interest in picking up the following patches from this series for the upcoming release:
1/6 Move architecture specific config.mk files into subdirs 5/6 Move examples/ to examples/standalone
6/6 Move api_examples to examples/api

They're pretty straightforward and are 3 less changes to carry around.

OK, tried that. It worked for 1/6 and 5/6, but 6/6 failed,probably due to missing/not matching context.

Best regards,

Wolfgang Denk

Signature · 6 lines
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
Conceptual integrity in turn dictates that the  design  must  proceed
from  one  mind,  or  from  a  very small number of agreeing resonant
minds.               - Frederick Brooks Jr., "The Mythical Man Month"
#33 lore raw

v2 cover Clean up top-level directory structure

Quoted 22 lines · Wolfgang Denk

Dear Peter Tyser,

Quoted 19 lines · In message <1248033674.15400.9.camel@ptyser-laptop> you wrote:
Quoted 11 lines · Wolfgang Denk

Dear Peter Tyser,

Quoted 2 lines · In message <1247935062.9174.14.camel@ptyser-laptop> you wrote:

I'd still vote for changing the directory structure in this release,

NAK. Such heavily restructuring changes should be prepared and submitted at (or even before) the begin of the merge window, not at it's very end.

For this release it's too late for such a change.

Any interest in picking up the following patches from this series for the upcoming release:
1/6 Move architecture specific config.mk files into subdirs 5/6 Move examples/ to examples/standalone
6/6 Move api_examples to examples/api

Quoted 4 lines
Quoted 1 line

They're pretty straightforward and are 3 less changes to carry around.

OK, tried that. It worked for 1/6 and 5/6, but 6/6 failed,probably due to missing/not matching context.

Thanks for applying them. I'll send 6/6 in a few minutes.

Peter

#34 lore raw

v2 cover Clean up top-level directory structure

In reply to Peter Tyser

Hi Peter,

Quoted 7 lines · Peter Tyser

I like the Linux and u-boot-v2 directory layout too the more I think about it too. How about if I resend this series but with the final directory structure looking like:

/arch/$(ARCH)/lib/<source files currently in lib_$(ARCH)

/lib/

Quoted 8 lines
	/<source files currently in lib_generic>
	/libfdt/
	/lzma/
	/lzo/

/examples/

	/api/
	/standalone/

Not directly answering your question, but rather a minor naming nit:
strictly speaking the 'api' subdir contents are also standalone applications... so the above naming scheme is not clear cut, although I don't have much better suggestions :-) The 'standalone' above use the legacy jumptable calls method, so maybe 'jumptable' dirname would work? Other thoughts?

Rafal

#35 lore raw

v2 cover Clean up top-level directory structure

Hi Rafal,

Quoted 16 lines
Quoted 7 lines

I like the Linux and u-boot-v2 directory layout too the more I think about it too. How about if I resend this series but with the final directory structure looking like:

/arch/$(ARCH)/lib/<source files currently in lib_$(ARCH)

/lib/

Quoted 8 lines
	/<source files currently in lib_generic>
	/libfdt/
	/lzma/
	/lzo/

/examples/

	/api/
	/standalone/
Quoted 6 lines

Not directly answering your question, but rather a minor naming nit:
strictly speaking the 'api' subdir contents are also standalone applications... so the above naming scheme is not clear cut, although I don't have much better suggestions :-) The 'standalone' above use the legacy jumptable calls method, so maybe 'jumptable' dirname would work? Other thoughts?

I see your point. <nitpick>Its a bit confusing as U-Boot documentation seems to refer to "Standalone applications" alot, and in general that documentation is specifically referring jumptable applications. eg "doc/README.standalone" and "Standalone HOWTO" in README. If you dig you can find the API applications mentioned in api/README - I don't see it referenced much in either the standard location of /doc/* or /README. I guess my only point is that it would be great if the application documentation was consistent between the jumptable and API method, then it would be a a no brainer as far as naming /examples directory layout. As is, documentation implies "standalone application" means jumptable application.</nitpick>

In any case, I'm OK with a different directory layout. /examples/[api| jumptable] is fine, or we could even add an apps subdir,
eg: /examples/apps/[api|jumptable]. I'm also fine with leaving it the way I had it initially as all documentation currently implies standalone == jumptable, api = API method.

Let me know if you or others have arguments for 1 convention over another.

Thanks,
Peter

#36 lore raw

v2 cover Clean up top-level directory structure

Dear Peter Tyser,

Quoted 12 lines · In message <1247935976.9174.31.camel@ptyser-laptop> you wrote:

I see your point. <nitpick>Its a bit confusing as U-Boot documentation seems to refer to "Standalone applications" alot, and in general that documentation is specifically referring jumptable applications. eg "doc/README.standalone" and "Standalone HOWTO" in README. If you dig you can find the API applications mentioned in api/README - I don't see it referenced much in either the standard location of /doc/* or /README. I guess my only point is that it would be great if the application documentation was consistent between the jumptable and API method, then it would be a a no brainer as far as naming /examples directory layout. As is, documentation implies "standalone application" means jumptable application.</nitpick>

Agreed. So far it seems that the *BSD boot loader folks are the only users of and the only developers interested in the API code.

Quoted 3 lines

eg: /examples/apps/[api|jumptable]. I'm also fine with leaving it the way I had it initially as all documentation currently implies standalone == jumptable, api = API method.

Agreed - that should besufficiently clear - at least for now.

Best regards,

Wolfgang Denk

Signature · 6 lines
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
After a time, you may find that "having" is not so pleasing a thing,
after all, as "wanting."  It is not logical, but it is often true.
	-- Spock, "Amok Time", stardate 3372.7