@@ -22,7 +22,6 @@ TOOLCHAIN_HOST_TASK:append = " nativesdk-buildtools-perl-dummy"
SDK_PACKAGE_ARCHS += "buildtools-dummy-${SDKPKGSUFFIX}"
BAD_RECOMMENDATIONS += " \
- ti-llvm3.6-dev \
libulm-dev \
gdbserver-c6x-dev \
coreutils \
deleted file mode 100644
@@ -1,23 +0,0 @@
-SUMMARY = "Helper script for OE's llvm support"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
-
-SRC_URI = "file://llvm-config"
-
-S = "${WORKDIR}/sources"
-UNPACKDIR = "${S}"
-
-ALLOW_EMPTY:${PN} = "1"
-SYSROOT_PREPROCESS_FUNCS:append:class-target = " llvm_common_sysroot_preprocess"
-
-llvm_common_sysroot_preprocess() {
- install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
- install -m 0755 ${S}/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/
-}
-
-do_install:class-native() {
- install -d ${D}${bindir}
- install -m 0755 ${S}/llvm-config ${D}${bindir}
-}
-
-BBCLASSEXTEND = "native"
deleted file mode 100644
@@ -1,5 +0,0 @@
-PR:append = ".arago0"
-
-SYSROOT_PREPROCESS_FUNCS:append:class-nativesdk = " llvm_common_sysroot_preprocess"
-
-BBCLASSEXTEND += "nativesdk"
deleted file mode 100644
@@ -1,11 +0,0 @@
-#!/bin/sh
-# Wrapper script for real llvm-config. Simply calls
-
-if [ $WANT_LLVM_RELEASE ]; then
- exec `dirname $0`/${TARGET_PREFIX}llvm-config$WANT_LLVM_RELEASE ${@}
-else
- echo "To use llvm-common WANT_LLVM_RELEASE needs to be exported."
- echo "For example if this is being called through a recipe:"
- echo "export WANT_LLVM_RELEASE=\"3.3\""
- exit 1
-fi
deleted file mode 100644
@@ -1,162 +0,0 @@
-# LLVM does not provide ABI stability between different versions. For this
-# reason OE makes it possible to build and install different llvm versions
-# at the same time.
-#
-# This is true for the normal recipes as well as the native ones.
-#
-# All regular installation directories are prefixed with 'llvm${LLVM_RELEASE}'
-# e.g. "${STAGING_BINDIR}/llvm2.5" or "${STAGING_INCDIR}/llvm2.5"
-#
-# For your program or library that makes use of llvm you do should not need to
-# modify anything as long as it uses the results of various llvm-config
-# invocations. If you need customizations something is wrong and it needs to be
-# fixed (report bug).
-#
-# However the *recipe* for your program/library *must* declare
-# export WANT_LLVM_RELEASE = "<valid version number>"
-# The version number is picked up by a generic wrapper script which just calls
-# the variant of the specified version.
-
-DESCRIPTION = "The Low Level Virtual Machine"
-HOMEPAGE = "http://llvm.org"
-
-# 3-clause BSD-like
-# University of Illinois/NCSA Open Source License
-LICENSE = "NCSA"
-LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=d0a3ef0d3e0e8f5cf59e5ffc273ab1f8"
-
-DEPENDS = "libffi libxml2-native llvm-common"
-
-inherit perlnative python3native autotools
-
-LLVM_RELEASE = "${PV}"
-LLVM_DIR = "llvm${LLVM_RELEASE}"
-
-SRC_URI = "http://llvm.org/releases/${PV}/llvm-${PV}.src.tar.gz"
-S = "${WORKDIR}/llvm-${PV}.src"
-
-LLVM_BUILD_DIR = "${WORKDIR}/llvm-${PV}.build"
-LLVM_INSTALL_DIR = "${WORKDIR}/llvm-install"
-
-EXTRA_OECONF += "--disable-assertions \
- --enable-debug-runtime \
- --disable-expensive-checks \
- --enable-bindings=none \
- --enable-keep-symbols \
- --enable-libffi \
- --enable-optimized \
- --enable-shared \
- --enable-targets=host-only"
-EXTRA_OEMAKE += "REQUIRES_RTTI=1 VERBOSE=1"
-
-do_configure:prepend() {
- # Remove RPATHs
- sed -i 's:$(RPATH) -Wl,$(\(ToolDir\|LibDir\|ExmplDir\))::g' ${S}/Makefile.rules
-
- # Drop "svn" suffix from version string
- sed -i 's/${PV}svn/${PV}/g' ${S}/configure
-
- # Fix paths in llvm-config
- sed -i "s|sys::path::parent_path(CurrentPath))\.str()|sys::path::parent_path(sys::path::parent_path(CurrentPath))).str()|g" ${S}/tools/llvm-config/llvm-config.cpp
- sed -ri "s#/(bin|include|lib)(/?\")#/\1/${LLVM_DIR}\2#g" ${S}/tools/llvm-config/llvm-config.cpp
-
- # Fix the hardcoded libdir in llvm-config
- sed -i 's:/lib\>:/${baselib}:g' ${S}/tools/llvm-config/llvm-config.cpp
-
- # Fails to build unless using separate directory from source
- mkdir -p ${LLVM_BUILD_DIR}
- cd ${LLVM_BUILD_DIR}
-}
-
-do_compile() {
- cd ${LLVM_BUILD_DIR}
-
- # Fix libdir for multilib
- sed -i 's:(PROJ_prefix)/lib:(PROJ_prefix)/${baselib}:g' Makefile.config
-
- oe_runmake \
- AR="${BUILD_AR}" \
- CC="${BUILD_CC}" \
- CFLAGS="${BUILD_CFLAGS}" \
- CXX="${BUILD_CXX}" \
- CXXFLAGS="${BUILD_CXXFLAGS}" \
- CPP="${BUILD_CPP}" \
- CPPFLAGS="${BUILD_CPPFLAGS}" \
- NM="${BUILD_NM}" \
- RANLIB="${BUILD_RANLIB}" \
- PATH="${STAGING_BINDIR_NATIVE}:$PATH" \
- cross-compile-build-tools
- oe_runmake
-}
-
-do_install() {
- cd ${LLVM_BUILD_DIR}
- oe_runmake DESTDIR=${LLVM_INSTALL_DIR} install
-
- mv ${LLVM_INSTALL_DIR}${bindir}/${HOST_SYS}-llvm-config-host ${LLVM_INSTALL_DIR}/llvm-config-host
-
- install -d ${D}${bindir}/${LLVM_DIR}
- mv ${LLVM_INSTALL_DIR}${bindir}/* ${D}${bindir}/${LLVM_DIR}/
-
- install -d ${D}${includedir}/${LLVM_DIR}
- mv ${LLVM_INSTALL_DIR}${includedir}/* ${D}${includedir}/${LLVM_DIR}/
-
- install -d ${D}${libdir}/${LLVM_DIR}
- mv ${LLVM_INSTALL_DIR}${libdir}/* ${D}${libdir}/${LLVM_DIR}/
- ln -s ${LLVM_DIR}/libLLVM-${PV}.so ${D}${libdir}/libLLVM-${PV}.so
-
- install -d ${D}${docdir}/${LLVM_DIR}
- mv ${LLVM_INSTALL_DIR}${prefix}/docs/llvm/* ${D}${docdir}/${LLVM_DIR}
-}
-
-SYSROOT_PREPROCESS_FUNCS += "llvm_sysroot_preprocess"
-
-llvm_sysroot_preprocess() {
- install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}
- mv ${LLVM_INSTALL_DIR}/llvm-config-host ${SYSROOT_DESTDIR}${bindir_crossscripts}/llvm-config${PV}
-}
-
-PACKAGES += "${PN}-bugpointpasses ${PN}-llvmhello"
-ALLOW_EMPTY:${PN} = "1"
-ALLOW_EMPTY:${PN}-staticdev = "1"
-FILES:${PN} = ""
-FILES:${PN}-staticdev = ""
-FILES:${PN}-dbg = " \
- ${bindir}/${LLVM_DIR}/.debug \
- ${libdir}/${LLVM_DIR}/.debug/BugpointPasses.so \
- ${libdir}/${LLVM_DIR}/.debug/LLVMHello.so \
- /usr/src/debug \
-"
-
-FILES:${PN}-dev = " \
- ${bindir}/${LLVM_DIR} \
- ${includedir}/${LLVM_DIR} \
-"
-RRECOMMENDS:${PN}-dev += "${PN}-bugpointpasses ${PN}-llvmhello"
-
-FILES:${PN}-bugpointpasses = "\
- ${libdir}/${LLVM_DIR}/BugpointPasses.so \
-"
-FILES:${PN}-llvmhello = "\
- ${libdir}/${LLVM_DIR}/LLVMHello.so \
-"
-
-PACKAGES_DYNAMIC = "^libllvm${LLVM_RELEASE}-.*$"
-NOAUTOPACKAGEDEBUG = "1"
-
-INSANE_SKIP:${MLPREFIX}libllvm${LLVM_RELEASE}-llvm-${LLVM_RELEASE} += "dev-so"
-
-python llvm_populate_packages() {
- libdir = bb.data.expand('${libdir}', d)
- libllvm_libdir = bb.data.expand('${libdir}/${LLVM_DIR}', d)
- split_dbg_packages = do_split_packages(d, libllvm_libdir+'/.debug', '^lib(.*)\.so$', 'libllvm${LLVM_RELEASE}-%s-dbg', 'Split debug package for %s', allow_dirs=True)
- split_packages = do_split_packages(d, libdir, '^lib(.*)\.so$', 'libllvm${LLVM_RELEASE}-%s', 'Split package for %s', allow_dirs=True, allow_links=True, recursive=True)
- split_staticdev_packages = do_split_packages(d, libllvm_libdir, '^lib(.*)\.a$', 'libllvm${LLVM_RELEASE}-%s-staticdev', 'Split staticdev package for %s', allow_dirs=True)
- if split_packages:
- pn = d.getVar('PN')
- d.appendVar('RDEPENDS:' + pn, ' '+' '.join(split_packages))
- d.appendVar('RDEPENDS:' + pn + '-dbg', ' '+' '.join(split_dbg_packages))
- d.appendVar('RDEPENDS:' + pn + '-staticdev', ' '+' '.join(split_staticdev_packages))
-}
-
-PACKAGESPLITFUNCS:prepend = "llvm_populate_packages "
deleted file mode 100644
@@ -1,39 +0,0 @@
-From 60da8adc29a84796c9768a1a962eda1915c87332 Mon Sep 17 00:00:00 2001
-From: Jake Stiffler <j-stiffler@ti.com>
-Date: Fri, 20 Feb 2015 10:55:11 -0500
-Subject: [PATCH] configure: Do not check build executable extension.
-
- * This seems to cause issues nativesdk and build sdk
- architectures are the same.
-
-Upstream-Status: Inappropriate [oe specific]
-
-Signed-off-by: Jake Stiffler <j-stiffler@ti.com>
----
- configure | 3 +++
- 1 files changed, 3 insertions(+)
-
-diff --git a/configure b/configure
-index decbc40..387c4fd 100755
---- a/configure
-+++ b/configure
-@@ -4951,6 +4951,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=$?
-@@ -4967,6 +4969,7 @@ 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
-
deleted file mode 100644
@@ -1,184 +0,0 @@
-DESCRIPTION = "LLVM 3.6 with support for TI C66x intrinsics"
-HOMEPAGE = "https://git.ti.com/opencl/llvm"
-
-PR = "r7"
-
-do_configure:prepend:class-native() {
- # Fix paths in llvm-config
- sed -i "s|sys::path::parent_path(sys::path::parent_path(CurrentPath))).str()|sys::path::parent_path(CurrentPath))\.str()|g" ${S}/tools/llvm-config/llvm-config.cpp
-}
-
-do_configure:prepend() {
- # Workaround for libdir fix for multilib to undo what is currently upstream
- sed -i 's:${base_libdir}:/${baselib}:g' ${S}/tools/llvm-config/llvm-config.cpp
-}
-
-require recipes-core/llvm/llvm.inc
-
-inherit pkgconfig
-
-LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=47e311aa9caedd1b3abf098bd7814d1d"
-
-DEPENDS += "ncurses libxml2 groff-native"
-DEPENDS:append:class-target = " valgrind"
-
-LLVM_DIR = "ti-llvm${PV}"
-
-LLVM_GIT_NAME = "llvm"
-LLVM_GIT_URI = "git://git.ti.com/git/opencl/llvm.git"
-LLVM_GIT_PROTOCOL = "https"
-LLVM_GIT_BRANCH = "release_36_ti"
-LLVM_GIT_DESTSUFFIX = "git"
-LLVM_GIT_SRCREV = "09780c6750b30da81e4a0a805aedf1699fbc37c7"
-
-CLANG_GIT_NAME = "clang"
-CLANG_GIT_URI = "git://git.ti.com/git/opencl/clang.git"
-CLANG_GIT_PROTOCOL = "https"
-CLANG_GIT_BRANCH = "release_36_ti"
-CLANG_GIT_DESTSUFFIX = "${LLVM_GIT_DESTSUFFIX}/tools/clang"
-CLANG_GIT_SRCREV = "5b006f07bdc22b5ae6917eecdfe243908dd7b029"
-
-SRC_URI = " \
- ${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_${LLVM_GIT_NAME} = "${LLVM_GIT_SRCREV}"
-SRCREV_${CLANG_GIT_NAME} = "${CLANG_GIT_SRCREV}"
-
-SRCREV_FORMAT = "${LLVM_GIT_NAME}"
-
-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() {
- cd ${LLVM_BUILD_DIR}
-
- # Fix libdir for multilib
- sed -i 's:(PROJ_prefix)/lib:(PROJ_prefix)/${baselib}:g' Makefile.config
-
- oe_runmake
-}
-
-do_compile:class-nativesdk() {
- # Fix for buildpaths error referring to TMPDIR
- sed -i 's:@LLVM_SRC_ROOT@::g' ${S}/tools/llvm-config/BuildVariables.inc.in
- sed -i 's:@LLVM_OBJ_ROOT@::g' ${S}/tools/llvm-config/BuildVariables.inc.in
-
- cd ${LLVM_BUILD_DIR}
-
- # Fix libdir for multilib
- sed -i 's:(PROJ_prefix)/lib:(PROJ_prefix)/${baselib}:g' Makefile.config
-
- oe_runmake \
- AR="${BUILD_AR}" \
- CC="${BUILD_CC}" \
- CFLAGS="${BUILD_CFLAGS}" \
- CXX="${BUILD_CXX}" \
- CXXFLAGS="${BUILD_CXXFLAGS}" \
- CPP="${BUILD_CPP}" \
- CPPFLAGS="${BUILD_CPPFLAGS}" \
- LD="${BUILD_LD}" \
- LDFLAGS="${BUILD_LDFLAGS}" \
- NM="${BUILD_NM}" \
- 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
-}
-
-# Workaround for libdir fix for multilib
-do_compile() {
- cd ${LLVM_BUILD_DIR}
-
- # Fix libdir for multilib
- sed -i 's:(PROJ_prefix)${base_libdir}:(PROJ_prefix)/${baselib}:g' Makefile.config
-
- oe_runmake \
- AR="${BUILD_AR}" \
- CC="${BUILD_CC}" \
- CFLAGS="${BUILD_CFLAGS}" \
- CXX="${BUILD_CXX}" \
- CXXFLAGS="${BUILD_CXXFLAGS}" \
- CPP="${BUILD_CPP}" \
- CPPFLAGS="${BUILD_CPPFLAGS}" \
- NM="${BUILD_NM}" \
- RANLIB="${BUILD_RANLIB}" \
- PATH="${STAGING_BINDIR_NATIVE}:$PATH" \
- cross-compile-build-tools
- oe_runmake
-}
-
-do_install:append:class-target() {
- for b in ${D}${bindir}/${LLVM_DIR}/${HOST_SYS}-clang*; do
- if [ ! -L ${b} ]; then
- mv ${b} ${D}${bindir}/`echo "${b}" | sed -e 's|${D}${bindir}/${LLVM_DIR}/${HOST_SYS}-||g'`
- fi
- done
-}
-
-do_install:class-native() {
- cd ${LLVM_BUILD_DIR}
- oe_runmake DESTDIR=${LLVM_INSTALL_DIR} install
-
- mv ${LLVM_INSTALL_DIR}${bindir}/${HOST_SYS}-llvm-config ${LLVM_INSTALL_DIR}/llvm-config${PV}-ti
-
- install -d ${D}${bindir}
- for b in ${LLVM_INSTALL_DIR}${bindir}/${HOST_SYS}-clang*; do
- if [ ! -L ${b} ]; then
- mv ${b} ${D}${bindir}/`echo "${b}" | sed -e 's|${LLVM_INSTALL_DIR}${bindir}/${HOST_SYS}-||g'`
- fi
- done
-
- install -d ${D}${bindir}/${LLVM_DIR}
- mv ${LLVM_INSTALL_DIR}${bindir}/* ${D}${bindir}/${LLVM_DIR}/
-
- install -d ${D}${includedir}/${LLVM_DIR}
- mv ${LLVM_INSTALL_DIR}${includedir}/* ${D}${includedir}/${LLVM_DIR}/
-
- install -d ${D}${libdir}/${LLVM_DIR}
- mv ${LLVM_INSTALL_DIR}${libdir}/* ${D}${libdir}/${LLVM_DIR}/
- ln -s ${LLVM_DIR}/libLLVM-${PV}.so ${D}${libdir}/libLLVM-${PV}.so
-
- install -d ${D}${docdir}/${LLVM_DIR}
- mv ${LLVM_INSTALL_DIR}${prefix}/docs/llvm/* ${D}${docdir}/${LLVM_DIR}
-
- install -d ${D}${bindir}
- 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"
-
-llvm_sysroot_preprocess() {
- :
-}
-
-llvm_sysroot_preprocess_target() {
- install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}
- mv ${LLVM_INSTALL_DIR}/llvm-config-host ${SYSROOT_DESTDIR}${bindir_crossscripts}/llvm-config${PV}-ti
-}
-
-INSANE_SKIP:${PN} += "installed-vs-shipped"
-INSANE_SKIP:${MLPREFIX}libllvm${LLVM_RELEASE}-llvm-${LLVM_RELEASE}.0 += "dev-so"
-
-BBCLASSEXTEND = "native nativesdk"