From 6a854e93404a9b190ed7b80fd18bb5e849da47f5 Mon Sep 17 00:00:00 2001 From: Jianzhong Xu Date: Mon, 24 Sep 2018 20:59:33 +0000 Subject: swtools: common tools for xdc-based component build Add SWTOOLS which is needed to build xdc-based processor libs such as DSPLIB, MATHLIB, etc from source. Signed-off-by: Jianzhong Xu Signed-off-by: Jacob Stiffler Signed-off-by: Denys Dmytriyenko --- recipes-ti/swtools/swtools_git.bb | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 recipes-ti/swtools/swtools_git.bb (limited to 'recipes-ti/swtools') diff --git a/recipes-ti/swtools/swtools_git.bb b/recipes-ti/swtools/swtools_git.bb new file mode 100644 index 00000000..425a0690 --- /dev/null +++ b/recipes-ti/swtools/swtools_git.bb @@ -0,0 +1,44 @@ +SUMMARY = "TI Software Tools" +HOMEPAGE = "https://git.ti.com/ep-processor-libraries/swtools" +SECTION = "devel" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://ti/mas/swtools/copyright.txt;md5=b1f52a1435051fdb18f8885b0384147d" + +require ../includes/ti-paths.inc + +DEPENDS = "ti-cgt6x-native \ + ti-sysbios \ + ti-xdctools-native" + +PV = "5_0_8" +PR = "r0" +S = "${WORKDIR}/git" +BRANCH = "master" +SRC_URI = "git://git.ti.com/ep-processor-libraries/swtools.git;protocol=git;branch=${BRANCH}" +SRCREV = "881267836907de650edadc56b8e57ab45428021d" + +export C64PCODEGENTOOL = "${CGTOOLS_INSTALL_DIR}" +export C674CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}" +export C66CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}" + +PATH_append = ":${XDC_INSTALL_DIR}" + +XDCPATH .= "${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;" + +export XDCPATH + +do_compile() { + cd ${S}/ti/mas/swtools + xdc +} + +do_install() { + CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" + install -d ${D}${SWTOOLS_INSTALL_DIR_RECIPE} + cp -pPrf ${S}/* ${D}${SWTOOLS_INSTALL_DIR_RECIPE} +} + +FILES_${PN}-dev += "${SWTOOLS_INSTALL_DIR_RECIPE}" + +INSANE_SKIP_${PN}-dev = "arch staticdev" +ALLOW_EMPTY_${PN} = "1" -- cgit v1.2.3-54-g00ecf