diff options
-rw-r--r-- | meta/conf/machine/include/README | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/conf/machine/include/README b/meta/conf/machine/include/README index 65d09428a8..6c390adeee 100644 --- a/meta/conf/machine/include/README +++ b/meta/conf/machine/include/README | |||
@@ -1,6 +1,9 @@ | |||
1 | 2012/03/30 - Mark Hatle <mark.hatle@windriver.com> | 1 | 2012/03/30 - Mark Hatle <mark.hatle@windriver.com> |
2 | - Initial Revision | 2 | - Initial Revision |
3 | 3 | ||
4 | |||
5 | Introduction | ||
6 | ============ | ||
4 | The individual CPU, and ABI tunings are contained in this directory. A | 7 | 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 | 8 | 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 | 9 | tunings are setup and how they work together to specify an optimized |
@@ -79,3 +82,19 @@ configured in the same way that TUNE_CCARGS is. | |||
79 | BASE_LIB_tune-<tune> - The "/lib" location for a specific ABI. This is | 82 | BASE_LIB_tune-<tune> - The "/lib" location for a specific ABI. This is |
80 | used in a multilib configuration to place the libraries in the correct, | 83 | used in a multilib configuration to place the libraries in the correct, |
81 | non-conflicting locations. | 84 | non-conflicting locations. |
85 | |||
86 | |||
87 | Best Practice | ||
88 | ============= | ||
89 | The tune infrastructure is designed to be hierarchical. When writing a | ||
90 | new tune file for a "fast-forward" CPU architecture (one that supports | ||
91 | everything from a previous generation), it is recommended to require the | ||
92 | previous generation tune file and specify PACKAGE_EXTRA_ARCHS using the | ||
93 | previous generation's override and appending the new tune. Note that | ||
94 | only one previous tune file should be included to avoid mutiple includes | ||
95 | of the base arch which could lead to a broken configuration due to | ||
96 | multiple prepend and append assignments. | ||
97 | |||
98 | For example, for x86, there is a common x86/arch-x86.inc which is | ||
99 | included in the base i586 tune file. The core2 tune builds | ||
100 | on that, and corei7 builds on core2. | ||