diff options
6 files changed, 97 insertions, 77 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 new file mode 100644 index 00000000..1e4d8b02 --- /dev/null +++ b/meta-xilinx-standalone/recipes-standalone/binutils/binutils-cross-canadian_%.bbappend | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | include binutils-xilinx-standalone.inc | ||
| 2 | |||
| 3 | |||
| 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} \ | ||
| 23 | " | ||
| 24 | EXTRA_OECONF_pn-binutils-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_zynqmp-pmu = " \ | ||
| 25 | ${BINUTILS_CONFIGURE_MB} \ | ||
| 26 | " | ||
| 27 | EXTRA_OECONF_pn-binutils-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_zc702-zynq7 = " \ | ||
| 28 | ${BINUTILS_CONFIGURE_A9} \ | ||
| 29 | " | ||
diff --git a/meta-xilinx-standalone/recipes-standalone/binutils/binutils-cross_%.bbappend b/meta-xilinx-standalone/recipes-standalone/binutils/binutils-cross_%.bbappend index 25b1090a..fd1702e4 100644 --- a/meta-xilinx-standalone/recipes-standalone/binutils/binutils-cross_%.bbappend +++ b/meta-xilinx-standalone/recipes-standalone/binutils/binutils-cross_%.bbappend | |||
| @@ -1,7 +1,4 @@ | |||
| 1 | BINUTILS_CONFIGURE_COMMON_XILINX_STANDALONE = " \ | 1 | include binutils-xilinx-standalone.inc |
| 2 | --disable-gdb \ | ||
| 3 | --disable-sim \ | ||
| 4 | " | ||
| 5 | 2 | ||
| 6 | 3 | ||
| 7 | # The following is a copy of what is in OE-Core, without LDGOLD, because we have to do gold per machine instead | 4 | # The following is a copy of what is in OE-Core, without LDGOLD, because we have to do gold per machine instead |
| @@ -12,3 +9,23 @@ EXTRA_OECONF_pn-binutils-cross-${TARGET_ARCH}_xilinx-standalone = " \ | |||
| 12 | --enable-plugins \ | 9 | --enable-plugins \ |
| 13 | ${BINUTILS_CONFIGURE_COMMON_XILINX_STANDALONE} \ | 10 | ${BINUTILS_CONFIGURE_COMMON_XILINX_STANDALONE} \ |
| 14 | " | 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} \ | ||
| 23 | " | ||
| 24 | |||
| 25 | EXTRA_OECONF_pn-binutils-cross-${TARGET_ARCH}_xilinx-standalone_append_zynqmp-pmu = " \ | ||
| 26 | ${BINUTILS_CONFIGURE_MB} \ | ||
| 27 | " | ||
| 28 | |||
| 29 | EXTRA_OECONF_pn-binutils-cross-${TARGET_ARCH}_xilinx-standalone_append_zc702-zynq7 = " \ | ||
| 30 | ${BINUTILS_CONFIGURE_A9} \ | ||
| 31 | " | ||
diff --git a/meta-xilinx-standalone/recipes-standalone/binutils/binutils-xilinx-standalone.inc b/meta-xilinx-standalone/recipes-standalone/binutils/binutils-xilinx-standalone.inc new file mode 100644 index 00000000..4170ee02 --- /dev/null +++ b/meta-xilinx-standalone/recipes-standalone/binutils/binutils-xilinx-standalone.inc | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | # This inc file contains common configuration used for Binutils for several | ||
| 2 | # MACHINES when using xilinx-standalone a DISTRO. | ||
| 3 | # This should be applicable to both cross and cross-canadian toolchain. | ||
| 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 ?= " \ | ||
| 29 | --disable-docs \ | ||
| 30 | --disable-nls \ | ||
| 31 | --enable-interwork \ | ||
| 32 | " | ||
| 33 | |||
| 34 | BINUTILS_CONFIGURE_MB ?= " \ | ||
| 35 | --disable-initfini-array \ | ||
| 36 | --disable-nls \ | ||
| 37 | --enable-gold=no \ | ||
| 38 | --enable-ld=yes \ | ||
| 39 | --enable-multilib \ | ||
| 40 | " | ||
| 41 | |||
| 42 | BINUTILS_CONFIGURE_A9 ?= " \ | ||
| 43 | --disable-docs \ | ||
| 44 | --disable-nls \ | ||
| 45 | --enable-interwork \ | ||
| 46 | " \ No newline at end of file | ||
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 6ad48347..66c1f557 100644 --- a/meta-xilinx-standalone/recipes-standalone/gcc/gcc-cross-canadian_%.bbappend +++ b/meta-xilinx-standalone/recipes-standalone/gcc/gcc-cross-canadian_%.bbappend | |||
| @@ -13,38 +13,23 @@ EXTRA_OECONF_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone = " \ | |||
| 13 | EXTRA_OECONF_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_cortexa53 = " \ | 13 | EXTRA_OECONF_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_cortexa53 = " \ |
| 14 | ${GCC_CONFIGURE_A53} \ | 14 | ${GCC_CONFIGURE_A53} \ |
| 15 | " | 15 | " |
| 16 | EXTRA_OECONF_pn-binutils-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_cortexa53 = " \ | ||
| 17 | ${BINUTILS_CONFIGURE_A53} \ | ||
| 18 | " | ||
| 19 | 16 | ||
| 20 | # Cortex-A72 | 17 | # Cortex-A72 |
| 21 | EXTRA_OECONF_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_cortexa72 = " \ | 18 | EXTRA_OECONF_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_cortexa72 = " \ |
| 22 | ${GCC_CONFIGURE_A72} \ | 19 | ${GCC_CONFIGURE_A72} \ |
| 23 | " | 20 | " |
| 24 | EXTRA_OECONF_pn-binutils-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_cortexa72 = " \ | ||
| 25 | ${BINUTILS_CONFIGURE_A72} \ | ||
| 26 | " | ||
| 27 | 21 | ||
| 28 | # Cortex-R5 | 22 | # Cortex-R5 |
| 29 | EXTRA_OECONF_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_cortexr5 = " \ | 23 | EXTRA_OECONF_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_cortexr5 = " \ |
| 30 | ${GCC_CONFIGURE_R5} \ | 24 | ${GCC_CONFIGURE_R5} \ |
| 31 | " | 25 | " |
| 32 | EXTRA_OECONF_pn-binutils-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_cortexr5 = " \ | ||
| 33 | ${BINUTILS_CONFIGURE_R5} \ | ||
| 34 | " | ||
| 35 | 26 | ||
| 36 | # MB | 27 | # MB |
| 37 | EXTRA_OECONF_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_zynqmp-pmu = " \ | 28 | EXTRA_OECONF_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_zynqmp-pmu = " \ |
| 38 | ${GCC_CONFIGURE_MB} \ | 29 | ${GCC_CONFIGURE_MB} \ |
| 39 | " | 30 | " |
| 40 | EXTRA_OECONF_pn-binutils-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_zynqmp-pmu = " \ | ||
| 41 | ${BINUTILS_CONFIGURE_MB} \ | ||
| 42 | " | ||
| 43 | 31 | ||
| 44 | # Cortex-A9 | 32 | # Cortex-A9 |
| 45 | EXTRA_OECONF_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_zc702-zynq7 = " \ | 33 | EXTRA_OECONF_pn-gcc-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_zc702-zynq7 = " \ |
| 46 | ${GCC_CONFIGURE_A9} \ | 34 | ${GCC_CONFIGURE_A9} \ |
| 47 | " | 35 | " |
| 48 | EXTRA_OECONF_pn-binutils-cross-canadian-${TARGET_ARCH}_xilinx-standalone_append_zc702-zynq7 = " \ | ||
| 49 | ${BINUTILS_CONFIGURE_A9} \ | ||
| 50 | " | ||
diff --git a/meta-xilinx-standalone/recipes-standalone/gcc/gcc-cross_%.bbappend b/meta-xilinx-standalone/recipes-standalone/gcc/gcc-cross_%.bbappend index b25ea6f5..cad0cecc 100644 --- a/meta-xilinx-standalone/recipes-standalone/gcc/gcc-cross_%.bbappend +++ b/meta-xilinx-standalone/recipes-standalone/gcc/gcc-cross_%.bbappend | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | include gcc-xilinx-standalone.inc | 1 | include gcc-xilinx-standalone.inc |
| 2 | 2 | ||
| 3 | 3 | ||
| 4 | |||
| 4 | # This is still missing a way to remove infiniarray, if we really have to we could use _remove | 5 | # This is still missing a way to remove infiniarray, if we really have to we could use _remove |
| 5 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone = " \ | 6 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone = " \ |
| 6 | ${GCC_CONFIGURE_COMMON_XILINX_STANDALONE} \ | 7 | ${GCC_CONFIGURE_COMMON_XILINX_STANDALONE} \ |
| @@ -17,38 +18,23 @@ EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone = " \ | |||
| 17 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone_append_cortexa53 = " \ | 18 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone_append_cortexa53 = " \ |
| 18 | ${GCC_CONFIGURE_A53} \ | 19 | ${GCC_CONFIGURE_A53} \ |
| 19 | " | 20 | " |
| 20 | EXTRA_OECONF_pn-binutils-cross-${TARGET_ARCH}_xilinx-standalone_append_cortexa53 = " \ | ||
| 21 | ${BINUTILS_CONFIGURE_A53} \ | ||
| 22 | " | ||
| 23 | 21 | ||
| 24 | # Cortex-A72 | 22 | # Cortex-A72 |
| 25 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone_append_cortexa72 = " \ | 23 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone_append_cortexa72 = " \ |
| 26 | ${GCC_CONFIGURE_A72} \ | 24 | ${GCC_CONFIGURE_A72} \ |
| 27 | " | 25 | " |
| 28 | EXTRA_OECONF_pn-binutils-cross-${TARGET_ARCH}_xilinx-standalone_append_cortexa72 = " \ | ||
| 29 | ${BINUTILS_CONFIGURE_A72} \ | ||
| 30 | " | ||
| 31 | 26 | ||
| 32 | # Cortex-R5 | 27 | # Cortex-R5 |
| 33 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone_append_cortexr5 = " \ | 28 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone_append_cortexr5 = " \ |
| 34 | ${GCC_CONFIGURE_R5} \ | 29 | ${GCC_CONFIGURE_R5} \ |
| 35 | " | 30 | " |
| 36 | EXTRA_OECONF_pn-binutils-cross-${TARGET_ARCH}_xilinx-standalone_append_cortexr5 = " \ | ||
| 37 | ${BINUTILS_CONFIGURE_R5} \ | ||
| 38 | " | ||
| 39 | 31 | ||
| 40 | # MB | 32 | # MB |
| 41 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone_append_zynqmp-pmu = " \ | 33 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone_append_zynqmp-pmu = " \ |
| 42 | ${GCC_CONFIGURE_MB} \ | 34 | ${GCC_CONFIGURE_MB} \ |
| 43 | " | 35 | " |
| 44 | EXTRA_OECONF_pn-binutils-cross-${TARGET_ARCH}_xilinx-standalone_append_zynqmp-pmu = " \ | ||
| 45 | ${BINUTILS_CONFIGURE_MB} \ | ||
| 46 | " | ||
| 47 | 36 | ||
| 48 | # Cortex-A9 | 37 | # Cortex-A9 |
| 49 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone_append_zc702-zynq7 = " \ | 38 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_xilinx-standalone_append_zc702-zynq7 = " \ |
| 50 | ${GCC_CONFIGURE_A9} \ | 39 | ${GCC_CONFIGURE_A9} \ |
| 51 | " | 40 | " |
| 52 | EXTRA_OECONF_pn-binutils-cross-${TARGET_ARCH}_xilinx-standalone_append_zc702-zynq7 = " \ | ||
| 53 | ${BINUTILS_CONFIGURE_A9} \ | ||
| 54 | " | ||
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 c8946ad7..ddb32819 100644 --- a/meta-xilinx-standalone/recipes-standalone/gcc/gcc-xilinx-standalone.inc +++ b/meta-xilinx-standalone/recipes-standalone/gcc/gcc-xilinx-standalone.inc | |||
| @@ -3,11 +3,6 @@ | |||
| 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 | 5 | ||
| 6 | # By using tclibc-newlib we loose sysroot functionality due to some | ||
| 7 | # append/override behavior We need to get that back , the following append | ||
| 8 | # overrides everything on EXTRA_OECONF for gcc cross target it avoids | ||
| 9 | # overlapping with crt0 because of --enable-linker-id from EXTRA_OECONF | ||
| 10 | |||
| 11 | GCC_CONFIGURE_COMMON_XILINX_STANDALONE = " \ | 6 | GCC_CONFIGURE_COMMON_XILINX_STANDALONE = " \ |
| 12 | --disable-libmudflap \ | 7 | --disable-libmudflap \ |
| 13 | --disable-libstdcxx-pch \ | 8 | --disable-libstdcxx-pch \ |
| @@ -38,16 +33,6 @@ GCC_CONFIGURE_A53 ?= " \ | |||
| 38 | --with-ppl=no \ | 33 | --with-ppl=no \ |
| 39 | " | 34 | " |
| 40 | 35 | ||
| 41 | |||
| 42 | |||
| 43 | BINUTILS_CONFIGURE_A53 ?= " \ | ||
| 44 | --disable-gprof \ | ||
| 45 | --disable-libdecnumber \ | ||
| 46 | --disable-readline \ | ||
| 47 | --disable-shared \ | ||
| 48 | --enable-lto \ | ||
| 49 | --enable-static \ | ||
| 50 | " | ||
| 51 | GCC_CONFIGURE_A72 ?= " \ | 36 | GCC_CONFIGURE_A72 ?= " \ |
| 52 | --disable-bootstrap \ | 37 | --disable-bootstrap \ |
| 53 | --disable-multiarch \ | 38 | --disable-multiarch \ |
| @@ -67,16 +52,6 @@ GCC_CONFIGURE_A72 ?= " \ | |||
| 67 | --with-isl=no \ | 52 | --with-isl=no \ |
| 68 | --with-ppl=no \ | 53 | --with-ppl=no \ |
| 69 | " | 54 | " |
| 70 | BINUTILS_CONFIGURE_A72 ?= " \ | ||
| 71 | --disable-gprof \ | ||
| 72 | --disable-libdecnumber \ | ||
| 73 | --disable-readline \ | ||
| 74 | --disable-shared \ | ||
| 75 | --enable-lto \ | ||
| 76 | --enable-static \ | ||
| 77 | " | ||
| 78 | |||
| 79 | |||
| 80 | 55 | ||
| 81 | GCC_CONFIGURE_R5 ?= " \ | 56 | GCC_CONFIGURE_R5 ?= " \ |
| 82 | --disable-decimal-float \ | 57 | --disable-decimal-float \ |
| @@ -94,12 +69,6 @@ GCC_CONFIGURE_R5 ?= " \ | |||
| 94 | --with-host-libstdcxx=-static-libgcc \ | 69 | --with-host-libstdcxx=-static-libgcc \ |
| 95 | --with-multilib-list=rmprofile \ | 70 | --with-multilib-list=rmprofile \ |
| 96 | " | 71 | " |
| 97 | BINUTILS_CONFIGURE_R5 ?= " \ | ||
| 98 | --disable-docs \ | ||
| 99 | --disable-nls \ | ||
| 100 | --enable-interwork \ | ||
| 101 | " | ||
| 102 | |||
| 103 | 72 | ||
| 104 | GCC_CONFIGURE_MB ?= " \ | 73 | GCC_CONFIGURE_MB ?= " \ |
| 105 | --disable-__cxa_atexit \ | 74 | --disable-__cxa_atexit \ |
| @@ -113,13 +82,6 @@ GCC_CONFIGURE_MB ?= " \ | |||
| 113 | --without-long-double-128 \ | 82 | --without-long-double-128 \ |
| 114 | --disable-multilib \ | 83 | --disable-multilib \ |
| 115 | " | 84 | " |
| 116 | BINUTILS_CONFIGURE_MB ?= " \ | ||
| 117 | --disable-initfini-array \ | ||
| 118 | --disable-nls \ | ||
| 119 | --enable-gold=no \ | ||
| 120 | --enable-ld=yes \ | ||
| 121 | --enable-multilib \ | ||
| 122 | " | ||
| 123 | 85 | ||
| 124 | GCC_CONFIGURE_A9 ?= " \ | 86 | GCC_CONFIGURE_A9 ?= " \ |
| 125 | --disable-bootstrap \ | 87 | --disable-bootstrap \ |
| @@ -139,9 +101,4 @@ GCC_CONFIGURE_A9 ?= " \ | |||
| 139 | --with-gnu-ld \ | 101 | --with-gnu-ld \ |
| 140 | --with-isl=no \ | 102 | --with-isl=no \ |
| 141 | --with-ppl=no \ | 103 | --with-ppl=no \ |
| 142 | " | ||
| 143 | BINUTILS_CONFIGURE_A9 ?= " \ | ||
| 144 | --disable-docs \ | ||
| 145 | --disable-nls \ | ||
| 146 | --enable-interwork \ | ||
| 147 | " \ No newline at end of file | 104 | " \ No newline at end of file |
