diff options
author | Mark Hatle <mark.hatle@xilinx.com> | 2020-01-15 15:00:04 -0800 |
---|---|---|
committer | Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> | 2020-01-16 00:46:32 -0800 |
commit | a45b1acf46f01cc5eb3ae130ab61766ed635340e (patch) | |
tree | 041788ea732795fb73c5671eb46b057d7107a3cc | |
parent | e0674a48b8d0ac8e96f72b4447c7607857b14f9c (diff) | |
download | meta-xilinx-a45b1acf46f01cc5eb3ae130ab61766ed635340e.tar.gz |
binutils/gcc: Refactor the oeconf
The special arguments do not appear to be needed, and using the standard
configuration arguments will more easily enable other components as well.
Note, additional refactoring will be needed, only aarch64 has been verified.
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
6 files changed, 14 insertions, 167 deletions
diff --git a/meta-xilinx-standalone/recipes-standalone/binutils/binutils-cross-canadian_%.bbappend b/meta-xilinx-standalone/recipes-standalone/binutils/binutils-cross-canadian_%.bbappend index 1e4d8b02..086aa195 100644 --- a/meta-xilinx-standalone/recipes-standalone/binutils/binutils-cross-canadian_%.bbappend +++ b/meta-xilinx-standalone/recipes-standalone/binutils/binutils-cross-canadian_%.bbappend | |||
@@ -1,29 +1,11 @@ | |||
1 | include binutils-xilinx-standalone.inc | 1 | include binutils-xilinx-standalone.inc |
2 | 2 | ||
3 | 3 | EXTRA_OECONF_append_pn-binutils-cross-canadian-${TARGET_ARCH}_xilinx-standalone_cortexr5 = " \ | |
4 | # The following is a copy of what is in OE-Core, without LDGOLD, because we have to do gold per machine instead | ||
5 | EXTRA_OECONF_pn-binutils-cross-canadian-${TARGET_ARCH}_xilinx-standalone = " \ | ||
6 | --program-prefix=${TARGET_PREFIX} \ | ||
7 | --disable-werror \ | ||
8 | --enable-deterministic-archives \ | ||
9 | --enable-plugins \ | ||
10 | ${BINUTILS_CONFIGURE_COMMON_XILINX_STANDALONE} \ | ||
11 | " | ||
12 | |||
13 | |||
14 | EXTRA_OECONF_pn-binutils-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_cortexa53 = " \ | ||
15 | ${BINUTILS_CONFIGURE_A53} \ | ||
16 | " | ||
17 | |||
18 | EXTRA_OECONF_pn-binutils-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_cortexa72 = " \ | ||
19 | ${BINUTILS_CONFIGURE_A72} \ | ||
20 | " | ||
21 | EXTRA_OECONF_pn-binutils-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_cortexr5 = " \ | ||
22 | ${BINUTILS_CONFIGURE_R5} \ | 4 | ${BINUTILS_CONFIGURE_R5} \ |
23 | " | 5 | " |
24 | EXTRA_OECONF_pn-binutils-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_zynqmp-pmu = " \ | 6 | EXTRA_OECONF_append_pn-binutils-cross-canadian-${TARGET_ARCH}_xilinx-standalone_zynqmp-pmu = " \ |
25 | ${BINUTILS_CONFIGURE_MB} \ | 7 | ${BINUTILS_CONFIGURE_MB} \ |
26 | " | 8 | " |
27 | EXTRA_OECONF_pn-binutils-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_zc702-zynq7 = " \ | 9 | EXTRA_OECONF_append_pn-binutils-cross-canadian-${TARGET_ARCH}_xilinx-standalone_zc702-zynq7 = " \ |
28 | ${BINUTILS_CONFIGURE_A9} \ | 10 | ${BINUTILS_CONFIGURE_A9} \ |
29 | " | 11 | " |
diff --git a/meta-xilinx-standalone/recipes-standalone/binutils/binutils-cross_%.bbappend b/meta-xilinx-standalone/recipes-standalone/binutils/binutils-cross_%.bbappend index fd1702e4..32a50e3c 100644 --- a/meta-xilinx-standalone/recipes-standalone/binutils/binutils-cross_%.bbappend +++ b/meta-xilinx-standalone/recipes-standalone/binutils/binutils-cross_%.bbappend | |||
@@ -1,31 +1,13 @@ | |||
1 | include binutils-xilinx-standalone.inc | 1 | include binutils-xilinx-standalone.inc |
2 | 2 | ||
3 | 3 | EXTRA_OECONF_append_pn-binutils-cross-${TARGET_ARCH}_xilinx-standalone_cortexr5 = " \ | |
4 | # The following is a copy of what is in OE-Core, without LDGOLD, because we have to do gold per machine instead | ||
5 | EXTRA_OECONF_pn-binutils-cross-${TARGET_ARCH}_xilinx-standalone = " \ | ||
6 | --program-prefix=${TARGET_PREFIX} \ | ||
7 | --disable-werror \ | ||
8 | --enable-deterministic-archives \ | ||
9 | --enable-plugins \ | ||
10 | ${BINUTILS_CONFIGURE_COMMON_XILINX_STANDALONE} \ | ||
11 | " | ||
12 | |||
13 | EXTRA_OECONF_pn-binutils-cross-${TARGET_ARCH}_xilinx-standalone_append_cortexa53 = " \ | ||
14 | ${BINUTILS_CONFIGURE_A53} \ | ||
15 | " | ||
16 | |||
17 | EXTRA_OECONF_pn-binutils-cross-${TARGET_ARCH}_xilinx-standalone_append_cortexa72 = " \ | ||
18 | ${BINUTILS_CONFIGURE_A72} \ | ||
19 | " | ||
20 | |||
21 | EXTRA_OECONF_pn-binutils-cross-${TARGET_ARCH}_xilinx-standalone_append_cortexr5 = " \ | ||
22 | ${BINUTILS_CONFIGURE_R5} \ | 4 | ${BINUTILS_CONFIGURE_R5} \ |
23 | " | 5 | " |
24 | 6 | ||
25 | EXTRA_OECONF_pn-binutils-cross-${TARGET_ARCH}_xilinx-standalone_append_zynqmp-pmu = " \ | 7 | EXTRA_OECONF_append_pn-binutils-cross-${TARGET_ARCH}_xilinx-standalone_zynqmp-pmu = " \ |
26 | ${BINUTILS_CONFIGURE_MB} \ | 8 | ${BINUTILS_CONFIGURE_MB} \ |
27 | " | 9 | " |
28 | 10 | ||
29 | EXTRA_OECONF_pn-binutils-cross-${TARGET_ARCH}_xilinx-standalone_append_zc702-zynq7 = " \ | 11 | EXTRA_OECONF_append_pn-binutils-cross-${TARGET_ARCH}_xilinx-standalone_zc702-zynq7 = " \ |
30 | ${BINUTILS_CONFIGURE_A9} \ | 12 | ${BINUTILS_CONFIGURE_A9} \ |
31 | " | 13 | " |
diff --git a/meta-xilinx-standalone/recipes-standalone/binutils/binutils-xilinx-standalone.inc b/meta-xilinx-standalone/recipes-standalone/binutils/binutils-xilinx-standalone.inc index 4170ee02..5883f07d 100644 --- a/meta-xilinx-standalone/recipes-standalone/binutils/binutils-xilinx-standalone.inc +++ b/meta-xilinx-standalone/recipes-standalone/binutils/binutils-xilinx-standalone.inc | |||
@@ -2,29 +2,6 @@ | |||
2 | # MACHINES when using xilinx-standalone a DISTRO. | 2 | # MACHINES when using xilinx-standalone a DISTRO. |
3 | # This should be applicable to both cross and cross-canadian toolchain. | 3 | # This should be applicable to both cross and cross-canadian toolchain. |
4 | 4 | ||
5 | BINUTILS_CONFIGURE_COMMON_XILINX_STANDALONE = " \ | ||
6 | --disable-gdb \ | ||
7 | --disable-sim \ | ||
8 | " | ||
9 | |||
10 | BINUTILS_CONFIGURE_A53 ?= " \ | ||
11 | --disable-gprof \ | ||
12 | --disable-libdecnumber \ | ||
13 | --disable-readline \ | ||
14 | --disable-shared \ | ||
15 | --enable-lto \ | ||
16 | --enable-static \ | ||
17 | " | ||
18 | |||
19 | BINUTILS_CONFIGURE_A72 ?= " \ | ||
20 | --disable-gprof \ | ||
21 | --disable-libdecnumber \ | ||
22 | --disable-readline \ | ||
23 | --disable-shared \ | ||
24 | --enable-lto \ | ||
25 | --enable-static \ | ||
26 | " | ||
27 | |||
28 | BINUTILS_CONFIGURE_R5 ?= " \ | 5 | BINUTILS_CONFIGURE_R5 ?= " \ |
29 | --disable-docs \ | 6 | --disable-docs \ |
30 | --disable-nls \ | 7 | --disable-nls \ |
@@ -43,4 +20,4 @@ BINUTILS_CONFIGURE_A9 ?= " \ | |||
43 | --disable-docs \ | 20 | --disable-docs \ |
44 | --disable-nls \ | 21 | --disable-nls \ |
45 | --enable-interwork \ | 22 | --enable-interwork \ |
46 | " \ No newline at end of file | 23 | " |
diff --git a/meta-xilinx-standalone/recipes-standalone/gcc/gcc-cross-canadian_%.bbappend b/meta-xilinx-standalone/recipes-standalone/gcc/gcc-cross-canadian_%.bbappend index 9143434a..85543b66 100644 --- a/meta-xilinx-standalone/recipes-standalone/gcc/gcc-cross-canadian_%.bbappend +++ b/meta-xilinx-standalone/recipes-standalone/gcc/gcc-cross-canadian_%.bbappend | |||
@@ -1,36 +1,17 @@ | |||
1 | include gcc-xilinx-standalone.inc | 1 | include gcc-xilinx-standalone.inc |
2 | 2 | ||
3 | # This is still missing a way to remove infiniarray, if we really have to we could use _remove | ||
4 | EXTRA_OECONF_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone = " \ | ||
5 | ${GCC_CONFIGURE_COMMON_XILINX_STANDALONE} \ | ||
6 | --program-prefix=${TARGET_PREFIX} \ | ||
7 | --without-local-prefix \ | ||
8 | ${EXTRA_OECONF_PATHS} \ | ||
9 | " | ||
10 | |||
11 | |||
12 | # Cortex-A53 | ||
13 | EXTRA_OECONF_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_cortexa53 = " \ | ||
14 | ${GCC_CONFIGURE_A53} \ | ||
15 | " | ||
16 | |||
17 | # Cortex-A72 | ||
18 | EXTRA_OECONF_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_cortexa72 = " \ | ||
19 | ${GCC_CONFIGURE_A72} \ | ||
20 | " | ||
21 | |||
22 | # Cortex-R5 | 3 | # Cortex-R5 |
23 | EXTRA_OECONF_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_cortexr5 = " \ | 4 | EXTRA_OECONF_append_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone_cortexr5 = " \ |
24 | ${GCC_CONFIGURE_R5} \ | 5 | ${GCC_CONFIGURE_R5} \ |
25 | " | 6 | " |
26 | 7 | ||
27 | # MB | 8 | # MB |
28 | EXTRA_OECONF_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_zynqmp-pmu = " \ | 9 | EXTRA_OECONF_append_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone_zynqmp-pmu = " \ |
29 | ${GCC_CONFIGURE_MB} \ | 10 | ${GCC_CONFIGURE_MB} \ |
30 | " | 11 | " |
31 | 12 | ||
32 | # Cortex-A9 | 13 | # Cortex-A9 |
33 | EXTRA_OECONF_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_zc702-zynq7 = " \ | 14 | EXTRA_OECONF_append_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone_zc702-zynq7 = " \ |
34 | ${GCC_CONFIGURE_A9} \ | 15 | ${GCC_CONFIGURE_A9} \ |
35 | " | 16 | " |
36 | 17 | ||
diff --git a/meta-xilinx-standalone/recipes-standalone/gcc/gcc-cross_%.bbappend b/meta-xilinx-standalone/recipes-standalone/gcc/gcc-cross_%.bbappend index cad0cecc..2f013442 100644 --- a/meta-xilinx-standalone/recipes-standalone/gcc/gcc-cross_%.bbappend +++ b/meta-xilinx-standalone/recipes-standalone/gcc/gcc-cross_%.bbappend | |||
@@ -1,40 +1,16 @@ | |||
1 | include gcc-xilinx-standalone.inc | 1 | include gcc-xilinx-standalone.inc |
2 | 2 | ||
3 | |||
4 | |||
5 | # This is still missing a way to remove infiniarray, if we really have to we could use _remove | ||
6 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone = " \ | ||
7 | ${GCC_CONFIGURE_COMMON_XILINX_STANDALONE} \ | ||
8 | --program-prefix=${TARGET_PREFIX} \ | ||
9 | --without-local-prefix \ | ||
10 | ${EXTRA_OECONF_PATHS} \ | ||
11 | " | ||
12 | |||
13 | |||
14 | # --with-multilib-list=aprofile doesnt exist in gcc 8 | ||
15 | |||
16 | |||
17 | # Cortex-A53 | ||
18 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone_append_cortexa53 = " \ | ||
19 | ${GCC_CONFIGURE_A53} \ | ||
20 | " | ||
21 | |||
22 | # Cortex-A72 | ||
23 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone_append_cortexa72 = " \ | ||
24 | ${GCC_CONFIGURE_A72} \ | ||
25 | " | ||
26 | |||
27 | # Cortex-R5 | 3 | # Cortex-R5 |
28 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone_append_cortexr5 = " \ | 4 | EXTRA_OECONF_append_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone_cortexr5 = " \ |
29 | ${GCC_CONFIGURE_R5} \ | 5 | ${GCC_CONFIGURE_R5} \ |
30 | " | 6 | " |
31 | 7 | ||
32 | # MB | 8 | # MB |
33 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone_append_zynqmp-pmu = " \ | 9 | EXTRA_OECONF_append_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone_zynqmp-pmu = " \ |
34 | ${GCC_CONFIGURE_MB} \ | 10 | ${GCC_CONFIGURE_MB} \ |
35 | " | 11 | " |
36 | 12 | ||
37 | # Cortex-A9 | 13 | # Cortex-A9 |
38 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone_append_zc702-zynq7 = " \ | 14 | EXTRA_OECONF_append_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone_zc702-zynq7 = " \ |
39 | ${GCC_CONFIGURE_A9} \ | 15 | ${GCC_CONFIGURE_A9} \ |
40 | " | 16 | " |
diff --git a/meta-xilinx-standalone/recipes-standalone/gcc/gcc-xilinx-standalone.inc b/meta-xilinx-standalone/recipes-standalone/gcc/gcc-xilinx-standalone.inc index 007998ca..70b85eb0 100644 --- a/meta-xilinx-standalone/recipes-standalone/gcc/gcc-xilinx-standalone.inc +++ b/meta-xilinx-standalone/recipes-standalone/gcc/gcc-xilinx-standalone.inc | |||
@@ -2,57 +2,6 @@ | |||
2 | # MACHINES when using xilinx-standalone a DISTRO. | 2 | # MACHINES when using xilinx-standalone a DISTRO. |
3 | # This should be applicable to both cross and cross-canadian toolchain. | 3 | # This should be applicable to both cross and cross-canadian toolchain. |
4 | 4 | ||
5 | |||
6 | GCC_CONFIGURE_COMMON_XILINX_STANDALONE = " \ | ||
7 | --disable-libmudflap \ | ||
8 | --disable-libstdcxx-pch \ | ||
9 | --disable-nls \ | ||
10 | --enable-languages=${LANGUAGES} \ | ||
11 | --with-newlib \ | ||
12 | " | ||
13 | |||
14 | |||
15 | GCC_CONFIGURE_A53 ?= " \ | ||
16 | --disable-bootstrap \ | ||
17 | --disable-multiarch \ | ||
18 | --disable-threads \ | ||
19 | --enable-c99 \ | ||
20 | --enable-checking=yes \ | ||
21 | --enable-fix-cortex-a53-835769 \ | ||
22 | --enable-fix-cortex-a53-843419 \ | ||
23 | --enable-linker-build-id \ | ||
24 | --enable-long-long \ | ||
25 | --enable-lto \ | ||
26 | --enable-plugins \ | ||
27 | --enable-shared \ | ||
28 | --with-arch=armv8-a \ | ||
29 | --with-cloog=no \ | ||
30 | --with-gnu-as \ | ||
31 | --with-gnu-ld \ | ||
32 | --with-isl=no \ | ||
33 | --with-ppl=no \ | ||
34 | " | ||
35 | |||
36 | GCC_CONFIGURE_A72 ?= " \ | ||
37 | --disable-bootstrap \ | ||
38 | --disable-multiarch \ | ||
39 | --disable-threads \ | ||
40 | --enable-c99 \ | ||
41 | --enable-checking=yes \ | ||
42 | --enable-linker-build-id \ | ||
43 | --enable-long-long \ | ||
44 | --enable-lto \ | ||
45 | --enable-multilib \ | ||
46 | --enable-plugins \ | ||
47 | --enable-shared \ | ||
48 | --enable-threads=no \ | ||
49 | --with-cloog=no \ | ||
50 | --with-gnu-as \ | ||
51 | --with-gnu-ld \ | ||
52 | --with-isl=no \ | ||
53 | --with-ppl=no \ | ||
54 | " | ||
55 | |||
56 | GCC_CONFIGURE_R5 ?= " \ | 5 | GCC_CONFIGURE_R5 ?= " \ |
57 | --disable-decimal-float \ | 6 | --disable-decimal-float \ |
58 | --disable-libffi \ | 7 | --disable-libffi \ |
@@ -102,4 +51,4 @@ GCC_CONFIGURE_A9 ?= " \ | |||
102 | --with-isl=no \ | 51 | --with-isl=no \ |
103 | --with-ppl=no \ | 52 | --with-ppl=no \ |
104 | --with-multilib-list=aprofile \ | 53 | --with-multilib-list=aprofile \ |
105 | " \ No newline at end of file | 54 | " |