Skip to content
Snippets Groups Projects
  1. Apr 06, 2020
  2. Mar 09, 2020
  3. Jan 30, 2020
  4. Jan 24, 2020
  5. Jan 22, 2020
    • Rasmus Villemoes's avatar
      env: another attempt at fixing SPL build failures · c8221680
      Rasmus Villemoes authored and Tom Rini's avatar Tom Rini committed
      
      I'm also seeing the build failure that commit
      
      7d477654 env: solve compilation error in SPL
      
      tried to fix, namely that the reference to env_flags_validate from
      env_htab cannot be satisfied when flags.o is not built in. However,
      that commit got reverted by
      
      d90fc9c3 Revert "env: solve compilation error in SPL"
      
      Necessary, but not sufficient conditions to see this are
      
      CONFIG_SPL=y (obviously)
      CONFIG_SPL_ENV_SUPPORT=n (so flags.o does not get compiled)
      CONFIG_SPL_LIBCOMMON_SUPPORT=y (so env/built-in.o is part of the SPL link)
      
      Now, these are satisfied for e.g. imx6q_logic_defconfig. But that
      builds just fine, and spl/u-boot-spl.map lists .data.env_htab among
      the discarded (garbage collected) sections. Yet, on our
      mpc8309-derived board, we do see the build failure, so perhaps the
      linker works a bit differently on ppc than on ARM, or there's yet some
      other configuration option needed to observe the break.
      
      This is another attempt at solving it, which also cleans up
      env/Makefile a bit: Introduce a def_bool y symbol CONFIG_ENV_SUPPORT
      which complements CONFIG_(SPL/TPL)_SUPPORT. Then use
      CONFIG_$(SPL_TPL_)ENV_SUPPORT to decide whether to include the five
      basic env/*.o files. For attr.o, flags.o and callback.o, this
      shouldn't change anything. Also, common.o and env.o still get
      unconditionally built for U-boot proper. But for TPL/SPL, those two
      are only included if CONFIG_(SPL/TPL)_SUPPORT is set.
      
      Having that symbol should also allow simplifying conditionals such as
      
      #if !defined(CONFIG_SPL_BUILD) || CONFIG_IS_ENABLED(ENV_SUPPORT)
      
      found in drivers/reset/reset-socfpga.c to just
      CONFIG_IS_ENABLED(ENV_SUPPORT).
      
      Signed-off-by: default avatarRasmus Villemoes <rasmus.villemoes@prevas.dk>
      c8221680
  6. Jan 17, 2020
  7. Dec 04, 2019
  8. Dec 02, 2019
  9. Nov 20, 2019
    • Tom Rini's avatar
      env: Finish migration of common ENV options · a09fea1d
      Tom Rini authored
      
      - In ARMv8 NXP Layerscape platforms we also need to make use of
        CONFIG_SYS_RELOC_GD_ENV_ADDR now, do so.
      - On ENV_IS_IN_REMOTE, CONFIG_ENV_OFFSET is never used, drop the define
        to 0.
      - Add Kconfig entry for ENV_ADDR.
      - Make ENV_ADDR / ENV_OFFSET depend on the env locations that use it.
      - Add ENV_xxx_REDUND options that depend on their primary option and
        SYS_REDUNDAND_ENVIRONMENT
      - On a number of PowerPC platforms, use SPL_ENV_ADDR not CONFIG_ENV_ADDR
        for the pre-main-U-Boot environment location.
      - On ENV_IS_IN_SPI_FLASH, check not for CONFIG_ENV_ADDR being set but
        rather it being non-zero, as it will now be zero by default.
      - Rework the env_offset absolute in env/embedded.o to not use
        CONFIG_ENV_OFFSET as it was the only use of ENV_OFFSET within
        ENV_IS_IN_FLASH.
      - Migrate all platforms.
      
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Patrick Delaunay <patrick.delaunay@st.com>
      Cc: uboot-stm32@st-md-mailman.stormreply.com
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      Acked-by: Joe Hershberger's avatarJoe Hershberger <joe.hershberger@ni.com>
      Reviewed-by: default avatarSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
      a09fea1d
    • Tom Rini's avatar
      env: Remove useless CONFIG_ENV_SIZE_REDUND and fix ENV_IS_REDUND check · a8992e78
      Tom Rini authored
      
      We have CONFIG_ENV_SIZE_IS_REDUND but don't really use it.  We have one
      board where we can simply multiple CONFIG_ENV_SIZE by two for the same
      result.  The other place where we could but were not previously using
      this is for where env_internal.h checks for if we should set
      ENV_IS_EMBEDDED.  This seems like the most likely use, historically, of
      the variable, but it was not used.  Add logic to check for this now.
      
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Acked-by: Joe Hershberger's avatarJoe Hershberger <joe.hershberger@ni.com>
      a8992e78
    • Tom Rini's avatar
      env: Add CONFIG_SYS_RELOC_GD_ENV_ADDR symbol · 8d8ee47e
      Tom Rini authored
      
      Today in initr_reloc_global_data() we use some non-obvious tests to
      determine if we need to relocate the env_addr within gd or not.  In
      order to facilitate migration of other symbols to Kconfig we need to
      introduce a new symbol for this particular use case.
      
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      8d8ee47e
  10. Nov 12, 2019
  11. Oct 16, 2019
    • Philippe Reynes's avatar
      ubi: env: fix redundand management · 61162341
      Philippe Reynes authored and Heiko Schocher's avatar Heiko Schocher committed
      
      We check (with a #if defined()) the config ENV_UBI_VOLUME_REDUND
      to know if there is a redundant env. But this config is a string
      and is always defined with env is in ubi, so we always consider
      that a redundand env is used.
      
      To fix this issue, I've added a hidden flag ENV_UBI_IS_VOLUME_REDUND
      that is true when ENV_UBI_VOLUME_REDUND is not "". Then, I check
      this flag in the code, instead of the string ENV_UBI_VOLUME_REDUND.
      
      hs: fixed typo s/condider/consider
      
      Signed-off-by: default avatarPhilippe Reynes <philippe.reynes@softathome.com>
      Reviewed-by: default avatarHeiko Schocher <hs@denx.de>
      61162341
  12. Oct 08, 2019
  13. Oct 04, 2019
  14. Aug 11, 2019
  15. Jul 18, 2019
  16. Jul 12, 2019
  17. Jul 09, 2019
  18. Jun 13, 2019
  19. Jun 06, 2019
Loading