diff options
Diffstat (limited to 'meta/conf/machine/include')
-rw-r--r-- | meta/conf/machine/include/powerpc/README | 17 | ||||
-rw-r--r-- | meta/conf/machine/include/powerpc/arch-powerpc.inc | 15 | ||||
-rw-r--r-- | meta/conf/machine/include/powerpc/arch-powerpc64.inc | 1 | ||||
-rw-r--r-- | meta/conf/machine/include/tune-ppc603e.inc | 4 | ||||
-rw-r--r-- | meta/conf/machine/include/tune-ppce300c2.inc | 2 | ||||
-rw-r--r-- | meta/conf/machine/include/tune-ppce500.inc | 10 | ||||
-rw-r--r-- | meta/conf/machine/include/tune-ppce500mc.inc | 4 | ||||
-rw-r--r-- | meta/conf/machine/include/tune-ppce500v2.inc | 10 | ||||
-rw-r--r-- | meta/conf/machine/include/tune-ppce5500.inc | 4 |
9 files changed, 47 insertions, 20 deletions
diff --git a/meta/conf/machine/include/powerpc/README b/meta/conf/machine/include/powerpc/README new file mode 100644 index 0000000000..e87fb5082c --- /dev/null +++ b/meta/conf/machine/include/powerpc/README | |||
@@ -0,0 +1,17 @@ | |||
1 | 2012/03/30 - Mark Hatle <mark.hatle@windriver.com> | ||
2 | - Initial revision | ||
3 | |||
4 | There are 4 primary PowerPC ABIs. | ||
5 | # *) Hard/Soft Floating Point | ||
6 | # *) 32-bit/64-bit | ||
7 | |||
8 | TUNE_ARCH is defined as either "powerpc" or "powerpc64" based on the m32 | ||
9 | or m64 feature. | ||
10 | |||
11 | May of the PowerPC package archictures are based on legacy Linux names. | ||
12 | However, a general naming scheme should be similar to: ppc[64][<family>][-nf]. | ||
13 | (Note: the default package architectures are "powerpc" and "powerpc64".) | ||
14 | |||
15 | TUNE_PKGARCH is defined as TUNE_PKGARCH_tune-${DEFAULTTUNE}. All | ||
16 | PowerPC tunings are required to define TUNE_PKGARCH_tune-<tune>. | ||
17 | |||
diff --git a/meta/conf/machine/include/powerpc/arch-powerpc.inc b/meta/conf/machine/include/powerpc/arch-powerpc.inc index c5fd6b7173..12909d9651 100644 --- a/meta/conf/machine/include/powerpc/arch-powerpc.inc +++ b/meta/conf/machine/include/powerpc/arch-powerpc.inc | |||
@@ -5,6 +5,9 @@ | |||
5 | 5 | ||
6 | DEFAULTTUNE ?= "powerpc" | 6 | DEFAULTTUNE ?= "powerpc" |
7 | 7 | ||
8 | TUNE_PKGARCH = "${TUNE_PKGARCH_tune-${DEFAULTTUNE}}" | ||
9 | ABIEXTENSION ?= "" | ||
10 | |||
8 | TUNEVALID[m32] = "Power ELF32 standard ABI" | 11 | TUNEVALID[m32] = "Power ELF32 standard ABI" |
9 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "m32", "-m32", "", d)}" | 12 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "m32", "-m32", "", d)}" |
10 | TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", "m32", "powerpc", "", d)}" | 13 | TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", "m32", "powerpc", "", d)}" |
@@ -16,16 +19,14 @@ TUNEVALID[fpu-soft] = "Use software FPU." | |||
16 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "-msoft-float", "", d)}" | 19 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "-msoft-float", "", d)}" |
17 | TARGET_FPU .= "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "soft", "", d)}" | 20 | TARGET_FPU .= "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "soft", "", d)}" |
18 | 21 | ||
19 | ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-efs']]}" | ||
20 | |||
21 | PPCPKGSFX_FPU = "${@['', '-nf'][d.getVar('TARGET_FPU', True) in ['fpu-soft']]}" | ||
22 | TUNE_PKGARCH_append = "${PPCPKGSFX_FPU}" | ||
23 | |||
24 | # Basic tune definitions | 22 | # Basic tune definitions |
25 | AVAILTUNES += "powerpc powerpc-nf" | 23 | AVAILTUNES += "powerpc powerpc-nf" |
26 | TUNE_FEATURES_tune-powerpc-nf ?= "m32 fpu-soft" | 24 | TUNE_FEATURES_tune-powerpc-nf = "m32 fpu-soft" |
27 | BASE_LIB_tune-powerpc-nf = "lib" | 25 | BASE_LIB_tune-powerpc-nf = "lib" |
26 | TUNE_PKGARCH_tune-powerpc-nf = "powerpc-nf" | ||
28 | PACKAGE_EXTRA_ARCHS_tune-powerpc-nf = "powerpc-nf" | 27 | PACKAGE_EXTRA_ARCHS_tune-powerpc-nf = "powerpc-nf" |
29 | TUNE_FEATURES_tune-powerpc ?= "m32 fpu-hard" | 28 | |
29 | TUNE_FEATURES_tune-powerpc = "m32 fpu-hard" | ||
30 | BASE_LIB_tune-powerpc = "lib" | 30 | BASE_LIB_tune-powerpc = "lib" |
31 | TUNE_PKGARCH_tune-powerpc = "powerpc" | ||
31 | PACKAGE_EXTRA_ARCHS_tune-powerpc = "powerpc" | 32 | PACKAGE_EXTRA_ARCHS_tune-powerpc = "powerpc" |
diff --git a/meta/conf/machine/include/powerpc/arch-powerpc64.inc b/meta/conf/machine/include/powerpc/arch-powerpc64.inc index 48cd08e601..a5e975574e 100644 --- a/meta/conf/machine/include/powerpc/arch-powerpc64.inc +++ b/meta/conf/machine/include/powerpc/arch-powerpc64.inc | |||
@@ -10,4 +10,5 @@ TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", [ "m64" ], "powerpc64", "", | |||
10 | AVAILTUNES += "powerpc64" | 10 | AVAILTUNES += "powerpc64" |
11 | TUNE_FEATURES_tune-powerpc64 ?= "m64 fpu-hard" | 11 | TUNE_FEATURES_tune-powerpc64 ?= "m64 fpu-hard" |
12 | BASE_LIB_tune-powerpc64 = "lib64" | 12 | BASE_LIB_tune-powerpc64 = "lib64" |
13 | TUNE_PKGARCH_tune-powerpc64 = "powerpc64" | ||
13 | PACKAGE_EXTRA_ARCHS_tune-powerpc64 = "powerpc64" | 14 | PACKAGE_EXTRA_ARCHS_tune-powerpc64 = "powerpc64" |
diff --git a/meta/conf/machine/include/tune-ppc603e.inc b/meta/conf/machine/include/tune-ppc603e.inc index 02cebe7e67..6557c1d696 100644 --- a/meta/conf/machine/include/tune-ppc603e.inc +++ b/meta/conf/machine/include/tune-ppc603e.inc | |||
@@ -4,10 +4,10 @@ require conf/machine/include/powerpc/arch-powerpc.inc | |||
4 | 4 | ||
5 | TUNEVALID[ppc603e] = "Enable ppc603e specific processor optimizations" | 5 | TUNEVALID[ppc603e] = "Enable ppc603e specific processor optimizations" |
6 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppc603e", "-mcpu=603e", "", d)}" | 6 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppc603e", "-mcpu=603e", "", d)}" |
7 | TUNE_PKGARCH_tune-ppc603e = "ppc603e" | ||
8 | 7 | ||
9 | AVAILTUNES = "ppc603e" | 8 | AVAILTUNES += "ppc603e" |
10 | TUNE_FEATURES_tune-ppc603e = "m32 fpu-hard ppc603e" | 9 | TUNE_FEATURES_tune-ppc603e = "m32 fpu-hard ppc603e" |
10 | TUNE_PKGARCH_tune-ppc603e = "ppc603e" | ||
11 | PACKAGE_EXTRA_ARCHS_tune-ppc603e = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppc603e" | 11 | PACKAGE_EXTRA_ARCHS_tune-ppc603e = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppc603e" |
12 | 12 | ||
13 | # glibc configure options to get 603e specific library (for sqrt) | 13 | # glibc configure options to get 603e specific library (for sqrt) |
diff --git a/meta/conf/machine/include/tune-ppce300c2.inc b/meta/conf/machine/include/tune-ppce300c2.inc index 27ef4a882b..aae8ac08b5 100644 --- a/meta/conf/machine/include/tune-ppce300c2.inc +++ b/meta/conf/machine/include/tune-ppce300c2.inc | |||
@@ -4,8 +4,8 @@ require conf/machine/include/powerpc/arch-powerpc.inc | |||
4 | 4 | ||
5 | TUNEVALID[ppce300c2] = "Enable ppce300c2 specific processor optimizations" | 5 | TUNEVALID[ppce300c2] = "Enable ppce300c2 specific processor optimizations" |
6 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce300c2", "-mcpu=e300c2", "", d)}" | 6 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce300c2", "-mcpu=e300c2", "", d)}" |
7 | TUNE_PKGARCH_tune-ppce300c2 = "ppce300c2" | ||
8 | 7 | ||
9 | AVAILTUNES += "ppce300c2" | 8 | AVAILTUNES += "ppce300c2" |
10 | TUNE_FEATURES_tune-ppce300c2 = "m32 fpu-soft ppce300c2" | 9 | TUNE_FEATURES_tune-ppce300c2 = "m32 fpu-soft ppce300c2" |
10 | TUNE_PKGARCH_tune-ppce300c2 = "ppce300c2" | ||
11 | PACKAGE_EXTRA_ARCHS_tune-ppce300c2 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc-nf} ppce300c2" | 11 | PACKAGE_EXTRA_ARCHS_tune-ppce300c2 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc-nf} ppce300c2" |
diff --git a/meta/conf/machine/include/tune-ppce500.inc b/meta/conf/machine/include/tune-ppce500.inc index feb1967b4f..be43722353 100644 --- a/meta/conf/machine/include/tune-ppce500.inc +++ b/meta/conf/machine/include/tune-ppce500.inc | |||
@@ -4,13 +4,17 @@ require conf/machine/include/powerpc/arch-powerpc.inc | |||
4 | 4 | ||
5 | TUNEVALID[ppce500] = "Enable ppce500 specific processor optimizations" | 5 | TUNEVALID[ppce500] = "Enable ppce500 specific processor optimizations" |
6 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce500", "-mcpu=8540", "", d)}" | 6 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce500", "-mcpu=8540", "", d)}" |
7 | TUNE_PKGARCH_tune-ppce500 = "ppce500" | ||
8 | 7 | ||
9 | TUNEVALID[spe] = "Enable SPE ABI extensions" | 8 | TUNEVALID[spe] = "Enable SPE ABI extensions" |
10 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "spe", "-mabi=spe -mspe -mfloat-gprs=double", "", d)}" | 9 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", [ "ppce500", "spe" ], "-mabi=spe -mspe -mfloat-gprs=single", "", d)}" |
10 | TARGET_FPU .= "${@bb.utils.contains("TUNE_FEATURES", [ "ppce500" , "spe" ], "ppc-efs", "", d)}" | ||
11 | 11 | ||
12 | TARGET_FPU = "ppc-efs" | 12 | # spe is defined potentially in two places, so we want to be sure it will |
13 | # only write spe once to the ABIEXTENSIONS field. | ||
14 | SPEABIEXTENSION = "${@bb.utils.contains("TUNE_FEATURES", "spe", "spe", "", d)}" | ||
15 | ABIEXTENSION .= "${SPEABIEXTENSION}" | ||
13 | 16 | ||
14 | AVAILTUNES += "ppce500" | 17 | AVAILTUNES += "ppce500" |
15 | TUNE_FEATURES_tune-ppce500 = "m32 spe ppce500" | 18 | TUNE_FEATURES_tune-ppce500 = "m32 spe ppce500" |
19 | TUNE_PKGARCH_tune-ppce500 = "ppce500" | ||
16 | PACKAGE_EXTRA_ARCHS_tune-ppce500 = "ppce500" | 20 | PACKAGE_EXTRA_ARCHS_tune-ppce500 = "ppce500" |
diff --git a/meta/conf/machine/include/tune-ppce500mc.inc b/meta/conf/machine/include/tune-ppce500mc.inc index 51e6f537ac..0e09384621 100644 --- a/meta/conf/machine/include/tune-ppce500mc.inc +++ b/meta/conf/machine/include/tune-ppce500mc.inc | |||
@@ -4,10 +4,10 @@ require conf/machine/include/powerpc/arch-powerpc.inc | |||
4 | 4 | ||
5 | TUNEVALID[ppce500mc] = "Enable ppce500mc specific processor optimizations" | 5 | TUNEVALID[ppce500mc] = "Enable ppce500mc specific processor optimizations" |
6 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "-mcpu=e500mc", "", d)}" | 6 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "-mcpu=e500mc", "", d)}" |
7 | TUNE_PKGARCH_tune-ppce500mc = "ppce500mc" | ||
8 | 7 | ||
9 | AVAILTUNES = "ppce500mc" | 8 | AVAILTUNES += "ppce500mc" |
10 | TUNE_FEATURES_tune-ppce500mc = "m32 fpu-hard ppce500mc" | 9 | TUNE_FEATURES_tune-ppce500mc = "m32 fpu-hard ppce500mc" |
10 | TUNE_PKGARCH_tune-ppce500mc = "ppce500mc" | ||
11 | PACKAGE_EXTRA_ARCHS_tune-ppce500mc = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppce500mc" | 11 | PACKAGE_EXTRA_ARCHS_tune-ppce500mc = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppce500mc" |
12 | 12 | ||
13 | # glibc configure options to get e500mc specific library (for sqrt) | 13 | # glibc configure options to get e500mc specific library (for sqrt) |
diff --git a/meta/conf/machine/include/tune-ppce500v2.inc b/meta/conf/machine/include/tune-ppce500v2.inc index f0158d0440..3fe47da584 100644 --- a/meta/conf/machine/include/tune-ppce500v2.inc +++ b/meta/conf/machine/include/tune-ppce500v2.inc | |||
@@ -4,13 +4,17 @@ require conf/machine/include/powerpc/arch-powerpc.inc | |||
4 | 4 | ||
5 | TUNEVALID[ppce500v2] = "Enable ppce500v2 specific processor optimizations" | 5 | TUNEVALID[ppce500v2] = "Enable ppce500v2 specific processor optimizations" |
6 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce500v2", "-mcpu=8548", "", d)}" | 6 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce500v2", "-mcpu=8548", "", d)}" |
7 | TUNE_PKGARCH_tune-ppce500v2 = "ppce500v2" | ||
8 | 7 | ||
9 | TUNEVALID[spe] = "Enable SPE ABI extensions" | 8 | TUNEVALID[spe] = "Enable SPE ABI extensions" |
10 | TUNE_CCARGS += '${@bb.utils.contains("TUNE_FEATURES", "spe", "-mabi=spe -mspe -mfloat-gprs=double", "", d)}' | 9 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", [ "ppce500v2", "spe" ], "-mabi=spe -mspe -mfloat-gprs=double", "", d)}" |
10 | TARGET_FPU .= "${@bb.utils.contains("TUNE_FEATURES", [ "ppce500v2" , "spe" ], "ppc-efd", "", d)}" | ||
11 | 11 | ||
12 | TARGET_FPU = "ppc-efd" | 12 | # spe is defined potentially in two places, so we want to be sure it will |
13 | # only write spe once to the ABIEXTENSIONS field. | ||
14 | SPEABIEXTENSION = "${@bb.utils.contains("TUNE_FEATURES", "spe", "spe", "", d)}" | ||
15 | ABIEXTENSION .= "${SPEABIEXTENSION}" | ||
13 | 16 | ||
14 | AVAILTUNES += "ppce500v2" | 17 | AVAILTUNES += "ppce500v2" |
15 | TUNE_FEATURES_tune-ppce500v2 = "m32 spe ppce500v2" | 18 | TUNE_FEATURES_tune-ppce500v2 = "m32 spe ppce500v2" |
19 | TUNE_PKGARCH_tune-ppce500v2 = "ppce500v2" | ||
16 | PACKAGE_EXTRA_ARCHS_tune-ppce500v2 = "ppce500v2" | 20 | PACKAGE_EXTRA_ARCHS_tune-ppce500v2 = "ppce500v2" |
diff --git a/meta/conf/machine/include/tune-ppce5500.inc b/meta/conf/machine/include/tune-ppce5500.inc index fe8d79d51d..8ab0fc5b8d 100644 --- a/meta/conf/machine/include/tune-ppce5500.inc +++ b/meta/conf/machine/include/tune-ppce5500.inc | |||
@@ -7,14 +7,14 @@ TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "e5500", "-mcpu=e5500", "" | |||
7 | 7 | ||
8 | AVAILTUNES += "ppce5500 ppc64e5500" | 8 | AVAILTUNES += "ppce5500 ppc64e5500" |
9 | TUNE_FEATURES_tune-ppce5500 = "m32 fpu-hard e5500" | 9 | TUNE_FEATURES_tune-ppce5500 = "m32 fpu-hard e5500" |
10 | PACKAGE_EXTRA_ARCHS_tune-ppce5500 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppce5500" | ||
11 | BASE_LIB_tune-ppce5500 = "lib" | 10 | BASE_LIB_tune-ppce5500 = "lib" |
12 | TUNE_PKGARCH_tune-ppce5500 = "ppce5500" | 11 | TUNE_PKGARCH_tune-ppce5500 = "ppce5500" |
12 | PACKAGE_EXTRA_ARCHS_tune-ppce5500 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppce5500" | ||
13 | 13 | ||
14 | TUNE_FEATURES_tune-ppc64e5500 = "m64 fpu-hard e5500" | 14 | TUNE_FEATURES_tune-ppc64e5500 = "m64 fpu-hard e5500" |
15 | PACKAGE_EXTRA_ARCHS_tune-ppc64e5500 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc64} ppc64e5500" | ||
16 | BASE_LIB_tune-ppc64e5500 = "lib64" | 15 | BASE_LIB_tune-ppc64e5500 = "lib64" |
17 | TUNE_PKGARCH_tune-ppc64e5500 = "ppc64e5500" | 16 | TUNE_PKGARCH_tune-ppc64e5500 = "ppc64e5500" |
17 | PACKAGE_EXTRA_ARCHS_tune-ppc64e5500 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc64} ppc64e5500" | ||
18 | 18 | ||
19 | # glibc configure options to get e5500 specific library (for sqrt) | 19 | # glibc configure options to get e5500 specific library (for sqrt) |
20 | GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "e5500", "--with-cpu=e5500", "", d)}" | 20 | GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "e5500", "--with-cpu=e5500", "", d)}" |