diff options
| -rw-r--r-- | meta/conf/bitbake.conf | 1 | ||||
| -rw-r--r-- | meta/conf/machine/include/README | 77 |
2 files changed, 77 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 824ef043c2..b4669d314f 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
| @@ -96,7 +96,6 @@ TUNE_CCARGS ??= "" | |||
| 96 | TUNE_LDARGS ??= "" | 96 | TUNE_LDARGS ??= "" |
| 97 | TUNE_ASARGS ??= "" | 97 | TUNE_ASARGS ??= "" |
| 98 | TUNE_FEATURES ??= "${TUNE_FEATURES_tune-${DEFAULTTUNE}}" | 98 | TUNE_FEATURES ??= "${TUNE_FEATURES_tune-${DEFAULTTUNE}}" |
| 99 | TUNE_PKGARCH ??= "${TUNE_PKGARCH_tune-${DEFAULTTUNE}}" | ||
| 100 | LIBCEXTENSION ??= "" | 99 | LIBCEXTENSION ??= "" |
| 101 | ABIEXTENSION ??= "" | 100 | ABIEXTENSION ??= "" |
| 102 | 101 | ||
diff --git a/meta/conf/machine/include/README b/meta/conf/machine/include/README new file mode 100644 index 0000000000..6a3a63dbca --- /dev/null +++ b/meta/conf/machine/include/README | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | 2012/03/30 - Mark Hatle <mark.hatle@windriver.com> | ||
| 2 | - Initial Revision | ||
| 3 | |||
| 4 | The individual CPU, and ABI tunings are contained in this directory. A | ||
| 5 | number of local and global variables are used to control the way the | ||
| 6 | tunings are setup and how they work together to specify an optimized | ||
| 7 | configuration. | ||
| 8 | |||
| 9 | The following is brief summary of the generic components that are used | ||
| 10 | in these tunings. | ||
| 11 | |||
| 12 | AVAILTUNES - This is a list of all of the tuning definitions currently | ||
| 13 | available in the system. Not all tunes in this list may be compatible | ||
| 14 | with the machine configuration, or each other in a multilib | ||
| 15 | configuration. Each tuning file can add to this list using "+=", but | ||
| 16 | should never replace the list using "=". | ||
| 17 | |||
| 18 | DEFAULTTUNE - This specifies the tune to use for a particular build. | ||
| 19 | Each tune should specify a reasonable default, which can be overriden by | ||
| 20 | a machine or multilib configuration. The specified tune must be listed | ||
| 21 | in the AVAILTUNES. | ||
| 22 | |||
| 23 | TUNEVALID[feature] - The <feature> is defined with a human readable | ||
| 24 | explanation for what it does. All architectural, cpu, abi, etc tuning | ||
| 25 | features must be defined using TUNEVALID. | ||
| 26 | |||
| 27 | TUNE_FEATURES - This is automatically defined as TUNE_FEATURES_tune-<tune>. | ||
| 28 | See TUNE_FEATURES_tune-<tune> for more information. | ||
| 29 | |||
| 30 | TUNE_FEATURES_tune-<tune> - Specify the features used to describe a | ||
| 31 | specific tune. This is a list of features that a tune support, each | ||
| 32 | feature must be in the TUNEVALID list. Note: the tune and a given | ||
| 33 | feature name may be the same, but they have different purposes. Only | ||
| 34 | features may be used to change behavior, while tunes are used to | ||
| 35 | describe an overall set of features. | ||
| 36 | |||
| 37 | ABIEXTENSION - An ABI extension may be specified by a specific feature | ||
| 38 | or other tuning setting, such as TARGET_FPU. Any ABI extensions either | ||
| 39 | need to be defined in the architectures base arch file, i.e. | ||
| 40 | ABIEXTENSION = "eabi" in the arm case, or appended to in specific tune | ||
| 41 | files with a ".=". Spaces are not allowed in this variable. | ||
| 42 | |||
| 43 | TUNE_CCARGS - Setup the cflags based on the TUNE_FEATURES settings. | ||
| 44 | These should be additive when defined using "+=". All items in this | ||
| 45 | list should be dynamic! i.e. | ||
| 46 | ${@bb.utils.contains("TUNE_FEATURES", "feature", "cflag", "!cflag", d)} | ||
| 47 | |||
| 48 | TUNE_ARCH - The GNU canonical arch for a specific architecture. i.e. | ||
| 49 | arm, armeb, mips, mips64, etc. This value is by bitbake to setup | ||
| 50 | configure. TUNE_ARCH definitions are specific to a given architecture. | ||
| 51 | They may be a single static definitions, or may be dynamically adjusted. | ||
| 52 | See each architectures README for details for that CPU family. | ||
| 53 | |||
| 54 | TUNE_PKGARCH - The package architecture used by the packaging systems to | ||
| 55 | define the architecture, abi and tuning of a particular package. | ||
| 56 | Similarly to TUNE_ARCH, the definition of TUNE_PKGARCH is specific to | ||
| 57 | each architecture. See each architectures README for details for that | ||
| 58 | CPU family. | ||
| 59 | |||
| 60 | PACKAGE_EXTRA_ARCHS - Lists all runtime compatible package | ||
| 61 | architectures. By default this is equal to | ||
| 62 | PACKAGE_EXTRA_ARCHS_tune-<tune>. If an architecture deviates from the | ||
| 63 | default it will be listed in the architecture README. | ||
| 64 | |||
| 65 | PACKAGE_EXTRA_ARCHS_tune-<tune> - List all of the package architectures | ||
| 66 | that are compatible with this specific tune. The package arch of this | ||
| 67 | tune must be in the list. | ||
| 68 | |||
| 69 | TARGET_FPU - The FPU setting for a given tune, hard (generate floating | ||
| 70 | point instructions), soft (generate internal gcc calls), "other" | ||
| 71 | architecture specific floating point. This is synchronized with the | ||
| 72 | compiler and other toolchain items. This should be dynamically | ||
| 73 | configured in the same way that TUNE_CCARGS is. | ||
| 74 | |||
| 75 | BASE_LIB_tune-<tune> - The "/lib" location for a specific ABI. This is | ||
| 76 | used in a multilib configuration to place the libraries in the correct, | ||
| 77 | non-conflicting locations. | ||
