From 384053460f7aa6333a2c2234c4ec2a36b4e97131 Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Thu, 11 Aug 2022 17:39:45 +0200
Subject: [PATCH] edk2-firmware: Do release builds even on clang

Release builds with clang were fixed in 202202. We can drop this
workaround now as we are on that version.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Luca Seritan <luca.seritan@huawei.com>
---
 meta-oniro-staging/recipes-bsp/uefi/edk2-firmware_%.bbappend | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oniro-staging/recipes-bsp/uefi/edk2-firmware_%.bbappend b/meta-oniro-staging/recipes-bsp/uefi/edk2-firmware_%.bbappend
index 330d0611..bcf04f8b 100644
--- a/meta-oniro-staging/recipes-bsp/uefi/edk2-firmware_%.bbappend
+++ b/meta-oniro-staging/recipes-bsp/uefi/edk2-firmware_%.bbappend
@@ -5,6 +5,8 @@
 export GCC5_ARM_PREFIX = "${TARGET_PREFIX}"
 export CLANG38_ARM_PREFIX = "${TARGET_PREFIX}"
 
+EDK2_BUILD_RELEASE:toolchain-clang = "1"
+
 do_install:prepend() {
 	# Some platforms use an ARCH suffix.
 	if [ ! -e "${B}/Build/${EDK2_PLATFORM}" ]; then
-- 
GitLab