[U-Boot] [PATCH v3 00/20] Reorganize directory structure

Peter Tyser ptyser at xes-inc.com
Sun Apr 11 19:26:55 CEST 2010


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

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

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

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

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

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

Changes since v2:
- Rebased on current TOT

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


More information about the U-Boot mailing list