diff options
| author | Tom Rini <[email protected]> | 2026-08-31 17:09:55 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-08-31 17:09:55 -0600 |
| commit | cd5bd0cb98ececd1e2eb69d0093e4940b25c9941 (patch) | |
| tree | 7111411f506e1172ba46b58046df389e43e1e9f4 /board/intel/cherryhill/Makefile | |
| parent | acb09f16da3322098e54dcc75fe6458ed2d5bc23 (diff) | |
| parent | 01fb2b4d7368483f95b6018b2c069de0b8ebadeb (diff) | |
Merge patch series "pylibfdt: Update the U-Boot version with changes from upstream dtc"next
Alexey Charkov <[email protected]> says:
U-Boot's copy of the libfdt Python bindings in
scripts/dtc/pylibfdt/libfdt.i_shipped was last synced wholesale in 2019,
by commit 903fe17aa8c8 ("pylibfdt: Sync up with upstream"), against dtc
commit 430419c28100. Since then it has only picked up individual fixes,
so it has drifted a long way behind dtc, which is now at v1.8.1-19.
Tom asked for an audit of the divergence when reviewing the FdtSw growth
patch [1]; this is the result. Bring in every missing change from upstream
as an individual commit, referencing its upstream sibling.
This adds: hasprop() and setprop_bool(), get_path(),
Property.as_stringlist() and the as_*int*_list() accessors,
address_cells()/size_cells(), add_mem_rsv()/del_mem_rsv(), geometric FdtSw
buffer growth, a missing Py_INCREF on the Py_None returned by the
fdt_getprop() typemap, correct get_mem_rsv() results on current Python,
and the SWIG 4.3+ return-value compatibility shim.
Not included is dtc commit 5008d1d6a356 ("pylibfdt: Replace removed SWIG
Python 2 compatibility macros"), which already landed independently as
commit 527115ef6783 ("pylibfdt: Replace removed SWIG Python 2
compatibility macros").
The first two patches are preparatory: they take the parts of two upstream
commits that earlier partial imports left behind, so the rest apply
verbatim. The last patch adds test coverage, since none of these bindings
have an in-tree caller yet and dtc's own tests for them live in
tests/pylibfdt_tests.py, which U-Boot does not carry.
Residual differences from upstream left untouched:
- the SPDX comment style;
- the %begin block defining PY_SSIZE_T_CLEAN, which is U-Boot's variant
of a fix dtc applies from its build system;
- the two %include paths, which follow U-Boot's directory layout;
- the retry loop in FdtSw.as_fdt(), from commit 211cfa503f6c ("libfdt:
Detected out-of-space with fdt_finish()") - U-Boot only change
CI passes all green [2]
[1] https://lore.kernel.org/u-boot/[email protected]/
[2] https://git.u-boot-project.org/u-boot/contributors/alchark/u-boot/-/pipelines/1047
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'board/intel/cherryhill/Makefile')
0 files changed, 0 insertions, 0 deletions
