diff options
author | Antonin Godard <antonin.godard@bootlin.com> | 2025-02-07 09:27:44 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-07 17:52:48 +0000 |
commit | cf616cbae7197c3f4feeccf25fbd14f843855fce (patch) | |
tree | dbd79559972b8b4408de660c4276c6e2eca01b5e /documentation | |
parent | 8c49710b8d54150308b7cfab81048bbd613072cd (diff) | |
download | poky-cf616cbae7197c3f4feeccf25fbd14f843855fce.tar.gz |
migration-5.2: add virtual provider change
The commit 4ccc3bc8266c ("classes/recipes: Switch virtual/XXX-gcc to
virtual/cross-cc (and c++/binutils)") in OE-Core changes the
virtual/XXX-gcc to virtual/cross-cc (and c++/binutils) syntax. Add it to
the migration manual.
(From yocto-docs rev: 6eda443c7fcfeecebd6b44b96a1587c4bb093a34)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/migration-guides/migration-5.2.rst | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/documentation/migration-guides/migration-5.2.rst b/documentation/migration-guides/migration-5.2.rst index a60e3e9a80..de2ea773e5 100644 --- a/documentation/migration-guides/migration-5.2.rst +++ b/documentation/migration-guides/migration-5.2.rst | |||
@@ -105,6 +105,41 @@ some obscure bugs. | |||
105 | Any logic based on ``BB_CURRENT_MC`` equalling to ``default`` by default should | 105 | Any logic based on ``BB_CURRENT_MC`` equalling to ``default`` by default should |
106 | be changed to be equal to an empty string. | 106 | be changed to be equal to an empty string. |
107 | 107 | ||
108 | Virtual toolchain provider changes | ||
109 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
110 | |||
111 | Support was added for virtual providers on a per-recipe basis for specific | ||
112 | key toolchain providers listed in ``BB_VIRTUAL_RECIPE_PROVIDERS``. As part of | ||
113 | that support, the ``cross`` providers were simplified to remove the triplet | ||
114 | prefix (:term:`TARGET_PREFIX`, :term:`SDK_PREFIX` and :term:`HOST_PREFIX`) and | ||
115 | generalise the naming. Here are examples of how references to these variables | ||
116 | can be changed to use the new ``cross`` syntax:: | ||
117 | |||
118 | virtual/${HOST_PREFIX}binutils -> virtual/cross-binutils | ||
119 | virtual/${TARGET_PREFIX}binutils -> virtual/cross-binutils | ||
120 | |||
121 | virtual/${HOST_PREFIX}gcc -> virtual/cross-cc | ||
122 | virtual/${TARGET_PREFIX}gcc -> virtual/cross-cc | ||
123 | virtual/${SDK_PREFIX}gcc -> virtual/nativesdk-cross-cc | ||
124 | |||
125 | virtual/${HOST_PREFIX}compilerlibs -> virtual/compilerlibs | ||
126 | virtual/${TARGET_PREFIX}compilerlibs -> virtual/compilerlibs | ||
127 | virtual/nativesdk-${SDK_PREFIX}compilerlibs -> virtual/nativesdk-compilerlibs | ||
128 | |||
129 | virtual/${TARGET_PREFIX}g++ -> virtual/cross-c++ | ||
130 | |||
131 | A :term:`PREFERRED_PROVIDER` assignment can be transformed as follows:: | ||
132 | |||
133 | PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils -> PREFERRED_PROVIDER_virtual/cross-binutils | ||
134 | PREFERRED_PROVIDER_virtual/${SDK_PREFIX}binutils -> PREFERRED_PROVIDER_virtual/cross-binutils:class-nativesdk | ||
135 | PREFERRED_PROVIDER_virtual/${SDK_PREFIX}g++ -> PREFERRED_PROVIDER_virtual/nativesdk-cross-c++ | ||
136 | |||
137 | The above examples should cover most cases, but there might be situations where | ||
138 | replacing is not as straightforward. For more examples, see the commit | ||
139 | :oe_git:`"classes/recipes: Switch virtual/XXX-gcc to virtual/cross-cc (and | ||
140 | c++/binutils)" </openembedded-core/commit/?id=4ccc3bc8266c>` in | ||
141 | :term:`OpenEmbedded-Core (OE-Core)`. | ||
142 | |||
108 | Recipe changes | 143 | Recipe changes |
109 | ~~~~~~~~~~~~~~ | 144 | ~~~~~~~~~~~~~~ |
110 | 145 | ||