1. 12 Feb, 2017 1 commit
    • 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: 's avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      e856bdcf
  2. 23 Oct, 2016 1 commit
  3. 17 Jun, 2016 1 commit
  4. 25 Apr, 2016 2 commits
  5. 18 Nov, 2015 1 commit
  6. 26 Jun, 2015 1 commit
  7. 11 Jun, 2015 1 commit
    • Masahiro Yamada's avatar
      blackfin: fix undefined reference to srand and rand · 3850dbe8
      Masahiro Yamada authored
      Commit 9ba9e85f (net: Fix NET_RANDOM_ETHADDR dependencies)
      accidentally dropped CONFIG_LIB_RAND defines for 14 Blackfin boards.
      
      Prior to that commit, those boards defined CONFIG_LIB_RAND, but not
      CONFIG_NET_RANDOM_ETHADDR.  So, commit 9ba9e85f should not have
      touched them, but in fact it ripped CONFIG_LIB_RAND off from all the
      header files, which caused undefined reference to srand and rand.
      CONFIG_LIB_RAND=y must be revived for such boards.
      
      BTW, this commit indeed makes it better, but even with this fix,
      three boards (bf533-stamp, bf538f-ezkit, cm-bf548) still can not
      build due to region 'ram' overflowed error.  This was cause by
      commit 6eed3786 (net: Move the CMD_NET config to defconfigs)
      because CMD_NET selects NET, and NET selects REGEX.  Eventually,
      some boards were newly enabled with CONFIG_REGEX, increasing the
      memory footprint.  A patch is expected to fix the build error.
      Signed-off-by: 's avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      3850dbe8
  8. 01 Jun, 2015 1 commit
  9. 24 Sep, 2014 1 commit
  10. 30 Jul, 2014 1 commit
    • Masahiro Yamada's avatar
      kconfig: add board Kconfig and defconfig files · dd84058d
      Masahiro Yamada authored
      This commit adds:
       - arch/${ARCH}/Kconfig
          provide a menu to select target boards
       - board/${VENDOR}/${BOARD}/Kconfig or board/${BOARD}/Kconfig
          set CONFIG macros to the appropriate values for each board
       - configs/${TARGET_BOARD}_defconfig
          default setting of each board
      
      (This commit was automatically generated by a conversion script
      based on boards.cfg)
      
      In Linux Kernel, defconfig files are located under
      arch/${ARCH}/configs/ directory.
      It works in Linux Kernel since ARCH is always given from the
      command line for cross compile.
      
      But in U-Boot, ARCH is not given from the command line.
      Which means we cannot know ARCH until the board configuration is done.
      That is why all the "*_defconfig" files should be gathered into a
      single directory ./configs/.
      Signed-off-by: 's avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: 's avatarSimon Glass <sjg@chromium.org>
      dd84058d