Skip to content

meta-riscv: initial deprecation changes#625

Merged
Khem Raj (kraj) merged 3 commits into
riscv:masterfrom
threexc:tgamblin/deprecation-warnings
Apr 13, 2026
Merged

meta-riscv: initial deprecation changes#625
Khem Raj (kraj) merged 3 commits into
riscv:masterfrom
threexc:tgamblin/deprecation-warnings

Conversation

@threexc

@threexc Trevor Gamblin (threexc) commented Apr 10, 2026

Copy link
Copy Markdown
Contributor
  1. Add classes/warn-deprecated-machines.bbclass with a Python function, then INHERIT it in conf/layer.conf, which allows for warnings like this:
Build Configuration:
BB_VERSION           = "2.16.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "riscv64-poky-linux"
MACHINE              = "visionfive"
SDKMACHINE           = "x86_64"
DISTRO               = "poky"
DISTRO_VERSION       = "5.3.99+snapshot-5a60dca0fb81695e26149e45aad9a9eee7c955ec"
TUNE_FEATURES        = "rv 64 i m a f d c zicsr zifencei"
meta                 = "master:5a60dca0fb81695e26149e45aad9a9eee7c955ec"
meta-riscv           = "tgamblin/deprecation-warnings:5e26903faa31d42c707ee8ae54df7f1997bbc4d0"
meta-yocto-bsp
meta-poky            = "master:266eed66396f9c12ed6fdbd24626f555815af0b1"

WARNING: MACHINE='visionfive' is deprecated and will no longer be supported after Yocto 6.1. Please consider an alternative BSP.
  1. Add a DEPRECATED.md file at the top level, listing deprecated MACHINE values and their corresponding removal release.

  2. Modify the pull request template with a message about checking for deprecated BSPs and related decision making.

Add classes/warn-deprecated-machines.bbclass with a Python function,
then INHERIT it in conf/layer.conf.

Start with deprecating the following MACHINEs:

- beaglev
- visionfive

These will be removed with the Yocto 6.1 release.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
@threexc Trevor Gamblin (threexc) force-pushed the tgamblin/deprecation-warnings branch from 8a244f8 to 88f1e26 Compare April 10, 2026 17:31
@threexc Trevor Gamblin (threexc) changed the title meta-riscv: add deprecation warning function, message meta-riscv: initial deprecation changes Apr 10, 2026
@kraj Khem Raj (kraj) merged commit d759466 into riscv:master Apr 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants