Added SWTOOLS which is needed to build processor libs (DSPLIB, MATHLIB, etc) from source.
PATCH 1/3 Added SWTOOLS which is needed to build processor libs (DSPLIB, MATHLIB, etc) from source.
Signed-off-by Jianzhong Xu <[email protected]>
--- recipes-ti/swtools/swtools_git.bb | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 recipes-ti/swtools/swtools_git.bb
recipes-ti/swtools/swtools_git.bb new file +45 -0
@@ -0,0 +1,45 @@ +DESCRIPTION = "TI Software Tools" +HOMEPAGE = "https://bitbucket.itg.ti.com/projects/PROC_LIBS/repos/swtools/browse" +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" +
Signature · 1 line
1.9.1
PATCH 2/3 Added MATHLIB recipe to build MATHLIB from source.
Signed-off-by Jianzhong Xu <[email protected]>
--- recipes-ti/includes/ti-paths.inc | 4 ++ recipes-ti/mathlib/mathlib-c66x.inc | 29 ----------- recipes-ti/mathlib/mathlib-c66x_3.1.1.0.bb | 9 ---- recipes-ti/mathlib/mathlib-c66x_git.bb | 6 +++ recipes-ti/mathlib/mathlib-c674x_git.bb | 5 ++ recipes-ti/mathlib/mathlib.inc | 80 ++++++++++++++++++++++++++++++ 6 files changed, 95 insertions(+), 38 deletions(-) delete mode 100644 recipes-ti/mathlib/mathlib-c66x.inc delete mode 100644 recipes-ti/mathlib/mathlib-c66x_3.1.1.0.bb create mode 100644 recipes-ti/mathlib/mathlib-c66x_git.bb create mode 100644 recipes-ti/mathlib/mathlib-c674x_git.bb create mode 100644 recipes-ti/mathlib/mathlib.inc
recipes-ti/includes/ti-paths.inc +4 -0
@@ -39,6 +39,7 @@ export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree" export RTFS_INSTALL_DIR_RECIPE = "${installdir}/ti-rtfs-tree" export SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-sysbios-tree" export SYSLINK_INSTALL_DIR_RECIPE = "${installdir}/ti-syslink-tree" +export SWTOOLS_INSTALL_DIR_RECIPE = "${installdir}/ti-swtools-tree" export UIA_INSTALL_DIR_RECIPE = "${installdir}/ti-uia-tree" export VICPLIB_INSTALL_DIR_RECIPE = "${installdir}/ti-vicplib-tree" export XDAIS_INSTALL_DIR_RECIPE = "${installdir}/ti-xdais-tree"
@@ -50,6 +51,7 @@ export GCC_ARM_NONE_TOOLCHAIN_RECIPE = "${installdir}/gcc-arm-none-eabi" export TI_CGT_PRU_INSTALL_DIR_RECIPE = "${installdir}/cgt-pru" export DSPLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c66x-tree" export MATHLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c66x-tree" +export MATHLIB_C674INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c674x-tree" export IMGLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-imglib-c66x-tree" export VLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-vlib-c66x-tree" export CG_XML_INSTALL_DIR_RECIPE = "${installdir}/ti-cg-xml-tree"
@@ -95,7 +97,9 @@ export OSAL_INSTALL_DIR = "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE} export M4_TOOLCHAIN_INSTALL_DIR = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}" export GCC_ARM_NONE_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}" export TI_CGT_PRU_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}" +export SWTOOLS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}" export DSPLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}" +export MATHLIB_C674INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}" export MATHLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}" export IMGLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}" export VLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
recipes-ti/mathlib/mathlib-c66x.inc deleted +0 -29
@@ -1,29 +0,0 @@ -DESCRIPTION = "MATHLIB contains optimized general-purpose signal-processing routines for TI DSPs" -HOMEPAGE = "http://www.ti.com/tool/mathlib" -SECTION = "devel" -LICENSE = "BSD-3-Clause" - -require ../includes/ti-paths.inc -require ../includes/ti-staging.inc -require ../includes/ti-unpack.inc - -COMPATIBLE_MACHINE = "omap-a15|keystone" - -SRC_URI = "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/mathlib/${PV}/exports/${BINFILE};name=mathlib" - -S = "${WORKDIR}/mathlib-c66x-${PV}" - -BINFILE = "mathlib_c66x_${PV}_Linux.bin" -TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}" -TI_BIN_UNPK_CMDS = "" - -do_install() { - CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" - install -d ${D}${MATHLIB_C66_INSTALL_DIR_RECIPE} - cp ${CP_ARGS} ${S}/* ${D}${MATHLIB_C66_INSTALL_DIR_RECIPE} -} - -ALLOW_EMPTY_${PN} = "1" -FILES_${PN}-dev += "${MATHLIB_C66_INSTALL_DIR_RECIPE}" - -INSANE_SKIP_${PN}-dev = "arch"
recipes-ti/mathlib/mathlib-c66x_3.1.1.0.bb deleted +0 -9
@@ -1,9 +0,0 @@ -require mathlib-c66x.inc - -PV = "3_1_1_0" -PR = "r1" - -LIC_FILES_CHKSUM = "file://packages/ti/mathlib/mathlib.h;beginline=9;endline=35;md5=954ed7074e987be574989f985f1897db" - -SRC_URI[mathlib.md5sum] = "f3c9ad06dfcea780b5362c57a4bc48b8" -SRC_URI[mathlib.sha256sum] = "85df897c94e8768e9a1f186c21702ed3887d39cda6dc67cb4580fa3f083e8925"
recipes-ti/mathlib/mathlib-c66x_git.bb new file +6 -0
@@ -0,0 +1,6 @@ +MATHLIB_BUILD_TARGET = "c66x" +MATHLIB_INSTALL_DIR_RECIPE = "${MATHLIB_C66_INSTALL_DIR_RECIPE}" +MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}" + +include mathlib.inc +
recipes-ti/mathlib/mathlib-c674x_git.bb new file +5 -0
@@ -0,0 +1,5 @@ +MATHLIB_BUILD_TARGET = "c674x" +MATHLIB_INSTALL_DIR_RECIPE = "${MATHLIB_C674_INSTALL_DIR_RECIPE}" +MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}" + +include mathlib.inc
recipes-ti/mathlib/mathlib.inc new file +80 -0
80 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 3/3 Added DSPLIB recipe to build DSPLIB from source.
In reply to Jianzhong XuSigned-off-by Jianzhong Xu <[email protected]>
--- recipes-ti/dsplib/dsplib-c64xp_git.bb | 9 ++++ recipes-ti/dsplib/dsplib-c66x.inc | 30 ------------ recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb | 9 ---- recipes-ti/dsplib/dsplib-c66x_git.bb | 10 ++++ recipes-ti/dsplib/dsplib-c674x_git.bb | 9 ++++ recipes-ti/dsplib/dsplib.inc | 79 ++++++++++++++++++++++++++++++++ recipes-ti/includes/ti-paths.inc | 4 +- 7 files changed, 110 insertions(+), 40 deletions(-) create mode 100644 recipes-ti/dsplib/dsplib-c64xp_git.bb delete mode 100644 recipes-ti/dsplib/dsplib-c66x.inc delete mode 100644 recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb create mode 100644 recipes-ti/dsplib/dsplib-c66x_git.bb create mode 100644 recipes-ti/dsplib/dsplib-c674x_git.bb create mode 100644 recipes-ti/dsplib/dsplib.inc
recipes-ti/dsplib/dsplib-c64xp_git.bb new file +9 -0
@@ -0,0 +1,9 @@ +MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages" +DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}" +DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}" +DSPLIB_BUILD_TARGET = "c64Px" + +DEPENDS = "" + +include dsplib.inc +
recipes-ti/dsplib/dsplib-c66x.inc deleted +0 -30
@@ -1,30 +0,0 @@ -DESCRIPTION = "DSPLIB contains optimized general-purpose signal-processing routines for TI DSPs" -HOMEPAGE = "http://www.ti.com/tool/sprc265" -SECTION = "devel" -LICENSE = "BSD-3-Clause" - -require ../includes/ti-paths.inc -require ../includes/ti-staging.inc -require ../includes/ti-unpack.inc - -COMPATIBLE_MACHINE = "omap-a15|keystone" - -SRC_URI = "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/dsplib/${PV}/exports/${BINFILE};name=dsplib" - -BINFILE = "dsplib_c66x_${PV}_Linux.bin" -TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}" -TI_BIN_UNPK_CMDS = "" - -do_install() { - CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" - install -d ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE} - cp ${CP_ARGS} ${S}/* ${D}${DSPLIB_C66_INSTALL_DIR_RECIPE} -} - -ALLOW_EMPTY_${PN} = "1" -FILES_${PN}-dev += "${DSPLIB_C66_INSTALL_DIR_RECIPE}" - -INHIBIT_PACKAGE_STRIP = "1" -INHIBIT_SYSROOT_STRIP = "1" -INHIBIT_PACKAGE_DEBUG_SPLIT = "1" -INSANE_SKIP_${PN}-dev = "arch"
recipes-ti/dsplib/dsplib-c66x_3.4.0.0.bb deleted +0 -9
@@ -1,9 +0,0 @@ -require dsplib-c66x.inc - -PV = "3_4_0_0" -PR = "r1" - -LIC_FILES_CHKSUM = "file://packages/ti/dsplib/dsplib.h;beginline=9;endline=35;md5=17733f9e1100f8a628512f47c4bf676a" - -SRC_URI[dsplib.md5sum] = "66785604729c153dcad5282097dee8bf" -SRC_URI[dsplib.sha256sum] = "e88909b6271ce6c4c62e2ab90181b7adb36c7f28f5c52836668eb35888785ce8"
recipes-ti/dsplib/dsplib-c66x_git.bb new file +10 -0
@@ -0,0 +1,10 @@ +MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages" +DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}" +DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}" +DSPLIB_BUILD_TARGET = "c66x" + +DEPENDS = "mathlib-c66x" + +include dsplib.inc + +
recipes-ti/dsplib/dsplib-c674x_git.bb new file +9 -0
@@ -0,0 +1,9 @@ +MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages" +DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}" +DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}" +DSPLIB_BUILD_TARGET = "c674x" + +DEPENDS = "mathlib-c674x" + +include dsplib.inc +
recipes-ti/dsplib/dsplib.inc new file +79 -0
79 lines not on this page · raw message
recipes-ti/includes/ti-paths.inc +3 -1
@@ -17,6 +17,7 @@ export DMAI_INSTALL_DIR_RECIPE = "${installdir}/ti-dmai-tree" export DSP_BENCHMARK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsp-benchmark-tree" export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree" export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree" +export DSPLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c66x-tree" export DSPLIB_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-tree" export DVSDK_DEMOS_INSTALL_DIR_RECIPE= "${installdir}/ti-dvsdk-demos-tree" export DVTB_INSTALL_DIR_RECIPE = "${installdir}/ti-dvtb-tree"
@@ -49,7 +50,6 @@ export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree" export M4_TOOLCHAIN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt-arm" export GCC_ARM_NONE_TOOLCHAIN_RECIPE = "${installdir}/gcc-arm-none-eabi" export TI_CGT_PRU_INSTALL_DIR_RECIPE = "${installdir}/cgt-pru" -export DSPLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c66x-tree" export MATHLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c66x-tree" export MATHLIB_C674INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c674x-tree" export IMGLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-imglib-c66x-tree"
@@ -98,6 +98,8 @@ export M4_TOOLCHAIN_INSTALL_DIR = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTAL export GCC_ARM_NONE_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}" export TI_CGT_PRU_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}" export SWTOOLS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}" +export DSPLIB_C64P_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}" +export DSPLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}" export DSPLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}" export MATHLIB_C674INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}" export MATHLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
Signature · 1 line
1.9.1
recipes-ti/swtools/swtools_git.bb line 1
Quoted 13 lines · Jianzhong Xu
Signed-off-by Jianzhong Xu <[email protected]>--- recipes-ti/swtools/swtools_git.bb | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 recipes-ti/swtools/swtools_git.bbrecipes-ti/swtools/swtools_git.bb new file +1
-0@@ -0,0 +1,45 @@ +DESCRIPTION = "TI Software Tools"
SUMMARY
recipes-ti/swtools/swtools_git.bb line 2
Quoted 1 line
recipes-ti/swtools/swtools_git.bb new file +1
-0+HOMEPAGE = "https://bitbucket.itg.ti.com/projects/PROC_LIBS/repos/swtools/browse"
No bitbucket links
Quoted 13 lines
recipes-ti/swtools/swtools_git.bb new file +13
-0+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"
recipes-ti/swtools/swtools_git.bb line 26
Quoted 10 lines
recipes-ti/swtools/swtools_git.bb new file +10
-0+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;"
Both of these lines do similar things of appending a string, but using different syntax. It's not an issues, but I was wondering if it was on purpose...
Also would be nice to keep spacing and indentation consistent. I.e. bitbake assignment operators have spaces around them, unlike shell.
Quoted 26 lines
recipes-ti/swtools/swtools_git.bb new file +18
-0+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" +Signature · 7 lines
1.9.1 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti