poky/meta/classes-recipe
Deepesh Varatharajan b189b2fb86 rust-target-config: PPC64 targets require explicit ABI selection to avoid build failures with rustc.
Without a specified ABI, rustc panics with the following error:
|   thread 'rustc' panicked at compiler/rustc_codegen_ssa/src/back/metadata.rs:394:21:
|   No ABI specified for this PPC64 ELF target.

This issue was occuring because of the following Rust commit:
9c1180b623

As noted in the upstream changes:
If the flags do not correctly indicate the ABI,
linkers such as ld.lld assume that the ppc64 object files are always ELFv2,
which leads to broken binaries if ELFv1 is used for the object files.

Because of this, it is now required to explicitly specify the ABI for PPC64 targets
using one of the following:
"elfv1" => EF_PPC64_ABI_ELF_V1,
"elfv2" => EF_PPC64_ABI_ELF_V2,

If no ABI is specified, the Rust compiler will panic with the error:
No ABI specified for this PPC64 ELF target

To address this:
- Set 'elfv2' for powerpc64le (little-endian), which mandates ELFv2 ABI.
- Set 'elfv1' for powerpc64 (big-endian), which defaults to ELFv1 ABI.

(From OE-Core rev: 6cee30b7941c22eef52011b6bac0d3c0d7944abe)

Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-10-14 11:28:56 +01:00
..
allarch.bbclass allarch: Fix allarch corner case 2024-01-18 10:15:58 +00:00
autotools-brokensep.bbclass
autotools.bbclass gettext, gettext-minimal-native: upgrade 0.23.1 -> 0.26 2025-09-08 18:02:40 +01:00
barebox.bbclass meta: set S to be in UNPACKDIR in recipes that explicitly set S 2025-06-20 12:07:26 +01:00
baremetal-image.bbclass tclibc-picolibc: Adds a new TCLIBC variant to build with picolibc as C library 2024-07-26 12:28:42 +01:00
bash-completion.bbclass
bin_package.bbclass Revert "bin_package.bbclass: Inhibit the default dependencies" 2023-10-30 08:50:46 +00:00
binconfig-disabled.bbclass
binconfig.bbclass
cargo_c.bbclass classes-recipe: add cargo_c.bbclass 2023-08-21 16:15:35 +01:00
cargo_common.bbclass cargo_common: use 'config.toml' instead of plain 'config' 2025-02-25 12:17:22 +00:00
cargo-update-recipe-crates.bbclass devtool/upgrade: rename RECIPE_UPDATE_EXTRA_TASKS -> RECIPE_UPGRADE_EXTRA_TASKS 2024-08-03 07:56:10 +01:00
cargo.bbclass cargo.bbclass: show PACKAGECONFIG_CONFARGS in bbnote 2025-03-25 21:20:41 +00:00
cmake-qemu.bbclass cmake-qemu.bbclass: fix if criterion 2024-06-10 14:27:23 +01:00
cmake.bbclass classes/cmake: unset LDFLAGS in toolchain-native.bbclass 2025-10-01 10:52:54 +01:00
cml1.bbclass cml1.bbclass: use consistent make flags for menuconfig 2025-03-03 18:01:29 +00:00
compress_doc.bbclass
core-image.bbclass core-image.bbclass: Document two image features that were missing 2025-10-13 18:01:03 +01:00
cpan_build.bbclass
cpan-base.bbclass
cpan.bbclass
create-spdx-image-3.0.bbclass classes: create-spdx: Fix variable dependencies 2024-12-05 17:07:10 +00:00
create-spdx-sdk-3.0.bbclass spdx: Fix SPDX tasks not running when code changes 2024-11-23 14:44:54 +00:00
cross-canadian.bbclass tclibc-picolibc: Adds a new TCLIBC variant to build with picolibc as C library 2024-07-26 12:28:42 +01:00
cross.bbclass cross: Drop unneeded exports 2025-06-09 17:43:41 +01:00
crosssdk.bbclass cross/crosssdk: Allow deferring of these classes too 2025-06-16 22:26:38 +01:00
cython.bbclass classes/cython: also process .cpp files 2025-09-25 11:09:04 +01:00
deploy.bbclass
devicetree.bbclass meta: set S from UNPACKDIR in recipes that use only local files 2025-06-20 12:07:26 +01:00
devupstream.bbclass meta: remove S in recipes that fetch from git via setting BB_GIT_DEFAULT_DESTSUFFIX 2025-06-20 12:07:26 +01:00
distro_features_check.bbclass
dos2unix.bbclass
features_check.bbclass features_check.bbclass: Add support for required TUNE_FEATURES 2025-07-07 22:12:50 +01:00
fontcache.bbclass classes/recipes: remove unnecessary qemu inherit and use qemuwrapper-cross 2025-04-23 09:47:42 +01:00
fs-uuid.bbclass classes/fs-uuid: Fix command output decoding issue 2023-01-26 22:22:53 +00:00
gconf.bbclass
gettext.bbclass
gi-docgen.bbclass gi-docgen: depend on qemu-usermode MACHINE_FEATURES 2023-08-21 11:34:12 +01:00
gio-module-cache.bbclass classes/recipes: remove unnecessary qemu inherit and use qemuwrapper-cross 2025-04-23 09:47:42 +01:00
github-releases.bbclass github-releases: add a class that consolidates version checks 2022-09-28 08:01:10 +01:00
gnomebase.bbclass classes/recipes: Switch to use inherit_defer 2024-01-18 10:15:58 +00:00
go-mod-update-modules.bbclass go-mod-update-modules.bbclass: Update license finding 2025-09-08 18:02:39 +01:00
go-mod.bbclass go-mod.bbclass: Calculate GO_MOD_CACHE_DIR relative to ${UNPACKDIR} 2025-07-01 08:49:37 +01:00
go-ptest.bbclass
go.bbclass go: Check if GO_IMPORT is set in recipe and error if not 2025-03-03 18:01:30 +00:00
goarch.bbclass goarch.bbclass: do not leak TUNE_FEATURES into crosssdk task signatures 2025-08-21 10:29:56 +01:00
gobject-introspection-data.bbclass gobject-introspection-data.bbclass: move do_compile() tweak to g-i class 2024-01-19 12:21:22 +00:00
gobject-introspection.bbclass gobject-introspection-data.bbclass: move do_compile() tweak to g-i class 2024-01-19 12:21:22 +00:00
grub-efi-cfg.bbclass grub-efi-cfg: Add GRUB_TITLE for custom GRUB titles 2025-01-20 13:38:59 +00:00
grub-efi.bbclass grub-efi.bbclass: fix racing issue on grub-efi image 2025-09-08 18:02:39 +01:00
gsettings.bbclass
gtk-doc.bbclass gtk-doc: don't manually call gtkdocize 2024-01-12 11:54:05 +00:00
gtk-icon-cache.bbclass meta/meta-selftest: Fix variable assignment whitespace 2025-02-01 13:42:34 +00:00
gtk-immodules-cache.bbclass classes/recipes: remove unnecessary qemu inherit and use qemuwrapper-cross 2025-04-23 09:47:42 +01:00
image_types_wic.bbclass wic: extra partition plugin 2025-10-06 23:15:59 +01:00
image_types.bbclass classes: switch p7zip to 7zip 2025-02-10 13:03:57 +00:00
image-artifact-names.bbclass image-artifact-names: include ${IMAGE_NAME_SUFFIX} directly in both ${IMAGE_NAME} and ${IMAGE_LINK_NAME} 2023-06-29 11:28:32 +01:00
image-combined-dbg.bbclass classes: Drop ';' delimiter from ROOTFS/IMAGE*COMMAND variables 2023-09-09 22:14:41 +01:00
image-container.bbclass
image-live.bbclass image-live.bbclass: support disable isohybrid for EFI-only boot 2025-06-26 11:02:34 +01:00
image-postinst-intercepts.bbclass
image.bbclass image.bbclass: preserve debugfs tarball with checksum fstype 2025-09-11 11:31:57 +01:00
kernel-arch.bbclass kernel-arch.bbclass: Do not use weak assignment for TOOLCHAIN 2025-05-01 14:22:53 +01:00
kernel-artifact-names.bbclass image-artifact-names: add IMAGE_MACHINE_SUFFIX variable 2023-03-22 13:53:29 +00:00
kernel-devicetree.bbclass kernel-devicetree: install dtb files without -${KERNEL_DTB_NAME} suffix 2023-06-29 11:28:32 +01:00
kernel-fit-extra-artifacts.bbclass kernel-fit-image.bbclass: add a new FIT image implementation 2025-06-05 11:02:21 +01:00
kernel-fit-image.bbclass kernel-fit-image: control kernel section with FIT_LINUX_BIN 2025-09-08 18:02:40 +01:00
kernel-grub.bbclass
kernel-module-split.bbclass kernel-module-split: fix conf file generation when KERNEL_SPLIT_MODULES=0 2025-06-12 11:03:43 +01:00
kernel-uboot.bbclass kernel-fitimage.bbclass: remove it 2025-06-05 11:02:22 +01:00
kernel-uimage.bbclass kernel-uboot.bbclass: do not require the kernel build folder 2025-06-05 11:02:21 +01:00
kernel-yocto.bbclass meta: remove S in recipes that fetch from git via setting BB_GIT_DEFAULT_DESTSUFFIX 2025-06-20 12:07:26 +01:00
kernel.bbclass kernel.bbclass: add lz4-native dependency for Image.lz4 2025-09-22 22:09:48 +01:00
kernelsrc.bbclass kernelsrc/perf: clean up package version while using kernel source 2025-07-03 10:40:17 +01:00
lib_package.bbclass
libc-package.bbclass libc-locale: fix ASCII compatible warning cause build failure. 2024-02-29 10:26:13 +00:00
license_image.bbclass classes-global/license: Move functions to library code 2024-10-25 15:37:10 +01:00
linux-dummy.bbclass
linux-kernel-base.bbclass kernel: make LOCALVERSION consistent between recipes 2023-07-25 15:27:33 +01:00
linuxloader.bbclass linuxloader: add -armhf on arm only for TARGET_FPU 'hard' 2024-06-11 11:41:33 +01:00
live-vm-common.bbclass classes/recipes: Switch to use inherit_defer 2024-01-18 10:15:58 +00:00
manpages.bbclass classes/recipes: remove unnecessary qemu inherit and use qemuwrapper-cross 2025-04-23 09:47:42 +01:00
meson-routines.bbclass Revert "meson: use absolute cross-compiler paths" 2024-02-23 14:29:03 +00:00
meson.bbclass meson: correct bindgen_clang_argments 2025-05-08 10:28:18 +01:00
mime-xdg.bbclass
mime.bbclass
module-base.bbclass kernel: make LOCALVERSION consistent between recipes 2023-07-25 15:27:33 +01:00
module.bbclass module.bbclass: add KBUILD_EXTRA_SYMBOLS to install 2025-05-08 10:28:19 +01:00
multilib_header.bbclass
multilib_script.bbclass classes-recipe/multilib_script: Expand before splitting 2024-07-18 17:21:39 +01:00
native.bbclass classes/lib: Switch classextend to use new filter API 2025-08-12 10:05:11 +01:00
nativesdk.bbclass classes/lib: Switch classextend to use new filter API 2025-08-12 10:05:11 +01:00
nopackages.bbclass
nospdx.bbclass classes-recipe: nospdx: Add class 2024-07-13 23:28:31 +01:00
npm.bbclass classes-recipe: npm: Complain immediately if npm-shrinkwrap.json is too old 2025-04-10 11:05:34 +01:00
overlayfs-etc.bbclass overlayfs-etc: add option to skip creation of mount dirs 2024-02-19 15:21:14 +00:00
overlayfs.bbclass overlayfs: add missing vardeps 2024-02-21 22:20:10 +00:00
packagegroup.bbclass classes/recipes: Switch to use inherit_defer 2024-01-18 10:15:58 +00:00
perl-version.bbclass perl-version: remove PERL* assignments 2023-05-04 12:34:30 +01:00
perlnative.bbclass
pixbufcache.bbclass classes/recipes: remove unnecessary qemu inherit and use qemuwrapper-cross 2025-04-23 09:47:42 +01:00
pkgconfig.bbclass
populate_sdk_base.bbclass core-image, populate_sdk_base: Add zsh-completion-pkgs image feature 2025-10-13 18:01:03 +01:00
populate_sdk_ext.bbclass populate_sdk_ext: Update to toolcfg.conf 2025-10-09 10:58:07 +01:00
populate_sdk.bbclass
ptest-cargo.bbclass ptest-cargo.bbclass: sort binaries for reproducibility 2025-09-08 18:02:40 +01:00
ptest-gnome.bbclass
ptest-perl.bbclass recipes: Start WORKDIR -> UNPACKDIR transition 2024-05-21 12:08:04 +01:00
ptest-python-pytest.bbclass classes/ptest-python-pytest: simplify python ptest file overriding 2025-01-14 11:57:52 +00:00
ptest.bbclass insane: Drop oe.qa.add_message usage 2024-08-29 21:58:19 +01:00
pypi.bbclass pypi.bbclass: add / to UPSTREAM_CHECK_URI value 2025-09-15 17:57:23 +01:00
python_flit_core.bbclass classes/python_pep517: centralise shared inherits 2025-08-04 18:04:03 +01:00
python_hatchling.bbclass classes/python_pep517: centralise shared inherits 2025-08-04 18:04:03 +01:00
python_maturin.bbclass classes/python_maturin: don't pull in setuptools 2025-08-04 18:04:03 +01:00
python_mesonpy.bbclass classes/python_pep517: centralise shared inherits 2025-08-04 18:04:03 +01:00
python_pdm.bbclass classes/python_pdm: add PEP517 build class for PDM 2025-08-04 18:04:03 +01:00
python_pep517.bbclass classes/python_pep517: use pyproject-build instead of nativepython3 2025-08-07 12:11:15 +01:00
python_poetry_core.bbclass classes/python_pep517: centralise shared inherits 2025-08-04 18:04:03 +01:00
python_pyo3.bbclass meta/meta-selftest: Fix variable assignment whitespace 2025-02-01 13:42:34 +00:00
python_setuptools_build_meta.bbclass Revert "python_setuptools_build_meta: clean the build directory in configure" 2025-08-07 12:11:15 +01:00
python_setuptools3_rust.bbclass python_setuptools3_rust: inherit ...build_meta 2023-07-25 15:27:33 +01:00
python3-dir.bbclass python3: update 3.12.6 -> 3.13.0 2024-10-25 15:04:30 +01:00
python3native.bbclass meta/meta-selftest: Fix variable assignment whitespace 2025-02-01 13:42:34 +00:00
python3targetconfig.bbclass python3targetconfig.bbclass: Extend PYTHONPATH instead of overwriting 2023-05-05 11:07:25 +01:00
qemu.bbclass lib/classes/conf: refactor qemu.bbclass functions into library functions 2025-05-01 14:22:54 +01:00
qemuboot.bbclass bitbake/conf: Default to zstd compressed image output 2025-08-06 22:32:42 +01:00
rootfs_deb.bbclass
rootfs_ipk.bbclass rootfs: Fix MULTILIB_RE_ALLOW to be inherit order independent 2024-01-18 10:15:58 +00:00
rootfs_rpm.bbclass rootfs_rpm: don't depend on opkg-native for update-alternatives 2023-07-10 11:36:34 +01:00
rootfs-postcommands.bbclass classes-recipe: Consolidate machine-id handling 2025-03-09 20:10:06 +00:00
rootfsdebugfiles.bbclass classes: Drop ';' delimiter from ROOTFS/IMAGE*COMMAND variables 2023-09-09 22:14:41 +01:00
rust-common.bbclass rust-common.bbclass: soft assignment for RUSTLIB path 2025-02-01 13:20:45 +00:00
rust-target-config.bbclass rust-target-config: PPC64 targets require explicit ABI selection to avoid build failures with rustc. 2025-10-14 11:28:56 +01:00
rust.bbclass meta/meta-selftest: Fix variable assignment whitespace 2025-02-01 13:42:34 +00:00
scons.bbclass scons.bbclass: Add scons class prefix to do_configure 2024-08-23 09:12:38 +01:00
setuptools3_legacy.bbclass setuptools3_legacy: add pyproject.toml check 2025-07-31 10:48:35 +01:00
setuptools3-base.bbclass setuptools3-base.bbclass: override default subprocess timeout 2025-02-18 12:04:03 +00:00
setuptools3.bbclass setuptools3: clean the build directory in configure 2025-07-31 10:48:35 +01:00
siteinfo.bbclass siteconfig: Drop siteconfig class/code/support 2024-05-31 16:58:36 +01:00
sourceforge-releases.bbclass meta: use explicit uri for all sourceforge upstream version checks 2024-10-15 11:47:24 +01:00
syslinux.bbclass
systemd-boot-cfg.bbclass systemd-boot-cfg: add .conf suffix to default entry label 2023-09-26 10:35:28 +01:00
systemd-boot.bbclass
systemd.bbclass systemd: use if..then in prerm scriptlet 2025-09-25 11:09:04 +01:00
testexport.bbclass testexport.bbclass oe-test: capture all tests and data from all layers 2025-07-10 10:47:30 +01:00
testimage.bbclass testimage: get real os-release file 2025-05-15 10:55:26 +01:00
testsdk.bbclass oeqa/sdk: Simplify test specification and discovery 2025-07-01 08:49:37 +01:00
texinfo.bbclass
toolchain-scripts-base.bbclass
toolchain-scripts.bbclass meta/classes-recipe/toolchain-scripts.bbclass: eliminate bash-ism 2025-10-09 10:58:07 +01:00
uboot-config.bbclass u-boot: Add specifying make options as part the config looping 2025-10-09 10:58:07 +01:00
uboot-extlinux-config.bbclass uboot-extlinux-config.bbclass: invalidate do_create_extlinux_config on changes to UBOOT_EXTLINUX_FDTOVERLAYS:x 2025-01-20 13:39:00 +00:00
uboot-sign.bbclass u-boot: Make sure the build dir is unique for each UBOOT_CONFIG 2025-10-13 18:01:03 +01:00
uki.bbclass uki.bbclass: drop serial console from kernel command line 2025-04-17 11:03:22 +01:00
update-alternatives.bbclass update-alternatives: Simplfy variable dependency logic 2025-06-05 21:19:12 +01:00
update-rc.d.bbclass recipes, classes: Avoid adding extra whitespace to PACKAGESPLITFUNCS 2023-01-12 23:08:58 +00:00
upstream-version-is-even.bbclass
vala.bbclass
waf.bbclass waf: Improve version parsing to avoid failing on warnings 2024-03-01 09:31:10 +00:00
xmlcatalog.bbclass xmlcatalog: limit to native recipes only 2024-01-12 11:54:05 +00:00