edk2-firmware: Use --platform option only when EDK2_PLATFORM_DSC is set
PATCH 1/2 edk2-firmware: Use --platform option only when EDK2_PLATFORM_DSC is set
This ensures that --platform is not left dangling for platforms which do not set EDK2_PLATFORM_DSC
Fixes build errors like
build.exe: error: --platform option requires 1 argument
--- meta-arm/recipes-bsp/uefi/edk2-firmware.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
meta-arm/recipes-bsp/uefi/edk2-firmware.inc +2 -3
@@ -29,8 +29,8 @@ EDK2_PLATFORM_DSC = "" EDK2_BIN_NAME = "" # build --arch EDK2_ARCH = "" -# Extra arguments passed to build -EDK2_EXTRA_BUILD = "" +# Extra arguments passed to build. Pass --platform if it is set +EDK2_EXTRA_BUILD:append = "${@' --platform ${EDK2_PLATFORM_DSC}' if '${EDK2_PLATFORM_DSC}' else ''}" # build --buildtarget EDK2_BUILD_MODE ?= "${@bb.utils.contains('EDK2_BUILD_RELEASE', '1', 'RELEASE', 'DEBUG', d)}"
@@ -84,7 +84,6 @@ do_compile() { --arch "${EDK2_ARCH}" \ --buildtarget ${EDK2_BUILD_MODE} \ --tagname ${EDK_COMPILER} \ - --platform ${EDK2_PLATFORM_DSC} \ ${EDK2_EXTRA_BUILD} }
Signature · 1 line
2.34.1
PATCH 2/2 edk2-firmware: Pin to arm and x86 only
Other architectures are untested perhaps unsupported too
--- meta-arm/recipes-bsp/uefi/edk2-firmware_%.bbappend | 2 ++ 1 file changed, 2 insertions(+)
meta-arm/recipes-bsp/uefi/edk2-firmware_%.bbappend +2 -0
@@ -25,3 +25,5 @@ do_install:append:qemu-generic-arm64() { # QEMU requires that the images be minimum of 256M in size truncate -s 256M ${D}/firmware/SBSA_FLASH*.fd } + +COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*)-linux"
Signature · 1 line
2.34.1
My understanding is that --platform is pretty much mandatory. The recipe shouldn't be built if those are unset, so I'll add blanket COMPATIBLE_MACHINES to the base recipe instead.
Ross
Quoted 47 lines · Khem Raj
This ensures that --platform is not left dangling for platforms which do not set
EDK2_PLATFORM_DSCFixes build errors like
build.exe: error: --platform option requires 1 argumentSigned-off-by Khem Raj <[email protected]>--- meta-arm/recipes-bsp/uefi/edk2-firmware.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)meta-arm/recipes-bsp/uefi/edk2-firmware.inc +2
-4@@ -29,8 +29,8 @@ EDK2_PLATFORM_DSC = "" EDK2_BIN_NAME = "" # build --arch EDK2_ARCH = "" -# Extra arguments passed to build -EDK2_EXTRA_BUILD = "" +# Extra arguments passed to build. Pass --platform if it is set +EDK2_EXTRA_BUILD:append = "${@' --platform ${EDK2_PLATFORM_DSC}' if '${EDK2_PLATFORM_DSC}' else ''}" # build --buildtarget EDK2_BUILD_MODE ?= "${@bb.utils.contains('EDK2_BUILD_RELEASE', '1', 'RELEASE', 'DEBUG', d)}"@@ -84,7 +84,6 @@ do_compile() { --arch "${EDK2_ARCH}" \ --buildtarget ${EDK2_BUILD_MODE} \ --tagname ${EDK_COMPILER} \ - --platform ${EDK2_PLATFORM_DSC} \ ${EDK2_EXTRA_BUILD} } --2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#2495): https://lists.yoctoproject.org/g/meta-arm/message/2495
Mute This Topic: https://lists.yoctoproject.org/mt/87419544/1676615
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 5 lines · Ross Burton
My understanding is that --platform is pretty much mandatory. The recipe shouldn't be built if those are unset, so I'll add blanket
COMPATIBLE_MACHINESto the base recipe instead.
thats fine too, as long as its build for machines it should be built for.
Quoted 50 lines
Ross
Quoted 47 lines · Khem Raj
This ensures that --platform is not left dangling for platforms which do not set
EDK2_PLATFORM_DSCFixes build errors like
build.exe: error: --platform option requires 1 argumentSigned-off-by Khem Raj <[email protected]>--- meta-arm/recipes-bsp/uefi/edk2-firmware.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)meta-arm/recipes-bsp/uefi/edk2-firmware.inc +2
-4@@ -29,8 +29,8 @@ EDK2_PLATFORM_DSC = "" EDK2_BIN_NAME = "" # build --arch EDK2_ARCH = "" -# Extra arguments passed to build -EDK2_EXTRA_BUILD = "" +# Extra arguments passed to build. Pass --platform if it is set +EDK2_EXTRA_BUILD:append = "${@' --platform ${EDK2_PLATFORM_DSC}' if '${EDK2_PLATFORM_DSC}' else ''}" # build --buildtarget EDK2_BUILD_MODE ?= "${@bb.utils.contains('EDK2_BUILD_RELEASE', '1', 'RELEASE', 'DEBUG', d)}"@@ -84,7 +84,6 @@ do_compile() { --arch "${EDK2_ARCH}" \ --buildtarget ${EDK2_BUILD_MODE} \ --tagname ${EDK_COMPILER} \ - --platform ${EDK2_PLATFORM_DSC} \ ${EDK2_EXTRA_BUILD} } --2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#2495): https://lists.yoctoproject.org/g/meta-arm/message/2495
Mute This Topic: https://lists.yoctoproject.org/mt/87419544/1676615
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-