Skip to content
Snippets Groups Projects
  1. May 31, 2023
    • Rasmus Villemoes's avatar
      scripts/Makefile.lib: change spelling of $(srctree)/arch/$(ARCH)/dts in dtc_cpp_flags · 2f274059
      Rasmus Villemoes authored and Tom Rini's avatar Tom Rini committed
      Currently, all in-tree .dts files (apart from some under test/ and
      tools/), reside in arch/$ARCH/dts. However, in the linux kernel tree,
      dts files for arm64 boards, and probably in the not too distant
      future [1], arm boards as well, live in subdirectories of that.
      
      For private forks, using a vendor or project subdirectory is also more
      convenient to clearly separate private code from upstream - in the
      same way that code under board/ is also split and easy to maintain.
      
      In order to prepare for us to follow suit and do the splitting of the
      in-tree .dts files, and to make life a little easier for private forks
      that already place dts files not directly in arch/$ARCH/dts, change
      the $(srctree)/arch/$(ARCH)/dts path to instead refer to the directory of
      the .dts file being compiled. This should be a no-op for all existing
      cases.
      
      [1] https://lore.kernel.org/lkml/20220328000915.15041-1-ansuelsmth@gmail.com/
      
      
      
      Signed-off-by: default avatarRasmus Villemoes <rasmus.villemoes@prevas.dk>
      2f274059
  2. May 15, 2023
    • Rasmus Villemoes's avatar
      kbuild: Allow DTB overlays to built from .dtso named source files · a0f9a779
      Rasmus Villemoes authored and Tom Rini's avatar Tom Rini committed
      
      [Linux commit 363547d2191c]
      
      Currently DTB Overlays (.dtbo) are build from source files with the same
      extension (.dts) as the base DTs (.dtb). This may become confusing and
      even lead to wrong results. For example, a composite DTB (created from a
      base DTB and a set of overlays) might have the same name as one of the
      overlays that create it.
      
      Different files should be generated from differently named sources.
       .dtb  <-> .dts
       .dtbo <-> .dtso
      
      We do not remove the ability to compile DTBO files from .dts files here,
      only add a new rule allowing the .dtso file name. The current .dts named
      overlays can be renamed with time. After all have been renamed we can
      remove the other rule.
      
      [Import notes: Adapt to U-Boot by using the cmd_dtco function instead
      of cmd_dtc just like the current .dts -> .dtbo rule.]
      
      Signed-off-by: default avatarRasmus Villemoes <rasmus.villemoes@prevas.dk>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      a0f9a779
    • Rasmus Villemoes's avatar
      kbuild: add dtc as dependency on .dtb files · d50af663
      Rasmus Villemoes authored and Tom Rini's avatar Tom Rini committed
      
      [Linux commit b8fc5b2157b1]
      
      If dtc is rebuilt, we should rebuild .dtb files with the new dtc.
      
      [Import notes: Back then there was no .dtbo rule in Linux's
      Makefile.lib, but the current .dtbo rules in Linux also have the
      $(DTC) dependency, so also add it to our .dtbo rule.]
      
      Signed-off-by: default avatarRasmus Villemoes <rasmus.villemoes@prevas.dk>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      d50af663
    • Rasmus Villemoes's avatar
      scripts/Makefile.dts: tweak logic for deciding which dtbs to build · 6923f49d
      Rasmus Villemoes authored and Tom Rini's avatar Tom Rini committed
      
      The idea in 3609e1dc (dts: automatically build necessary .dtb
      files) was fine, but the implementation was suboptimal due to some
      misunderstandings on my part (and possibly defects in some defconfig
      files):
      
      - Sometimes DEFAULT_DEVICE_TREE is not included in OF_LIST or
        SPL_OF_LIST
      
      - SPL_OF_LIST is not always a subset of OF_LIST
      
      - While SPL_OF_LIST governs the list of dtbs relevant to SPL (i.e.,
        may be built into an
        SPL-with-bunch-of-dtbs-to-choose-between-at-runtime), those dtbs are
        not actually _built_ during the SPL build phase, i.e. when $(SPL_)
        would expand to SPL_. fdtgrep runs on the artifacts produced during
        the ordinary U-Boot build.
      
      Tweak the logic so that we simply add the union of all dtbs mentioned
      in either DEFAULT_DEVICE_TREE, OF_LIST and SPL_OF_LIST to dtb-y. That
      should, for real, ensure that we always build all the dtbs that is
      relevant to the current board, and should in turn enable us to
      massively simplify arch/*/dts/Makefile.
      
      Signed-off-by: default avatarRasmus Villemoes <rasmus.villemoes@prevas.dk>
      Tested-by: default avatarTom Rini <trini@konsulko.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      6923f49d
    • Martin Hundebøll's avatar
      scripts: dtc-version: support git version strings too · f0738152
      Martin Hundebøll authored and Tom Rini's avatar Tom Rini committed
      
      Building dtc from git causes the version number to start with a 'v'
      (e.g. v1.7.0). printf then fails to parse 'v1' as a decimal value, and
      prints '000700' instead of '010700'. Subsequently, the build fails,
      because '000700' is less than the required '010400' version.
      
      Signed-off-by: default avatarMartin Hundebøll <martin@geanix.com>
      f0738152
  3. Mar 25, 2023
  4. Mar 13, 2023
  5. Mar 08, 2023
  6. Mar 01, 2023
  7. Feb 14, 2023
  8. Jan 11, 2023
  9. Jan 07, 2023
  10. Jan 06, 2023
  11. Dec 23, 2022
  12. Dec 22, 2022
  13. Dec 14, 2022
    • André Przywara's avatar
      sunxi: remove unused CONFIG_MMC_SUNXI_SLOT · ed82586c
      André Przywara authored
      
      There is a CONFIG_MMC_SUNXI_SLOT definition in our sunxi_common.h config
      header, which was used to note the first MMC controller to initialise.
      The definition in that header was always set to 0, with no easy way of
      overriding this, and certainly none of the existing boards made any use
      of that (non-)feature.
      Remove that definition and replace it with a constant 0 in the only
      user, in board.c. It turns out that this is safe, as this is only used
      in the SPL, and the BROM also unconditionally initialises MMC0.
      This also removes the last legacy config symbol with SUN*I in it from
      the whitelist.
      
      Reviewed-by: default avatarSamuel Holland <samuel@sholland.org>
      Tested-by: default avatarSamuel Holland <samuel@sholland.org>
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      ed82586c
  14. Dec 12, 2022
  15. Dec 05, 2022
  16. Nov 22, 2022
  17. Nov 02, 2022
  18. Oct 30, 2022
  19. Oct 29, 2022
Loading