From 33079b8174e614b75b81b9dea59baef2dc943e58 Mon Sep 17 00:00:00 2001 From: Maximilian Brune Date: Mon, 4 Mar 2024 15:34:41 +0100 Subject: 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 Change-Id: I2fb1d93c5b3e1cb2f7d9584db52bbce3767b63d8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/81081 Reviewed-by: Julius Werner Tested-by: build bot (Jenkins) --- tests/lib/Makefile.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/lib/Makefile.mk') diff --git a/tests/lib/Makefile.mk b/tests/lib/Makefile.mk index 7fc5471529..2090ef8831 100644 --- a/tests/lib/Makefile.mk +++ b/tests/lib/Makefile.mk @@ -39,9 +39,15 @@ tests-y += cbfs-lookup-no-mcache-test tests-y += cbfs-lookup-has-mcache-test tests-y += lzma-test tests-y += ux_locales-test +tests-y += device_tree-test lib-test-srcs += tests/lib/lib-test.c +device_tree-test-srcs += tests/lib/device_tree-test.c +device_tree-test-srcs += tests/stubs/console.c +device_tree-test-srcs += src/lib/device_tree.c +device_tree-test-syssrcs += tests/helpers/file.c + string-test-srcs += tests/lib/string-test.c string-test-srcs += src/lib/string.c -- cgit v1.2.3