poky/meta/classes
Chen Qi 6cc6246fd0 multilib_global.bbclass: fix parsing error with no kernel module split
The problem could be reproduced with the following settings:
MACHINE = "qemux86-64"
KERNEL_SPLIT_MODULES = "0"
require conf/multilib.conf
MULTILIBS ?= "multilib:lib32"
DEFAULTTUNE:virtclass-multilib-lib32 ?= "core2-32"

The error message is as below:
  bb.data_smart.ExpansionError: Failure expanding variable KERNEL_VERSION_PKG_NAME, expression was ${@legitimize_package_name(d.getVar('KERNEL_VERSION'))} which triggered exception TypeError: expected string or bytes-like object
  The variable dependency chain for the failure is: KERNEL_VERSION_PKG_NAME -> RPROVIDES:kernel-modules

This is because multilib_virtclass_handler_global function in
multilib_global.bbclass deletes KERNEL_VERSION. So we need to handle
such situation. We'll also need to delete KERNEL_VERSION_PKG_NAME
to avoid this parsing error.

(From OE-Core rev: 43dd497bc161ac44faecfdff052db03679dbb4f8)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-06 10:32:19 +00:00
..
archiver.bbclass archiver.bbclass: Drop tarfile module to improve performance 2023-12-23 08:46:01 +00:00
buildhistory.bbclass classes: Drop ';' delimiter from ROOTFS/IMAGE*COMMAND variables 2023-09-09 22:14:41 +01:00
buildstats-summary.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
ccache.bbclass ccache.bbclass: Add allowed list for native recipes 2023-08-21 11:34:12 +01:00
ccmake.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
chrpath.bbclass chrpath.bbclass: fix Darwin support 2024-01-15 21:42:15 +00:00
copyleft_compliance.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
copyleft_filter.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
create-spdx-2.2.bbclass create-spdx-2.2: combine spdx can try to write before dir creation 2023-12-17 19:07:22 +00:00
create-spdx.bbclass classes: create-spdx: Move to version specific class 2022-11-11 13:43:40 +00:00
cve-check.bbclass Revert "cve-check: Modify judgment processing using "=" in version comparison" 2023-12-05 21:16:43 +00:00
devtool-source.bbclass devtool: tag all submodules 2023-12-01 11:48:25 +00:00
distrooverrides.bbclass distrooverrides: Move back to classes whilst it's usage is clarified 2022-08-18 10:38:48 +01:00
externalsrc.bbclass externalsrc: fix task dependency for do_populate_lic 2024-01-24 15:46:19 +00:00
extrausers.bbclass classes: Drop ';' delimiter from ROOTFS/IMAGE*COMMAND variables 2023-09-09 22:14:41 +01:00
go-vendor.bbclass classes: go-vendor: Unlink vendor dir later 2024-01-19 12:21:22 +00:00
icecc.bbclass icecc: enable the network only when ICECC_DISABLED is not set 2023-02-24 17:05:24 +00:00
image-buildinfo.bbclass classes: Drop ';' delimiter from ROOTFS/IMAGE*COMMAND variables 2023-09-09 22:14:41 +01:00
mcextend.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
metadata_scm.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
migrate_localcount.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
multilib_global.bbclass multilib_global.bbclass: fix parsing error with no kernel module split 2024-02-06 10:32:19 +00:00
multilib.bbclass classes/multilib: expand PACKAGE_WRITE_DEPS in addition to DEPENDS 2024-01-27 08:20:02 +00:00
oelint.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
own-mirrors.bbclass Add GCP fetcher to list of supported protocols 2023-08-14 12:51:21 +01:00
prexport.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
primport.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
recipe_sanity.bbclass recipe_sanity: fix old override syntax 2023-02-08 10:29:01 +00:00
relative_symlinks.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
relocatable.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
remove-libtool.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
report-error.bbclass report-error: make it catch ParseError error 2023-04-20 11:56:06 +01:00
rm_work_and_downloads.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
rm_work.bbclass rm_work: handle non-existant stamps directory 2023-01-06 12:03:47 +00:00
sign_ipk.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
sign_package_feed.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
sign_rpm.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
siteconfig.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
terminal.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
toaster.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
typecheck.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00
useradd_base.bbclass useradd_base: Fix sed command line for passwd-expire 2023-11-21 21:25:41 +00:00
useradd-staticids.bbclass useradd-staticids.bbclass: improve error message 2023-06-15 09:53:38 +01:00
useradd.bbclass sysroot user management postinsts: run with /bin/sh -e to report errors when they happen 2024-01-27 08:20:02 +00:00
yocto-check-layer.bbclass classes: Add SPDX license identifiers 2022-08-12 11:58:01 +01:00