treewide: Move device_tree to commonlib

Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com>
Change-Id: I990d74d9fff06b17ec8a6ee962955e4b0df8b907
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77970
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Maximilian Brune
2023-09-16 20:08:41 +02:00
committed by Lean Sheng Tan
parent 5afdcd9190
commit da336cd5c6
13 changed files with 26 additions and 20 deletions

View File

@@ -5,6 +5,12 @@ subdirs-y += bsd
tests-y += list-test
tests-y += rational-test
tests-y += region-test
tests-y += device_tree-test
device_tree-test-srcs += tests/commonlib/device_tree-test.c
device_tree-test-srcs += tests/stubs/console.c
device_tree-test-srcs += src/commonlib/device_tree.c
device_tree-test-syssrcs += tests/helpers/file.c
list-test-srcs += tests/commonlib/list-test.c
list-test-srcs += src/commonlib/list.c

View File

@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <commonlib/device_tree.h>
#include <console/console.h>
#include <device_tree.h>
#include <helpers/file.h>
#include <stddef.h>
#include <stdint.h>

View File

@@ -39,15 +39,9 @@ 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