diff options
| author | Denys Dmytriyenko <denys@konsulko.com> | 2022-02-22 04:13:51 +0000 |
|---|---|---|
| committer | Ryan Eatmon <reatmon@ti.com> | 2022-02-22 12:01:39 -0600 |
| commit | 37ef6ae6fe518e78a6b44b8633d4c38cc7792c3e (patch) | |
| tree | 0cb0ca43d699f542e4421b3ce34607823774f841 /meta-ti-extras/recipes-ti/mathlib | |
| parent | c3007665063fac4140a6dddd3d76378ec5ae5c19 (diff) | |
| download | meta-ti-37ef6ae6fe518e78a6b44b8633d4c38cc7792c3e.tar.gz | |
meta-ti: move BIOS,XDC,XDAIS, CGT,DSP libs and components to meta-ti-extras
Legacy platforms AM3/4/5/J6 build components for multimedia acceleration and
other DSP showcasing using SYS/BIOS, XDC, XDAIS, CodeGen Tools and different
DSP libraries. Move all of them to meta-ti-extras.
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-extras/recipes-ti/mathlib')
| -rw-r--r-- | meta-ti-extras/recipes-ti/mathlib/mathlib-c66x_git.bb | 5 | ||||
| -rw-r--r-- | meta-ti-extras/recipes-ti/mathlib/mathlib-c674x_git.bb | 5 | ||||
| -rw-r--r-- | meta-ti-extras/recipes-ti/mathlib/mathlib.inc | 77 |
3 files changed, 87 insertions, 0 deletions
diff --git a/meta-ti-extras/recipes-ti/mathlib/mathlib-c66x_git.bb b/meta-ti-extras/recipes-ti/mathlib/mathlib-c66x_git.bb new file mode 100644 index 00000000..22683855 --- /dev/null +++ b/meta-ti-extras/recipes-ti/mathlib/mathlib-c66x_git.bb | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | include mathlib.inc | ||
| 2 | |||
| 3 | MATHLIB_BUILD_TARGET = "c66x" | ||
| 4 | MATHLIB_INSTALL_DIR_RECIPE = "${MATHLIB_C66_INSTALL_DIR_RECIPE}" | ||
| 5 | MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}" | ||
diff --git a/meta-ti-extras/recipes-ti/mathlib/mathlib-c674x_git.bb b/meta-ti-extras/recipes-ti/mathlib/mathlib-c674x_git.bb new file mode 100644 index 00000000..1654baf2 --- /dev/null +++ b/meta-ti-extras/recipes-ti/mathlib/mathlib-c674x_git.bb | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | include mathlib.inc | ||
| 2 | |||
| 3 | MATHLIB_BUILD_TARGET = "c674x" | ||
| 4 | MATHLIB_INSTALL_DIR_RECIPE = "${MATHLIB_C674_INSTALL_DIR_RECIPE}" | ||
| 5 | MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}" | ||
diff --git a/meta-ti-extras/recipes-ti/mathlib/mathlib.inc b/meta-ti-extras/recipes-ti/mathlib/mathlib.inc new file mode 100644 index 00000000..fe75c099 --- /dev/null +++ b/meta-ti-extras/recipes-ti/mathlib/mathlib.inc | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | SUMMARY = "MATHLIB contains optimized floating-point math functions for TI DSPs" | ||
| 2 | HOMEPAGE = "http://git.ti.com/ep-processor-libraries/mathlib" | ||
| 3 | LICENSE = "BSD-3-Clause" | ||
| 4 | |||
| 5 | require ../includes/ti-paths.inc | ||
| 6 | |||
| 7 | PV = "3_1_2_4" | ||
| 8 | PR = "r2" | ||
| 9 | |||
| 10 | DEPENDS = "ti-cgt6x-native \ | ||
| 11 | ti-xdctools-native \ | ||
| 12 | ti-sysbios \ | ||
| 13 | doxygen-native \ | ||
| 14 | zip-native \ | ||
| 15 | swtools" | ||
| 16 | |||
| 17 | S = "${WORKDIR}/git" | ||
| 18 | |||
| 19 | MATHLIB_GIT_BRANCH = "master" | ||
| 20 | MATHLIB_GIT_PROTOCOL = "git" | ||
| 21 | MATHLIB_GIT_URI = "git://git.ti.com/ep-processor-libraries/mathlib.git" | ||
| 22 | MATHLIB_SRCREV = "eadcc9547faf69789661b004bb0b5ef53bb69951" | ||
| 23 | |||
| 24 | SRC_URI = "${MATHLIB_GIT_URI};protocol=${MATHLIB_GIT_PROTOCOL};branch=${MATHLIB_GIT_BRANCH}" | ||
| 25 | SRCREV = "${MATHLIB_SRCREV}" | ||
| 26 | |||
| 27 | LIC_FILES_CHKSUM = "file://ti/mathlib/src/acosdp/acosdp.h;beginline=1;endline=35;md5=c133f7e139b46385906c861dd9552250" | ||
| 28 | |||
| 29 | export MATHLIB_WORK_DIR="${S}" | ||
| 30 | export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | ||
| 31 | export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | ||
| 32 | export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | ||
| 33 | export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}" | ||
| 34 | export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools" | ||
| 35 | export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld" | ||
| 36 | |||
| 37 | PATH:append = ":${XDC_INSTALL_DIR}" | ||
| 38 | |||
| 39 | XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;" | ||
| 40 | XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_WORK_DIR};" | ||
| 41 | |||
| 42 | export XDCPATH | ||
| 43 | |||
| 44 | MATHLIB_PACKAGE_NAME = "mathlib_${MATHLIB_BUILD_TARGET}_${PV}" | ||
| 45 | |||
| 46 | do_compile() { | ||
| 47 | cd ${MATHLIB_WORK_DIR}/ti/mathlib; | ||
| 48 | xdc XDCARGS="${MATHLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v" | ||
| 49 | } | ||
| 50 | |||
| 51 | do_install() { | ||
| 52 | install -d ${D}${MATHLIB_INSTALL_DIR_RECIPE} | ||
| 53 | |||
| 54 | find -name "${MATHLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d ${D}${MATHLIB_INSTALL_DIR_RECIPE} \; | ||
| 55 | cp -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/mathlib/. ${D}${MATHLIB_INSTALL_DIR_RECIPE} | ||
| 56 | rm -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/mathlib | ||
| 57 | } | ||
| 58 | |||
| 59 | inherit deploy | ||
| 60 | addtask deploy before do_build after do_install | ||
| 61 | |||
| 62 | do_deploy() { | ||
| 63 | install -d ${DEPLOYDIR} | ||
| 64 | # zip up files in ${D}${MATHLIB_INSTALL_DIR_RECIPE} | ||
| 65 | # and place the zip file in ${DEPLOYDIR} | ||
| 66 | mkdir ./${MATHLIB_PACKAGE_NAME} | ||
| 67 | cp -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/. ./${MATHLIB_PACKAGE_NAME} | ||
| 68 | zip -9 -y -r -q ${DEPLOYDIR}/${MATHLIB_PACKAGE_NAME}.zip ./${MATHLIB_PACKAGE_NAME} | ||
| 69 | rm -r ./${MATHLIB_PACKAGE_NAME} | ||
| 70 | } | ||
| 71 | |||
| 72 | ALLOW_EMPTY:${PN} = "1" | ||
| 73 | FILES:${PN}-dev += "${MATHLIB_INSTALL_DIR_RECIPE}" | ||
| 74 | |||
| 75 | INSANE_SKIP:${PN}-dev = "arch" | ||
| 76 | COMPATIBLE_HOST ?= "null" | ||
| 77 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
