diff options
| -rw-r--r-- | documentation/ref-manual/variables.rst | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 5d45f4a9f9..38b13ecf8d 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst | |||
| @@ -1202,13 +1202,32 @@ system and gives an overview of their function and contents. | |||
| 1202 | speed since the build system skips parsing recipes not compatible | 1202 | speed since the build system skips parsing recipes not compatible |
| 1203 | with the current machine. | 1203 | with the current machine. |
| 1204 | 1204 | ||
| 1205 | If one wants to have a recipe only available for some architectures | ||
| 1206 | (here ``aarch64`` and ``mips64``), the following can be used:: | ||
| 1207 | |||
| 1208 | COMPATIBLE_MACHINE = "^$" | ||
| 1209 | COMPATIBLE_MACHINE:arch64 = "^(aarch64)$" | ||
| 1210 | COMPATIBLE_MACHINE:mips64 = "^(mips64)$" | ||
| 1211 | |||
| 1212 | The first line means "match all machines whose :term:`MACHINEOVERRIDES` | ||
| 1213 | contains the empty string", which will always be none. | ||
| 1214 | |||
| 1215 | The second is for matching all machines whose :term:`MACHINEOVERRIDES` | ||
| 1216 | contains one override which is exactly ``aarch64``. | ||
| 1217 | |||
| 1218 | The third is for matching all machines whose :term:`MACHINEOVERRIDES` | ||
| 1219 | contains one override which is exactly ``mips64``. | ||
| 1220 | |||
| 1221 | The same could be achieved with:: | ||
| 1222 | |||
| 1223 | COMPATIBLE_MACHINE = "^(aarch64|mips64)$" | ||
| 1224 | |||
| 1205 | .. note:: | 1225 | .. note:: |
| 1206 | 1226 | ||
| 1207 | When :term:`COMPATIBLE_MACHINE` is set in a recipe inherits from | 1227 | When :term:`COMPATIBLE_MACHINE` is set in a recipe inherits from |
| 1208 | native, the recipe is always skipped. All native recipes must be | 1228 | native, the recipe is always skipped. All native recipes must be |
| 1209 | entirely target independent and should not rely on :term:`MACHINE`. | 1229 | entirely target independent and should not rely on :term:`MACHINE`. |
| 1210 | 1230 | ||
| 1211 | |||
| 1212 | :term:`COMPLEMENTARY_GLOB` | 1231 | :term:`COMPLEMENTARY_GLOB` |
| 1213 | Defines wildcards to match when installing a list of complementary | 1232 | Defines wildcards to match when installing a list of complementary |
| 1214 | packages for all the packages explicitly (or implicitly) installed in | 1233 | packages for all the packages explicitly (or implicitly) installed in |
