]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
ovmf: Don't define bool type if building in C23 mode
authorMingli Yu <mingli.yu@windriver.com>
Fri, 1 Aug 2025 10:29:12 +0000 (18:29 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Aug 2025 09:43:42 +0000 (10:43 +0100)
commit24600013b65c954bd704a6eb673197ac06b87f69
treec408bf8a3ff417bef030058c9bcc39dd1867c078
parent0b1828a3f6cbdf3b4d444d30ca3ab37bd98bb419
ovmf: Don't define bool type if building in C23 mode

Backport a patch [1] to fix the below build failure:
 /buildarea/tmp/work/corei7-64-wrs-linux/ovmf/edk2-stable202502/sources/ovmf-edk2-stable202502/SecurityPkg/DeviceSecurity/SpdmLib/Include/hal/LibspdmStdBoolAlt.h:13:17: error: two or more data types in declaration specifiers
 13 | typedef BOOLEAN bool;
 | ^~~~
  /buildarea/tmp/work/corei7-64-wrs-linux/ovmf/edk2-stable202502/sources/ovmf-edk2-stable202502/SecurityPkg/DeviceSecurity/SpdmLib/Include/hal/LibspdmStdBoolAlt.h:13:1: error: useless type name in empty declaration [-Werror]
  13 | typedef BOOLEAN bool;

[1] https://github.com/tianocore/edk2/commit/772fa11ac82579a8f6fa171e6b835f68af3f64be

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/ovmf/ovmf/0001-SecurityPkg-Don-t-define-bool-type-if-building-in-C2.patch [new file with mode: 0644]
meta/recipes-core/ovmf/ovmf_git.bb