diff options
| author | Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> | 2019-02-01 17:56:32 -0800 |
|---|---|---|
| committer | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2019-12-09 17:00:46 -0800 |
| commit | 51ffb671c04239c812ca7e9e5c29917fe1606ca1 (patch) | |
| tree | 191706d91e0af099348881712ef41c1e76aa83c8 /meta-xilinx-standalone/conf | |
| parent | 5b5cb85d1a066bb7fc75e201156a686b5a680658 (diff) | |
| download | meta-xilinx-51ffb671c04239c812ca7e9e5c29917fe1606ca1.tar.gz | |
toolchain: Provide specific configuration for cross(-canadian) gcc and binutils
Since we need specific configuration for the SDK toolchain, we need
to override the configuration coming from oe-core, this configuration
needs to be per MACHINE.
Use GCC_CONFIGURE_COMMON_XILINX_STANDALONE to define the default config
shared amongst MACHINES, and use a GCC_CONFIGURE_<MACHINE> variable to
append to this common configuration options on each MACHINE that we
want.
Use the same procedure for binutils
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Diffstat (limited to 'meta-xilinx-standalone/conf')
| -rw-r--r-- | meta-xilinx-standalone/conf/machine/cortexa53.conf | 39 | ||||
| -rw-r--r-- | meta-xilinx-standalone/conf/machine/cortexr5.conf | 37 | ||||
| -rw-r--r-- | meta-xilinx-standalone/conf/machine/zynqmp-pmu.conf | 29 |
3 files changed, 104 insertions, 1 deletions
diff --git a/meta-xilinx-standalone/conf/machine/cortexa53.conf b/meta-xilinx-standalone/conf/machine/cortexa53.conf index ac2f21f2..1d8377ca 100644 --- a/meta-xilinx-standalone/conf/machine/cortexa53.conf +++ b/meta-xilinx-standalone/conf/machine/cortexa53.conf | |||
| @@ -12,3 +12,42 @@ ARMPKGARCH_tune-cortexa53 = "cortexa53" | |||
| 12 | TUNE_FEATURES_tune-cortexa53 = "${TUNE_FEATURES_tune-aarch64} cortexa53" | 12 | TUNE_FEATURES_tune-cortexa53 = "${TUNE_FEATURES_tune-aarch64} cortexa53" |
| 13 | PACKAGE_EXTRA_ARCHS_tune-cortexa53 = "${PACKAGE_EXTRA_ARCHS_tune-aarch64}" | 13 | PACKAGE_EXTRA_ARCHS_tune-cortexa53 = "${PACKAGE_EXTRA_ARCHS_tune-aarch64}" |
| 14 | 14 | ||
| 15 | #LANGUAGES_append = ",lto" | ||
| 16 | |||
| 17 | GCC_CONFIGURE_A53 ?= " \ | ||
| 18 | --disable-bootstrap \ | ||
| 19 | --disable-multiarch \ | ||
| 20 | --disable-threads \ | ||
| 21 | --enable-c99 \ | ||
| 22 | --enable-checking=yes \ | ||
| 23 | --enable-fix-cortex-a53-835769 \ | ||
| 24 | --enable-fix-cortex-a53-843419 \ | ||
| 25 | --enable-linker-build-id \ | ||
| 26 | --enable-long-long \ | ||
| 27 | --enable-lto \ | ||
| 28 | --enable-plugins \ | ||
| 29 | --enable-shared \ | ||
| 30 | --with-arch=armv8-a \ | ||
| 31 | --with-cloog=no \ | ||
| 32 | --with-gnu-as \ | ||
| 33 | --with-gnu-ld \ | ||
| 34 | --with-isl=no \ | ||
| 35 | --with-ppl=no \ | ||
| 36 | " | ||
| 37 | |||
| 38 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_append_xilinx-standalone = " \ | ||
| 39 | ${GCC_CONFIGURE_A53} \ | ||
| 40 | " | ||
| 41 | |||
| 42 | BINUTILS_CONFIGURE_A53 ?= " \ | ||
| 43 | --disable-gprof \ | ||
| 44 | --disable-libdecnumber \ | ||
| 45 | --disable-readline \ | ||
| 46 | --disable-shared \ | ||
| 47 | --enable-lto \ | ||
| 48 | --enable-static \ | ||
| 49 | " | ||
| 50 | |||
| 51 | EXTRA_OECONF_pn-binutils-cross-${TARGET_ARCH}_append_xilinx-standalone = " \ | ||
| 52 | ${BINUTILS_CONFIGURE_A53} \ | ||
| 53 | " | ||
diff --git a/meta-xilinx-standalone/conf/machine/cortexr5.conf b/meta-xilinx-standalone/conf/machine/cortexr5.conf index 48e1f125..74ef4b4d 100644 --- a/meta-xilinx-standalone/conf/machine/cortexr5.conf +++ b/meta-xilinx-standalone/conf/machine/cortexr5.conf | |||
| @@ -10,4 +10,39 @@ AVAILTUNES += "cortexr5" | |||
| 10 | ARMPKGARCH_tune-cortexr5 = "cortexr5" | 10 | ARMPKGARCH_tune-cortexr5 = "cortexr5" |
| 11 | 11 | ||
| 12 | TUNE_FEATURES_tune-cortexr5 = "cortexr5" | 12 | TUNE_FEATURES_tune-cortexr5 = "cortexr5" |
| 13 | #PACKAGE_EXTRA_ARCHS_tune-cortexr5 = "cortexr5" \ No newline at end of file | 13 | |
| 14 | #PACKAGE_EXTRA_ARCHS_tune-cortexr5 = "cortexr5" | ||
| 15 | |||
| 16 | |||
| 17 | GCC_CONFIGURE_R5 ?= " \ | ||
| 18 | --disable-decimal-float \ | ||
| 19 | --disable-libffi \ | ||
| 20 | --disable-libgomp \ | ||
| 21 | --disable-libquadmath \ | ||
| 22 | --disable-libssp \ | ||
| 23 | --disable-shared \ | ||
| 24 | --disable-threads \ | ||
| 25 | --disable-tls \ | ||
| 26 | --enable-plugins \ | ||
| 27 | --with-gnu-as \ | ||
| 28 | --with-gnu-ld \ | ||
| 29 | --with-headers=yes \ | ||
| 30 | --with-host-libstdcxx=-static-libgcc \ | ||
| 31 | --with-multilib-list=rmprofile \ | ||
| 32 | " | ||
| 33 | |||
| 34 | |||
| 35 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_append_xilinx-standalone = " \ | ||
| 36 | ${GCC_CONFIGURE_R5} \ | ||
| 37 | " | ||
| 38 | |||
| 39 | BINUTILS_CONFIGURE_R5 ?= " \ | ||
| 40 | --disable-docs \ | ||
| 41 | --disable-nls \ | ||
| 42 | -enable-interwork \ | ||
| 43 | " | ||
| 44 | |||
| 45 | EXTRA_OECONF_pn-binutils-cross-${TARGET_ARCH}_append_xilinx-standalone = " \ | ||
| 46 | ${BINUTILS_CONFIGURE_R5} \ | ||
| 47 | " | ||
| 48 | |||
diff --git a/meta-xilinx-standalone/conf/machine/zynqmp-pmu.conf b/meta-xilinx-standalone/conf/machine/zynqmp-pmu.conf index 6759c2d8..85b3315e 100644 --- a/meta-xilinx-standalone/conf/machine/zynqmp-pmu.conf +++ b/meta-xilinx-standalone/conf/machine/zynqmp-pmu.conf | |||
| @@ -9,3 +9,32 @@ PACKAGE_EXTRA_ARCHS_tune-microblaze = "${TUNE_PKGARCH}" | |||
| 9 | SOC_FAMILY = "zynqmp" | 9 | SOC_FAMILY = "zynqmp" |
| 10 | 10 | ||
| 11 | TARGET_LINK_HASH_STYLE_microblaze = "" | 11 | TARGET_LINK_HASH_STYLE_microblaze = "" |
| 12 | |||
| 13 | GCC_CONFIGURE_MB ?= " \ | ||
| 14 | --disable-__cxa_atexit \ | ||
| 15 | --disable-libgomp \ | ||
| 16 | --disable-shared \ | ||
| 17 | --enable-lto \ | ||
| 18 | --enable-target-optspace \ | ||
| 19 | --enable-threads=no \ | ||
| 20 | --with-isl=no \ | ||
| 21 | --with-ppl=no \ | ||
| 22 | --without-long-double-128 \ | ||
| 23 | " | ||
| 24 | |||
| 25 | EXTRA_OECONF_pn-gcc-cross-${TARGET_ARCH}_append_xilinx-standalone = " \ | ||
| 26 | ${GCC_CONFIGURE_MB} \ | ||
| 27 | " | ||
| 28 | |||
| 29 | |||
| 30 | BINUTILS_CONFIGURE_MB ?= " \ | ||
| 31 | --disable-initfini-array \ | ||
| 32 | --disable-nls \ | ||
| 33 | --enable-gold=no \ | ||
| 34 | --enable-ld=yes \ | ||
| 35 | --enable-multilib \ | ||
| 36 | " | ||
| 37 | |||
| 38 | EXTRA_OECONF_pn-binutils-cross-${TARGET_ARCH}_append_xilinx-standalone = " \ | ||
| 39 | ${BINUTILS_CONFIGURE_MB} \ | ||
| 40 | " \ No newline at end of file | ||
