ti-hplib: provides ti hplib recipe for ti KeyStone devices
PATCH 1/1 ti-hplib: provides ti hplib recipe for ti KeyStone devices
-TI hplib library and kernel module
Signed-off-by Aravind Batni <[email protected]>
--- .../recipes-bsp/ti-hplib/ti-hplib-lib_git.bb | 29 +++++++++++++++ .../recipes-bsp/ti-hplib/ti-hplib-mod_git.bb | 37 ++++++++++++++++++++ .../recipes-bsp/ti-hplib/ti-hplib.inc | 6 ++++ 3 files changed, 72 insertions(+) create mode 100644 meta-arago-extras/recipes-bsp/ti-hplib/ti-hplib-lib_git.bb create mode 100644 meta-arago-extras/recipes-bsp/ti-hplib/ti-hplib-mod_git.bb create mode 100644 meta-arago-extras/recipes-bsp/ti-hplib/ti-hplib.inc
meta-arago-extras/recipes-bsp/ti-hplib/ti-hplib-lib_git.bb new file +29 -0
@@ -0,0 +1,29 @@ +DESCRIPTION = "TI HPLIB" +LICENSE = "TI BSD" +LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/runtime/hplib/src/COPYING.txt;md5=b7982a377c680ad71ca2fbb735982462" +COMPATIBLE_MACHINE = "keystone" + +DEPENDS = "ti-csl ti-rm ti-qmss-lib ti-sa ti-pktlib" + +include ti-hplib.inc + +PR = "r0" +S = "${WORKDIR}/git/ti/runtime/hplib" + +PACKAGES =+ "${PN}-test" +FILES_${PN}-test = "${bindir}/*test*" + +CHOICELIST = "yes no" + +do_compile () { + for choice in ${CHOICELIST} + do + make -f makefile_armv7 clean lib tests PDK_INSTALL_PATH=${STAGING_INCDIR} HPLIB_SRC_DIR=${S} USEDYNAMIC_LIB=$choice + done +} + +do_install () { + make -f makefile_armv7 install PDK_INSTALL_PATH=${STAGING_INCDIR} INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir} INSTALL_BIN_BASE_DIR=${D}${bindir} +} + +
meta-arago-extras/recipes-bsp/ti-hplib/ti-hplib-mod_git.bb new file +37 -0
@@ -0,0 +1,37 @@ +DESCRIPTION = "TI High Performance Library kernel module" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/runtime/hplib/module/COPYING.txt;md5=c1c4d3453cddc5b7f0ce84a277e66779" +COMPATIBLE_MACHINE = "keystone-evm" + +RDEPENDS_${PN} += "kernel (=${KERNEL_VERSION})" +DEPENDS = "ti-hplib-lib" +DEPENDS += "virtual/kernel" + +include ti-hplib.inc + +PKG_${PN} = "kernel-module-${PN}" + +# This package builds a kernel module, use kernel PR as base and append a local +PR = "${MACHINE_KERNEL_PR}" +PR_append = "d" + +PKG_${PN} = "kernel-module-${PN}" + +KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}" + +S ="${WORKDIR}/git/ti/runtime/hplib/module" + +inherit module + +do_compile () { + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + make KDIR=${STAGING_KERNEL_DIR} clean + make KDIR=${STAGING_KERNEL_DIR} PDK_INSTALL_PATH=${STAGING_INCDIR} +} + +do_install () { + make KDIR="${STAGING_KERNEL_DIR}" INSTALL_MOD_PATH="${D}" install +} + +PACKAGE_STRIP = "no" +
meta-arago-extras/recipes-bsp/ti-hplib/ti-hplib.inc new file +6 -0
@@ -0,0 +1,6 @@ +BRANCH = "master" +SRC_URI = "git://git.ti.com/keystone-rtos/hplib.git;protocol=git;branch=${BRANCH}" + +# Below Commit ID corresponds to "DEV.HPLIB.01.00.00.06" +SRCREV = "3afeeffd93f8ec7438329eca273db8bf8c7ff645" +PV = "01.00.00.06"
Signature · 1 line
1.7.9.5