diff options
Diffstat (limited to 'documentation/migration-guides/migration-5.2.rst')
-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 | ||