[U-Boot] [PATCH 0/2] Move commands into their own directory

Simon Glass sjg at chromium.org
Mon Jan 18 04:53:50 CET 2016


This series makes a start at cleaning up the common directory. At present it
includes any code that is not board-specific, a library or a driver. This
means there are a lot of files, including all the commands.

Moving the command files into their own directory makes them easier to find
and is more logical than having them all in common/.


Simon Glass (2):
  Move all command code into its own directory
  Remove the cmd_ prefix from command files

 Kconfig                                            |   2 +
 Makefile                                           |   1 +
 cmd/Kconfig                                        | 585 ++++++++++++++++++++
 cmd/Makefile                                       | 166 ++++++
 common/cmd_aes.c => cmd/aes.c                      |   0
 common/cmd_ambapp.c => cmd/ambapp.c                |   0
 common/cmd_armflash.c => cmd/armflash.c            |   0
 common/cmd_bdinfo.c => cmd/bdinfo.c                |   0
 common/cmd_bedbug.c => cmd/bedbug.c                |   0
 common/cmd_blob.c => cmd/blob.c                    |   0
 common/cmd_bmp.c => cmd/bmp.c                      |   0
 common/cmd_boot.c => cmd/boot.c                    |   0
 common/cmd_bootldr.c => cmd/bootldr.c              |   0
 common/cmd_bootm.c => cmd/bootm.c                  |   0
 common/cmd_bootmenu.c => cmd/bootmenu.c            |   0
 common/cmd_bootstage.c => cmd/bootstage.c          |   0
 common/cmd_cache.c => cmd/cache.c                  |   0
 common/cmd_cbfs.c => cmd/cbfs.c                    |   0
 common/cmd_clk.c => cmd/clk.c                      |   0
 common/cmd_console.c => cmd/console.c              |   0
 common/cmd_cplbinfo.c => cmd/cplbinfo.c            |   0
 common/cmd_cpu.c => cmd/cpu.c                      |   0
 common/cmd_cramfs.c => cmd/cramfs.c                |   0
 .../dataflash_mmc_mux.c                            |   0
 common/cmd_date.c => cmd/date.c                    |   0
 common/cmd_dcr.c => cmd/dcr.c                      |   0
 common/cmd_demo.c => cmd/demo.c                    |   0
 common/cmd_dfu.c => cmd/dfu.c                      |   0
 common/cmd_diag.c => cmd/diag.c                    |   0
 common/cmd_disk.c => cmd/disk.c                    |   0
 common/cmd_display.c => cmd/display.c              |   0
 common/cmd_dtt.c => cmd/dtt.c                      |   0
 common/cmd_echo.c => cmd/echo.c                    |   0
 common/cmd_eeprom.c => cmd/eeprom.c                |   0
 common/cmd_efi.c => cmd/efi.c                      |   0
 common/cmd_elf.c => cmd/elf.c                      |   0
 common/cmd_ethsw.c => cmd/ethsw.c                  |   0
 common/cmd_exit.c => cmd/exit.c                    |   0
 common/cmd_ext2.c => cmd/ext2.c                    |   0
 common/cmd_ext4.c => cmd/ext4.c                    |   0
 common/cmd_fastboot.c => cmd/fastboot.c            |   0
 common/cmd_fat.c => cmd/fat.c                      |   0
 common/cmd_fdc.c => cmd/fdc.c                      |   0
 common/cmd_fdt.c => cmd/fdt.c                      |   0
 common/cmd_fitupd.c => cmd/fitupd.c                |   0
 common/cmd_flash.c => cmd/flash.c                  |   0
 common/cmd_fpga.c => cmd/fpga.c                    |   0
 common/cmd_fpgad.c => cmd/fpgad.c                  |   0
 common/cmd_fs.c => cmd/fs.c                        |   0
 common/cmd_fs_uuid.c => cmd/fs_uuid.c              |   0
 common/cmd_fuse.c => cmd/fuse.c                    |   0
 common/cmd_gettime.c => cmd/gettime.c              |   0
 common/cmd_gpio.c => cmd/gpio.c                    |   0
 common/cmd_gpt.c => cmd/gpt.c                      |   0
 common/cmd_hash.c => cmd/hash.c                    |   0
 common/cmd_help.c => cmd/help.c                    |   0
 common/cmd_host.c => cmd/host.c                    |   0
 common/cmd_i2c.c => cmd/i2c.c                      |   0
 common/cmd_ide.c => cmd/ide.c                      |   0
 common/cmd_immap.c => cmd/immap.c                  |   0
 common/cmd_ini.c => cmd/ini.c                      |   0
 common/cmd_io.c => cmd/io.c                        |   0
 common/cmd_iotrace.c => cmd/iotrace.c              |   0
 common/cmd_irq.c => cmd/irq.c                      |   0
 common/cmd_itest.c => cmd/itest.c                  |   0
 common/cmd_jffs2.c => cmd/jffs2.c                  |   0
 common/cmd_ldrinfo.c => cmd/ldrinfo.c              |   0
 common/cmd_led.c => cmd/led.c                      |   0
 common/cmd_license.c => cmd/license.c              |   0
 common/cmd_load.c => cmd/load.c                    |   0
 common/cmd_log.c => cmd/log.c                      |   0
 common/cmd_lzmadec.c => cmd/lzmadec.c              |   0
 common/cmd_mac.c => cmd/mac.c                      |   0
 common/cmd_md5sum.c => cmd/md5sum.c                |   0
 common/cmd_mdio.c => cmd/mdio.c                    |   0
 common/cmd_mem.c => cmd/mem.c                      |   0
 common/cmd_mfsl.c => cmd/mfsl.c                    |   0
 common/cmd_mii.c => cmd/mii.c                      |   0
 common/cmd_misc.c => cmd/misc.c                    |   0
 common/cmd_mmc.c => cmd/mmc.c                      |   0
 common/cmd_mmc_spi.c => cmd/mmc_spi.c              |   0
 common/cmd_mp.c => cmd/mp.c                        |   0
 common/cmd_mtdparts.c => cmd/mtdparts.c            |   0
 common/cmd_nand.c => cmd/nand.c                    |   0
 common/cmd_net.c => cmd/net.c                      |   0
 common/cmd_nvedit.c => cmd/nvedit.c                |   0
 common/cmd_onenand.c => cmd/onenand.c              |   0
 common/cmd_otp.c => cmd/otp.c                      |   0
 common/cmd_part.c => cmd/part.c                    |   0
 common/cmd_pci.c => cmd/pci.c                      |   0
 common/cmd_pcmcia.c => cmd/pcmcia.c                |   0
 common/cmd_pmic.c => cmd/pmic.c                    |   0
 common/cmd_portio.c => cmd/portio.c                |   0
 common/cmd_pxe.c => cmd/pxe.c                      |   0
 common/cmd_read.c => cmd/read.c                    |   0
 common/cmd_reginfo.c => cmd/reginfo.c              |   0
 common/cmd_regulator.c => cmd/regulator.c          |   0
 common/cmd_reiser.c => cmd/reiser.c                |   0
 common/cmd_remoteproc.c => cmd/remoteproc.c        |   0
 common/cmd_sata.c => cmd/sata.c                    |   0
 common/cmd_scsi.c => cmd/scsi.c                    |   0
 common/cmd_setexpr.c => cmd/setexpr.c              |   0
 common/cmd_sf.c => cmd/sf.c                        |   0
 common/cmd_sha1sum.c => cmd/sha1sum.c              |   0
 common/cmd_softswitch.c => cmd/softswitch.c        |   0
 common/cmd_sound.c => cmd/sound.c                  |   0
 common/cmd_source.c => cmd/source.c                |   0
 common/cmd_spi.c => cmd/spi.c                      |   0
 common/cmd_spibootldr.c => cmd/spibootldr.c        |   0
 common/cmd_spl.c => cmd/spl.c                      |   0
 common/cmd_strings.c => cmd/strings.c              |   0
 common/cmd_terminal.c => cmd/terminal.c            |   0
 common/cmd_test.c => cmd/test.c                    |   0
 common/cmd_thordown.c => cmd/thordown.c            |   0
 common/cmd_time.c => cmd/time.c                    |   0
 common/cmd_tpm.c => cmd/tpm.c                      |   0
 common/cmd_tpm_test.c => cmd/tpm_test.c            |   0
 common/cmd_trace.c => cmd/trace.c                  |   0
 common/cmd_tsi148.c => cmd/tsi148.c                |   0
 common/cmd_ubi.c => cmd/ubi.c                      |   0
 common/cmd_ubifs.c => cmd/ubifs.c                  |   0
 common/cmd_universe.c => cmd/universe.c            |   0
 common/cmd_unzip.c => cmd/unzip.c                  |   0
 common/cmd_usb.c => cmd/usb.c                      |   0
 .../usb_mass_storage.c                             |   0
 common/cmd_version.c => cmd/version.c              |   0
 common/cmd_ximg.c => cmd/ximg.c                    |   0
 common/cmd_yaffs2.c => cmd/yaffs2.c                |   0
 common/cmd_zfs.c => cmd/zfs.c                      |   0
 common/cmd_zip.c => cmd/zip.c                      |   0
 common/Kconfig                                     | 586 ---------------------
 common/Makefile                                    | 156 +-----
 scripts/Makefile.spl                               |   2 +-
 133 files changed, 761 insertions(+), 737 deletions(-)
 create mode 100644 cmd/Kconfig
 create mode 100644 cmd/Makefile
 rename common/cmd_aes.c => cmd/aes.c (100%)
 rename common/cmd_ambapp.c => cmd/ambapp.c (100%)
 rename common/cmd_armflash.c => cmd/armflash.c (100%)
 rename common/cmd_bdinfo.c => cmd/bdinfo.c (100%)
 rename common/cmd_bedbug.c => cmd/bedbug.c (100%)
 rename common/cmd_blob.c => cmd/blob.c (100%)
 rename common/cmd_bmp.c => cmd/bmp.c (100%)
 rename common/cmd_boot.c => cmd/boot.c (100%)
 rename common/cmd_bootldr.c => cmd/bootldr.c (100%)
 rename common/cmd_bootm.c => cmd/bootm.c (100%)
 rename common/cmd_bootmenu.c => cmd/bootmenu.c (100%)
 rename common/cmd_bootstage.c => cmd/bootstage.c (100%)
 rename common/cmd_cache.c => cmd/cache.c (100%)
 rename common/cmd_cbfs.c => cmd/cbfs.c (100%)
 rename common/cmd_clk.c => cmd/clk.c (100%)
 rename common/cmd_console.c => cmd/console.c (100%)
 rename common/cmd_cplbinfo.c => cmd/cplbinfo.c (100%)
 rename common/cmd_cpu.c => cmd/cpu.c (100%)
 rename common/cmd_cramfs.c => cmd/cramfs.c (100%)
 rename common/cmd_dataflash_mmc_mux.c => cmd/dataflash_mmc_mux.c (100%)
 rename common/cmd_date.c => cmd/date.c (100%)
 rename common/cmd_dcr.c => cmd/dcr.c (100%)
 rename common/cmd_demo.c => cmd/demo.c (100%)
 rename common/cmd_dfu.c => cmd/dfu.c (100%)
 rename common/cmd_diag.c => cmd/diag.c (100%)
 rename common/cmd_disk.c => cmd/disk.c (100%)
 rename common/cmd_display.c => cmd/display.c (100%)
 rename common/cmd_dtt.c => cmd/dtt.c (100%)
 rename common/cmd_echo.c => cmd/echo.c (100%)
 rename common/cmd_eeprom.c => cmd/eeprom.c (100%)
 rename common/cmd_efi.c => cmd/efi.c (100%)
 rename common/cmd_elf.c => cmd/elf.c (100%)
 rename common/cmd_ethsw.c => cmd/ethsw.c (100%)
 rename common/cmd_exit.c => cmd/exit.c (100%)
 rename common/cmd_ext2.c => cmd/ext2.c (100%)
 rename common/cmd_ext4.c => cmd/ext4.c (100%)
 rename common/cmd_fastboot.c => cmd/fastboot.c (100%)
 rename common/cmd_fat.c => cmd/fat.c (100%)
 rename common/cmd_fdc.c => cmd/fdc.c (100%)
 rename common/cmd_fdt.c => cmd/fdt.c (100%)
 rename common/cmd_fitupd.c => cmd/fitupd.c (100%)
 rename common/cmd_flash.c => cmd/flash.c (100%)
 rename common/cmd_fpga.c => cmd/fpga.c (100%)
 rename common/cmd_fpgad.c => cmd/fpgad.c (100%)
 rename common/cmd_fs.c => cmd/fs.c (100%)
 rename common/cmd_fs_uuid.c => cmd/fs_uuid.c (100%)
 rename common/cmd_fuse.c => cmd/fuse.c (100%)
 rename common/cmd_gettime.c => cmd/gettime.c (100%)
 rename common/cmd_gpio.c => cmd/gpio.c (100%)
 rename common/cmd_gpt.c => cmd/gpt.c (100%)
 rename common/cmd_hash.c => cmd/hash.c (100%)
 rename common/cmd_help.c => cmd/help.c (100%)
 rename common/cmd_host.c => cmd/host.c (100%)
 rename common/cmd_i2c.c => cmd/i2c.c (100%)
 rename common/cmd_ide.c => cmd/ide.c (100%)
 rename common/cmd_immap.c => cmd/immap.c (100%)
 rename common/cmd_ini.c => cmd/ini.c (100%)
 rename common/cmd_io.c => cmd/io.c (100%)
 rename common/cmd_iotrace.c => cmd/iotrace.c (100%)
 rename common/cmd_irq.c => cmd/irq.c (100%)
 rename common/cmd_itest.c => cmd/itest.c (100%)
 rename common/cmd_jffs2.c => cmd/jffs2.c (100%)
 rename common/cmd_ldrinfo.c => cmd/ldrinfo.c (100%)
 rename common/cmd_led.c => cmd/led.c (100%)
 rename common/cmd_license.c => cmd/license.c (100%)
 rename common/cmd_load.c => cmd/load.c (100%)
 rename common/cmd_log.c => cmd/log.c (100%)
 rename common/cmd_lzmadec.c => cmd/lzmadec.c (100%)
 rename common/cmd_mac.c => cmd/mac.c (100%)
 rename common/cmd_md5sum.c => cmd/md5sum.c (100%)
 rename common/cmd_mdio.c => cmd/mdio.c (100%)
 rename common/cmd_mem.c => cmd/mem.c (100%)
 rename common/cmd_mfsl.c => cmd/mfsl.c (100%)
 rename common/cmd_mii.c => cmd/mii.c (100%)
 rename common/cmd_misc.c => cmd/misc.c (100%)
 rename common/cmd_mmc.c => cmd/mmc.c (100%)
 rename common/cmd_mmc_spi.c => cmd/mmc_spi.c (100%)
 rename common/cmd_mp.c => cmd/mp.c (100%)
 rename common/cmd_mtdparts.c => cmd/mtdparts.c (100%)
 rename common/cmd_nand.c => cmd/nand.c (100%)
 rename common/cmd_net.c => cmd/net.c (100%)
 rename common/cmd_nvedit.c => cmd/nvedit.c (100%)
 rename common/cmd_onenand.c => cmd/onenand.c (100%)
 rename common/cmd_otp.c => cmd/otp.c (100%)
 rename common/cmd_part.c => cmd/part.c (100%)
 rename common/cmd_pci.c => cmd/pci.c (100%)
 rename common/cmd_pcmcia.c => cmd/pcmcia.c (100%)
 rename common/cmd_pmic.c => cmd/pmic.c (100%)
 rename common/cmd_portio.c => cmd/portio.c (100%)
 rename common/cmd_pxe.c => cmd/pxe.c (100%)
 rename common/cmd_read.c => cmd/read.c (100%)
 rename common/cmd_reginfo.c => cmd/reginfo.c (100%)
 rename common/cmd_regulator.c => cmd/regulator.c (100%)
 rename common/cmd_reiser.c => cmd/reiser.c (100%)
 rename common/cmd_remoteproc.c => cmd/remoteproc.c (100%)
 rename common/cmd_sata.c => cmd/sata.c (100%)
 rename common/cmd_scsi.c => cmd/scsi.c (100%)
 rename common/cmd_setexpr.c => cmd/setexpr.c (100%)
 rename common/cmd_sf.c => cmd/sf.c (100%)
 rename common/cmd_sha1sum.c => cmd/sha1sum.c (100%)
 rename common/cmd_softswitch.c => cmd/softswitch.c (100%)
 rename common/cmd_sound.c => cmd/sound.c (100%)
 rename common/cmd_source.c => cmd/source.c (100%)
 rename common/cmd_spi.c => cmd/spi.c (100%)
 rename common/cmd_spibootldr.c => cmd/spibootldr.c (100%)
 rename common/cmd_spl.c => cmd/spl.c (100%)
 rename common/cmd_strings.c => cmd/strings.c (100%)
 rename common/cmd_terminal.c => cmd/terminal.c (100%)
 rename common/cmd_test.c => cmd/test.c (100%)
 rename common/cmd_thordown.c => cmd/thordown.c (100%)
 rename common/cmd_time.c => cmd/time.c (100%)
 rename common/cmd_tpm.c => cmd/tpm.c (100%)
 rename common/cmd_tpm_test.c => cmd/tpm_test.c (100%)
 rename common/cmd_trace.c => cmd/trace.c (100%)
 rename common/cmd_tsi148.c => cmd/tsi148.c (100%)
 rename common/cmd_ubi.c => cmd/ubi.c (100%)
 rename common/cmd_ubifs.c => cmd/ubifs.c (100%)
 rename common/cmd_universe.c => cmd/universe.c (100%)
 rename common/cmd_unzip.c => cmd/unzip.c (100%)
 rename common/cmd_usb.c => cmd/usb.c (100%)
 rename common/cmd_usb_mass_storage.c => cmd/usb_mass_storage.c (100%)
 rename common/cmd_version.c => cmd/version.c (100%)
 rename common/cmd_ximg.c => cmd/ximg.c (100%)
 rename common/cmd_yaffs2.c => cmd/yaffs2.c (100%)
 rename common/cmd_zfs.c => cmd/zfs.c (100%)
 rename common/cmd_zip.c => cmd/zip.c (100%)

-- 
2.6.0.rc2.230.g3dd15c0



More information about the U-Boot mailing list