From 4346516a6a719355d2793af289f93e14d3dedd0c Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Fri, 27 Jan 2012 11:13:44 -0600 Subject: external-csl-toolchain: avoid the hardcoded version/prefix Signed-off-by: Christopher Larson Signed-off-by: Richard Purdie --- meta/conf/distro/include/tcmode-external-csl.inc | 30 ++++++++++++++++++++ .../distro/include/tcmode-external-csl2008q3.inc | 33 ---------------------- 2 files changed, 30 insertions(+), 33 deletions(-) create mode 100644 meta/conf/distro/include/tcmode-external-csl.inc delete mode 100644 meta/conf/distro/include/tcmode-external-csl2008q3.inc (limited to 'meta/conf') diff --git a/meta/conf/distro/include/tcmode-external-csl.inc b/meta/conf/distro/include/tcmode-external-csl.inc new file mode 100644 index 000000000..0af3a4512 --- /dev/null +++ b/meta/conf/distro/include/tcmode-external-csl.inc @@ -0,0 +1,30 @@ +# +# Configuration to use external CSL toolchain +# + +TARGET_VENDOR = "-none" + +EXTERNAL_TOOLCHAIN ?= "/usr/local/csl/${TARGET_ARCH}" + +PATH =. "${EXTERNAL_TOOLCHAIN}/bin:" + +PREFERRED_PROVIDER_linux-libc-headers = "external-csl-toolchain" +PREFERRED_PROVIDER_linux-libc-headers-dev = "external-csl-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "external-csl-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial = "external-csl-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-intermediate = "external-csl-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "external-csl-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "external-csl-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "external-csl-toolchain" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs = "external-csl-toolchain" +PREFERRED_PROVIDER_libgcc = "external-csl-toolchain" +PREFERRED_PROVIDER_virtual/libc = "external-csl-toolchain" +PREFERRED_PROVIDER_virtual/libintl = "external-csl-toolchain" +PREFERRED_PROVIDER_virtual/libiconv = "external-csl-toolchain" +PREFERRED_PROVIDER_glibc-thread-db = "external-csl-toolchain" +PREFERRED_PROVIDER_virtual/linux-libc-headers = "external-csl-toolchain" + +TARGET_CPPFLAGS_prepend = " -isystem${EXTERNAL_TOOLCHAIN}/${TARGET_SYS}/include " +TARGET_LDFLAGS_prepend = " -L${EXTERNAL_TOOLCHAIN}/${TARGET_SYS}/lib -Wl,-rpath-link,${EXTERNAL_TOOLCHAIN}/${TARGET_SYS}/lib " + +TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_HOST}" diff --git a/meta/conf/distro/include/tcmode-external-csl2008q3.inc b/meta/conf/distro/include/tcmode-external-csl2008q3.inc deleted file mode 100644 index 31055dcab..000000000 --- a/meta/conf/distro/include/tcmode-external-csl2008q3.inc +++ /dev/null @@ -1,33 +0,0 @@ -# -# Configuration to use external CSL 2008q3-72 toolchain (ARM EABI) -# - -TARGET_VENDOR = "-none" - -EXTERNAL_TOOLCHAIN ?= "/usr/local/csl/arm-2008q3" - -PATH =. "${EXTERNAL_TOOLCHAIN}/bin:" - -PREFERRED_PROVIDER_linux-libc-headers = "external-csl-toolchain" -PREFERRED_PROVIDER_linux-libc-headers-dev = "external-csl-toolchain" -PREFERRED_PROVIDER_virtual/arm-none-linux-gnueabi-gcc = "external-csl-toolchain" -PREFERRED_PROVIDER_virtual/arm-none-linux-gnueabi-gcc-initial = "external-csl-toolchain" -PREFERRED_PROVIDER_virtual/arm-none-linux-gnueabi-gcc-intermediate = "external-csl-toolchain" -PREFERRED_PROVIDER_virtual/arm-none-linux-gnueabi-g++ = "external-csl-toolchain" -PREFERRED_PROVIDER_virtual/arm-none-linux-gnueabi-binutils = "external-csl-toolchain" -PREFERRED_PROVIDER_virtual/arm-none-linux-gnueabi-libc-for-gcc = "external-csl-toolchain" -PREFERRED_PROVIDER_virtual/arm-none-linux-gnueabi-compilerlibs = "external-csl-toolchain" -PREFERRED_PROVIDER_libgcc = "external-csl-toolchain" -PREFERRED_PROVIDER_virtual/libc = "external-csl-toolchain" -PREFERRED_PROVIDER_virtual/libintl = "external-csl-toolchain" -PREFERRED_PROVIDER_virtual/libiconv = "external-csl-toolchain" -PREFERRED_PROVIDER_glibc-thread-db = "external-csl-toolchain" -PREFERRED_PROVIDER_virtual/linux-libc-headers = "external-csl-toolchain" - - -PREFERRED_VERSION_external-csl-toolchain = "2008q3-72" - -TARGET_CPPFLAGS_prepend = " -isystem${EXTERNAL_TOOLCHAIN}/${TARGET_SYS}/include " -TARGET_LDFLAGS_prepend = " -L${EXTERNAL_TOOLCHAIN}/${TARGET_SYS}/lib -Wl,-rpath-link,${EXTERNAL_TOOLCHAIN}/${TARGET_SYS}/lib " - -TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_HOST}" -- cgit v1.2.3