poky: Do not inherit uninative on ppc64le and riscv64 hosts
PATCH 1/1 poky: Do not inherit uninative on ppc64le and riscv64 hosts
uninative tarballs for these architectures is not available
--- meta-poky/conf/distro/poky.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-poky/conf/distro/poky.conf +1 -1
@@ -62,7 +62,7 @@ require conf/distro/include/poky-world-exclude.inc require conf/distro/include/no-static-libs.inc require conf/distro/include/yocto-uninative.inc require conf/distro/include/security_flags.inc -INHERIT += "uninative" +INHERIT += "${@bb.utils.contains_any('BUILD_ARCH', 'ppc64le riscv64', '', 'uninative', d)}" BB_SIGNATURE_HANDLER ?= "OEEquivHash" BB_HASHSERVE ??= "auto"
Signature · 1 line
2.42.1
Quoted 12 lines · Khem Raj
uninative tarballs for these architectures is not available
Signed-off-by Khem Raj <[email protected]>--- meta-poky/conf/distro/poky.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-poky/conf/distro/poky.conf +0
-0
meta-poky/conf/distro/poky.conf require conf/distro/include/poky-world-exclude.inc · line 68
Quoted 8 lines
meta-poky/conf/distro/poky.conf +1
-1@@ -62,7 +62,7 @@ require conf/distro/include/poky-world-exclude.inc require conf/distro/include/no-static-libs.inc require conf/distro/include/yocto-uninative.inc require conf/distro/include/security_flags.inc -INHERIT += "uninative" +INHERIT += "${@bb.utils.contains_any('BUILD_ARCH', 'ppc64le riscv64', '', 'uninative', d)}" BB_SIGNATURE_HANDLER ?= "OEEquivHash" BB_HASHSERVE ??= "auto"
I really don't like conditional inherits and I suspect there are other architectures this doesn't work.
It would probably better to improve the uninative code itself.
Cheers,
Richard
Quoted 20 lines · Richard Purdie
Quoted 18 lines · Khem Raj
uninative tarballs for these architectures is not available
Signed-off-by Khem Raj <[email protected]>--- meta-poky/conf/distro/poky.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-poky/conf/distro/poky.conf +1
-1@@ -62,7 +62,7 @@ require conf/distro/include/poky-world-exclude.inc require conf/distro/include/no-static-libs.inc require conf/distro/include/yocto-uninative.inc require conf/distro/include/security_flags.inc -INHERIT += "uninative" +INHERIT += "${@bb.utils.contains_any('BUILD_ARCH', 'ppc64le riscv64', '', 'uninative', d)}"
Quoted 5 lines
meta-poky/conf/distro/poky.conf require conf/distro/include/poky-world-exclude.inc · line 68
Quoted 2 lines
meta-poky/conf/distro/poky.conf +0
-0BB_SIGNATURE_HANDLER ?= "OEEquivHash" BB_HASHSERVE ??= "auto"I really don't like conditional inherits and I suspect there are other architectures this doesn't work.
Yes, there are perhaps everything besides x86/arm64 because we need uninative tarballs and for them we need host machines with those architectures.
so essentially this restricts bootstrapping a new architecture for build unless its in AB, it seems we
need to build uninative tarballs as first step.
Quoted 2 lines
It would probably better to improve the uninative code itself.
yeah, maybe add a diagnostic and logic to do no harm if uninative tarball is not supported
Quoted 5 lines
Cheers,
Richard