Skip to content
Snippets Groups Projects
  1. Mar 27, 2023
  2. Feb 17, 2023
  3. Feb 06, 2023
  4. Nov 10, 2022
    • Rob Herring's avatar
      scripts/dtc: Update to upstream version v1.6.1-63-g55778a03df61 · ea3723a5
      Rob Herring authored
      It's been a while since the last sync and Lee needs commit 73590342fc85
      ("libfdt: prevent integer overflow in fdt_next_tag").
      
      This adds the following commits from upstream:
      
      55778a03df61 libfdt: tests: add get_next_tag_invalid_prop_len
      73590342fc85 libfdt: prevent integer overflow in fdt_next_tag
      035fb90d5375 libfdt: add fdt_get_property_by_offset_w helper
      98a07006c48d Makefile: fix infinite recursion by dropping non-existent `%.output`
      a036cc7b0c10 Makefile: limit make re-execution to avoid infinite spin
      c6e92108bcd9 libdtc: remove duplicate judgments
      e37c25677dc9 Don't generate erroneous fixups from reference to path
      50454658f2b5 libfdt: Don't mask fdt_get_name() returned error
      e64a204196c9 manual.txt: Follow README.md and remove Jon
      f508c83fe6f0 Update README in MANIFEST.in and setup.py to README.md
      c2ccf8a77dd2 Add description of Signed-off-by lines
      90b9d9de42ca Split out information for contributors to CONTRIBUTING.md
      0ee1d479b23a Remove Jon Loeliger from maintainers list
      b33a73c62c1c Convert README to README.md
      7ad60734b1c1 Allow static building with meson
      fd9b8c96c780 Allow static building with make
      fda71da26e7f libfdt: Handle failed get_name() on BEGIN_NODE
      c7c7f17a83d5 Fix test script to run also on dash shell
      01f23ffe1679 Add missing relref_merge test to meson test list
      ed310803ea89 pylibfdt: add FdtRo.get_path()
      c001fc01a43e pylibfdt: fix swig build in install
      26c54f840d23 tests: add test cases for label-relative path references
      ec7986e682cf dtc: introduce label relative path references
      651410e54cb9 util: introduce xstrndup helper
      4048aed12b81 setup.py: fix out of tree build
      ff5afb96d0c0 Handle integer overflow in check_property_phandle_args()
      ca7294434309 README: Explain how to add a new API function
      c0c2e115f82e Fix a UB when fdt_get_string return null
      cd5f69cbc0d4 tests: setprop_inplace: use xstrdup instead of unchecked strdup
      a04f69025003 pylibfdt: add Property.as_*int*_array()
      83102717d7c4 pylibfdt: add Property.as_stringlist()
      d152126bb029 Fix Python crash on getprop deallocation
      17739b7ef510 Support 'r' format for printing raw bytes with fdtget
      45f3d1a095dd libfdt: overlay: make overlay_get_target() public
      c19a4bafa514 libfdt: fix an incorrect integer promotion
      1cc41b1c969f pylibfdt: Add packaging metadata
      db72398cd437 README: Update pylibfdt install instructions
      383e148b70a4 pylibfdt: fix with Python 3.10
      23b56cb7e189 pylibfdt: Move setup.py to the top level
      69a760747d8d pylibfdt: Split setup.py author name and email
      0b106a77dbdc pylibfdt: Use setuptools_scm for the version
      c691776ddb26 pylibfdt: Use setuptools instead of distutils
      5216f3f1bbb7 libfdt: Add static lib to meson build
      4eda2590f481 CI: Cirrus: bump used FreeBSD from 12.1 to 13.0
      
      Link: https://lore.kernel.org/r/20221101181427.1808703-1-robh@kernel.org/
      
      
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      ea3723a5
  5. Sep 27, 2022
    • Rob Herring's avatar
      dt: Add a check for undocumented compatible strings in kernel · b6acf807
      Rob Herring authored
      Add a make target, dt_compatible_check, to extract compatible strings
      from kernel sources and check if they are documented by a schema.
      At least version v2022.08 of dtschema with dt-check-compatible is
      required.
      
      This check can also be run manually on specific files or directories:
      
      scripts/dtc/dt-extract-compatibles drivers/clk/ | \
        xargs dt-check-compatible -v -s Documentation/devicetree/bindings/processed-schema.json
      
      Currently, there are about 3800 undocumented compatible strings. Most of
      these are cases where the binding is not yet converted (given there
      are 1900 .txt binding files remaining).
      
      Link: https://lore.kernel.org/all/20220916012510.2718170-1-robh@kernel.org/
      
      
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      b6acf807
  6. May 20, 2022
  7. Mar 11, 2022
    • Rob Herring's avatar
      dt-bindings: kbuild: Use DTB files for validation · ef8795f3
      Rob Herring authored
      
      Switch the DT validation to use DTB files directly instead of a DTS to
      YAML conversion.
      
      The original motivation for supporting validation on DTB files was to
      enable running validation on a running system (e.g. 'dt-validate
      /sys/firmware/fdt') or other cases where the original source DTS is not
      available.
      
      The YAML format was not without issues. Using DTBs with the schema type
      information solves some of those problems. The YAML format relies on the
      DTS source level information including bracketing of properties, size
      directives, and phandle tags all of which are lost in a DTB file. While
      standardizing the bracketing is a good thing, it does cause a lot of
      extra warnings and churn to fix them.
      
      Another issue has been signed types are not validated correctly as sign
      information is not propagated to YAML. Using the schema type information
      allows for proper handling of signed types. YAML also can't represent
      the full range of 64-bit integers as numbers are stored as floats by
      most/all parsers.
      
      The DTB validation works by decoding property values using the type
      information in the schemas themselves. The main corner case this does
      not work for is matrix types where neither dimension is fixed. For
      now, checking the dimensions in these cases are skipped.
      
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Tested-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Link: https://lore.kernel.org/r/20220310160513.1708182-3-robh@kernel.org
      ef8795f3
  8. Feb 28, 2022
    • Frank Rowand's avatar
      of: unittest: add program to process EXPECT messages · 8e4296c2
      Frank Rowand authored
      
      If unittest detects a problem it will print a warning or error message
      to the console.  Unittest also triggers warning and error messages from
      other kernel code as a result of intentionally bad unittest data.  This
      has led to confusion as to whether the triggered messages are an
      expected result of a test or whether there is a real problem that is
      independent of unittest.
      
      EXPECT messages were added to unittest to report each triggered message
      that is expected, resulting in verbose console output.
      
      scripts/dtc/of_unittest is a new program that processes the EXPECT
      messages to determine whether the triggered messages occurred and
      also removes the excess verbosity of the EXPECT messages.  More
      information is available from 'scripts/dtc/of_unittest_expect --help'.
      
      Signed-off-by: default avatarFrank Rowand <frank.rowand@sony.com>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Link: https://lore.kernel.org/r/20220201181413.2719955-1-frowand.list@gmail.com
      8e4296c2
  9. Feb 17, 2022
  10. Feb 04, 2022
  11. Jan 17, 2022
  12. Oct 29, 2021
    • Rob Herring's avatar
      scripts/dtc: Update to upstream version v1.6.1-19-g0a3a9d3449c8 · a77725a9
      Rob Herring authored
      
      This adds the following commits from upstream:
      
      0a3a9d3449c8 checks: Add an interrupt-map check
      8fd24744e361 checks: Ensure '#interrupt-cells' only exists in interrupt providers
      d8d1a9a77863 checks: Drop interrupt provider '#address-cells' check
      52a16fd72824 checks: Make interrupt_provider check dependent on interrupts_extended_is_cell
      37fd700685da treesource: Maintain phandle label/path on output
      e33ce1d6a8c7 flattree: Use '\n', not ';' to separate asm pseudo-ops
      d24cc189dca6 asm: Use assembler macros instead of cpp macros
      ff3a30c115ad asm: Use .asciz and .ascii instead of .string
      5eb5927d81ee fdtdump: fix -Werror=int-to-pointer-cast
      0869f8269161 libfdt: Add ALIGNMENT error string
      69595a167f06 checks: Fix bus-range check
      72d09e2682a4 Makefile: add -Wsign-compare to warning options
      b587787ef388 checks: Fix signedness comparisons warnings
      69bed6c2418f dtc: Wrap phandle validity check
      910221185560 fdtget: Fix signedness comparisons warnings
      d966f08fcd21 tests: Fix signedness comparisons warnings
      ecfb438c07fa dtc: Fix signedness comparisons warnings: pointer diff
      5bec74a6d135 dtc: Fix signedness comparisons warnings: reservednum
      24e7f511fd4a fdtdump: Fix signedness comparisons warnings
      b6910bec1161 Bump version to v1.6.1
      21d61d18f968 Fix CID 1461557
      4c2ef8f4d14c checks: Introduce is_multiple_of()
      e59ca36fb70e Make handling of cpp line information more tolerant
      0c3fd9b6aceb checks: Drop interrupt_cells_is_cell check
      6b3081abc4ac checks: Add check_is_cell() for all phandle+arg properties
      2dffc192a77f yamltree: Remove marker ordering dependency
      61e513439e40 pylibfdt: Rework "avoid unused variable warning" lines
      c8bddd106095 tests: add a positive gpio test case
      ad4abfadb687 checks: replace strstr and strrchr with strends
      09c6a6e88718 dtc.h: add strends for suffix matching
      9bb9b8d0b4a0 checks: tigthen up nr-gpios prop exception
      b07b62ee3342 libfdt: Add FDT alignment check to fdt_check_header()
      a2def5479950 libfdt: Check that the root-node name is empty
      4ca61f84dc21 libfdt: Check that there is only one root node
      34d708249a91 dtc: Remove -O dtbo support
      8e7ff260f755 libfdt: Fix a possible "unchecked return value" warning
      88875268c05c checks: Warn on node-name and property name being the same
      9d2279e7e6ee checks: Change node-name check to match devicetree spec
      f527c867a8c6 util: limit gnu_printf format attribute to gcc >= 4.4.0
      
      Reviewed-by: default avatarFrank Rowand <frank.rowand@sony.com>
      Tested-by: default avatarFrank Rowand <frank.rowand@sony.com>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      a77725a9
  13. May 01, 2021
  14. Feb 24, 2021
  15. Feb 23, 2021
  16. Feb 04, 2021
  17. Feb 03, 2021
  18. Oct 12, 2020
    • Rob Herring's avatar
      scripts/dtc: Update to upstream version v1.6.0-31-gcbca977ea121 · 6e9c9686
      Rob Herring authored
      
      This adds the following commits from upstream:
      
      cbca977ea121 checks: Allow PCI bridge child nodes without an address
      73e0f143b73d libfdt: fdt_strerror(): Fix comparison warning
      6c2be7d85315 libfdt: fdt_get_string(): Fix sequential write comparison warnings
      82525f41d59e libfdt: libfdt_wip: Fix comparison warning
      fb1f65f15832 libfdt: fdt_create_with_flags(): Fix comparison warning
      f28aa271000b libfdt: fdt_move(): Fix comparison warnings
      3d7c6f44195a libfdt: fdt_add_string_(): Fix comparison warning
      10f682788c30 libfdt: fdt_node_offset_by_phandle(): Fix comparison warning
      07158f4cf2a2 libfdt: overlay: Fix comparison warning
      ce9e1f25a7de libfdt: fdt_resize(): Fix comparison warning
      faa76fc10bc5 libfdt: fdt_splice_(): Fix comparison warning
      54dca0985316 libfdt: fdt_get_string(): Fix comparison warnings
      f8e11e61624e libfdt: fdt_grab_space_(): Fix comparison warning
      0c43d4d7bf5a libfdt: fdt_mem_rsv(): Fix comparison warnings
      442ea3dd1579 libfdt: fdt_offset_ptr(): Fix comparison warnings
      ca19c3db2bf6 Makefile: Specify cflags for libyaml
      7bb86f1c0956 libfdt: fix fdt_check_node_offset_ w/ VALID_INPUT
      3d522abc7571 dtc: Include stdlib.h in util.h
      808cdaaf524f dtc: Avoid UB when shifting
      3e3138b4a956 libfdt: fix fdt_check_full buffer overrun
      
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      6e9c9686
  19. Sep 29, 2020
  20. Aug 19, 2020
  21. Aug 09, 2020
    • Masahiro Yamada's avatar
      kbuild: introduce hostprogs-always-y and userprogs-always-y · faabed29
      Masahiro Yamada authored
      
      To build host programs, you need to add the program names to 'hostprogs'
      to use the necessary build rule, but it is not enough to build them
      because there is no dependency.
      
      There are two types of host programs: built as the prerequisite of
      another (e.g. gen_crc32table in lib/Makefile), or always built when
      Kbuild visits the Makefile (e.g. genksyms in scripts/genksyms/Makefile).
      
      The latter is typical in Makefiles under scripts/, which contains host
      programs globally used during the kernel build. To build them, you need
      to add them to both 'hostprogs' and 'always-y'.
      
      This commit adds hostprogs-always-y as a shorthand.
      
      The same applies to user programs. net/bpfilter/Makefile builds
      bpfilter_umh on demand, hence always-y is unneeded. In contrast,
      programs under samples/ are added to both 'userprogs' and 'always-y'
      so they are always built when Kbuild visits the Makefiles.
      
      userprogs-always-y works as a shorthand.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Acked-by: default avatarMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>
      faabed29
  22. Jun 30, 2020
    • Rob Herring's avatar
      scripts/dtc: Update to upstream version v1.6.0-11-g9d7888cbf19c · 3eb619b2
      Rob Herring authored
      
      Sync with upstream dtc primarily to pickup the I2C bus check fixes. The
      interrupt_provider check is noisy, so turn it off for now.
      
      This adds the following commits from upstream:
      
      9d7888cbf19c dtc: Consider one-character strings as strings
      8259d59f59de checks: Improve i2c reg property checking
      fdabcf2980a4 checks: Remove warning for I2C_OWN_SLAVE_ADDRESS
      2478b1652c8d libfdt: add extern "C" for C++
      f68bfc2668b2 libfdt: trivial typo fix
      7be250b4d059 libfdt: Correct condition for reordering blocks
      81e0919a3e21 checks: Add interrupt provider test
      85e5d839847a Makefile: when building libfdt only, do not add unneeded deps
      b28464a550c5 Fix some potential unaligned accesses in dtc
      
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      3eb619b2
  23. Jun 08, 2020
    • Masahiro Yamada's avatar
      scripts/dtc: use pkg-config to include <yaml.h> in non-standard path · f8d8b46c
      Masahiro Yamada authored
      
      Commit 067c650c ("dtc: Use pkg-config to locate libyaml") added
      'pkg-config --libs' to link libyaml installed in a non-standard
      location.
      
      yamltree.c includes <yaml.h>, but that commit did not add the search
      path for <yaml.h>. If /usr/include/yaml.h does not exist, it fails to
      build. A user can explicitly pass HOSTCFLAGS to work around it, but
      the policy is not consistent.
      
      There are two ways to deal with libraries in a non-default location.
      
      [1] Use HOSTCFLAGS and HOSTLDFLAGS for additional search paths for
          headers and libraries.
          They are documented in Documentation/kbuild/kbuild.rst
      
          $ make HOSTCFLAGS='-I <prefix>/include' HOSTLDFLAGS='-L <prefix>/lib'
      
      [2] Use pkg-config
      
          'pkg-config --cflags' for querying the header search path
          'pkg-config --libs'   for querying the lib and its path
      
      If we go with pkg-config, use [2] consistently. Do not mix up
      [1] and [2].
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      f8d8b46c
  24. Apr 17, 2020
    • Masahiro Yamada's avatar
      kbuild: check libyaml installation for 'make dt_binding_check' · 0903060f
      Masahiro Yamada authored
      
      If you run 'make dtbs_check' without installing the libyaml package,
      the error message "dtc needs libyaml ..." is shown.
      
      This should be checked also for 'make dt_binding_check' because dtc
      needs to validate *.example.dts extracted from *.yaml files.
      
      It is missing since commit 4f0e3a57 ("kbuild: Add support for DT
      binding schema checks"), but this fix-up is applicable only after commit
      e10c4321 ("kbuild: allow to run dt_binding_check and dtbs_check
      in a single command").
      
      I gave the Fixes tag to the latter in case somebody is interested in
      back-porting this.
      
      Fixes: e10c4321 ("kbuild: allow to run dt_binding_check and dtbs_check in a single command")
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      0903060f
  25. Mar 27, 2020
    • Dirk Mueller's avatar
      scripts/dtc: Remove redundant YYLOC global declaration · e33a814e
      Dirk Mueller authored
      
      gcc 10 will default to -fno-common, which causes this error at link
      time:
      
        (.text+0x0): multiple definition of `yylloc'; dtc-lexer.lex.o (symbol from plugin):(.text+0x0): first defined here
      
      This is because both dtc-lexer as well as dtc-parser define the same
      global symbol yyloc. Before with -fcommon those were merged into one
      defintion. The proper solution would be to to mark this as "extern",
      however that leads to:
      
        dtc-lexer.l:26:16: error: redundant redeclaration of 'yylloc' [-Werror=redundant-decls]
         26 | extern YYLTYPE yylloc;
            |                ^~~~~~
      In file included from dtc-lexer.l:24:
      dtc-parser.tab.h:127:16: note: previous declaration of 'yylloc' was here
        127 | extern YYLTYPE yylloc;
            |                ^~~~~~
      cc1: all warnings being treated as errors
      
      which means the declaration is completely redundant and can just be
      dropped.
      
      Signed-off-by: default avatarDirk Mueller <dmueller@suse.com>
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      [robh: cherry-pick from upstream]
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      e33a814e
  26. Mar 25, 2020
  27. Mar 13, 2020
    • Rob Herring's avatar
      scripts/dtc: Update to upstream version v1.6.0-2-g87a656ae5ff9 · d047cd8a
      Rob Herring authored
      
      This adds the following commits from upstream:
      
      87a656ae5ff9 check: Inform about missing ranges
      73d6e9ecb417 libfdt: fix undefined behaviour in fdt_splice_()
      2525da3dba9b Bump version to v1.6.0
      62cb4ad286ff Execute tests on FreeBSD with Cirrus CI
      1f9a41750883 tests: Allow running the testsuite on already installed binary / libraries
      c5995ddf4c20 tests: Honour NO_YAML make variable
      e4ce227e89d7 tests: Properly clean up .bak file from tests
      9b75292c335c tests: Honour $(NO_PYTHON) flag from Makefile in run_tests.sh
      6c253afd07d4 Encode $(NO_PYTHON) consistently with other variables
      95ec8ef706bd tests: No need to explicitly pass $PYTHON from Make to run_tests.sh
      2b5f62d109a2 tests: Let run_tests.sh run Python tests without Makefile assistance
      76b43dcbd18a checks: Add 'dma-ranges' check
      e5c92a4780c6 libfdt: Use VALID_INPUT for FDT_ERR_BADSTATE checks
      e5cc26b68bc0 libfdt: Add support for disabling internal checks
      28fd7590aad2 libfdt: Improve comments in some of the assumptions
      fc207c32341b libfdt: Fix a few typos
      0f61c72dedc4 libfdt: Allow exclusion of fdt_check_full()
      f270f45fd5d2 libfdt: Add support for disabling ordering check/fixup
      c18bae9a4c96 libfdt: Add support for disabling version checks
      fc03c4a2e04e libfdt: Add support for disabling rollback handling
      77563ae72b7c libfdt: Add support for disabling sanity checks
      57bc6327b80b libfdt: Add support for disabling dtb checks
      464962489dcc Add a way to control the level of checks in the code
      0c5326cb2845 libfdt: De-inline fdt_header_size()
      cc6a5a071504 Revert "yamltree: Ensure consistent bracketing of properties with phandles"
      0e9225eb0dfe Remove redundant YYLOC global declaration
      cab09eedd644 Move -DNO_VALGRIND into CPPFLAGS
      0eb1cb0b531e Makefile: pass $(CFLAGS) also during dependency generation
      
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      d047cd8a
    • Rob Herring's avatar
      scripts/dtc: Remove unused makefile fragments · 78154212
      Rob Herring authored
      
      The Makefile.dtc and Makefile.libfdt fragments from upstream dtc aren't
      used by the kernel build, so let's remove them and stop syncing them.
      
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      78154212
    • Masahiro Yamada's avatar
      kbuild: allow to run dt_binding_check without kernel configuration · 9dffecc1
      Masahiro Yamada authored
      
      The dt_binding_check target is located outside of the
      'ifneq ($(dtstree),) ... endif' block.
      
      So, you can run 'make dt_binding_check' on any architecture.
      This makes a perfect sense because the dt-schema is arch-agnostic.
      
      The only one problem I see is that scripts/dtc/dtc is not always built.
      For example, ARCH=x86 defconfig does not define CONFIG_DTC. Kbuild
      descends into scripts/dtc/ with doing nothing. Then, it fails to build
      *.example.dt.yaml files.
      
      Let's build scripts/dtc/dtc forcibly when running dt_binding_check.
      
      The dt-schema does not depend on any CONFIG option either, so you
      should be able to run dt_binding_check without the .config file.
      
      Going forward, you can directly run 'make dt_binding_check' in a
      pristine source tree.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      9dffecc1
  28. Feb 03, 2020
    • Masahiro Yamada's avatar
      kbuild: rename hostprogs-y/always to hostprogs/always-y · 5f2fb52f
      Masahiro Yamada authored
      
      In old days, the "host-progs" syntax was used for specifying host
      programs. It was renamed to the current "hostprogs-y" in 2004.
      
      It is typically useful in scripts/Makefile because it allows Kbuild to
      selectively compile host programs based on the kernel configuration.
      
      This commit renames like follows:
      
        always       ->  always-y
        hostprogs-y  ->  hostprogs
      
      So, scripts/Makefile will look like this:
      
        always-$(CONFIG_BUILD_BIN2C) += ...
        always-$(CONFIG_KALLSYMS)    += ...
            ...
        hostprogs := $(always-y) $(always-m)
      
      I think this makes more sense because a host program is always a host
      program, irrespective of the kernel configuration. We want to specify
      which ones to compile by CONFIG options, so always-y will be handier.
      
      The "always", "hostprogs-y", "hostprogs-m" will be kept for backward
      compatibility for a while.
      
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      5f2fb52f
  29. Jan 28, 2020
  30. Dec 26, 2019
    • Rob Herring's avatar
      scripts/dtc: Update to upstream version v1.5.1-22-gc40aeb60b47a · 0cec114e
      Rob Herring authored
      
      This adds the following commits from upstream:
      
      c40aeb60b47a travis.yml: Run tests on the non-x86 builders, too
      9f86aff444f4 Add .cirrus.yml for FreeBSD build
      34c82275bae6 Avoid gnu_printf attribute when using Clang
      743000931bc9 tests: default to 'cc' if CC not set
      adcd676491cc Add test-case for trailing zero
      d9c55f855b65 Remove trailing zero from the overlay path
      7a22132c79ec pylibfdt: Adjust for deprecated test methods
      dbe80d577ee2 tests: add extension to sed -i for GNU/BSD sed compatibility
      af57d440d887 libfdt: Correct prototype for fdt_ro_probe_()
      6ce585ac153b Use correct inttypes.h format specifier
      715028622547 support byacc in addition to bison
      fdf3f6d897ab pylibfdt: Correct the type for fdt_property_stub()
      430419c28100 tests: fix some python warnings
      588a29ff2e4e util: use gnu_printf format attribute
      bc876708ab1d fstree: replace lstat with stat
      4c3c4ccb9916 dumptrees: pass outputdir as first argument
      aa522da9fff6 tests: allow out-of-tree test run
      0d0d0fa51b1f fdtoverlay: Return non-zero exit code if overlays can't be applied
      4605eb047b38 Add .editorconfig
      18d7b2f4ee45 yamltree: Ensure consistent bracketing of properties with phandles
      67f790c1adcc libfdt.h: add explicit cast from void* to uint8_t* in fdt(32|64)_st
      b111122ea5eb pylibfdt: use python3 shebang
      60e0db3d65a1 Ignore phandle properties in /aliases
      95ce19c14064 README: update for Python 3
      5345db19f615 livetree: simplify condition in get_node_by_path
      b8d6eca78210 libfdt: Allow #size-cells of 0
      184f51099471 Makefile: Add EXTRA_CFLAGS variable
      812b1956a076 libfdt: Tweak data handling to satisfy Coverity
      5c715a44776a fdtoverlay: Ignore symbols in overlays which don't apply to the target tree
      b99353474850 fdtoverlay: Allow adding labels to __overlay__ nodes in overlays
      d6de81b81b68 pylibfdt: Add support for fdt_get_alias()
      1c17714dbb3a pylibfdt: Correct the FdtSw example
      ad57e4574a37 tests: Add a failed test case for 'fdtoverlay' with long target path
      bbe3b36f542b fdtoverlay: Rework output allocation
      6c2e61f08396 fdtoverlay: Improve error messages
      297f5abb362e fdtoverlay: Check for truncated overlay blobs
      
      Cc: Frank Rowand <frowand.list@gmail.com>
      Cc: clang-built-linux@googlegroups.com
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      0cec114e
  31. Nov 04, 2019
  32. Jun 21, 2019
    • Rob Herring's avatar
      scripts/dtc: Update to upstream version v1.5.0-30-g702c1b6c0e73 · 12869ecd
      Rob Herring authored
      
      Pull in SPDX tag conversion from upstream dtc. This will replace the
      conversion done in the kernel tree copy in v5.2-rc2.
      
      This adds the following commits from upstream:
      
      702c1b6c0e73 README.license: Update to reflect SPDX tag usage
      4097bbffcf1d dtc: Add GPLv2 SPDX tags to files missing license text
      94f87cd5b7c5 libfdt: Add dual GPL/BSD SPDX tags to files missing license text
      c4ffc05574b1 tests: Replace license boilerplate with SPDX tags
      a5ac29baacd2 pylibfdt: Replace dual GPLv2/BSD license boilerplate with SPDX tags
      7fb0f4db2eb7 libfdt: Replace GPL/BSD boilerplate/reference with SPDX tags
      acfe84f2c47e dtc: Replace GPLv2 boilerplate/reference with SPDX tags
      
      Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      12869ecd
  33. Jun 19, 2019
  34. Jun 12, 2019
    • Rob Herring's avatar
      scripts/dtc: Update to upstream version v1.5.0-23-g87963ee20693 · 9bb9c6a1
      Rob Herring authored
      
      This adds the following commits from upstream:
      
      87963ee20693 livetree: add missing type markers in generated overlay properties
      825146d13dc0 Fix typos in various documentation and source files
      25bb080c18d1 Update the GPL2 text to the latest revision
      243176c4ce84 Fix bogus error on rebuild
      ce01b21098a4 libfdt: Add FDT_CREATE_FLAG_NO_NAME_DEDUP flag that trades size for speed
      fbb62754ce45 libfdt: Introduce fdt_create_with_flags()
      228a44cce857 libfdt: Ensure fdt_add_property frees allocated name string on failure
      8f695676227b Avoid assertion in check_interrupts_property()
      5c3513f68921 Link tools and tests against libfdt shared library
      00f9febf9c16 tests: Rename tests.sh to testutils.sh
      c5d45188f923 Clean up LDLIBS handling
      6ef8fcd05b74 Rebuild libfdt shared object if versioning linker script changes
      26ee65a16c38 Use Python3 by default
      cca6546244cb libfdt: Make fdt_get_max_phandle() an inline
      730875016a6a libfdt: Add phandle generation helper
      7dfb61ba96b1 libfdt: Use fdt_find_max_phandle()
      2bc5b66d7f6c libfdt: Add new maximum phandle lookup function
      7fcf8208b8a9 libfdt: add fdt_append_addrrange()
      ae795b2db7a4 checks: Do not omit nodes with labels if symbol generation is requested
      eac2ad495b29 Update version.lds again
      f67b47135523 Revert "libfdt: Add phandle generation helper"
      54ea41c22415 libfdt: Add phandle generation helper
      4762ad051ee0 checks: Fix spelling in check_graph_endpoint
      d37f6b20107e Bump version to v1.5.0
      a4b1a307ff3a pylibfdt:tests: Extend the way how to find a Python module
      625dd8aaf20f pylibfdt: Change how passing tests are recognized
      364631626bb7 pylibfdt: Test fdt.setprop take bytes on Python 3, add error handling
      cb0f454f73cc pylibfdt: check_err accepts only integer as a first argument.
      4b68c6b3605a pylibfdt: Proper handling of bytes/unicode strings and octal literals
      78e113e81c9d Use PRIxPTR for printing uintptr_t values
      ea7a8f6dad67 libfdt: Fix FDT_ERR_NOTFOUND typos in documentation
      5aafd7ca43e0 libfdt: Fix fdt_getprop_by_offset() parameter name in documentation
      7cbc550f903b checks: Add unit address check if node is enabled
      
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      9bb9c6a1
Loading