]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
barebox-tools: clean up yamltree from dtc
authorHongxu Jia <hongxu.jia@windriver.com>
Mon, 7 Apr 2025 15:10:44 +0000 (23:10 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 10 Apr 2025 09:40:39 +0000 (10:40 +0100)
commit9eed65e4b527ae461b3993c455f129a80d0c2416
tree0a6c1edfb9b9944111e032c300a710bb9285be15
parentc727faa835dfbc792d5008bbcb0ca6c5a81cb029
barebox-tools: clean up yamltree from dtc

Refer Linux commit [dt-bindings: kbuild: Use DTB files for validation][1],
clean up yamltree from dtc to avoid compile failure while include <yaml.h>
in non-standard path

| tmp/work/core2-64-wrs-linux/barebox-tools/2025.02.0/barebox-2025.02.0/scripts/
dtc/yamltree.c:9:10: fatal error: yaml.h: No such file or directory
|     9 | #include <yaml.h>

Since barebox actually doesn't do any dtb binding checks at the moment, just
remove the test of /usr/include/yaml.h, hard-code the -DNO_YAML and remove
yamltree.c from DTC_SOURCE

[1] https://github.com/torvalds/linux/commit/ef8795f3f1ce

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-bsp/barebox/barebox-tools.bb
meta/recipes-bsp/barebox/files/0001-scripts-dtc-clean-up-yamltree-from-dtc.patch [new file with mode: 0644]