poky/meta/classes-recipe
Hongxu Jia 37dd8810df kernelsrc/perf: clean up package version while using kernel source
If recipe inherits bbclass kernelsrc to use kernel sources,
the recipe should explicitly set ${KERNEL_VERSION} to ${PKGV}
in task do_package, otherwise package version (${PV} is usually
default 1.0) is not consistent with kernel source.

For example, there are 5 recipes in meta-openembedded to inherit
kernelsrc, but 4 recipes explicitly set PKGV.

meta-openembedded$ grep -e "setVar(.*PKGV.*KERNEL_VERSION" -e kernelsrc -rn *
meta-oe/recipes-kernel/intel-speed-select/intel-speed-select.bb:9:inherit kernelsrc
meta-oe/recipes-kernel/bpftool/bpftool.bb:8:inherit bash-completion kernelsrc kernel-arch
meta-oe/recipes-kernel/bpftool/bpftool.bb:44:    d.setVar('PKGV', d.getVar("KERNEL_VERSION").split("-")[0])
meta-oe/recipes-kernel/cpupower/cpupower.bb:8:inherit kernelsrc kernel-arch bash-completion
meta-oe/recipes-kernel/cpupower/cpupower.bb:32:    d.setVar('PKGV', d.getVar("KERNEL_VERSION").split("-")[0])
meta-oe/recipes-kernel/turbostat/turbostat.bb:98:    d.setVar('PKGV', d.getVar("KERNEL_VERSION").split("-")[0])
meta-oe/recipes-kernel/usbip-tools/usbip-tools.bb:25:inherit kernelsrc autotools-brokensep
meta-oe/recipes-kernel/usbip-tools/usbip-tools.bb:68:    d.setVar('PKGV', d.getVar("KERNEL_VERSION").split("-")[0])
meta-oe/recipes-kernel/spidev-test/spidev-test.bb:7:inherit bash-completion kernelsrc kernel-arch
meta-oe/recipes-kernel/spidev-test/spidev-test.bb:26:    d.setVar('PKGV', d.getVar("KERNEL_VERSION").split("-")[0])

This commit clean up the setting of PKGV, move it to kernelsrc.bbclass
for common use, the recipe (such as intel-speed-select) that inherited
kernelsrc will not be required to explicitly set ${PKGV} with
${KERNEL_VERSION}

(From OE-Core rev: 77a93e8cf1da4231341c56f64f9d4d474f9f2bb7)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-07-03 10:40:17 +01:00
..
allarch.bbclass allarch: Fix allarch corner case 2024-01-18 10:15:58 +00:00
autotools-brokensep.bbclass
autotools.bbclass autotools: require that a configure script exists 2025-03-18 11:25:36 +00: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 cmake.bbclass: Enhance to emit a native toolchain cmake file 2025-05-01 14:22:53 +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 classes-recipe/core-image: drop debug-tweaks IMAGE_FEATURE 2024-11-07 22:17:24 +00: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 cython: swap prefix-mapping patch for an upstream commit 2024-11-21 12:16:28 +00: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 base/features_check: Make PARSE_ALL_RECIPES and SOURCE_MIRROR_FETCH boolean 2024-12-23 11:41:38 +00: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 recipetool/create_go: proxy module fetching to go-mod-update-modules 2025-07-01 08:49:37 +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 Revert "goarch: disable dynamic linking globally" 2024-04-23 13:40:24 +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
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 image_types_wic: Fix file-checksums for missing files in search path 2025-06-24 13:53:23 +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 bitbake.conf/pseudo: Switch from exclusion list to inclusion list 2025-05-12 22:01:56 +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 meta: set S from UNPACKDIR in recipes that use only local files 2025-06-20 12:07:26 +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: remove support for type fitImage 2025-06-05 11:02:22 +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 native: Drop export statements that aren't needed 2025-03-18 10:27:31 +00:00
nativesdk.bbclass nativesdk.bbclass: handle PACKAGE_WRITE_DEPS 2025-04-23 09:47:42 +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 uninative/utils: Drop workarounds for gcc 4.8/4.9 2025-07-03 10:40:16 +01:00
populate_sdk_ext.bbclass uninative/utils: Drop workarounds for gcc 4.8/4.9 2025-07-03 10:40:16 +01:00
populate_sdk.bbclass
ptest-cargo.bbclass ptest-cargo: fix tests output format for testimage 2025-05-15 10:55:26 +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 meta: set S to be in UNPACKDIR in recipes that explicitly set S 2025-06-20 12:07:26 +01:00
python_flit_core.bbclass python_flit_core: remove python3 dependency 2024-08-15 14:51:55 +01:00
python_hatchling.bbclass python_hatchling: remove empty python sysroot dirs 2023-06-02 14:41:50 +01:00
python_maturin.bbclass classes-recipe: add python_maturin.bbclass 2023-12-17 19:07:21 +00:00
python_mesonpy.bbclass python_mesonpy: remove cython-specific INSANE_SKIPs 2024-11-12 23:54:35 +00:00
python_pep517.bbclass classes-recipe/python_pep517: remove all RECORD files 2024-11-21 12:16:28 +00:00
python_poetry_core.bbclass
python_pyo3.bbclass meta/meta-selftest: Fix variable assignment whitespace 2025-02-01 13:42:34 +00:00
python_setuptools_build_meta.bbclass
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 qemuboot: Trigger write_qemuboot_conf task on changes of kernel image realpath 2024-07-04 22:56:15 +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: Upgrade 1.86.0 -> 1.87.0 2025-06-26 11:02:34 +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: remove NO_FETCH_BUILD 2025-05-27 09:01:16 +01:00
setuptools3-base.bbclass setuptools3-base.bbclass: override default subprocess timeout 2025-02-18 12:04:03 +00:00
setuptools3.bbclass setuptools3: remove NO_FETCH_BUILD 2025-05-27 09:01:16 +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.bbclass: generate preset for templates 2025-06-02 22:17:24 +01:00
testexport.bbclass rpm: replace use of rpm2cpio with rpm2archive 2024-12-12 13:22:08 +00: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 toolchain-scripts: Export meson settings for SDK builds 2025-05-12 22:01:55 +01:00
uboot-config.bbclass u-boot: Allow for customizing installed/deployed file names 2025-06-23 22:13:08 +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 uboot-sign.bbclass: Refactor condition checks to use && and || instead of -a and -o 2025-06-19 21:54:43 +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