1. 22 May, 2020 1 commit
  2. 20 May, 2020 1 commit
  3. 19 May, 2020 1 commit
  4. 15 May, 2020 2 commits
  5. 14 May, 2020 2 commits
  6. 10 May, 2020 1 commit
  7. 08 May, 2020 4 commits
  8. 07 May, 2020 1 commit
  9. 06 May, 2020 1 commit
  10. 01 May, 2020 3 commits
  11. 28 Apr, 2020 2 commits
    • Tom Rini's avatar
      configs: Resync with savedefconfig · 556fd590
      Tom Rini authored
      Rsync all defconfig files using moveconfig.py
      Signed-off-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
      556fd590
    • Masahiro Yamada's avatar
      kbuild: SPL/TPL: generate separate asm-offsets.h for SPL and TPL · f34d0ad8
      Masahiro Yamada authored
      Currently generic-asm-offsets.h and asm-offsets.h are generated based
      on U-Boot proper config options. The same asm-offsets headers are used
      for building U-Boot SPL/TPL, which causes potential offset mismatch if
      U-Boot proper has different config options from U-Boot SPL/TPL.
      
      This commit adds:
        spl/include/generated/(generic-)asm-offsets.h
        tpl/include/generated/(generic-)asm-offsets.h
      
      spl/include/generated/(generic-)asm-offsets.h is generated if
      CONFIG_SPL=y, and included when building SPL.
      
      tpl/include/generated/(generic-)asm-offsets.h is generated if
      CONFIG_TPL=y, and included when building TPL.
      
      They are created before Kbuild descends into SPL/TPL object directories
      and builds $(obj)/dts/dt-platdata.o because $(obj)/dts/dt-platdata.c
      includes a bunch of headers.
      
      Prepend -I$(obj)/include to $(UBOOTINCLUDE) so (generic-)asm-offsets.h
      is searched in {spl,tpl}/include/generated/.
      Requested-by: Bin Meng's avatarBin Meng <bmeng.cn@gmail.com>
      Signed-off-by: Masahiro Yamada's avatarMasahiro Yamada <masahiroy@kernel.org>
      Tested-by: Bin Meng's avatarBin Meng <bmeng.cn@gmail.com>
      f34d0ad8
  12. 24 Apr, 2020 6 commits
  13. 17 Apr, 2020 1 commit
  14. 16 Apr, 2020 1 commit
  15. 10 Apr, 2020 1 commit
    • 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: Tom Rini's avatarTom Rini <trini@konsulko.com>
      Reviewed-by: Masahiro Yamada's avatarMasahiro Yamada <masahiroy@kernel.org>
      587e4a42
  16. 16 Mar, 2020 8 commits
    • Tom Rini's avatar
      kconfig / kbuild: re-sync with Linux 4.18 · 5972ff07
      Tom Rini authored
      Align Kconfig and Kbuild logic to Linux 4.18 release with minimal impact
      on files outside of this scope.
      
      Our previous Kconfig sync was done by commit e91610da ("kconfig:
      re-sync with Linux 4.17-rc4").
      
      A very small number of changes upstream since our sync with v4.17-rc4
      that exist in the v4.18 release have already been applied here and have
      been omitted from the list in this commit (and are readily available in
      our own git history).
      
      The imported Linux commits are:
      [From prior to v4.17-rc4]
      39a33ff80a25 kbuild: remove cc-option-align
      db547ef19064 Kbuild: don't add obj tree in additional includes
      b999596b963a Kbuild: don't add ../../ to include path
      
      [From v4.17 to v4.18]
      b3aa58d2e85d fixdep: suppress consecutive / from file paths in dependency list files
      74656b682902 kbuild: disable new dtc graph and unit-address warnings
      74d931716151 genksyms: remove symbol prefix support
      e6ecfb45072c kbuild: do not display CHK for filechk
      0b669a5076fd kconfig: refactor Qt package checks for building qconf
      b464ef583dc7 kconfig: refactor GTK+ package checks for building gconf
      1c5af5cf9308 kconfig: refactor ncurses package checks for building mconf and nconf
      694c49a7c01c kconfig: drop localization support
      96f60dfa5819 trace: Use -mcount-record for dynamic ftrace
      bb222ceeb327 kconfig: remove string expansion in file_lookup()
      96d8e48da55a kconfig: remove string expansion for mainmenu after yyparse()
      5b31a9746756 kconfig: remove sym_expand_string_value()
      137c0118a900 kconfig: make default prompt of mainmenu less specific
      e298f3b49def kconfig: add built-in function support
      2fd5b09c201e kconfig: add 'shell' built-in function
      9de071536c87 kconfig: begin PARAM state only when seeing a command keyword
      9ced3bddec08 kconfig: support user-defined function and recursively expanded variable
      1175c02506ff kconfig: support simply expanded variable
      ed2a22f277c6 kconfig: support append assignment operator
      82bc8bd82e5c kconfig: expand lefthand side of assignment statement
      1d6272e6fe43 kconfig: add 'info', 'warning-if', and 'error-if' built-in functions
      a702a6176e2f kconfig: add 'filename' and 'lineno' built-in variables
      915f64901eb3 kconfig: error out if a recursive variable references itself
      2bece88f89fa kconfig: test: add Kconfig macro language tests
      21c54b774744 kconfig: show compiler version text in the top comment
      59f7b5847b0c kbuild: $(CHECK) doesnt need NOSTDINC_FLAGS twice
      145167650b96 kbuild: add endianness flag to CHEKCFLAGS
      1f2f01b122d7 kbuild: add machine size to CHECKFLAGS
      d6a0c8a1326b kconfig: Add testconfig into make help output
      bb6d83dde191 kbuild: Move last word of nconfig help to the previous line
      8593080c0fcf kconfig: fix localmodconfig
      ed7d40bc67b8 tracing: Fix SKIP_STACK_VALIDATION=1 build due to bad merge with -mrecord-mcount
      b2d00d7c61c8 kconfig: fix line numbers for if-entries in menu tree
      ecd53ac2f2c6 kconfig: handle P_SYMBOL in print_symbol()
      73d1c580f92b kconfig: loop boundary condition fix
      48f6e3cf5bc6 kbuild: do not drop -I without parameter
      bd412d81b7ea kbuild: .PHONY is not a variable, but PHONY is
      6916162c7308 kbuild: remove duplicated comments about PHONY
      
      Cc: Masahiro Yamada <masahiroy@kernel.org>
      Signed-off-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
      Reviewed-by: Masahiro Yamada's avatarMasahiro Yamada <masahiroy@kernel.org>
      5972ff07
    • Rob Herring's avatar
      scripts/dtc: Update to upstream version v1.4.6-21-g84e414b0b5bc · 6e916dfd
      Rob Herring authored
      This adds the following commits from upstream:
      
      84e414b0b5bc tests: Add a test case for the omit-if-no-ref keyword
      4038fd90056e dtc: add ability to make nodes conditional on them being referenced
      e1f139ea4900 checks: drop warning for missing PCI bridge bus-range
      f4eba68d89ee checks: Print duplicate node name instead of parent name
      46df1fb1b211 .travis.yml: Run valgrind checks via Travis
      14a3002a1aee tests: Update valgrind suppressions for sw_tree1
      02c5fe9debc0 tests: Remove valgrind error from tests/get_path
      df536831d02c checks: add graph binding checks
      2347c96edcbe checks: add a check for duplicate unit-addresses of child nodes
      8f1b35f88395 Correct overlay syntactic sugar for generating target-path fragments
      afbddcd418fb Suppress warnings on overlay fragments
      119e27300359 Improve tests for dtc overlay generation
      
      [From Linux Kernel commit 50aafd60898a8b3edf2f60e014a8288da3b2e5e3]
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      
      [For applying to U-Boot]
      Signed-off-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
      6e916dfd
    • Masahiro Yamada's avatar
      kbuild: remove unused dtc-version.sh script · ddb87a0b
      Masahiro Yamada authored
      This is U-Boot own code, and no longer used since commit 36dd5f1b
      ("dtc: Switch to building and using our own dtc unless provided").
      
      Prior to that commit, U-Boot relied on an external dtc, so this script
      was used to check the dtc version.
      
      Now U-Boot bundles our own dtc in script/dtc/dtc like Linux kernel.
      
      Users are still allowed to pass DTC= option from the command line,
      but they are supposed to choose correct version of dtc in this case.
      So, we do not check the dtc version any more.
      Signed-off-by: Masahiro Yamada's avatarMasahiro Yamada <masahiroy@kernel.org>
      ddb87a0b
    • Tom Rini's avatar
      scripts/Makefile.lib: Re-add -Wno-simple_bus_reg to DTC_FLAGS · 7a212e56
      Tom Rini authored
      This exists in Linux Kernel with commit 70523a3ce5ff so put it in the
      list of DTC_FLAGS that mirror Linux as we will catch up there.
      Signed-off-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
      Reviewed-by: Masahiro Yamada's avatarMasahiro Yamada <masahiroy@kernel.org>
      7a212e56
    • Tom Rini's avatar
      scripts/Makefile.lib: Restore PCI related warnings to DTC_FLAGS · aacf264b
      Tom Rini authored
      While we are working on correcting usage related to the pci_bridge and
      pci_device_bus_num warnings, disable these flags for now.
      Signed-off-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
      Reviewed-by: Masahiro Yamada's avatarMasahiro Yamada <masahiroy@kernel.org>
      aacf264b
    • Tom Rini's avatar
      kbuild: Re-sync DTC flag logic with v4.17 · e0d1a89a
      Tom Rini authored
      The way that we have been handling additional DTC warning flags hasn't
      matched the way the Linux Kernel does.  Resync this logic with v4.17.
      Signed-off-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
      e0d1a89a
    • Tom Rini's avatar
      kbuild: fixdep: Resync this with v4.17 · 67f2ee86
      Tom Rini authored
      The previous kbuild resync of e91610da ("kconfig: re-sync with Linux
      4.17-rc4") accidentally did not sync the fixdep program.  This commit
      brings fixdep in line with the rest of that previous resync.
      
      This includes all of the following Linux kernel commits:
      fbfa9be9904e kbuild: move include/config/ksym/* to include/ksym/*
      5b8ad96d1a44 fixdep: remove some false CONFIG_ matches
      14a596a7e6fd fixdep: remove stale references to uml-config.h
      ab9ce9feed36 fixdep: use existing helper to check modular CONFIG options
      87b95a81357d fixdep: refactor parse_dep_file()
      5d1ef76f5a22 fixdep: move global variables to local variables of main()
      ccfe78873c22 fixdep: remove unneeded memcpy() in parse_dep_file()
      4003fd80cba9 fixdep: factor out common code for reading files
      01b5cbe7012f fixdep: use malloc() and read() to load dep_file to buffer
      41f92cffba19 fixdep: remove unnecessary <arpa/inet.h> inclusion
      7c2ec43a2154 fixdep: exit with error code in error branches of do_config_file()
      4e433fc4d1a9 fixdep: trivial: typo fix and correction
      dee81e988674 fixdep: faster CONFIG_ search
      c1a95fda2a40 kbuild: add fine grained build dependencies for exported symbols
      d8329e35cc08 fixdep: accept extra dependencies on stdin
      4c835b57b8de fixdep: constify strrcmp arguments
      
      Of note is that when applying dee81e988674 above our logic in that area
      required some careful consideration to continue to apply.
      
      [Fold in bugfix to allow us to include 638e69cf2230 from upstream]
      Signed-off-by: Masahiro Yamada's avatarMasahiro Yamada <masahiroy@kernel.org>
      
      [Merge everything to U-Boot, rework dee81e988674]
      Signed-off-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
      Reviewed-by: Masahiro Yamada's avatarMasahiro Yamada <masahiroy@kernel.org>
      67f2ee86
    • Masahiro Yamada's avatar
      fixdep: fix U-Boot own code to handle only valid symbol characters · 8a266e58
      Masahiro Yamada authored
      Currently, fixdep skips parsing include/linux/kconfig.h, but if it
      parsed it, it would translate the following code in kconfig.h
      
        config_enabled(CONFIG_VAL(option##_MODULE)
      
      into:
      
        $(wildcard include/config/option##/module.h)
      
      When Kbuild includes .*.cmd, it would emit the following error:
      
        *** unterminated call to function 'wildcard': missing ')'.  Stop.
      
      This issue prevents us from importing the upstream Linux commit
      638e69cf2230 ("fixdep: do not ignore kconfig.h").
      
      Fix this by handling only alphanumerical characters and underscores.
      This makes sense because they match to the valid character sets in
      Kconfig symbols.
      
      As a side-note, you can reproduce this issue only on GNU Make <= 4.2.1
      
      For GNU Make <= 4.2.1, the '#' always means the start of a comment.
      Hence, GNU Make thinks the closing ')' is missing.
      
      The following commit in GNU Make changed how it handles '#' in
      function invocations. So, this does not happen for GNU Make 4.3
      
      | commit c6966b323811c37acedff05b576b907b06aea5f4
      | Author: Paul Smith <psmith@gnu.org>
      | Date:   Thu Dec 22 18:47:26 2016 -0500
      |
      |    [SV 20513] Un-escaped # are not comments in function invocations
      Signed-off-by: Masahiro Yamada's avatarMasahiro Yamada <masahiroy@kernel.org>
      Reported-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
      8a266e58
  17. 28 Feb, 2020 1 commit
  18. 13 Feb, 2020 1 commit
  19. 06 Feb, 2020 1 commit
    • Maxime Ripard's avatar
      dtc: add ability to make nodes conditional on them being referenced · 5ed2dc56
      Maxime Ripard authored
      This is needed when importing mainline DTs into U-Boot, as some started
      using this /omit-if-no-ref/ tag, so won't compile with U-Boot's current
      dtc copy. This is just a cherry-pick of the patch introducing this
      feature.
      Original commit message from Maxime:
      ------------------
      A number of platforms have a need to reduce the number of DT nodes,
      mostly because of two similar constraints: the size of the DT blob, and
      the time it takes to parse it.
      
      As the DT is used in more and more SoCs, and by more projects, some
      constraints start to appear in bootloaders running from SRAM with an
      order of magnitude of 10kB. A typical DT is in the same order of
      magnitude, so any effort to reduce the blob size is welcome in such an
      environment.
      
      Some platforms also want to reach very fast boot time, and the time it
      takes to parse a typical DT starts to be noticeable.
      
      Both of these issues can be mitigated by reducing the number of nodes in
      the DT. The biggest provider of nodes is usually the pin controller and
      its subnodes, usually one for each valid pin configuration in a given
      SoC.
      
      Obviously, a single, fixed, set of these nodes will be used by a given
      board, so we can introduce a node property that will tell the DT
      compiler to drop the nodes when they are not referenced in the tree, and
      as such wouldn't be useful in the targetted system.
      Signed-off-by: Maxime Ripard's avatarMaxime Ripard <maxime.ripard@bootlin.com>
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      5ed2dc56
  20. 03 Feb, 2020 1 commit
    • Marek Vasut's avatar
      watchdog: designware: Migrate CONFIG_DESIGNWARE_WATCHDOG to Kconfig · 8941f841
      Marek Vasut authored
      Migrate CONFIG_DESIGNWARE_WATCHDOG to Kconfig and update the headers
      accordingly, no functional change. The S10 enables the WDT only in
      SPL, but does not enable it in U-Boot itself, hence disable it in
      the config again.
      Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dalon Westergreen <dwesterg@gmail.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Jagan Teki <jagan@amarulasolutions.com>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      Cc: Philipp Tomisch <philipp.tomisch@theobroma-systems.com>
      Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
      Cc: Tien Fong Chee <tien.fong.chee@intel.com>
      8941f841