Signed-off-by: Jacob Stiffler <j-stiff...@ti.com>
---
v2 changes:
* Remove unnecessary EXTRA_OECONF += ""

 ...e-Do-not-check-build-executable-extension.patch | 25 +-----------
 .../llvm/{ti-llvm3.3_3.3.bb => ti-llvm3.6_3.6.bb}  | 46 ++++++++++++++++++----
 2 files changed, 39 insertions(+), 32 deletions(-)
 rename meta-arago-extras/recipes-core/llvm/{ti-llvm3.3 => 
ti-llvm3.6}/0001-configure-Do-not-check-build-executable-extension.patch (56%)
 rename meta-arago-extras/recipes-core/llvm/{ti-llvm3.3_3.3.bb => 
ti-llvm3.6_3.6.bb} (67%)

diff --git 
a/meta-arago-extras/recipes-core/llvm/ti-llvm3.3/0001-configure-Do-not-check-build-executable-extension.patch
 
b/meta-arago-extras/recipes-core/llvm/ti-llvm3.6/0001-configure-Do-not-check-build-executable-extension.patch
similarity index 56%
rename from 
meta-arago-extras/recipes-core/llvm/ti-llvm3.3/0001-configure-Do-not-check-build-executable-extension.patch
rename to 
meta-arago-extras/recipes-core/llvm/ti-llvm3.6/0001-configure-Do-not-check-build-executable-extension.patch
index b6e5331..9a60caf 100644
--- 
a/meta-arago-extras/recipes-core/llvm/ti-llvm3.3/0001-configure-Do-not-check-build-executable-extension.patch
+++ 
b/meta-arago-extras/recipes-core/llvm/ti-llvm3.6/0001-configure-Do-not-check-build-executable-extension.patch
@@ -9,8 +9,7 @@ Subject: [PATCH] configure: Do not check build executable 
extension.
 Signed-off-by: Jake Stiffler <j-stiff...@ti.com>
 ---
  configure                 |    3 +++
- projects/sample/configure |    4 ++++
- 2 files changed, 7 insertions(+)
+ 1 files changed, 3 insertions(+)
 
 diff --git a/configure b/configure
 index decbc40..387c4fd 100755
@@ -33,28 +32,6 @@ index decbc40..387c4fd 100755
    rm -f conftest*
    test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
  fi
-diff --git a/projects/sample/configure b/projects/sample/configure
-index a2c70c6..b57f21c 100755
---- a/projects/sample/configure
-+++ b/projects/sample/configure
-@@ -4753,6 +4753,8 @@ echo "$as_me: error: no acceptable cc found in \$PATH" 
>&2;}
-   rm -f conftest*
-   echo 'int main () { return 0; }' > conftest.$ac_ext
-   ac_cv_build_exeext=
-+
-+if false; then
-   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
-   (eval $ac_build_link) 2>&5
-   ac_status=$?
-@@ -4769,6 +4771,8 @@ echo "$as_me: error: no acceptable cc found in \$PATH" 
>&2;}
- echo "$as_me: error: installation or configuration problem: compiler cannot 
create executables." >&2;}
-    { (exit 1); exit 1; }; }
-   fi
-+fi
-+
-   rm -f conftest*
-   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
- fi
 -- 
 1.7.9.5
 
diff --git a/meta-arago-extras/recipes-core/llvm/ti-llvm3.3_3.3.bb 
b/meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb
similarity index 67%
rename from meta-arago-extras/recipes-core/llvm/ti-llvm3.3_3.3.bb
rename to meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb
index 35514c4..8efd516 100644
--- a/meta-arago-extras/recipes-core/llvm/ti-llvm3.3_3.3.bb
+++ b/meta-arago-extras/recipes-core/llvm/ti-llvm3.6_3.6.bb
@@ -1,7 +1,7 @@
-DESCRIPTION = "LLVM 3.3 with support for TI C66x intrinsics"
+DESCRIPTION = "LLVM 3.6 with support for TI C66x intrinsics"
 HOMEPAGE = "https://gitorious.design.ti.com/ocl/llvm33-src";
 
-PR = "r1"
+PR = "r2"
 
 do_configure_prepend_class-native() {
     # Fix paths in llvm-config
@@ -10,27 +10,47 @@ do_configure_prepend_class-native() {
 
 require recipes-core/llvm/llvm.inc
 
-DEPENDS += "zlib libxml2"
-EXTRA_OECONF += "--enable-zlib"
+LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=47e311aa9caedd1b3abf098bd7814d1d"
+
+DEPENDS += "libxml2"
 
 
 LLVM_DIR = "ti-llvm${PV}"
 
-BRANCH = "master"
+LLVM_GIT_NAME = "llvm"
+LLVM_GIT_URI = "git://git.ti.com/opencl/llvm.git"
+LLVM_GIT_PROTOCOL = "git"
+LLVM_GIT_BRANCH = "release_36_ti"
+LLVM_GIT_DESTSUFFIX = "git"
+LLVM_GIT_SRCREV = "2ff2f1fe65645f9323372e382d0fd9647462abcb"
+
+CLANG_GIT_NAME = "clang"
+CLANG_GIT_URI = "git://git.ti.com/opencl/clang.git"
+CLANG_GIT_PROTOCOL = "git"
+CLANG_GIT_BRANCH = "release_36_ti"
+CLANG_GIT_DESTSUFFIX = "${LLVM_GIT_DESTSUFFIX}/tools/clang"
+CLANG_GIT_SRCREV = "7b43bc10396ecdd141cec40acacbc240ac76a84f"
 
 SRC_URI = " \
-  git://git.ti.com/opencl/ti-llvm-clang-3_3.git;protocol=git;branch=${BRANCH} \
+  
${LLVM_GIT_URI};protocol=${LLVM_GIT_PROTOCOL};branch=${LLVM_GIT_BRANCH};destsuffix=${LLVM_GIT_DESTSUFFIX};name=${LLVM_GIT_NAME}
 \
+  
${CLANG_GIT_URI};protocol=${CLANG_GIT_PROTOCOL};branch=${CLANG_GIT_BRANCH};destsuffix=${CLANG_GIT_DESTSUFFIX};name=${CLANG_GIT_NAME}
 \
   file://0001-configure-Do-not-check-build-executable-extension.patch \
 "
 
-
-SRCREV = "29629a3e70d445cfbfbb4046a56d3648ebae9544"
+SRCREV_${LLVM_GIT_NAME} = "${LLVM_GIT_SRCREV}"
+SRCREV_${CLANG_GIT_NAME} = "${CLANG_GIT_SRCREV}"
 
 S = "${WORKDIR}/git"
 
 LIBXML2_INC = "`pkg-config libxml-2.0 --cflags`"
 LIBXML2_LIBS = "`pkg-config libxml-2.0 --libs`"
 
+EXTRA_OECONF += " --enable-targets="host,arm,c6000,msp430" \
+                  --disable-zlib \
+                  --disable-terminfo \
+                  --disable-libedit \
+"
+
 EXTRA_OEMAKE += "LIBXML2_INC="${LIBXML2_INC}" LIBXML2_LIBS="${LIBXML2_LIBS}""
 
 do_compile_class-native() {
@@ -54,6 +74,13 @@ do_compile_class-nativesdk() {
         RANLIB="${BUILD_RANLIB}" \
         PATH="${STAGING_BINDIR_NATIVE}:$PATH" \
         cross-compile-build-tools
+
+    # Workaround for timestamp issue on built-tools
+    for f in ${LLVM_BUILD_DIR}/BuildTools/Release/bin/*
+    do
+        touch $f
+    done
+
     oe_runmake
 }
 
@@ -95,6 +122,7 @@ do_install_class-native() {
     install -m 0755 ${LLVM_INSTALL_DIR}/llvm-config${PV}-ti ${D}${bindir}
 }
 
+
 SYSROOT_PREPROCESS_FUNCS_class-target += "llvm_sysroot_preprocess_target"
 SYSROOT_PREPROCESS_FUNCS_class-nativesdk += "llvm_sysroot_preprocess_target"
 
@@ -107,4 +135,6 @@ llvm_sysroot_preprocess_target() {
     mv ${LLVM_INSTALL_DIR}/llvm-config-host 
${SYSROOT_DESTDIR}${bindir_crossscripts}/llvm-config${PV}-ti
 }
 
+INSANE_SKIP_${MLPREFIX}libllvm${LLVM_RELEASE}-llvm-${LLVM_RELEASE}.0 += 
"dev-so"
+
 BBCLASSEXTEND = "native nativesdk"
-- 
1.9.1

_______________________________________________
meta-arago mailing list
meta-arago@arago-project.org
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to