diff options
| author | Sam Nelson <sam.nelson@ti.com> | 2018-08-23 06:25:04 +0000 |
|---|---|---|
| committer | Denys Dmytriyenko <denys@ti.com> | 2018-08-24 20:08:41 +0000 |
| commit | 1f8afb8cc608f6cf651e4dce08bff4a564b29b85 (patch) | |
| tree | f688bc41e06d09e875ae1ecc3322e9a3e92193d2 /recipes-bsp/sciclient | |
| parent | 651df46d83a32cee56d34345b10aeffa8e736380 (diff) | |
| download | meta-ti-1f8afb8cc608f6cf651e4dce08bff4a564b29b85.tar.gz | |
sciclient: Add recipe for SCI client driver
Sci client provides API to communicate with the core running System
firmware
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-bsp/sciclient')
| -rw-r--r-- | recipes-bsp/sciclient/sciclient-rtos_git.bb | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/recipes-bsp/sciclient/sciclient-rtos_git.bb b/recipes-bsp/sciclient/sciclient-rtos_git.bb new file mode 100644 index 00000000..e899b663 --- /dev/null +++ b/recipes-bsp/sciclient/sciclient-rtos_git.bb | |||
| @@ -0,0 +1,89 @@ | |||
| 1 | SUMMARY = "TI RTOS low level driver for SCICLIENT" | ||
| 2 | DESCRIPTION = "TI RTOS low level driver for SCICLIENT " | ||
| 3 | |||
| 4 | inherit ti-pdk | ||
| 5 | |||
| 6 | LICENSE = "BSD-3-Clause" | ||
| 7 | LIC_FILES_CHKSUM = "file://sciclient.h;beginline=1;endline=31;md5=7224b2eeca1444815f1737bfcdfa892a" | ||
| 8 | |||
| 9 | COMPATIBLE_MACHINE = "k3" | ||
| 10 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 11 | |||
| 12 | SCICLIENT_GIT_URI = "git://git.ti.com/keystone-rtos/sciclient.git" | ||
| 13 | SCICLIENT_GIT_PROTOCOL = "git" | ||
| 14 | SCICLIENT_GIT_BRANCH = "master" | ||
| 15 | |||
| 16 | # Below commit ID corresponds to "DEV.SCICLIENT.01.00.00.00" | ||
| 17 | SCICLIENT_SRCREV = "4ac052a70764c5fcf9dd18d521fe3b631bfcd875" | ||
| 18 | |||
| 19 | BRANCH = "${SCICLIENT_GIT_BRANCH}" | ||
| 20 | SRC_URI = "${SCICLIENT_GIT_URI};protocol=${SCICLIENT_GIT_PROTOCOL};branch=${BRANCH}" | ||
| 21 | |||
| 22 | SRCREV = "${SCICLIENT_SRCREV}" | ||
| 23 | PV = "01.00.00.00" | ||
| 24 | PR = "r0" | ||
| 25 | |||
| 26 | DEPENDS_append = " osal-rtos common-csl-ip-rtos" | ||
| 27 | |||
| 28 | # Build with make instead of XDC | ||
| 29 | TI_PDK_XDCMAKE = "0" | ||
| 30 | |||
| 31 | SCICLIENT_PACKAGE_BASE = "${S}/../sciclient_base" | ||
| 32 | SCICLIENT_ROOTPATH = "${SCICLIENT_PACKAGE_BASE}/package/all/pdk_/packages/ti/drv/sciclient" | ||
| 33 | |||
| 34 | export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages" | ||
| 35 | export PDK_SCICLIENT_ROOT_PATH = "${SCICLIENT_PACKAGE_BASE}/package/all/pdk_/packages" | ||
| 36 | |||
| 37 | #export PDK_SCICLIENT_ROOT_PATH ="${WORKDIR}/build" | ||
| 38 | #export DEST_ROOT="${S}" | ||
| 39 | |||
| 40 | LIMSOCS = "am65xx" | ||
| 41 | LIMSOCS_am65xx-evm = "am65xx" | ||
| 42 | |||
| 43 | LIMBOARDS = "am65xx_evm" | ||
| 44 | LIMBOARDS_am65xx-evm = "am65xx_evm" | ||
| 45 | |||
| 46 | BOARD_PACKAGE = "" | ||
| 47 | BOARD_PACKAGE_am65xx-evm = "am65xx_evm" | ||
| 48 | |||
| 49 | # HTML doc link params | ||
| 50 | PDK_COMP_LINK_TEXT = "SCICLIENT" | ||
| 51 | |||
| 52 | do_configure() { | ||
| 53 | |||
| 54 | rm -rf ${SCICLIENT_PACKAGE_BASE} | ||
| 55 | cd ${S} | ||
| 56 | |||
| 57 | # remove any previous package | ||
| 58 | rm -f ${SCICLIENT_PACKAGE_BASE} | ||
| 59 | |||
| 60 | # make the release package before building it | ||
| 61 | make package BOARD=${BOARD_PACKAGE} DEST_ROOT=${SCICLIENT_PACKAGE_BASE} PDK_SCICLIENT_COMP_PATH=${S} | ||
| 62 | |||
| 63 | # This is to ensure the make package completed successfully | ||
| 64 | cat ${SCICLIENT_ROOTPATH}/makefile | ||
| 65 | } | ||
| 66 | |||
| 67 | do_compile() { | ||
| 68 | |||
| 69 | cd ${SCICLIENT_ROOTPATH} | ||
| 70 | |||
| 71 | # Clean | ||
| 72 | # make clean LIMIT_SOCS="${LIMSOCS}" LIMIT_BOARDS="${LIMBOARDS}" | ||
| 73 | |||
| 74 | # Build am65xx libraries | ||
| 75 | make lib xdc_meta doxygen LIMIT_SOCS="${LIMSOCS}" LIMIT_BOARDS="${LIMBOARDS}" | ||
| 76 | |||
| 77 | #archive | ||
| 78 | tar -cf sciclient.tar --exclude='*.tar' ./* | ||
| 79 | } | ||
| 80 | |||
| 81 | do_install() { | ||
| 82 | cd ${SCICLIENT_ROOTPATH} | ||
| 83 | install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/drv/sciclient | ||
| 84 | find -name "*.tar" -exec tar xf {} --no-same-owner -C ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/drv/sciclient \; | ||
| 85 | } | ||
| 86 | |||
| 87 | FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages" | ||
| 88 | |||
| 89 | INSANE_SKIP_${PN} = "arch ldflags file-rdeps" | ||
