Skip to content
Snippets Groups Projects
  1. May 20, 2024
  2. May 06, 2024
  3. Apr 29, 2024
  4. Apr 22, 2024
  5. Apr 10, 2024
  6. Apr 08, 2024
  7. Apr 02, 2024
  8. Mar 26, 2024
  9. Mar 19, 2024
  10. Mar 13, 2024
    • Sam Protsenko's avatar
      Makefile: Improve generated_defconfig file handling · 56041aa5
      Sam Protsenko authored and Tom Rini's avatar Tom Rini committed
      
      Commit 2027e99e ("Makefile: Run defconfig files through the C
      preprocessor") adds `generated_defconfig' file, but fails to clean that
      up. It might be useful to have that file around after `make' is done,
      but it's better to clean that up on `make clean'. Also we probably want
      to hide it in `git status' list. This patch makes the described changes,
      and also adds `-P' parameter to the CPP command that produces the
      `generated_defconfig' to avoid generating linemarkers.
      
      Signed-off-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
      Fixes: 2027e99e ("Makefile: Run defconfig files through the C preprocessor")
      Acked-by: default avatarAndrew Davis <afd@ti.com>
      56041aa5
  11. Mar 11, 2024
  12. Mar 04, 2024
  13. Mar 02, 2024
  14. Mar 01, 2024
    • Sumit Garg's avatar
      Makefile: Allow upstream DT subtree to provide DT includes · 3a4e5944
      Sumit Garg authored and Tom Rini's avatar Tom Rini committed
      
      Allow platforms to reuse DT headers and dtsi includes directly form
      upstream DT subtree which will be frequently synced with Linux kernel.
      This will further allow us to drop corresponding DT includes copy from
      U-Boot tree.
      
      Also, since the DT includes from upstream DT subtree are done after DT
      includes from U-Boot tree, so it shouldn't cause any conflicts.
      
      Tested-by: Bryan Brattlof's avatarBryan Brattlof <bb@ti.com>
      Signed-off-by: default avatarSumit Garg <sumit.garg@linaro.org>
      3a4e5944
    • Sumit Garg's avatar
      Makefile: Add support for DT bindings schema checks · 4be3fe9d
      Sumit Garg authored and Tom Rini's avatar Tom Rini committed
      
      This adds the build infrastructure for checking DT binding schema
      documents and validating dtb files using the binding schema. Here we use
      devicetree-rebasing subtree to provide the DT bindings. Along with that
      adapt dts/upstream/Bindings/Makefile to align with old U-Boot Kbuild
      infrastructure.
      
      Dependency:
      -----------
      
      The DT schema project must be installed in order to validate the DT schema
      binding documents and validate DTS files using the DT schema. The DT schema
      project can be installed with pip::
      
          pip3 install dtschema
      
      Note that 'dtschema' installation requires 'swig' and Python development
      files installed first. On Debian/Ubuntu systems::
      
          apt install swig python3-dev
      
      Testing:
      --------
      
      Build dts files and check using DT binding schema:
      $ make dtbs_check
      
      Optionally, DT_SCHEMA_FILES can be passed in with a schema file(s) to
      use for validation. This makes it easier to find and fix errors
      generated by a specific schema.
      
      Note, at this point dtbs_check is an optional build target as there are
      many warnings generated due to custom DT properties used by many
      platforms in u-boot. It is expected with these checks that compliance
      with DT bindings to take place. Once that's done it can be added to CI
      builds to remain compliant with DT bindings.
      
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Tested-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Signed-off-by: default avatarSumit Garg <sumit.garg@linaro.org>
      4be3fe9d
  15. Feb 29, 2024
  16. Feb 27, 2024
  17. Feb 13, 2024
  18. Jan 30, 2024
  19. Jan 11, 2024
  20. Jan 08, 2024
  21. Jan 03, 2024
  22. Dec 18, 2023
  23. Dec 13, 2023
    • Neha Malcom Francis's avatar
      binman: etype: dm: Add entry type for TI DM · 23d2ef91
      Neha Malcom Francis authored and Tom Rini's avatar Tom Rini committed
      
      K3 devices introduces the concept of centralized power, resource and
      security management to System Firmware. This is to overcome challenges
      by the traditional approach that implements system control functions on
      each of the processing units.
      
      The software interface for System Firmware is split into TIFS and DM. DM
      (Device Manager) is responsible for resource and power management from
      secure and non-secure hosts. This additional binary is necessary for
      specific platforms' ROM boot images and is to be packaged into tispl.bin
      
      Add an entry for DM. The entry can be used for the packaging of
      tispl.bin by binman along with ATF and TEE.
      
      Signed-off-by: default avatarNeha Malcom Francis <n-francis@ti.com>
      Reviewed-by: default avatarAndrew Davis <afd@ti.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      23d2ef91
  24. Dec 04, 2023
  25. Nov 29, 2023
    • christophe leroy's avatar
      Fix stack-protector for powerpc · 4072572b
      christophe leroy authored and Tom Rini's avatar Tom Rini committed
      
      On powerpc, stack protector expects a function called
      __stack_chk_fail_local() instead of __stack_chk_fail()
      
      And some versions of GCC for powerpc default to TLS canary
      instead of global canary, so always force GCC to use global
      canary with -mstack-protector-guard=global
      
      Cc: Joel Peshkin <joel.peshkin@broadcom.com>
      Fixes: 4e9bce12 ("Add support for stack-protector")
      Signed-off-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
      4072572b
  26. Nov 20, 2023
  27. Nov 07, 2023
    • Tom Rini's avatar
      scsi: Forceably finish migration to DM_SCSI · b630f8b3
      Tom Rini authored
      
      The migration deadline for moving to DM_SCSI was v2023.04. A further
      reminder was sent out in August 2023 to the remaining platforms that had
      not migrated already, and that a few more over the line (or configs
      deleted).
      
      With this commit we:
      - Rename CONFIG_DM_SCSI to CONFIG_SCSI.
      - Remove all of the non-DM SCSI code. This includes removing other
        legacy symbols and code and removes some legacy non-DM AHCI code.
      - Some platforms that had previously been DM_SCSI=y && SCSI=n are now
        fully migrated to DM_SCSI as a few corner cases in the code assumed
        DM_SCSI=y meant SCSI=y.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      b630f8b3
    • Simon Glass's avatar
      cmd: Make most commands depend on CMDLINE · 88d9b261
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      If we disable CMDLINE then we should not ask about enabling the hush
      parser nor any of the commands that would be run on the command line as
      it is no longer available. Convert the CMDLINE option into a menuconfig
      and make every command referenced under cmd/Kconfig depend on it.
      
      This leaves as future work moving the commands that are not under the
      cmd/ hierarchy as future work.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      88d9b261
  28. Nov 06, 2023
  29. Oct 24, 2023
    • John Clark's avatar
      Makefile: remove misc include and simple-bin build artifacts on clean · 27537d46
      John Clark authored and Tom Rini's avatar Tom Rini committed
      
      make rock5b-rk3588_defconfig
      make
      make clean
      git status
      
      before
      ~~~~~~~
      On branch master
      Your branch is up to date with 'origin/master'.
      
      Untracked files:
        (use "git add <file>..." to include in what will be committed)
      	include/autoconf.mk
      	include/autoconf.mk.dep
      	include/config.h
      	mkimage-in-simple-bin-spi.mkimage-rockchip-tpl
      	mkimage-in-simple-bin-spi.mkimage-u-boot-spl
      	mkimage-in-simple-bin.mkimage-rockchip-tpl
      	mkimage-in-simple-bin.mkimage-u-boot-spl
      	simple-bin.fit.fit
      	simple-bin.fit.itb
      
      after
      ~~~~~~~
      On branch master
      Your branch is ahead of 'origin/master' by 1 commit.
        (use "git push" to publish your local commits)
      
      nothing to commit, working tree clean
      
      Signed-off-by: default avatarJohn Clark <inindev@gmail.com>
      27537d46
  30. Oct 23, 2023
  31. Oct 19, 2023
  32. Oct 11, 2023
    • Rasmus Villemoes's avatar
      Makefile: make u-boot-initial-env target depend explicitly on scripts_basic · 20535a33
      Rasmus Villemoes authored and Tom Rini's avatar Tom Rini committed
      
      We're seeing sporadic errors like
      
        ENVC    include/generated/env.txt
        HOSTCC  scripts/basic/fixdep
        ENVP    include/generated/env.in
        ENVT    include/generated/environment.h
        HOSTCC  tools/printinitialenv
      /bin/sh: 1: scripts/basic/fixdep: not found
      make[1]: *** [scripts/Makefile.host:95: tools/printinitialenv] Error 127
      make[1]: *** Deleting file 'tools/printinitialenv'
      make: *** [Makefile:2446: u-boot-initial-env] Error 2
      make: *** Waiting for unfinished jobs....
      
      where sometimes the "fixdep: not found" is instead "fixdep: Permission
      denied" and the Error 127 becomes 126.
      
      This smells like a race condition, and indeed it is: Currently,
      u-boot-initial-env is a prerequisite of the envtools target, which
      also lists scripts_basic as a prerequisite:
      
      envtools: u-boot-initial-env scripts_basic $(version_h) $(timestamp_h) tools/version.h
      	$(Q)$(MAKE) $(build)=tools/env
      
      However, the u-boot-initial-env rule involves building the
      printinitialenv helper, which in turn is built using an if_changed_dep
      rule. That means we must ensure scripts/basic/fixdep is built and
      ready before trying to build printinitialenv, i.e. the
      u-boot-initial-env rule itself must depend on the phony scripts_basic
      target.
      
      Signed-off-by: default avatarRasmus Villemoes <rasmus.villemoes@prevas.dk>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      20535a33
  33. Oct 09, 2023
    • Tom Rini's avatar
      Makefile: Allow for board directories to not have a Makefile · 521ca0fa
      Tom Rini authored
      
      It is entirely possible at this point to have platforms in U-Boot that
      do not have board-specific C code (just Kconfig or environment) and so
      make it optional to have to descend in to and then build in the board
      directory.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      521ca0fa
    • Andrew Davis's avatar
      Makefile: Force regeneration of env.txt · ce743f16
      Andrew Davis authored and Tom Rini's avatar Tom Rini committed
      
      If the source .env file changes to one that is also older than the
      generated env.txt file then the .env file is not regenerated. This
      means when switching board configs we do not regenerate the env.
      
      This can be tested with:
      
      $ make j721e_evm_a72_defconfig
      $ make # this may fail to complete but that is okay for this test
      $ make am64x_evm_a53_defconfig
      $ make
      $ vim include/generated/env.txt
      
      Note this is still the J721e env not the AM64 config as expected.
      
      As ENV_FILE is set based on configuration, regenerate anytime
      autoconf.h changes.
      
      Signed-off-by: default avatarAndrew Davis <afd@ti.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      ce743f16
  34. Oct 06, 2023
  35. Oct 02, 2023
Loading