From 0d044d470ba3d7255fe3b8cf09d3824b22cf0367 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 6 Apr 2015 03:58:34 +0000 Subject: clang-cross: Rename PN to include TARGET_ARCH brings it inline with gcc toolchain Signed-off-by: Khem Raj --- README.md | 2 +- classes/.clang.bbclass.swp | Bin 0 -> 12288 bytes conf/clang.conf | 6 +++--- recipes-devtools/clang/clang-cross_git.bb | 2 ++ 4 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 classes/.clang.bbclass.swp diff --git a/README.md b/README.md index 3d6ac6b..51a18e8 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ $ runqemu qemuarm Currently only few components are building with clang if you want to port/add more then please add ```shell TOOLCHAIN_pn- = "clang" -DEPENDS_append_pn- = " clang-cross " +DEPENDS_append_pn- = " clang-cross-${TARGET_ARCH} " ``` to clang.conf diff --git a/classes/.clang.bbclass.swp b/classes/.clang.bbclass.swp new file mode 100644 index 0000000..bf5e5f7 Binary files /dev/null and b/classes/.clang.bbclass.swp differ diff --git a/conf/clang.conf b/conf/clang.conf index ba17970..b4a616f 100644 --- a/conf/clang.conf +++ b/conf/clang.conf @@ -6,10 +6,10 @@ CPP_toolchain-clang = "${TARGET_PREFIX}clang ${TOOLCHAIN_OPTIONS} -E" CCLD_toolchain-clang = "${TARGET_PREFIX}clang ${TOOLCHAIN_OPTIONS}" TOOLCHAIN_pn-lzo = "clang" -DEPENDS_append_pn-lzo = " clang-cross " +DEPENDS_append_pn-lzo = " clang-cross-${TARGET_ARCH} " TOOLCHAIN_pn-musl = "clang" -DEPENDS_append_pn-musl = " clang-cross " +DEPENDS_append_pn-musl = " clang-cross-${TARGET_ARCH} " TOOLCHAIN_pn-toybox = "clang" -DEPENDS_append_pn-toybox = " clang-cross " +DEPENDS_append_pn-toybox = " clang-cross-${TARGET_ARCH} " diff --git a/recipes-devtools/clang/clang-cross_git.bb b/recipes-devtools/clang/clang-cross_git.bb index 48efe41..15ab38d 100644 --- a/recipes-devtools/clang/clang-cross_git.bb +++ b/recipes-devtools/clang/clang-cross_git.bb @@ -7,6 +7,8 @@ LICENSE = "NCSA" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/NCSA;md5=1b5fdec70ee13ad8a91667f16c1959d7" SECTION = "devel" +PN = "clang-cross-${TARGET_ARCH}" + require clang.inc inherit cross DEPENDS += "clang-native binutils-cross-${TARGET_ARCH}" -- cgit v1.2.3-54-g00ecf