Skip to content
Snippets Groups Projects
  1. Jan 26, 2023
  2. Jan 23, 2023
  3. Jan 20, 2023
    • Tom Rini's avatar
      global: Finish CONFIG -> CFG migration · 6e7df1d1
      Tom Rini authored
      
      At this point, the remaining places where we have a symbol that is
      defined as CONFIG_... are in fairly odd locations. While as much dead
      code has been removed as possible, some of these locations are simply
      less obvious at first. In other cases, this code is used, but was
      defined in such a way as to have been missed by earlier checks.  Perform
      a rename of all such remaining symbols to be CFG_... rather than
      CONFIG_...
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      6e7df1d1
  4. Jan 18, 2023
  5. Jan 16, 2023
  6. Jan 12, 2023
  7. Jan 11, 2023
    • Marek Vasut's avatar
      cmd: exit: Fix return value propagation out of environment scripts · 721307eb
      Marek Vasut authored and Tom Rini's avatar Tom Rini committed
      
      Make sure the 'exit' command as well as 'exit $val' command exits
      from environment scripts immediately and propagates return value
      out of those scripts fully. That means the following behavior is
      expected:
      
      "
      => setenv foo 'echo bar ; exit 1' ; run foo ; echo $?
      bar
      1
      => setenv foo 'echo bar ; exit 0' ; run foo ; echo $?
      bar
      0
      => setenv foo 'echo bar ; exit -2' ; run foo ; echo $?
      bar
      0
      "
      
      As well as the followin behavior:
      
      "
      => setenv foo 'echo bar ; exit 3 ; echo fail'; run foo; echo $?
      bar
      3
      => setenv foo 'echo bar ; exit 1 ; echo fail'; run foo; echo $?
      bar
      1
      => setenv foo 'echo bar ; exit 0 ; echo fail'; run foo; echo $?
      bar
      0
      => setenv foo 'echo bar ; exit -1 ; echo fail'; run foo; echo $?
      bar
      0
      => setenv foo 'echo bar ; exit -2 ; echo fail'; run foo; echo $?
      bar
      0
      => setenv foo 'echo bar ; exit ; echo fail'; run foo; echo $?
      bar
      0
      "
      
      Fixes: 8c4e3b79 ("cmd: exit: Fix return value")
      Reviewed-by: default avatarHector Palacios <hector.palacios@digi.com>
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      721307eb
    • Patrick Delaunay's avatar
      fastboot: remove #ifdef CONFIG when it is possible · d0379900
      Patrick Delaunay authored and Tom Rini's avatar Tom Rini committed
      
      Much of the fastboot code predates the introduction of Kconfig and
      has quite a few #ifdefs in it which is unnecessary now that we can use
      IS_ENABLED() et al.
      
      Signed-off-by: Patrick Delaunay's avatarPatrick Delaunay <patrick.delaunay@foss.st.com>
      Reviewed-by: default avatarMattijs Korpershoek <mkorpershoek@baylibre.com>
      Reviewed-by: default avatarSean Anderson <sean.anderson@seco.com>
      Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> # on vim3l
      d0379900
    • Shenlin Liang's avatar
      cmd: change the return value when argc error · 5b333b93
      Shenlin Liang authored and Tom Rini's avatar Tom Rini committed
      
      When the number of parameters is wrong, the return value should be processed in
      the same way as other cmds, return CMD_RET_USAGE so that it can print the information.
      
      Signed-off-by: default avatarShenlin Liang <liangshenlin@eswincomputing.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      5b333b93
    • Patrick Delaunay's avatar
      cmd: mtdparts: add SYS_MTDPARTS_RUNTIME dependency on CONFIG_MTDIDS/MTDPARTS_DEFAULT · 6762c8dd
      Patrick Delaunay authored and Tom Rini's avatar Tom Rini committed
      
      The two configuration CONFIG_MTDIDS_DEFAULT and CONFIG_MTDPARTS_DEFAULT
      are not needed with mtd configuration CONFIG_SYS_MTDPARTS_RUNTIME which
      allows the MTDIDS and MTDPARTS to be configured at runtime.
      
      This patch has no defconfig impacts because CONFIG_SYS_MTDPARTS_RUNTIME
      is only used by two platforms (stm32mp and igep00x0) which don't define
      CONFIG_MTDIDS_DEFAULT or CONFIG_MTDPARTS_DEFAULT.
      
      This patch solves an UBI environment load issue for NAND boot for
      stm32mp15 platform. In mtd_uboot.c, when GD_FLG_ENV_READY is not set,
      env_get_f() return a EMPTY string, define in default_environment[]
      because CONFIG_MTDIDS_DEFAULT="" and CONFIG_MTDPARTS_DEFAULT="",
      but a NULL pointer is expected to allow call of board_mtdparts_default.
      Without mtdparts, the env partition [CONFIG_ENV_UBI_PART="UBI"] is not
      found in env/ubi.c [CONFIG_ENV_IS_IN_UBI].
      
      It is not a problem when env becomes ready, as these empty variables are
      removed form U-Boot environment in env_import() / himport_r().
      
      Fixes: a331017c ("Complete migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT, include in environment")
      Signed-off-by: Patrick Delaunay's avatarPatrick Delaunay <patrick.delaunay@foss.st.com>
      Reviewed-by: Patrice Chotard's avatarPatrice Chotard <patrice.chotard@foss.st.com>
      6762c8dd
  8. Jan 06, 2023
  9. Jan 04, 2023
  10. Dec 31, 2022
  11. Dec 29, 2022
  12. Dec 23, 2022
Loading