]> code.ossystems Code Review - meta-freescale.git/commitdiff
tsntool: add recipes
authorChunrong Guo <chunrong.guo@nxp.com>
Tue, 15 Oct 2019 05:28:31 +0000 (13:28 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 21 Oct 2019 12:07:06 +0000 (09:07 -0300)
*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 <chunrong.guo@nxp.com>
recipes-extended/tsntool/tsntool_git.bb [new file with mode: 0644]

diff --git a/recipes-extended/tsntool/tsntool_git.bb b/recipes-extended/tsntool/tsntool_git.bb
new file mode 100644 (file)
index 0000000..977d43a
--- /dev/null
@@ -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 = ""