diff options
author | 2020-03-30 09:24:26 +0900 | |
---|---|---|
committer | 2020-03-30 09:24:26 +0900 | |
commit | 5b80bfd7bffd4c20d80b7c70a7130529e9a755dd (patch) | |
tree | b4bb18dcd1487dbf1ea8127e5671b7bb2eded033 /bsp/meta-ti/recipes-bsp/cppi-lld | |
parent | 706ad73eb02caf8532deaf5d38995bd258725cb8 (diff) |
agl-basesystem
Diffstat (limited to 'bsp/meta-ti/recipes-bsp/cppi-lld')
-rw-r--r-- | bsp/meta-ti/recipes-bsp/cppi-lld/cppi-lld-rtos_git.bb | 10 | ||||
-rw-r--r-- | bsp/meta-ti/recipes-bsp/cppi-lld/cppi-lld-test_git.bb | 27 | ||||
-rw-r--r-- | bsp/meta-ti/recipes-bsp/cppi-lld/cppi-lld.inc | 27 | ||||
-rw-r--r-- | bsp/meta-ti/recipes-bsp/cppi-lld/cppi-lld_git.bb | 32 |
4 files changed, 96 insertions, 0 deletions
diff --git a/bsp/meta-ti/recipes-bsp/cppi-lld/cppi-lld-rtos_git.bb b/bsp/meta-ti/recipes-bsp/cppi-lld/cppi-lld-rtos_git.bb new file mode 100644 index 00000000..1cdaf3a4 --- /dev/null +++ b/bsp/meta-ti/recipes-bsp/cppi-lld/cppi-lld-rtos_git.bb @@ -0,0 +1,10 @@ +inherit ti-pdk +require cppi-lld.inc + +PR = "${INC_PR}.1" + +COMPATIBLE_MACHINE_append = "|c66x" + +DEPENDS_append = " rm-lld-rtos \ + qmss-lld-rtos \ +" diff --git a/bsp/meta-ti/recipes-bsp/cppi-lld/cppi-lld-test_git.bb b/bsp/meta-ti/recipes-bsp/cppi-lld/cppi-lld-test_git.bb new file mode 100644 index 00000000..b4f5c239 --- /dev/null +++ b/bsp/meta-ti/recipes-bsp/cppi-lld/cppi-lld-test_git.bb @@ -0,0 +1,27 @@ +DESCRIPTION = "TI CPPI low level driver unit test and example binaries" +DEPENDS = "common-csl-ip rm-lld cppi-lld qmss-lld" + +include cppi-lld.inc + +PR = "${INC_PR}.0" + +CHOICELIST = "yes no" + +do_compile () { +# Now build the lld in the updated directory + for device in ${DEVICELIST} + do + make -f makefile_armv7 clean PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="$device" CPPI_SRC_DIR=${S} + for choice in ${CHOICELIST} + do + make -f makefile_armv7 tests examples PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="$device" CPPI_SRC_DIR=${S} USEDYNAMIC_LIB="$choice" + done + done +} + +do_install () { + for device in ${DEVICELIST} +do + make -f makefile_armv7 installbin PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="$device" CPPI_SRC_DIR=${S} INSTALL_BIN_BASE_DIR=${D}${bindir} + done +} diff --git a/bsp/meta-ti/recipes-bsp/cppi-lld/cppi-lld.inc b/bsp/meta-ti/recipes-bsp/cppi-lld/cppi-lld.inc new file mode 100644 index 00000000..5aea1ebe --- /dev/null +++ b/bsp/meta-ti/recipes-bsp/cppi-lld/cppi-lld.inc @@ -0,0 +1,27 @@ +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/drv/cppi/COPYING.txt;md5=e8f6789acdcda76d02ed9203fc2e603d" + +COMPATIBLE_MACHINE = "keystone" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +CPPI_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/cppi-lld.git" +CPPI_LLD_GIT_PROTOCOL = "git" +CPPI_LLD_GIT_BRANCH = "master" +CPPI_LLD_GIT_DESTSUFFIX = "git/ti/drv/cppi" + +# Below Commit ID corresponds to "DEV.CPPI_LLD.02.01.00.14" +CPPI_LLD_SRCREV = "10d3fbc0231073027991d797e9406a9585058691" + +BRANCH = "${CPPI_LLD_GIT_BRANCH}" +SRC_URI = "${CPPI_LLD_GIT_URI};destsuffix=${CPPI_LLD_GIT_DESTSUFFIX};protocol=${CPPI_LLD_GIT_PROTOCOL};branch=${BRANCH}" + +SRCREV = "${CPPI_LLD_SRCREV}" +PV = "02.01.00.14" +INC_PR = "r0" + +DEVICELIST = "k2h k2k k2l k2e" +DEVICELIST_k2hk = "k2h k2k" +DEVICELIST_k2l = "k2l" +DEVICELIST_k2e = "k2e" + +S = "${WORKDIR}/${CPPI_LLD_GIT_DESTSUFFIX}" diff --git a/bsp/meta-ti/recipes-bsp/cppi-lld/cppi-lld_git.bb b/bsp/meta-ti/recipes-bsp/cppi-lld/cppi-lld_git.bb new file mode 100644 index 00000000..6ac72cfa --- /dev/null +++ b/bsp/meta-ti/recipes-bsp/cppi-lld/cppi-lld_git.bb @@ -0,0 +1,32 @@ +DESCRIPTION = "TI CPPI Module low level driver" + +DEPENDS = "common-csl-ip rm-lld qmss-lld" + +include cppi-lld.inc + +PR = "${INC_PR}.1" + +do_compile () { +# Now build the lld in the updated directory + make -f makefile_armv7 clean PDK_INSTALL_PATH=${STAGING_INCDIR} + for device in ${DEVICELIST} + do + make -f makefile_armv7 lib PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="${device}" + 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} + chown -R root:root ${D} + +# Set the generic device library symbolic link to default k2h + cd ${D}${libdir} + + # Link only the first device in the list + for device in ${DEVICELIST} + do + ln -sf libcppi_${device}.so.1.0.0 libcppi_device.so.1 + break + done + ln -sf libcppi_device.so.1 libcppi_device.so +} |