diff options
| -rw-r--r-- | meta/classes-global/base.bbclass | 15 | ||||
| -rw-r--r-- | meta/classes/toolchain/clang.bbclass (renamed from meta/conf/toolchain/clang.inc) | 0 | ||||
| -rw-r--r-- | meta/classes/toolchain/gcc-native.bbclass (renamed from meta/conf/toolchain/build-gcc.inc) | 0 | ||||
| -rw-r--r-- | meta/classes/toolchain/gcc.bbclass (renamed from meta/conf/toolchain/gcc.inc) | 0 | ||||
| -rw-r--r-- | meta/conf/bitbake.conf | 3 | ||||
| -rw-r--r-- | meta/recipes-devtools/binutils/binutils-cross.inc | 2 | ||||
| -rw-r--r-- | meta/recipes-devtools/clang/clang-cross_git.bb | 1 | ||||
| -rw-r--r-- | meta/recipes-devtools/clang/clang-crosssdk_git.bb | 1 |
8 files changed, 19 insertions, 3 deletions
diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass index 4ac3b83eb5..e55a538e36 100644 --- a/meta/classes-global/base.bbclass +++ b/meta/classes-global/base.bbclass | |||
| @@ -19,6 +19,21 @@ PACKAGECONFIG_CONFARGS ??= "" | |||
| 19 | 19 | ||
| 20 | inherit metadata_scm | 20 | inherit metadata_scm |
| 21 | 21 | ||
| 22 | PREFERRED_TOOLCHAIN_TARGET ??= "gcc" | ||
| 23 | PREFERRED_TOOLCHAIN_NATIVE ??= "gcc" | ||
| 24 | PREFERRED_TOOLCHAIN_SDK ??= "gcc" | ||
| 25 | |||
| 26 | PREFERRED_TOOLCHAIN = "${PREFERRED_TOOLCHAIN_TARGET}" | ||
| 27 | PREFERRED_TOOLCHAIN:class-native = "${PREFERRED_TOOLCHAIN_NATIVE}" | ||
| 28 | PREFERRED_TOOLCHAIN:class-cross = "${PREFERRED_TOOLCHAIN_NATIVE}" | ||
| 29 | PREFERRED_TOOLCHAIN:class-crosssdk = "${PREFERRED_TOOLCHAIN_SDK}" | ||
| 30 | PREFERRED_TOOLCHAIN:class-nativesdk = "${PREFERRED_TOOLCHAIN_SDK}" | ||
| 31 | |||
| 32 | TOOLCHAIN ??= "${PREFERRED_TOOLCHAIN}" | ||
| 33 | |||
| 34 | inherit toolchain/gcc-native | ||
| 35 | inherit_defer toolchain/${TOOLCHAIN} | ||
| 36 | |||
| 22 | def lsb_distro_identifier(d): | 37 | def lsb_distro_identifier(d): |
| 23 | adjust = d.getVar('LSB_DISTRO_ADJUST') | 38 | adjust = d.getVar('LSB_DISTRO_ADJUST') |
| 24 | adjust_func = None | 39 | adjust_func = None |
diff --git a/meta/conf/toolchain/clang.inc b/meta/classes/toolchain/clang.bbclass index 8a0a2c315a..8a0a2c315a 100644 --- a/meta/conf/toolchain/clang.inc +++ b/meta/classes/toolchain/clang.bbclass | |||
diff --git a/meta/conf/toolchain/build-gcc.inc b/meta/classes/toolchain/gcc-native.bbclass index a708bd0389..a708bd0389 100644 --- a/meta/conf/toolchain/build-gcc.inc +++ b/meta/classes/toolchain/gcc-native.bbclass | |||
diff --git a/meta/conf/toolchain/gcc.inc b/meta/classes/toolchain/gcc.bbclass index 75f9abe999..75f9abe999 100644 --- a/meta/conf/toolchain/gcc.inc +++ b/meta/classes/toolchain/gcc.bbclass | |||
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 8686c0a25f..aa184ff9f5 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
| @@ -834,9 +834,6 @@ include conf/licenses.conf | |||
| 834 | require conf/sanity.conf | 834 | require conf/sanity.conf |
| 835 | include conf/bblock.conf | 835 | include conf/bblock.conf |
| 836 | 836 | ||
| 837 | require toolchain/gcc.inc | ||
| 838 | require toolchain/build-gcc.inc | ||
| 839 | |||
| 840 | ################################################################## | 837 | ################################################################## |
| 841 | # Weak variables (usually to retain backwards compatibility) | 838 | # Weak variables (usually to retain backwards compatibility) |
| 842 | ################################################################## | 839 | ################################################################## |
diff --git a/meta/recipes-devtools/binutils/binutils-cross.inc b/meta/recipes-devtools/binutils/binutils-cross.inc index 9c371e7e13..c545ea2ad9 100644 --- a/meta/recipes-devtools/binutils/binutils-cross.inc +++ b/meta/recipes-devtools/binutils/binutils-cross.inc | |||
| @@ -9,6 +9,8 @@ TARGET_ARCH[vardepvalue] = "${TARGET_ARCH}" | |||
| 9 | INHIBIT_DEFAULT_DEPS = "1" | 9 | INHIBIT_DEFAULT_DEPS = "1" |
| 10 | INHIBIT_AUTOTOOLS_DEPS = "1" | 10 | INHIBIT_AUTOTOOLS_DEPS = "1" |
| 11 | 11 | ||
| 12 | TOOLCHAIN = "gcc" | ||
| 13 | |||
| 12 | SRC_URI += "file://0002-binutils-cross-Do-not-generate-linker-script-directo.patch" | 14 | SRC_URI += "file://0002-binutils-cross-Do-not-generate-linker-script-directo.patch" |
| 13 | 15 | ||
| 14 | # Specify lib-path else we use a load of search dirs which we don't use | 16 | # Specify lib-path else we use a load of search dirs which we don't use |
diff --git a/meta/recipes-devtools/clang/clang-cross_git.bb b/meta/recipes-devtools/clang/clang-cross_git.bb index 9b9b120a3d..323cc0d880 100644 --- a/meta/recipes-devtools/clang/clang-cross_git.bb +++ b/meta/recipes-devtools/clang/clang-cross_git.bb | |||
| @@ -11,6 +11,7 @@ PN = "clang-cross-${TARGET_ARCH}" | |||
| 11 | require common-clang.inc | 11 | require common-clang.inc |
| 12 | require common-source.inc | 12 | require common-source.inc |
| 13 | inherit cross | 13 | inherit cross |
| 14 | TOOLCHAIN = "clang" | ||
| 14 | DEPENDS += "clang-native virtual/cross-binutils" | 15 | DEPENDS += "clang-native virtual/cross-binutils" |
| 15 | 16 | ||
| 16 | #INHIBIT_PACKAGE_STRIP = "1" | 17 | #INHIBIT_PACKAGE_STRIP = "1" |
diff --git a/meta/recipes-devtools/clang/clang-crosssdk_git.bb b/meta/recipes-devtools/clang/clang-crosssdk_git.bb index 47ac96f4f9..ef162ef153 100644 --- a/meta/recipes-devtools/clang/clang-crosssdk_git.bb +++ b/meta/recipes-devtools/clang/clang-crosssdk_git.bb | |||
| @@ -11,6 +11,7 @@ PN = "clang-crosssdk-${SDK_SYS}" | |||
| 11 | require common-clang.inc | 11 | require common-clang.inc |
| 12 | require common-source.inc | 12 | require common-source.inc |
| 13 | inherit crosssdk | 13 | inherit crosssdk |
| 14 | TOOLCHAIN = "clang" | ||
| 14 | DEPENDS += "clang-native nativesdk-clang-glue virtual/nativesdk-cross-binutils virtual/nativesdk-libc" | 15 | DEPENDS += "clang-native nativesdk-clang-glue virtual/nativesdk-cross-binutils virtual/nativesdk-libc" |
| 15 | 16 | ||
| 16 | do_install() { | 17 | do_install() { |
