diff options
author | Mark Hatle <mark.hatle@xilinx.com> | 2020-02-04 15:06:29 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-06 12:16:34 +0000 |
commit | d6b0154a4c1e897d6cd2f815c13ad9d6f34c1355 (patch) | |
tree | fd67490088e32b8cacdbf670f83806854631a5b9 /meta/conf | |
parent | 83e58868b5fcd3846d81ec04f0b7b1751b4ca0d0 (diff) | |
download | poky-d6b0154a4c1e897d6cd2f815c13ad9d6f34c1355.tar.gz |
microblaze tune: cleanup +=
Various += were used, refactor these to be either = or .= depending on
usuage.
CONFLICTS should be '=', as no leading space is required and they are not
amending any other conflict settings.
The TUNE_CCARGS should be .= so that if the feature does not define a CCARG
blank spaces are not added to the CFLAGS. This is consistent to how the arm
tuning is implemented.
(From OE-Core rev: 78c38857486d3107ecd95d0ceefabcf5152c3928)
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/machine/include/microblaze/arch-microblaze.inc | 22 | ||||
-rw-r--r-- | meta/conf/machine/include/microblaze/feature-microblaze-math.inc | 12 |
2 files changed, 17 insertions, 17 deletions
diff --git a/meta/conf/machine/include/microblaze/arch-microblaze.inc b/meta/conf/machine/include/microblaze/arch-microblaze.inc index 0349caac0a..4f58076ac9 100644 --- a/meta/conf/machine/include/microblaze/arch-microblaze.inc +++ b/meta/conf/machine/include/microblaze/arch-microblaze.inc | |||
@@ -11,34 +11,34 @@ MACHINEOVERRIDES =. "${@bb.utils.contains("TUNE_FEATURES", "64-bit", "microblaze | |||
11 | 11 | ||
12 | # Endian | 12 | # Endian |
13 | TUNEVALID[bigendian] = "Use Microblaze Big Endian" | 13 | TUNEVALID[bigendian] = "Use Microblaze Big Endian" |
14 | TUNECONFLICTS[bigendian] += "v10.0" | 14 | TUNECONFLICTS[bigendian] = "v10.0" |
15 | 15 | ||
16 | MBPKGARCH_ENDIAN = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", "eb", "el", d)}" | 16 | MBPKGARCH_ENDIAN = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", "eb", "el", d)}" |
17 | 17 | ||
18 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "bigendian", "-mbig-endian", "-mlittle-endian", d)}" | 18 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -mbig-endian", " -mlittle-endian", d)}" |
19 | 19 | ||
20 | # General features | 20 | # General features |
21 | TUNEVALID[barrel-shift] = "Enable Hardware Barrel Shifter" | 21 | TUNEVALID[barrel-shift] = "Enable Hardware Barrel Shifter" |
22 | TUNEVALID[pattern-compare] = "Enable Pattern Compare Instructions" | 22 | TUNEVALID[pattern-compare] = "Enable Pattern Compare Instructions" |
23 | TUNEVALID[reorder] = "Enable Reorder Instructions" | 23 | TUNEVALID[reorder] = "Enable Reorder Instructions" |
24 | TUNECONFLICTS[reorder] += "v8.00 v8.10 v8.20" | 24 | TUNECONFLICTS[reorder] = "v8.00 v8.10 v8.20" |
25 | 25 | ||
26 | # Core configuration tune optimizations | 26 | # Core configuration tune optimizations |
27 | TUNEVALID[frequency-optimized] = "Enabling tuning for frequency optimized core (AREA_OPTIMIZED_2)" | 27 | TUNEVALID[frequency-optimized] = "Enabling tuning for frequency optimized core (AREA_OPTIMIZED_2)" |
28 | TUNECONFLICTS[frequency-optimized] += "v8.00 v8.10 v8.20 v8.30 v8.40 v8.50 v9.0 v9.1 v9.2 v9.3 v9.4 v9.5 v9.6" | 28 | TUNECONFLICTS[frequency-optimized] = "v8.00 v8.10 v8.20 v8.30 v8.40 v8.50 v9.0 v9.1 v9.2 v9.3 v9.4 v9.5 v9.6" |
29 | 29 | ||
30 | # Feature compiler args | 30 | # Feature compiler args |
31 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "barrel-shift", "-mxl-barrel-shift", "-mno-xl-barrel-shift", d)}" | 31 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "barrel-shift", " -mxl-barrel-shift", " -mno-xl-barrel-shift", d)}" |
32 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "pattern-compare", "-mxl-pattern-compare", "-mno-xl-pattern-compare", d)}" | 32 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "pattern-compare", " -mxl-pattern-compare", " -mno-xl-pattern-compare", d)}" |
33 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "frequency-optimized", "-mxl-frequency", "", d)}" | 33 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "frequency-optimized", " -mxl-frequency", "", d)}" |
34 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "64-bit", "-m64", "", d)}" | 34 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "64-bit", " -m64", "", d)}" |
35 | 35 | ||
36 | # Disable reorder for v8.30 if pattern-compare is not enabled | 36 | # Disable reorder for v8.30 if pattern-compare is not enabled |
37 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "reorder", \ | 37 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "reorder", \ |
38 | bb.utils.contains("TUNE_FEATURES", "v8.30", \ | 38 | bb.utils.contains("TUNE_FEATURES", "v8.30", \ |
39 | bb.utils.contains("TUNE_FEATURES", "pattern-compare", \ | 39 | bb.utils.contains("TUNE_FEATURES", "pattern-compare", \ |
40 | "-mxl-reorder", "-mno-xl-reorder", d), \ | 40 | " -mxl-reorder", " -mno-xl-reorder", d), \ |
41 | "-mxl-reorder", d), "-mno-xl-reorder", d)}" | 41 | " -mxl-reorder", d), " -mno-xl-reorder", d)}" |
42 | 42 | ||
43 | # Feature package architecture formatting | 43 | # Feature package architecture formatting |
44 | MBPKGARCH_TUNE = "" | 44 | MBPKGARCH_TUNE = "" |
diff --git a/meta/conf/machine/include/microblaze/feature-microblaze-math.inc b/meta/conf/machine/include/microblaze/feature-microblaze-math.inc index a31516659c..cba0ae67e3 100644 --- a/meta/conf/machine/include/microblaze/feature-microblaze-math.inc +++ b/meta/conf/machine/include/microblaze/feature-microblaze-math.inc | |||
@@ -13,14 +13,14 @@ TUNECONFLICTS[fpu-hard] = "fpu-soft" | |||
13 | TUNECONFLICTS[fpu-hard-extended] = "fpu-soft" | 13 | TUNECONFLICTS[fpu-hard-extended] = "fpu-soft" |
14 | 14 | ||
15 | # Compiler args | 15 | # Compiler args |
16 | TUNE_CCARGS += "${@bb.utils.contains_any('TUNE_FEATURES', ['multiply-low', 'multiply-high'], '-mno-xl-soft-mul', '-mxl-soft-mul', d)}" | 16 | TUNE_CCARGS .= "${@bb.utils.contains_any('TUNE_FEATURES', ['multiply-low', 'multiply-high'], ' -mno-xl-soft-mul', ' -mxl-soft-mul', d)}" |
17 | TUNE_CCARGS += "${@bb.utils.contains('TUNE_FEATURES', 'multiply-high', '-mxl-multiply-high', '', d)}" | 17 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'multiply-high', ' -mxl-multiply-high', '', d)}" |
18 | 18 | ||
19 | TUNE_CCARGS += "${@bb.utils.contains('TUNE_FEATURES', 'divide-hard', '-mno-xl-soft-div', '-mxl-soft-div', d)}" | 19 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'divide-hard', ' -mno-xl-soft-div', ' -mxl-soft-div', d)}" |
20 | 20 | ||
21 | TUNE_CCARGS += "${@bb.utils.contains('TUNE_FEATURES', 'fpu-soft', '', '', d)}" | 21 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-soft', '', '', d)}" |
22 | TUNE_CCARGS += "${@bb.utils.contains_any('TUNE_FEATURES', ['fpu-hard', 'fpu-hard-extended'], '-mhard-float', '', d)}" | 22 | TUNE_CCARGS .= "${@bb.utils.contains_any('TUNE_FEATURES', ['fpu-hard', 'fpu-hard-extended'], ' -mhard-float', '', d)}" |
23 | TUNE_CCARGS += "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard-extended', '-mxl-float-convert -mxl-float-sqrt', '', d)}" | 23 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard-extended', ' -mxl-float-convert -mxl-float-sqrt', '', d)}" |
24 | 24 | ||
25 | # Set target fpu (bitbake known target) to soft or hard (basic or extended) | 25 | # Set target fpu (bitbake known target) to soft or hard (basic or extended) |
26 | TARGET_FPU = "${@bb.utils.contains_any('TUNE_FEATURES', 'fpu-hard fpu-hard-extended', 'fpu-hard', 'fpu-soft', d)}" | 26 | TARGET_FPU = "${@bb.utils.contains_any('TUNE_FEATURES', 'fpu-hard fpu-hard-extended', 'fpu-hard', 'fpu-soft', d)}" |