1. 05 8月, 2017 1 次提交
  2. 27 7月, 2017 1 次提交
  3. 22 5月, 2017 2 次提交
    • T
      lib: move hash CONFIG options to Kconfig · 089df18b
      Tom Rini 提交于
      Commit 94e3c8c4 ("crypto/fsl - Add progressive hashing support
      using hardware acceleration.") created entries for CONFIG_SHA1,
      CONFIG_SHA256, CONFIG_SHA_HW_ACCEL, and CONFIG_SHA_PROG_HW_ACCEL.
      However, no defconfig has migrated to it.  Complete the move by first
      adding additional logic to various Kconfig files to select this when
      required and then use the moveconfig tool.  In many cases we can select
      these because they are required to implement other drivers.  We also
      correct how we include the various hashing algorithms in SPL.
      
      This commit was generated as follows (after Kconfig additions):
      
      [1] tools/moveconfig.py -y SHA1 SHA256 SHA_HW_ACCEL
      [2] tools/moveconfig.py -y SHA_PROG_HW_ACCEL
      
      Note:
      We cannot move SHA_HW_ACCEL and SHA_PROG_HW_ACCEL simultaneously
      because there is dependency between them.
      
      Cc: Poonam Aggrwal <poonam.aggrwal@freescale.com>
      Cc: Naveen Burmi <NaveenBurmi@freescale.com>
      Cc: Po Liu <po.liu@freescale.com>
      Cc: Shengzhou Liu <Shengzhou.Liu@freescale.com>
      Cc: Priyanka Jain <Priyanka.Jain@freescale.com>
      Cc: Shaohui Xie <Shaohui.Xie@freescale.com>
      Cc: Chunhe Lan <Chunhe.Lan@freescale.com>
      Cc: Chander Kashyap <k.chander@samsung.com>
      Cc: Steve Rae <steve.rae@raedomain.com>
      Cc: Dirk Eibach <eibach@gdsys.de>
      Cc: Feng Li <feng.li_2@nxp.com>
      Cc: Alison Wang <alison.wang@freescale.com>
      Cc: Sumit Garg <sumit.garg@nxp.com>
      Cc: Mingkai Hu <Mingkai.Hu@freescale.com>
      Cc: York Sun <york.sun@nxp.com>
      Cc: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
      Cc: Jaehoon Chung <jh80.chung@samsung.com>
      Cc: Akshay Saraswat <akshay.s@samsung.com>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Jagan Teki <jagan@amarulasolutions.com>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      089df18b
    • T
      FIT: Rename FIT_DISABLE_SHA256 to FIT_ENABLE_SHA256_SUPPORT · 0db7f685
      Tom Rini 提交于
      We rename CONFIG_FIT_DISABLE_SHA256 to CONFIG_FIT_ENABLE_SHA256_SUPPORT which
      is enabled by default and now a positive option.  Convert the handful of boards
      that were disabling it before to save space.
      
      Cc: Dirk Eibach <eibach@gdsys.de>
      Cc: Lukasz Dalek <luk0104@gmail.com>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      0db7f685
  4. 18 5月, 2017 3 次提交
  5. 09 4月, 2017 1 次提交
  6. 06 4月, 2017 1 次提交
  7. 17 3月, 2017 1 次提交
  8. 09 2月, 2017 2 次提交
    • E
      kconfig: Add API kconfig file · 4db98d3d
      Emmanuel Vadot 提交于
      Add kconfig file to enable API support
      Signed-off-by: NEmmanuel Vadot <manu@bidouilliste.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      4db98d3d
    • M
      cmd: add a new command "config" to show .config contents · 61304dbe
      Masahiro Yamada 提交于
      This feature is inspired by /proc/config.gz of Linux.  In Linux,
      if CONFIG_IKCONFIG is enabled, the ".config" file contents are
      embedded in the kernel image.  If CONFIG_IKCONFIG_PROC is also
      enabled, the ".config" contents are exposed to /proc/config.gz.
      Users can do "zcat /proc/config.gz" to check which config options
      are enabled on the running kernel image.
      
      The idea is almost the same here; if CONFIG_CMD_CONFIG is enabled,
      the ".config" contents are compressed and saved in the U-Boot image,
      then printed by the new command "config".
      
      The usage is quite simple.  Enable CONFIG_CMD_CONFIG, then run
       > config
      from the command line interface.  The ".config" contents will be
      printed on the console.
      
      This feature increases the U-Boot image size by about 4KB (this is
      mostly due to the gzip-compressed .config file).  By default, it is
      enabled only for Sandbox because we do not care about the memory
      footprint on it.  Of course, this feature is architecture agnostic,
      so you can enable it on any board if the image size increase is
      acceptable for you.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      61304dbe
  9. 28 1月, 2017 2 次提交
  10. 21 1月, 2017 1 次提交
  11. 15 1月, 2017 1 次提交
  12. 12 1月, 2017 1 次提交
  13. 10 1月, 2017 1 次提交
  14. 04 12月, 2016 2 次提交
    • Y
      cmd: move CMD_PXE to Kconfig · bfb380b3
      Yann E. MORIN 提交于
      Currently, CMD_PXE is forcibly enabled in config_distro_defaults.h, so
      that general purpose distributions can rely on it being defined. This
      header is included, under conditions or not, by various archs or
      famillies of archs / SoCs.
      
      However, it is very possible that boards based on those SoCs will not
      have a physical ethernet connector at all, even if the have a MAC; for
      example, the Nanopi Neo AIR (sunxi H3) does not. It is also possible
      that network booting is absolutely not necessary for a device.
      
      However, it is not possible to disable the PXE command, as it is
      forcibly enabled and is non-configurable.
      
      But it turns out we already have a config option to build a distro-ready
      image, in the name of DISTRO_DEFAULTS.
      
      Move CMD_PXE out of the hard-coded config_distro_defaults.h into a
      Kconfig option, that gets selected by DISTRO_DEFAULTS when it is set.
      Signed-off-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      [trini: Make it select MENU, run moveconfig.py]
      Signed-off-by: NTom Rini <trini@konsulko.com>
      bfb380b3
    • T
      Enable DISTRO_DEFAULT on platforms that missed it before · 3337e3af
      Tom Rini 提交于
      A number of platforms had been using the distro default feature before
      it was moved to Kconfig but did not enable the new Kconfig option when
      it was enabled.  This caused a regression in terms of features and this
      introduces breakage when more things move to Kconfig.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      3337e3af
  15. 03 12月, 2016 1 次提交
  16. 29 11月, 2016 1 次提交
  17. 17 11月, 2016 1 次提交
    • A
      ls2080ardb: Convert to distro boot · b99ebaf9
      Alexander Graf 提交于
      Most new systems in U-Boot these days make use of the generic "distro"
      framework which allows a user to have U-Boot scan for a bootable OS
      on all available media types.
      
      This patch extends the LS2080ARDB board to use that framework if the
      hard coded NOR flash location does not contain a bootable image.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      b99ebaf9
  18. 28 9月, 2016 1 次提交
    • B
      spl: dfu: add dfu support in SPL · bc5dbcb9
      B, Ravi 提交于
      Traditionally the DFU support is available only
      as part 2nd stage boot loader(u-boot) and DFU
      is not supported in SPL.
      
      The SPL-DFU feature is useful for boards which
      does not have MMC/SD, ethernet boot mechanism
      to boot the board and only has USB inteface.
      
      This patch add DFU support in SPL with RAM
      memory device support to load and execute u-boot.
      And then leverage full functionality DFU in
      u-boot to flash boot inital binary images to
      factory or bare-metal boards to memory devices
      like SPI, eMMC, MMC/SD card using USB interface.
      
      This SPL-DFU support can be enabled through
      Menuconfig->Boot Images->Enable SPL-DFU support
      Signed-off-by: NRavi Babu <ravibabu@ti.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      bc5dbcb9
  19. 20 9月, 2016 1 次提交
  20. 17 9月, 2016 1 次提交
  21. 07 9月, 2016 1 次提交
  22. 20 8月, 2016 2 次提交
  23. 12 8月, 2016 1 次提交
    • A
      common: image: Add support for post-processing of images · eba3fbd6
      Andreas Dannenberg 提交于
      This commit allows injecting a board/platform/device-specific post-
      processing function into the FIT image data loading process, which can
      include modifying the size and altering the starting source address of
      an image data artifact. This might be desired to do things like strip
      headers or footers attached to the images before they were packaged into
      the FIT, or to perform operations such as decryption or authentication.
      Introduce new configuration option CONFIG_FIT_IMAGE_POST_PROCESS to
      allow controlling this feature. If enabled, a platform-specific post-
      process function must be provided.
      Signed-off-by: NAndreas Dannenberg <dannenberg@ti.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      eba3fbd6
  24. 05 8月, 2016 1 次提交
    • M
      treewide: move CONFIG_PHYS_64BIT to Kconfig · bb6b142f
      Masahiro Yamada 提交于
      We need to ensure that CONFIG_PHYS_64BIT is configured via Kconfig so
      that it is always available to the build system.  Otherwise we can run
      into cases where we have inconsistent sizes of certain attributes.
      
      Ravi Babu reported offset mismatch of struct dwc3 across files since
      commit 95ebc253 ("types.h: move and redefine resource_size_t").
      Since the commit, resource_addr_t points to phys_addr_t, whose size
      is dependent on CONFIG_PHYS_64BIT for ARM architecture.
      
      I tried my best to use "select" where possible (for example, ARMv8
      architecture) because I think this kind of option is generally user-
      unconfigurable.  However, I see some of PowerPC boards have 36BIT
      defconfigs as well as 32BIT ones.  I moved CONFIG_PHYS_64BIT to the
      defconfigs for such boards.
      
      CONFIG_36BIT is no longer referenced, so all of the defines were
      removed from CONFIG_SYS_EXTRA_OPTIONS.
      
      Fixes: 95ebc253 ("types.h: move and redefine resource_size_t")
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Reported-by: NRavi Babu <ravibabu@ti.com>
      Acked-by: NStefan Roese <sr@denx.de>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      Reviewed-by: NYork Sun <york.sun@nxp.com>
      bb6b142f
  25. 01 8月, 2016 1 次提交
  26. 15 7月, 2016 2 次提交
  27. 21 6月, 2016 1 次提交
    • H
      Kconfig: Add a new DISTRO_DEFAULTS Kconfig option · 9f823615
      Hans de Goede 提交于
      DISTRO_DEFAULTS is intended to mirror / replace
      include/config_distro_defaults.h.
      
      The intend is for boards which include this file to select this from
      their Kconfig files and when moving setting to Kconfig which are #define-ed
      in config_distro_defaults.h to select this from DISTRO_DEFAULTS so that
      boards which have selected DISTRO_DEFAULTS will keep the same configuration
      as before without needing any defconfig file changes.
      
      The initial list of selected things matches all settings recently removed
      from config_distro_defaults.h because they have been converted to Kconfig,
      with the exception of CMD_ELF and CMD_NET, which have a default of y, if
      the default of these ever changes they should be selected by DISTRO_DEFAULTS
      too.
      
      For testing and example purposes this commit also converts ARCH_SUNXI
      to use DISTRO_DEFAULT instead of selecting everything it needs itself.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      9f823615
  28. 13 6月, 2016 1 次提交
  29. 26 5月, 2016 1 次提交
  30. 19 4月, 2016 1 次提交
  31. 15 3月, 2016 2 次提交
    • S
      spl: Add an option to load a FIT containing U-Boot · f1dcee59
      Simon Glass 提交于
      This provides a way to load a FIT containing U-Boot and a selection of device
      tree files. The board can select the correct device tree by probing the
      hardware. Then U-Boot is started with the selected device tree.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      f1dcee59
    • S
      Kconfig: Move CONFIG_FIT and related options to Kconfig · 73223f0e
      Simon Glass 提交于
      There are already two FIT options in Kconfig but the CONFIG options are
      still in the header files. We need to do a proper move to fix this.
      
      Move these options to Kconfig and tidy up board configuration:
      
         CONFIG_FIT
         CONFIG_OF_BOARD_SETUP
         CONFIG_OF_SYSTEM_SETUP
         CONFIG_FIT_SIGNATURE
         CONFIG_FIT_BEST_MATCH
         CONFIG_FIT_VERBOSE
         CONFIG_OF_STDOUT_VIA_ALIAS
         CONFIG_RSA
      
      Unfortunately the first one is a little complicated. We need to make sure
      this option is not enabled in SPL by this change. Also this option is
      enabled automatically in the host builds by defining CONFIG_FIT in the
      image.h file. To solve this, add a new IMAGE_USE_FIT #define which can
      be used in files that are built on the host but must also build for U-Boot
      and SPL.
      
      Note: Masahiro's moveconfig.py script is amazing.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      [trini: Add microblaze change, various configs/ re-applies]
      Signed-off-by: NTom Rini <trini@konsulko.com>
      73223f0e