Skip to content
Snippets Groups Projects
  1. Apr 27, 2020
  2. Apr 16, 2020
  3. Apr 10, 2020
    • Tom Rini's avatar
      kconfig / kbuild: Re-sync with Linux 4.19 · 587e4a42
      Tom Rini authored
      
      Align Kconfig and Kbuild logic to Linux 4.19 release with minimal impact
      on files outside of this scope.
      
      Our previous Kconfig sync was done by commit 5972ff07 ("kconfig /
      kbuild: re-sync with Linux 4.18").
      
      In this particular re-sync in order to keep clang support working a
      number of related changes needed to be pulled in that had been missed
      previously.  Not all of these changes we easily traceable and so have
      been omitted from the list below.
      
      The imported Linux commits are:
      [From prior to v4.18]
      9f3f1fd29976 kbuild: Add __cc-option macro
      d7f14c66c273 kbuild: Enable Large File Support for hostprogs
      6d79a7b424a5 kbuild: suppress warnings from 'getconf LFS_*'
      24403874316a Shared library support
      86a9df597cdd kbuild: fix linker feature test macros when cross compiling with Clang
      0294e6f4a000 kbuild: simplify ld-option implementation
      
      [From v4.18 to v4.19]
      96f14fe738b6 kbuild: Rename HOSTCFLAGS to KBUILD_HOSTCFLAGS
      10844aebf448 kbuild: Rename HOSTCXXFLAGS to KBUILD_HOSTCXXFLAGS
      b90a368000ab kbuild: Rename HOSTLDFLAGS to KBUILD_HOSTLDFLAGS
      8377bd2b9ee1 kbuild: Rename HOST_LOADLIBES to KBUILD_HOSTLDLIBS
      f92d19e0ef9b kbuild: Use HOST*FLAGS options from the command line
      4ab3b80159d4 kconfig: check for pkg-config on make {menu,n,g,x}config
      693359f7ac90 kconfig: rename SYMBOL_AUTO to SYMBOL_NO_WRITE
      f60b992e30ff kbuild: replace $(LDFLAGS) $(ldflags-y) with $(ld_flags)
      2fb9279f2c3e kbuild: change ld_flags to contain LDFLAGS_$(@F)
      c931d34ea085 arm64: build with baremetal linker target instead of Linux when available
      5accd7f3360e kconfig: handle format string before calling conf_message_callback()
      a2ff4040151a kconfig: rename file_write_dep and move it to confdata.c
      0608182ad542 kconfig: split out useful helpers in confdata.c
      adc18acf42a1 kconfig: remove unneeded directory generation from local*config
      79123b1389cc kconfig: create directories needed for syncconfig by itself
      16952b77d8b5 kconfig: make syncconfig update .config regardless of sym_change_count
      d6c6ab93e17f kbuild: remove deprecated host-progs variable
      56869d45e364 kconfig: fix the rule of mainmenu_stmt symbol
      c151272d1687 kconfig: remove unused sym_get_env_prop() function
      1880861226c1 kconfig: remove P_ENV property type
      e3fd9b5384f3 scripts/dtc: consolidate include path options in Makefile
      4bf6a9af0e91 kconfig: add build-only configurator targets
      f1575595d156 kconfig: error out when seeing recursive dependency
      5e8c5299d315 kconfig: report recursive dependency involving 'imply'
      f498926c47aa kconfig: improve the recursive dependency report
      98a4afbfafd2 kconfig: fix "Can't open ..." in parallel build
      9a9ddcf47831 kconfig: suppress "configuration written to .config" for syncconfig
      87a32e624037 kbuild: pass LDFLAGS to recordmcount.pl
      d503ac531a52 kbuild: rename LDFLAGS to KBUILD_LDFLAGS
      217c3e019675 disable stringop truncation warnings for now
      bc8d2e20a3eb kconfig: remove a spurious self-assignment
      fd65465b7016 kconfig: do not require pkg-config on make {menu,n}config
      5a4630aadb9a ftrace: Build with CPPFLAGS to get -Qunused-arguments
      
      Note that this adds new cleanup work to do in that we should adapt the
      shared library support we have to what is now upstream.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      Reviewed-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      587e4a42
  4. Mar 31, 2020
  5. Feb 20, 2020
  6. Feb 12, 2020
    • Alexey Brodkin's avatar
      ARC: Switch to generic accessors · 07906b3d
      Alexey Brodkin authored
      
      First of all U-Boot is not that performance oriented as real run-time
      software like OS or user bare-metal app so we may afford being not super
      fast as we only being executed once. That in return allows us to be more
      universal and support wider variety of devices.
      
      And looking forward that will significantly reduce maintenance and simplify
      support of newer architectures.
      
      And while at it we add quad-word accessors like readq(), writeq() etc.
      
      Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      07906b3d
    • Eugeniy Paltsev's avatar
      ARC: rework setting of ARC CPU specific compiler options · c77bbc22
      Eugeniy Paltsev authored
      
      It's a very rare if at all existing occasion when ARC CPU template
      is used as is w/o any changes - in the end it's a beauty and competitive
      advantage of ARC cores to be tailored for a particular use-case - and
      so it doesn't make a lot of sense to offer template-based "-mcpu" selection.
      Given for each and every platform we end-up adding quite a few more flags
      it's logical to move "-mcpu" selection to platform's definition as well
      which we exactly do here.
      
      Signed-off-by: default avatarEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
      Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      c77bbc22
    • Alexey Brodkin's avatar
      ARC: nsim_hs38: Add support of Virtio NET & BLK · 95f7103f
      Alexey Brodkin authored
      
      Given now nsim_hs38 configuration is usable on QEMU and in QEMU
      we have Virtio working perfectly fine the next logical step
      is to add support of supported & known to work net & bkl to this
      config.
      
      Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      95f7103f
    • Alexey Brodkin's avatar
      ARC: nSIM: switch from ARC UART to DW UART · 9515e41d
      Alexey Brodkin authored
      
      Since v2019.06 DesingWare nSIM supports DesignWare UART simulation
      and so we may switch from pretty unusual ARC UART to much more standard
      DesignWare UART (which in case of U-Boot is just an ordinary 16650 UART).
      
      This among other things makes built dinaries compatible with our other
      platforms to name a few: FPGA-based HAPS boards, QEMU and even ZeBU.
      
      Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      9515e41d
  7. Jan 24, 2020
  8. Jan 17, 2020
  9. Dec 02, 2019
  10. Nov 01, 2019
  11. Oct 07, 2019
    • Eugeniy Paltsev's avatar
      NET: DW: fix regression for ARC boards · 2a723237
      Eugeniy Paltsev authored and Tom Rini's avatar Tom Rini committed
      
      The commit
      642b80d2 ("net: designware: drop compatible altr, socfpga-stmmac")
      breaks designware ethernet for all ARC boards. It removes
      "altr, socfpga-stmmac" compatible from "drivers/net/designware.c"
      without changing compatible in the boards which use it.
      
      Fix that by adding "snps,arc-dwmac-3.70a" compatible string to
      "drivers/net/designware.c" and using it in ARC boards device tree.
      
      Signed-off-by: default avatarEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
      2a723237
  12. Sep 03, 2019
  13. May 18, 2019
    • Trevor Woerner's avatar
      CONFIG_SPL_SYS_[DI]CACHE_OFF: add · 10015025
      Trevor Woerner authored and Tom Rini's avatar Tom Rini committed
      
      While converting CONFIG_SYS_[DI]CACHE_OFF to Kconfig, there are instances
      where these configuration items are conditional on SPL. This commit adds SPL
      variants of these configuration items, uses CONFIG_IS_ENABLED(), and updates
      the configurations as required.
      
      Acked-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      Signed-off-by: default avatarTrevor Woerner <trevor@toganlabs.com>
      [trini: Make the default depend on the setting for full U-Boot, update
      more zynq hardware]
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      10015025
    • Trevor Woerner's avatar
      CONFIG_SYS_[DI]CACHE_OFF: convert to Kconfig · a0aba8a2
      Trevor Woerner authored and Tom Rini's avatar Tom Rini committed
      
      CONFIG_SYS_[DI]CACHE_OFF had been partially converted to Kconfig
      parameters; only for the ARC architecture. This patch turns these two
      parameters into Kconfig items everywhere else they are found.
      
      All of the include/configs/* and defconfig changes in this patch are
      for arm machines only. The Kconfig changes for arc, nds32, riscv,
      and xtensa have been included since these symbols are found in code
      under arch/{arc,nds32,riscv,xtensa}, however, no currently-defined
      include/configs/* or defconfigs for these architectures exist which
      include these symbols.
      
      These results have been confirmed with tools/moveconfig.py.
      
      Acked-by: default avatarAlexey Brodkin <abrodkin@snopsys.com>
      Signed-off-by: default avatarTrevor Woerner <trevor@toganlabs.com>
      [trini: Re-migrate for a few more boards]
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      a0aba8a2
  14. Apr 18, 2019
  15. Apr 12, 2019
  16. Jan 25, 2019
  17. Jan 19, 2019
    • Philipp Tomsich's avatar
      Kconfig: Migrate BOUNCE_BUFFER · 2acc24fc
      Philipp Tomsich authored and Tom Rini's avatar Tom Rini committed
      
      The bounce buffer is used by a few drivers (most of the MMC drivers)
      to overcome limitations in their respective DMA implementation.
      
      This moves the configuration to Kconfig and makes it user-selectable
      (even though it will be a required feature to make those drivers
      work): the expected usage is for drivers depending on this to 'select'
      it unconditionally from their respective Kconfig (see follow-up
      patches).
      
      This commit includes a full migration using moveconfig.py to ensure
      that each commit compiles.  To ensure bisectability we update
      dependencies of various drivers to now select BOUNCE_BUFFER when needed.
      
      [trini: Squash all patches to ensure bisectability]
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      Signed-off-by: Philipp Tomsich's avatarPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
      Reviewed-by: Otavio Salvador <otavio@ossystems.com.br> [dw_mmc portion]
      Reviewed-by: Fabio Estevam <festevam@gmail.com> [mxsmmc portion]
      Reviewed-by: Simon Glass <sjg@chromium.org> [tegra portion]
      2acc24fc
  18. Dec 03, 2018
    • Alexey Brodkin's avatar
      ARC: Improve identification of ARC cores · 85e529fd
      Alexey Brodkin authored
      
      1. Try to guess a ARC core template that was used
         i.e. not just name a core family but something more
         menaingful like "ARC HS38", "ARC EM11D" etc.
      
         We do it checking availability of the key differentiation
         features like:
          - Caches (we actually only check for L1 I$ fpr simplicity)
          - XY-memory
          - DSP extensions etc.
      
      2. Identify ARC subsystems
      
      3. Print core clock frequency
      
      Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      85e529fd
  19. Nov 01, 2018
  20. Oct 15, 2018
    • Alexey Brodkin's avatar
      ARC: Don't use COMMON section for global not-initialized variables · 6e63314f
      Alexey Brodkin authored
      
      By default GCC puts global non-initialized variables in COMMON section.
      And we used to ignore existence of COMMON section in our linker
      scripts though smart LD silently appended it right after .bss.
      
      And the problem here is variables from COMMON section even though
      require zeroing in run-time were not zeroed as they were placed
      right after __bss_end symbol.
      
      It was a pure luck we never faced serious problem due to this,
      but now it is fixed.
      
      Now as for some other architectures we'll just force GCC to put
      those global variables in normal .bss section.
      
      This solution is much nicer than adding COMMON section to each and
      every linker script.
      
      Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      6e63314f
  21. Oct 12, 2018
  22. Oct 05, 2018
  23. Sep 11, 2018
Loading