Skip to content
Snippets Groups Projects
  1. Feb 12, 2017
    • Masahiro Yamada's avatar
      flash: complete CONFIG_SYS_NO_FLASH move with renaming · e856bdcf
      Masahiro Yamada authored
      
      We repeated partial moves for CONFIG_SYS_NO_FLASH, but this is
      not completed. Finish this work by the tool.
      
      During this move, let's rename it to CONFIG_MTD_NOR_FLASH.
      Actually, we have more instances of "#ifndef CONFIG_SYS_NO_FLASH"
      than those of "#ifdef CONFIG_SYS_NO_FLASH".  Flipping the logic will
      make the code more readable.  Besides, negative meaning symbols do
      not fit in obj-$(CONFIG_...) style Makefiles.
      
      This commit was created as follows:
      
      [1] Edit "default n" to "default y" in the config entry in
          common/Kconfig.
      
      [2] Run "tools/moveconfig.py -y -r HEAD SYS_NO_FLASH"
      
      [3] Rename the instances in defconfigs by the following:
        find . -path './configs/*_defconfig' | xargs sed -i \
        -e '/CONFIG_SYS_NO_FLASH=y/d' \
        -e 's/# CONFIG_SYS_NO_FLASH is not set/CONFIG_MTD_NOR_FLASH=y/'
      
      [4] Change the conditionals by the following:
        find . -name '*.[ch]' | xargs sed -i \
        -e 's/ifndef CONFIG_SYS_NO_FLASH/ifdef CONFIG_MTD_NOR_FLASH/' \
        -e 's/ifdef CONFIG_SYS_NO_FLASH/ifndef CONFIG_MTD_NOR_FLASH/' \
        -e 's/!defined(CONFIG_SYS_NO_FLASH)/defined(CONFIG_MTD_NOR_FLASH)/' \
        -e 's/defined(CONFIG_SYS_NO_FLASH)/!defined(CONFIG_MTD_NOR_FLASH)/'
      
      [5] Modify the following manually
        - Rename the rest of instances
        - Remove the description from README
        - Create the new Kconfig entry in drivers/mtd/Kconfig
        - Remove the old Kconfig entry from common/Kconfig
        - Remove the garbage comments from include/configs/*.h
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      e856bdcf
  2. Jan 12, 2017
    • Fabio Estevam's avatar
      cmd: mem: Use memcpy for 'cp' command · c2538421
      Fabio Estevam authored
      
      Simplify the 'cp' command implementation by using the memcpy() function,
      which brings the additional benefit of performance gain for those who have
      CONFIG_USE_ARCH_MEMCPY selected.
      
      Tested on a mx6qsabreauto board where a 5x gain in performance is seen
      when reading 10MB from the parallel NOR memory.
      
      Signed-off-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
      c2538421
  3. Feb 24, 2016
  4. Jan 25, 2016
  5. Jan 08, 2016
  6. Nov 20, 2015
  7. May 28, 2015
  8. May 10, 2015
  9. Apr 23, 2015
  10. Apr 18, 2015
  11. Apr 17, 2015
  12. Apr 07, 2015
  13. Nov 27, 2014
  14. Oct 27, 2014
  15. Sep 16, 2014
  16. May 29, 2014
  17. Mar 04, 2014
  18. Feb 21, 2014
  19. Jul 24, 2013
  20. Jun 26, 2013
  21. May 24, 2013
  22. Mar 12, 2013
  23. Mar 11, 2013
    • Wolfgang Denk's avatar
      Feature Removal: disable "mtest" command by default · a2681707
      Wolfgang Denk authored
      
      The "mtest" command is of little practical use (if any), and
      experience has shown that a large number of board configurations
      define useless or even dangerous start and end addresses.  If not even
      the board maintainers are able to figure out which memory range can be
      reliably tested, how can we expect such from the end users?  As this
      problem comes up repeatedly, we rather do not enable this command by
      default, so only people who know what they are doing will be
      confronted with it.
      
      As this changes the user interface, we allow for a grace period
      before this change takes effect. For now, we make "mtest"
      configurable through the CONFIG_CMD_MEMTEST variable, which is defined
      in include/config_cmd_default.h;  we also add an entry to
      doc/feature-removal-schedule.txt which announces the removal of this
      default setting in two releases from now, i. e. with v2013.07.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Tom Rini <trini@ti.com>
      a2681707
  24. Mar 01, 2013
  25. Feb 19, 2013
Loading