mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
0e4b697f88
When the flat device tree changes it can mess up the live tree since that uses the flat tree for its strings. This affects only a few sandbox tests which modify the device tree, but the number will grow as ofnode support for writing improves. While the control FDT is not intended to change while U-Boot is running, some tests do so. For example, the ofnode interface only supports modifying properties in the control FDT, so tests must use that. To solve this problem, keep a copy of the FDT and restore it as needed when the test is finished. The copy only happens on sandbox (except SPL builds), to reduce memory usage and because these tests are not useful on other boards. For other boards, a checksum is taken to ensure that nothing changes. It would be possible to always checksum the FDT on sandbox and only restore it if needed, but this is slightly slower than restoring it every time, at least with crc8. Move the code which checks for success to the very end, for clarity. Signed-off-by: Simon Glass <sjg@chromium.org> |
||
---|---|---|
.. | ||
devicetree | ||
driver-model | ||
package | ||
statistics | ||
uefi | ||
bloblist.rst | ||
bootstd.rst | ||
checkpatch.rst | ||
ci_testing.rst | ||
coccinelle.rst | ||
codingstyle.rst | ||
commands.rst | ||
config_binding.rst | ||
crash_dumps.rst | ||
cyclic.rst | ||
designprinciples.rst | ||
distro.rst | ||
environment.rst | ||
event.rst | ||
global_data.rst | ||
index.rst | ||
logging.rst | ||
makefiles.rst | ||
menus.rst | ||
moveconfig.rst | ||
patman.rst | ||
printf.rst | ||
process.rst | ||
py_testing.rst | ||
python_cq.rst | ||
release_cycle.rst | ||
sending_patches.rst | ||
smbios.rst | ||
spl.rst | ||
system_configuration.rst | ||
testing.rst | ||
tests_sandbox.rst | ||
tests_writing.rst | ||
trace.rst | ||
vbe.rst | ||
version.rst |