Skip to contentSkip to conversation

edk2-firmware: Fix configure sed typo

PATCH Applied Andrei Gherzan 3 participants 5 messages Sep 15, 2022 – Sep 21, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 edk2-firmware: Fix configure sed typo

From: Andrei Gherzan <[email protected]>

The configure sed operation will not behave as expected because '*' match misses a preceeding '.'.

---
 meta-arm/recipes-bsp/uefi/edk2-firmware.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm/recipes-bsp/uefi/edk2-firmware.inc +1 -1
index e0dfa28..c9f1f1d 100644
@@ -81,7 +81,7 @@ export CLANG38_ARM_PREFIX = "${TARGET_PREFIX}"
 TOOLCHAIN:arm = "gcc"
 
 do_configure:prepend() {
-    sed -i -e "s#-target ${HOST_ARCH}-linux-gnu*#-target ${HOST_SYS}#" ${S}/BaseTools/Conf/tools_def.template
+    sed -i -e "s#-target ${HOST_ARCH}-linux-gnu.*#-target ${HOST_SYS}#" ${S}/BaseTools/Conf/tools_def.template
 }
 
 do_compile() {
Signature · 1 line
2.25.1
#1 lore raw

meta-arm/recipes-bsp/uefi/edk2-firmware.inc export CLANG38_ARM_PREFIX = "${TARGET_PREFIX}" · line 84

Quoted 2 lines · Andrei Gherzan via lists.yoctoproject.org
meta-arm/recipes-bsp/uefi/edk2-firmware.inc +1 -1
-    sed -i -e "s#-target ${HOST_ARCH}-linux-gnu*#-target ${HOST_SYS}#" ${S}/BaseTools/Conf/tools_def.template
+    sed -i -e "s#-target ${HOST_ARCH}-linux-gnu.*#-target ${HOST_SYS}#" ${S}/BaseTools/Conf/tools_def.template

Did this break something for you, or is this a line that can actually be removed?

Ross

#2 lore raw

Hi,

Quoted 7 lines · Ross Burton

meta-arm/recipes-bsp/uefi/edk2-firmware.inc export CLANG38_ARM_PREFIX = "${TARGET_PREFIX}" · line 84

Quoted 2 lines · Andrei Gherzan via lists.yoctoproject.org
meta-arm/recipes-bsp/uefi/edk2-firmware.inc +1 -1
-    sed -i -e "s#-target ${HOST_ARCH}-linux-gnu*#-target ${HOST_SYS}#" ${S}/BaseTools/Conf/tools_def.template
+    sed -i -e "s#-target ${HOST_ARCH}-linux-gnu.*#-target ${HOST_SYS}#" ${S}/BaseTools/Conf/tools_def.template

Did this break something for you, or is this a line that can actually be removed?

It is definitely still needed. The template includes hardcoded values. It was breaking for me for arm EFI support.

Andrei

Applied
#3 lore raw
In reply to Andrei Gherzan
Quoted 2 lines · Andrei Gherzan

The configure sed operation will not behave as expected because '*' match misses a preceeding '.'.

Applied, thanks!

[1/1] edk2-firmware: Fix configure sed typo

      commit: fde0575aeac3b86102d521a55f4a26e6afa623fd

Best regards,

Signature · 1 line
Jon Mason <[email protected]>
#4 lore raw
Quoted 5 lines · Jon Mason
Quoted 2 lines · Andrei Gherzan

The configure sed operation will not behave as expected because '*' match misses a preceeding '.'.

Applied, thanks!

Awesome. Thanks.

Andrei