From f29ce8ff0cd3ee61ddbbc897227bed2e70933323 Mon Sep 17 00:00:00 2001 From: Chunrong Guo Date: Tue, 15 Oct 2019 13:28:31 +0800 Subject: [PATCH] tsntool: add recipes *update to lsdk 1909 tag include the following changes: 30a0320 - demos:cnc: add Qci enable/disable operations provide to yang a27ea6d - demos:cnc: fix the interfaces and bridges types xml getconfig infrormation ccfc0ae - demos:cnc:add Qci support 50d653b - libtsn: fix compile error a156db9 - tsntool: correct the command name in help info 6739dcb - libtsn: add optional function to monitor the operation of configuring TSN via libtsn eadb457 - Add version v0.3 tag 42ee8f3 - libtsn: add qbu get status showing status a22cdc8 - demos:cnc: update the get-config feedback "interfaces" to "if:interfaces" 495575c - demo:cnc: fix the get-config button out of block when brower pixel low resolution a411c7c - demo:cnc: fix config-change place and enable for port 3d28bea - qbvset: fix overflow of qbv list 1b424e9 - Makefile : add format-security to fix gcc 9.2 build error fix the below error |main/readinput.c:267:3: error: format not a string |literal and no format arguments [-Werror=format-security] 7ec5761 - cnc: fix the qbv disable setting Signed-off-by: Chunrong Guo --- recipes-extended/tsntool/tsntool_git.bb | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 recipes-extended/tsntool/tsntool_git.bb diff --git a/recipes-extended/tsntool/tsntool_git.bb b/recipes-extended/tsntool/tsntool_git.bb new file mode 100644 index 00000000..977d43ad --- /dev/null +++ b/recipes-extended/tsntool/tsntool_git.bb @@ -0,0 +1,31 @@ +SUMMARY = "Configure TSN funtionalitie" +DESCRIPTION = "A tool to configure TSN funtionalities in user space" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=ef58f855337069acd375717db0dbbb6d" + +DEPENDS = "cjson libnl readline" + +inherit pkgconfig + +SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/tsntool;protocol=https;nobranch=1" +SRCREV = "30a0320eb4a1798ac3d6258a2e02d863e60a1582" + +S = "${WORKDIR}/git" + +do_compile_prepend() { + mkdir -p ${S}/include/linux + cp -r ${STAGING_KERNEL_DIR}/include/uapi/linux/tsn.h ${S}/include/linux +} +do_install() { + install -d ${D}${bindir} ${D}${libdir} + install -m 0755 ${S}/tsntool ${D}${bindir} + install -m 0755 ${S}/tools/event ${D}${bindir}/ + install -m 0755 ${S}/tools/timestamping ${D}${bindir}/ + install -m 0755 ${S}/libtsn.so ${D}${libdir} +} + +PACKAGES = "${PN}-dbg ${PN}" +FILES_${PN} = "${libdir}/libtsn.so ${bindir}/*" +INSANE_SKIP_${PN} += "file-rdeps rpaths dev-so" +COMPATIBLE_MACHINE = "(qoriq)" +PARALLEL_MAKE = "" -- 2.40.1