coreboot/tests/lib
Maximilian Brune 33079b8174 lib/device_tree: Add some FDT helper functions
This adds some helper functions for FDT, since more and more mainboards
seem to need FDT nowadays. For example our QEMU boards need it in order
to know how much RAM is available. Also all RISC-V boards in our tree
need FDT.

This also adds some tests in order to test said functions.

Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com>
Change-Id: I2fb1d93c5b3e1cb2f7d9584db52bbce3767b63d8
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81081
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2024-05-21 13:44:47 +00:00
..
b64_decode-test.c tests: update CMocka to stable-1.1 2022-04-19 13:00:36 +00:00
bootmem-test.c tree: Drop duplicated <device/{path,resource}.h> 2024-04-12 04:24:20 +00:00
cbfs-lookup-test.c
cbfs-verification-test.c cbfs/vboot: Adapt to new vb2_digest API 2022-09-02 23:51:29 +00:00
cbmem_console-test.c
cbmem_stage_cache-test.c
coreboot_table-test.c coreboot_tables: Make existing alignment conventions more explicit 2022-12-22 15:34:28 +00:00
crc_byte-test.c
device_tree-test.c lib/device_tree: Add some FDT helper functions 2024-05-21 13:44:47 +00:00
dimm_info_util-test.c dram/ddr5: Use the same naming convention as DDR{2,3,4} 2024-05-07 10:53:18 +00:00
edid-test.c
fmap-test.c
hexstrtobin-test.c
imd-test.c tests/lib: Add space before single line comment termination 2022-03-27 15:33:39 +00:00
imd_cbmem-test.c Allow to build romstage sources inside the bootblock 2023-11-09 13:20:18 +00:00
lib-test.c
libgcc-test.c
lzma-test.c tests/lib: Factor out file related functions 2024-05-21 13:44:39 +00:00
Makefile.mk lib/device_tree: Add some FDT helper functions 2024-05-21 13:44:47 +00:00
malloc-test.c malloc/memalign: Return NULL if the request is too large 2024-01-29 19:12:43 +00:00
memchr-test.c
memcmp-test.c
memcpy-test.c
memmove-test.c
memrange-test.c tree: Drop duplicated <device/{path,resource}.h> 2024-04-12 04:24:20 +00:00
memset-test.c
region_file-test.c
rtc-test.c tree: Drop repeated words 2023-02-07 04:37:31 +00:00
spd_cache-test.c test/lib: Add non-existent DIMMs test case in spd_cache-test 2022-11-03 13:00:15 +00:00
stack-test.c
string-test.c tree: Drop duplicated <stdarg.h> and <stdio.h> 2024-04-12 04:25:07 +00:00
timestamp-test.c
uuid-test.c
ux_locales-test.c tests/lib/ux_locales-test: Simplify macros 2024-02-22 08:05:23 +00:00