]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
ovmf: drop upstreamed BUILD_CFLAGS setting
authorJoão Marcos Costa <joaomarcos.costa@bootlin.com>
Thu, 14 May 2026 14:15:16 +0000 (16:15 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 May 2026 22:19:13 +0000 (23:19 +0100)
This same gcc (v12) warning was handled upstream a while ago:

22130dcd98b4 ("Basetools: turn off gcc12 warning")

This change is available in the tag we currently use: edk2-stable202511.

In fact, it is available since edk2-stable202205, and the
-Wno-error=stringop-overflow flag [1] was added for the same reason we have
it in ovmf's recipe.

[1] https://github.com/tianocore/edk2/blob/master/BaseTools/Source/C/DevicePath/GNUmakefile#L27

Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.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_git.bb

index cc251bbc0089fa76bbcf9b0d21efb0f4d6e80a24..f91f458006ae1c8578f3144d4750bcdedbd0bdda 100644 (file)
@@ -14,10 +14,6 @@ PACKAGECONFIG[debug] = ",,,"
 PACKAGECONFIG[secureboot] = ",,,"
 PACKAGECONFIG[tpm] = "-D TPM_ENABLE=TRUE,-D TPM_ENABLE=FALSE,,"
 
-# GCC12 trips on it
-#see https://src.fedoraproject.org/rpms/edk2/blob/rawhide/f/0032-Basetools-turn-off-gcc12-warning.patch
-BUILD_CFLAGS += "-Wno-error=stringop-overflow"
-
 SRC_URI = "gitsm://github.com/tianocore/edk2.git;branch=master;protocol=https;tag=${PV} \
            file://0001-ovmf-update-path-to-native-BaseTools.patch \
            file://0002-BaseTools-makefile-adjust-to-build-in-under-bitbake.patch \