diff options
Diffstat (limited to 'documentation/ref-manual/variables.rst')
-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 0e11ab2f68..abd361bf63 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst | |||
@@ -1362,13 +1362,32 @@ system and gives an overview of their function and contents. | |||
1362 | speed since the build system skips parsing recipes not compatible | 1362 | speed since the build system skips parsing recipes not compatible |
1363 | with the current machine. | 1363 | with the current machine. |
1364 | 1364 | ||
1365 | If one wants to have a recipe only available for some architectures | ||
1366 | (here ``aarch64`` and ``mips64``), the following can be used:: | ||
1367 | |||
1368 | COMPATIBLE_MACHINE = "^$" | ||
1369 | COMPATIBLE_MACHINE:arch64 = "^(aarch64)$" | ||
1370 | COMPATIBLE_MACHINE:mips64 = "^(mips64)$" | ||
1371 | |||
1372 | The first line means "match all machines whose :term:`MACHINEOVERRIDES` | ||
1373 | contains the empty string", which will always be none. | ||
1374 | |||
1375 | The second is for matching all machines whose :term:`MACHINEOVERRIDES` | ||
1376 | contains one override which is exactly ``aarch64``. | ||
1377 | |||
1378 | The third is for matching all machines whose :term:`MACHINEOVERRIDES` | ||
1379 | contains one override which is exactly ``mips64``. | ||
1380 | |||
1381 | The same could be achieved with:: | ||
1382 | |||
1383 | COMPATIBLE_MACHINE = "^(aarch64|mips64)$" | ||
1384 | |||
1365 | .. note:: | 1385 | .. note:: |
1366 | 1386 | ||
1367 | When :term:`COMPATIBLE_MACHINE` is set in a recipe inherits from | 1387 | When :term:`COMPATIBLE_MACHINE` is set in a recipe inherits from |
1368 | native, the recipe is always skipped. All native recipes must be | 1388 | native, the recipe is always skipped. All native recipes must be |
1369 | entirely target independent and should not rely on :term:`MACHINE`. | 1389 | entirely target independent and should not rely on :term:`MACHINE`. |
1370 | 1390 | ||
1371 | |||
1372 | :term:`COMPLEMENTARY_GLOB` | 1391 | :term:`COMPLEMENTARY_GLOB` |
1373 | Defines wildcards to match when installing a list of complementary | 1392 | Defines wildcards to match when installing a list of complementary |
1374 | packages for all the packages explicitly (or implicitly) installed in | 1393 | packages for all the packages explicitly (or implicitly) installed in |