Skip to contentSkip to conversation

sciclient: Add recipe for SCI client driver

PATCH In review Sam Nelson 2 participants 3 messages Aug 23, 2018 – Aug 24, 2018

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH v4 4/4 sciclient: Add recipe for SCI client driver

Sci client provides API to communicate with the core running System firmware

---
Change from previous version of patch
- Remove redundant description
- remove redudant defines
---

---
 recipes-bsp/sciclient/sciclient-rtos_git.bb | 83 +++++++++++++++++++++++++++++
 1 file changed, 83 insertions(+)
 create mode 100644 recipes-bsp/sciclient/sciclient-rtos_git.bb
recipes-bsp/sciclient/sciclient-rtos_git.bb new file +83 -0
new file mode 100644
index 0000000..e059f4b
@@ -0,0 +1,83 @@
+SUMMARY = "TI RTOS low level driver for SCICLIENT"
+
+inherit ti-pdk
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://sciclient.h;beginline=1;endline=31;md5=7224b2eeca1444815f1737bfcdfa892a"
+
+COMPATIBLE_MACHINE = "k3"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+SCICLIENT_GIT_URI = "git://git.ti.com/keystone-rtos/sciclient.git"
+SCICLIENT_GIT_PROTOCOL = "git"
+SCICLIENT_GIT_BRANCH = "master"
+
+# Below commit ID corresponds to "DEV.SCICLIENT.01.00.00.00"
+SCICLIENT_SRCREV = "4ac052a70764c5fcf9dd18d521fe3b631bfcd875"
+
+BRANCH = "${SCICLIENT_GIT_BRANCH}"
+SRC_URI = "${SCICLIENT_GIT_URI};protocol=${SCICLIENT_GIT_PROTOCOL};branch=${BRANCH}"
+
+SRCREV = "${SCICLIENT_SRCREV}"
+PV = "01.00.00.00"
+PR = "r0"
+
+DEPENDS_append = " osal-rtos common-csl-ip-rtos"
+
+# Build with make instead of XDC
+TI_PDK_XDCMAKE = "0"
+
+SCICLIENT_PACKAGE_BASE   = "${S}/../sciclient_base"
+SCICLIENT_ROOTPATH = "${SCICLIENT_PACKAGE_BASE}/package/all/pdk_/packages/ti/drv/sciclient"
+
+export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages"
+export PDK_SCICLIENT_ROOT_PATH = "${SCICLIENT_PACKAGE_BASE}/package/all/pdk_/packages"
+
+#export PDK_SCICLIENT_ROOT_PATH ="${WORKDIR}/build"
+#export DEST_ROOT="${S}"
+
+LIMSOCS_am65xx-evm = "am65xx"
+LIMBOARDS_am65xx-evm = "am65xx_evm"
+BOARD_PACKAGE_am65xx-evm = "am65xx_evm"
+
+# HTML doc link params
+PDK_COMP_LINK_TEXT = "SCICLIENT"
+
+do_configure() {
+
+    rm -rf ${SCICLIENT_PACKAGE_BASE}
+    cd ${S}
+
+    # remove any previous package
+    rm -f ${SCICLIENT_PACKAGE_BASE}
+
+    # make the release package before building it
+    make package BOARD=${BOARD_PACKAGE} DEST_ROOT=${SCICLIENT_PACKAGE_BASE} PDK_SCICLIENT_COMP_PATH=${S}
+
+   # This is to ensure the make package completed successfully
+    cat  ${SCICLIENT_ROOTPATH}/makefile
+}
+
+do_compile() {
+
+    cd ${SCICLIENT_ROOTPATH}
+
+    # Clean
+    # make clean LIMIT_SOCS="${LIMSOCS}" LIMIT_BOARDS="${LIMBOARDS}"
+
+    # Build am65xx libraries
+    make lib xdc_meta doxygen LIMIT_SOCS="${LIMSOCS}" LIMIT_BOARDS="${LIMBOARDS}"
+
+    #archive
+    tar -cf sciclient.tar --exclude='*.tar' ./*
+}
+
+do_install() {
+    cd ${SCICLIENT_ROOTPATH}
+    install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/drv/sciclient
+    find -name "*.tar" -exec tar xf {} --no-same-owner -C ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/drv/sciclient \;
+}
+
+FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages"
+
+INSANE_SKIP_${PN} = "arch ldflags file-rdeps"
Signature · 1 line
1.9.1
#1 lore raw
Quoted 9 lines · Sam Nelson

Sci client provides API to communicate with the core running System firmware

---
Change from previous version of patch
- Remove redundant description
- remove redudant defines

Sam,

Can you please make these 2 changes as a separate patch? I wanted to start testing all the other updates right away and didn't wait for your v4, but instead went with v3, as the changes are rather cosmetical. Thanks.

Quoted 103 lines

---

---
 recipes-bsp/sciclient/sciclient-rtos_git.bb | 83 +++++++++++++++++++++++++++++
 1 file changed, 83 insertions(+)
 create mode 100644 recipes-bsp/sciclient/sciclient-rtos_git.bb
recipes-bsp/sciclient/sciclient-rtos_git.bb new file +83 -0
new file mode 100644
index 0000000..e059f4b
@@ -0,0 +1,83 @@
+SUMMARY = "TI RTOS low level driver for SCICLIENT"
+
+inherit ti-pdk
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://sciclient.h;beginline=1;endline=31;md5=7224b2eeca1444815f1737bfcdfa892a"
+
+COMPATIBLE_MACHINE = "k3"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+SCICLIENT_GIT_URI = "git://git.ti.com/keystone-rtos/sciclient.git"
+SCICLIENT_GIT_PROTOCOL = "git"
+SCICLIENT_GIT_BRANCH = "master"
+
+# Below commit ID corresponds to "DEV.SCICLIENT.01.00.00.00"
+SCICLIENT_SRCREV = "4ac052a70764c5fcf9dd18d521fe3b631bfcd875"
+
+BRANCH = "${SCICLIENT_GIT_BRANCH}"
+SRC_URI = "${SCICLIENT_GIT_URI};protocol=${SCICLIENT_GIT_PROTOCOL};branch=${BRANCH}"
+
+SRCREV = "${SCICLIENT_SRCREV}"
+PV = "01.00.00.00"
+PR = "r0"
+
+DEPENDS_append = " osal-rtos common-csl-ip-rtos"
+
+# Build with make instead of XDC
+TI_PDK_XDCMAKE = "0"
+
+SCICLIENT_PACKAGE_BASE   = "${S}/../sciclient_base"
+SCICLIENT_ROOTPATH = "${SCICLIENT_PACKAGE_BASE}/package/all/pdk_/packages/ti/drv/sciclient"
+
+export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages"
+export PDK_SCICLIENT_ROOT_PATH = "${SCICLIENT_PACKAGE_BASE}/package/all/pdk_/packages"
+
+#export PDK_SCICLIENT_ROOT_PATH ="${WORKDIR}/build"
+#export DEST_ROOT="${S}"
+
+LIMSOCS_am65xx-evm = "am65xx"
+LIMBOARDS_am65xx-evm = "am65xx_evm"
+BOARD_PACKAGE_am65xx-evm = "am65xx_evm"
+
+# HTML doc link params
+PDK_COMP_LINK_TEXT = "SCICLIENT"
+
+do_configure() {
+
+    rm -rf ${SCICLIENT_PACKAGE_BASE}
+    cd ${S}
+
+    # remove any previous package
+    rm -f ${SCICLIENT_PACKAGE_BASE}
+
+    # make the release package before building it
+    make package BOARD=${BOARD_PACKAGE} DEST_ROOT=${SCICLIENT_PACKAGE_BASE} PDK_SCICLIENT_COMP_PATH=${S}
+
+   # This is to ensure the make package completed successfully
+    cat  ${SCICLIENT_ROOTPATH}/makefile
+}
+
+do_compile() {
+
+    cd ${SCICLIENT_ROOTPATH}
+
+    # Clean
+    # make clean LIMIT_SOCS="${LIMSOCS}" LIMIT_BOARDS="${LIMBOARDS}"
+
+    # Build am65xx libraries
+    make lib xdc_meta doxygen LIMIT_SOCS="${LIMSOCS}" LIMIT_BOARDS="${LIMBOARDS}"
+
+    #archive
+    tar -cf sciclient.tar --exclude='*.tar' ./*
+}
+
+do_install() {
+    cd ${SCICLIENT_ROOTPATH}
+    install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/drv/sciclient
+    find -name "*.tar" -exec tar xf {} --no-same-owner -C ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/drv/sciclient \;
+}
+
+FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages"
+
+INSANE_SKIP_${PN} = "arch ldflags file-rdeps"
Signature · 7 lines
1.9.1

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#2 lore raw
Quoted 21 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, August 24, 2018 4:20 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-ti] [rocko][PATCH v4 4/4] sciclient: Add recipe for SCI client driver

Quoted 9 lines · Sam Nelson

Sci client provides API to communicate with the core running System firmware

---
Change from previous version of patch
- Remove redundant description
- remove redudant defines

Quoted 5 lines

Sam,

Can you please make these 2 changes as a separate patch? I wanted to start testing all the other updates right away and didn't wait for your v4, but instead went with v3, as the changes are rather cosmetical. Thanks.

No problem. I have sent a separate patch. Thanks.

Quoted 117 lines
Quoted 5 lines

---

---
 recipes-bsp/sciclient/sciclient-rtos_git.bb | 83

+++++++++++++++++++++++++++++

recipes-

Quoted 4 lines
 1 file changed, 83 insertions(+)
 create mode 100644 recipes-bsp/sciclient/sciclient-rtos_git.bb
recipes- renamed from recipes-bsp/sciclient/sciclient-rtos_git.bb +0 -0

bsp/sciclient/sciclient-rtos_git.bb

recipes-bsp/sciclient/sciclient-rtos_git.bb line 6

Quoted 11 lines

new file mode 100644
index 0000000..e059f4b

recipes-bsp/sciclient/sciclient-rtos_git.bb new file +6 -0
@@ -0,0 +1,83 @@
+SUMMARY = "TI RTOS low level driver for SCICLIENT"
+
+inherit ti-pdk
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM =

"file://sciclient.h;beginline=1;endline=31;md5=7224b2eeca1444815f1737bfc dfa892a"

recipes-bsp/sciclient/sciclient-rtos_git.bb

Quoted 13 lines
recipes-bsp/sciclient/sciclient-rtos_git.bb new file +13 -0
+
+COMPATIBLE_MACHINE = "k3"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+SCICLIENT_GIT_URI = "git://git.ti.com/keystone-rtos/sciclient.git"
+SCICLIENT_GIT_PROTOCOL = "git"
+SCICLIENT_GIT_BRANCH = "master"
+
+# Below commit ID corresponds to "DEV.SCICLIENT.01.00.00.00"
+SCICLIENT_SRCREV = "4ac052a70764c5fcf9dd18d521fe3b631bfcd875"
+
+BRANCH = "${SCICLIENT_GIT_BRANCH}"
+SRC_URI =

"${SCICLIENT_GIT_URI};protocol=${SCICLIENT_GIT_PROTOCOL};branch=${BRA NCH}"

recipes-bsp/sciclient/sciclient-rtos_git.bb

Quoted 12 lines
recipes-bsp/sciclient/sciclient-rtos_git.bb new file +12 -0
+
+SRCREV = "${SCICLIENT_SRCREV}"
+PV = "01.00.00.00"
+PR = "r0"
+
+DEPENDS_append = " osal-rtos common-csl-ip-rtos"
+
+# Build with make instead of XDC
+TI_PDK_XDCMAKE = "0"
+
+SCICLIENT_PACKAGE_BASE   = "${S}/../sciclient_base"
+SCICLIENT_ROOTPATH =

"${SCICLIENT_PACKAGE_BASE}/package/all/pdk_/packages/ti/drv/sciclient"

recipes-bsp/sciclient/sciclient-rtos_git.bb

Quoted 3 lines
recipes-bsp/sciclient/sciclient-rtos_git.bb new file +3 -0
+
+export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages"
+export PDK_SCICLIENT_ROOT_PATH =

"${SCICLIENT_PACKAGE_BASE}/package/all/pdk_/packages"

Quoted 11 lines
recipes-bsp/sciclient/sciclient-rtos_git.bb new file +11 -0
+
+#export PDK_SCICLIENT_ROOT_PATH ="${WORKDIR}/build"
+#export DEST_ROOT="${S}"
+
+LIMSOCS_am65xx-evm = "am65xx"
+LIMBOARDS_am65xx-evm = "am65xx_evm"
+BOARD_PACKAGE_am65xx-evm = "am65xx_evm"
+
+# HTML doc link params
+PDK_COMP_LINK_TEXT = "SCICLIENT"
+

recipes-bsp/sciclient/sciclient-rtos_git.bb

Quoted 10 lines
recipes-bsp/sciclient/sciclient-rtos_git.bb new file +10 -0
+do_configure() {
+
+    rm -rf ${SCICLIENT_PACKAGE_BASE}
+    cd ${S}
+
+    # remove any previous package
+    rm -f ${SCICLIENT_PACKAGE_BASE}
+
+    # make the release package before building it
+    make package BOARD=${BOARD_PACKAGE}

DEST_ROOT=${SCICLIENT_PACKAGE_BASE} PDK_SCICLIENT_COMP_PATH=${S}

recipes-bsp/sciclient/sciclient-rtos_git.bb

Quoted 11 lines
recipes-bsp/sciclient/sciclient-rtos_git.bb new file +11 -0
+
+   # This is to ensure the make package completed successfully
+    cat  ${SCICLIENT_ROOTPATH}/makefile
+}
+
+do_compile() {
+
+    cd ${SCICLIENT_ROOTPATH}
+
+    # Clean
+    # make clean LIMIT_SOCS="${LIMSOCS}"

LIMIT_BOARDS="${LIMBOARDS}"

recipes-bsp/sciclient/sciclient-rtos_git.bb

Quoted 3 lines
recipes-bsp/sciclient/sciclient-rtos_git.bb new file +3 -0
+
+    # Build am65xx libraries
+    make lib xdc_meta doxygen LIMIT_SOCS="${LIMSOCS}"

LIMIT_BOARDS="${LIMBOARDS}"

recipes-bsp/sciclient/sciclient-rtos_git.bb

Quoted 9 lines
recipes-bsp/sciclient/sciclient-rtos_git.bb new file +9 -0
+
+    #archive
+    tar -cf sciclient.tar --exclude='*.tar' ./*
+}
+
+do_install() {
+    cd ${SCICLIENT_ROOTPATH}
+    install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/drv/sciclient
+    find -name "*.tar" -exec tar xf {} --no-same-owner -C

${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/drv/sciclient \;

Quoted 13 lines
recipes-bsp/sciclient/sciclient-rtos_git.bb new file +5 -1
+}
+
+FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages"
+
+INSANE_SKIP_${PN} = "arch ldflags file-rdeps"
--

1.9.1

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti