Skip to content
Snippets Groups Projects
  1. Nov 14, 2024
  2. Jul 15, 2024
  3. Jun 07, 2024
  4. May 20, 2024
  5. May 19, 2024
  6. May 07, 2024
  7. Mar 22, 2023
  8. Oct 26, 2022
  9. Oct 10, 2022
    • Alistair Delva's avatar
      examples: standalone: Fix build with LLVM toolchain · 43b7dcdf
      Alistair Delva authored and Tom Rini's avatar Tom Rini committed
      
      When building the standalone example with llvm, the link step fails:
      
      examples/standalone/libstubs.o: In function `dummy':
      include/_exports.h:10: undefined reference to `jt'
      include/_exports.h:11: undefined reference to `jt'
      include/_exports.h:12: undefined reference to `jt'
      include/_exports.h:13: undefined reference to `jt'
      include/_exports.h:14: undefined reference to `jt'
      examples/standalone/libstubs.o:include/_exports.h:15:
        more undefined references to `jt' follow
      
      Indeed, the standalone libstubs.o does use the jt symbol, but it was
      marked 'static' in stubs.c. It's strange how gcc builds are working.
      
      Signed-off-by: default avatarAlistair Delva <adelva@google.com>
      Cc: Rick Chen <rick@andestech.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Tom Rini <trini@konsulko.com>
      Cc: Nick Desaulniers <ndesaulniers@google.com>
      43b7dcdf
  10. Aug 12, 2022
  11. Apr 25, 2022
  12. Oct 21, 2021
  13. Aug 02, 2021
  14. Oct 08, 2020
  15. Jun 12, 2020
  16. May 19, 2020
  17. May 18, 2020
    • Simon Glass's avatar
      command: Remove the cmd_tbl_t typedef · 09140113
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      We should not use typedefs in U-Boot. They cannot be used as forward
      declarations which means that header files must include the full header to
      access them.
      
      Drop the typedef and rename the struct to remove the _s suffix which is
      now not useful.
      
      This requires quite a few header-file additions.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      09140113
    • Simon Glass's avatar
      common: Drop net.h from common header · 90526e9f
      Simon Glass authored and Tom Rini's avatar Tom Rini committed
      
      Move this header out of the common header. Network support is used in
      quite a few places but it still does not warrant blanket inclusion.
      
      Note that this net.h header itself has quite a lot in it. It could be
      split into the driver-mode support, functions, structures, checksumming,
      etc.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      90526e9f
  18. May 01, 2020
    • Marek Vasut's avatar
      net: smc911x: Add DM support · 8148693b
      Marek Vasut authored
      
      Add support for U-Boot DM and DT probing. Furthermore, build the
      SMC911x standalone EEPROM example only for the non-DM case, as it
      is not converted yet.
      
      Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      8148693b
    • Marek Vasut's avatar
      net: smc911x: Drop weak alias from 32bit accessors · f0d73f5c
      Marek Vasut authored
      
      These accessors are not overridden by any board, and even if they were,
      this is something which should be handled via DM now, so remove the
      weak alias option. Moreover, drop the inline keyword, as the compiler
      can decide better.
      
      Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      f0d73f5c
    • Marek Vasut's avatar
      net: smc911x: Inline all functions from header file · eb46efa3
      Marek Vasut authored
      
      Inline all the functions from the header file, as they are not used
      outside of the driver or the standalone EEPROM example.
      
      Note that this does introduce considerable amount of duplication in
      the standalone EEPROM example, however that one has to be rewritten
      anyway, roughly such that the SMC911x driver would expose DM EEPROM
      interface and the standalone example would use that.
      
      Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      eb46efa3
  19. 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
  20. Jan 24, 2020
  21. Jan 17, 2020
  22. Dec 02, 2019
  23. Aug 11, 2019
  24. Jan 15, 2019
  25. Nov 27, 2018
  26. Nov 18, 2018
  27. Jun 13, 2018
    • Alexey Brodkin's avatar
      lib: Add hexdump · f8c987f8
      Alexey Brodkin authored and Tom Rini's avatar Tom Rini committed
      
      Often during debugging session it's very interesting to see
      what data we were dealing with. For example what we write or read
      to/from memory or peripherals.
      
      This change introduces functions that allow to dump binary
      data with one simple function invocation like:
      ------------------->8----------------
      print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, buf, len);
      ------------------->8----------------
      
      which gives us the following:
      ------------------->8----------------
      00000000: f2 b7 c9 88 62 61 75 64 72 61 74 65 3d 31 31 35  ....baudrate=115
      00000010: 32 30 30 00 62 6f 6f 74 61 72 67 73 3d 63 6f 6e  200.bootargs=con
      00000020: 73 6f 6c 65 3d 74 74 79 53 33 2c 31 31 35 32 30  sole=ttyS3,11520
      00000030: 30 6e 38 00 62 6f 6f 74 64 65 6c 61 79 3d 33 00  0n8.bootdelay=3.
      00000040: 62 6f 6f 74 66 69 6c 65 3d 75 49 6d 61 67 65 00  bootfile=uImage.
      00000050: 66 64 74 63 6f 6e 74 72 6f 6c 61 64 64 72 3d 39  fdtcontroladdr=9
      00000060: 66 66 62 31 62 61 30 00 6c 6f 61 64 61 64 64 72  ffb1ba0.loadaddr
      00000070: 3d 30 78 38 32 30 30 30 30 30 30 00 73 74 64 65  =0x82000000.stde
      00000080: 72 72 3d 73 65 72 69 61 6c 30 40 65 30 30 32 32  rr=serial0@e0022
      00000090: 30 30 30 00 73 74 64 69 6e 3d 73 65 72 69 61 6c  000.stdin=serial
      000000a0: 30 40 65 30 30 32 32 30 30 30 00 73 74 64 6f 75  0@e0022000.stdou
      000000b0: 74 3d 73 65 72 69 61 6c 30 40 65 30 30 32 32 30  t=serial0@e00220
      000000c0: 30 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00  00..............
      ...
      ------------------->8----------------
      
      Source of hexdump.c was copied from Linux kernel v4.7-rc2.
      
      Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Mario Six <mario.six@gdsys.cc>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Tom Rini <trini@konsulko.com>
      Cc: Stefan Roese <sr@denx.de>
      f8c987f8
  28. May 07, 2018
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      83d290c5
Loading