]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
kernel-fitImage: only include valid compatible line
authorChristian Taedcke <christian.taedcke@weidmueller.com>
Wed, 6 Mar 2024 16:43:00 +0000 (08:43 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 8 Mar 2024 08:06:14 +0000 (08:06 +0000)
commitf8f3a52b2f924789552e6a3f889162ff07e0887f
tree66b6543a12665c57fe16fc311e72f76d5384068e
parente0919a3f7bc26b1ea9fb57740de4a9a3b9253f26
kernel-fitImage: only include valid compatible line

Without this commit the configuration node includes the compatible
line 'compatible = [00];' if EXTERNAL_KERNEL_DEVICETREE is not
defined, i.e. if PREFERRED_PROVIDER_virtual/dtb is not used.
This prevents u-boot from using this configuration and it prints the
message "Could not find configuration node".

An additional check also ensures that the written compatible line
never contains an empty compatible.

The functionality to add the compatible line was added in commit
f4c82fb6da89 ("kernel-fitImage: add machine compatible to config
section").

Signed-off-by: Christian Taedcke <christian.taedcke@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/kernel-fitimage.bbclass