edma3-lld: add new recipe for edma3 low level driver
PATCH 1/1 edma3-lld: add new recipe for edma3 low level driver
- Provides low level driver for EDMA3 module
- supports k2k, k2l, k2e evm platforms
--- recipes-bsp/edma3-lld/edma3-lld_git.bb | 80 ++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100755 recipes-bsp/edma3-lld/edma3-lld_git.bb
recipes-bsp/edma3-lld/edma3-lld_git.bb new file +80 -0
@@ -0,0 +1,80 @@ +DESCRIPTION = "TI EDMA3 low level driver and test code" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5bdceac872dffdec915b819654ee23ea" + +BRANCH = "master" +SRC_URI = "git://git.ti.com/keystone-rtos/edma3_lld.git" +# The following commit corresponds to tag DEV_EDMA3_LLD_02_11_13_17 +SRCREV = "8c27e548fa53ca8472404ef347b8f6b6e2588d46" + +PV = "2.11.13" +PR = "r0" + +COMPATIBLE_MACHINE = "keystone" + +DEPENDS = "common-csl-ip" + +PLATFORMLIST = "tci6636k2h-evm \ + tci6638k2k-evm \ + tci6630k2l-evm \ + c66ak2e-evm \ + " + +PACKAGES =+ "${PN}-test" + +FILES_${PN}-test = "${bindir}/*" + +S = "${WORKDIR}/git" + +do_compile () { + cd ${S}/packages + for platform in ${PLATFORMLIST} + do + ROOTDIR=${S} CROSSCC="${TARGET_PREFIX}gcc" CROSSAR="${TARGET_PREFIX}ar" \ + CROSSLNK="${TARGET_PREFIX}gcc" INTERNAL_SW_ROOT="${S}" make \ + PLATFORM="$platform" TARGET=a15 TOOLCHAIN_a15=GCC FORMAT=ELF \ + SONAME=libedma3.so all + done +} + +do_install () { + install -d ${D}/${libdir} + + # Static Libraries + cp ${S}/packages/ti/sdo/edma3/drv/lib/a15/release/edma3_lld_drv.aa15fg \ + ${D}/${libdir}/libedma3.a + cp ${S}/packages/ti/sdo/edma3/rm/lib/tci6636k2h-evm/a15/release/edma3_lld_rm.aa15fg \ + ${D}/${libdir}/libedma3rm.a + + # Shared Libraries + cp -a ${S}/packages/ti/sdo/edma3/drv/lib/a15/release/libedma* ${D}/${libdir} + cp -a ${S}/packages/ti/sdo/edma3/rm/lib/tci6636k2h-evm/a15/release/libedma* ${D}/${libdir} + + # Copy Headers + install -d ${D}/${includedir}/ti/sdo/edma3/drv/ + install -d ${D}/${includedir}/ti/sdo/edma3/rm + cp ${S}/packages/ti/sdo/edma3/drv/*.h ${D}/${includedir}/ti/sdo/edma3/drv/ + cp ${S}/packages/ti/sdo/edma3/rm/*.h ${D}/${includedir}/ti/sdo/edma3/rm/ + + # Copy Sample Config + install -d ${D}/${includedir}/ti/sdo/edma3/drv/sample/src/platforms + cp ${S}/examples/edma3_user_space_driver/evmTCI6636K2H/evmTCI6636K2HSample.c \ + ${D}/${includedir}/ti/sdo/edma3/drv/sample/src/platforms + cp ${S}/examples/edma3_user_space_driver/evmTCI6638K2K/evmTCI6638K2KSample.c \ + ${D}/${includedir}/ti/sdo/edma3/drv/sample/src/platforms + cp ${S}/examples/edma3_user_space_driver/evmTCI6630K2L/evmTCI6630K2LSample.c \ + ${D}/${includedir}/ti/sdo/edma3/drv/sample/src/platforms + cp ${S}/examples/edma3_user_space_driver/evmC66AK2E/evmC66AK2ESample.c \ + ${D}/${includedir}/ti/sdo/edma3/drv/sample/src/platforms + + install -d ${D}/${bindir} + install -c -m 755 ${S}/examples/edma3_user_space_driver/evmTCI6636K2H/bin/tci6636k2h-evm/edma3_drv_6636k2h_a15_sample_a15host_release.xa15fg \ + ${D}/${bindir}/edma3_drv_6636k2h_a15_sample_a15host_release.xa15fg + install -c -m 755 ${S}/examples/edma3_user_space_driver/evmTCI6638K2K/bin/tci6638k2k-evm/edma3_drv_6638k2k_a15_sample_a15host_release.xa15fg \ + ${D}/${bindir}/edma3_drv_6638k2k_a15_sample_a15host_release.xa15fg + install -c -m 755 ${S}/examples/edma3_user_space_driver/evmTCI6630K2L/bin/tci6630k2l-evm/edma3_drv_6630k2l_a15_sample_a15host_release.xa15fg \ + ${D}/${bindir}/edma3_drv_6630k2l_a15_sample_a15host_release.xa15fg + install -c -m 755 ${S}/examples/edma3_user_space_driver/evmC66AK2E/bin/c66ak2e-evm/edma3_drv_c66ak2e_a15_sample_a15host_release.xa15fg \ + ${D}/${bindir}/edma3_drv_c66ak2e_a15_sample_a15host_release.xa15fg +} +
Signature · 1 line
1.7.9.5
Same comments as mmap-lld about whether this should be a machine specific recipe. For the do_install you could use a machine override for the values there. Just a thought though as to whether that makes more sense or not.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Nelson, Sam
Sent: Wednesday, November 19, 2014 7:22 AM
To: [email protected]
Subject: [meta-ti] [PATCH] edma3-lld: add new recipe for edma3 low level driver
- Provides low level driver for EDMA3 module
- supports k2k, k2l, k2e evm platforms
--- recipes-bsp/edma3-lld/edma3-lld_git.bb | 80 ++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100755 recipes-bsp/edma3-lld/edma3-lld_git.bb
recipes-bsp/edma3-lld/edma3-lld_git.bb new file +80 -0
@@ -0,0 +1,80 @@ +DESCRIPTION = "TI EDMA3 low level driver and test code" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5bdceac872dffdec915b819654ee23ea" + +BRANCH = "master" +SRC_URI = "git://git.ti.com/keystone-rtos/edma3_lld.git" +# The following commit corresponds to tag DEV_EDMA3_LLD_02_11_13_17 +SRCREV = "8c27e548fa53ca8472404ef347b8f6b6e2588d46" + +PV = "2.11.13" +PR = "r0" + +COMPATIBLE_MACHINE = "keystone" + +DEPENDS = "common-csl-ip" + +PLATFORMLIST = "tci6636k2h-evm \ + tci6638k2k-evm \ + tci6630k2l-evm \ + c66ak2e-evm \ + " + +PACKAGES =+ "${PN}-test" + +FILES_${PN}-test = "${bindir}/*" + +S = "${WORKDIR}/git" + +do_compile () { + cd ${S}/packages + for platform in ${PLATFORMLIST} + do + ROOTDIR=${S} CROSSCC="${TARGET_PREFIX}gcc" CROSSAR="${TARGET_PREFIX}ar" \ + CROSSLNK="${TARGET_PREFIX}gcc" INTERNAL_SW_ROOT="${S}" make \ + PLATFORM="$platform" TARGET=a15 TOOLCHAIN_a15=GCC FORMAT=ELF \ + SONAME=libedma3.so all + done +} + +do_install () { + install -d ${D}/${libdir} + + # Static Libraries + cp ${S}/packages/ti/sdo/edma3/drv/lib/a15/release/edma3_lld_drv.aa15fg \ + ${D}/${libdir}/libedma3.a + cp ${S}/packages/ti/sdo/edma3/rm/lib/tci6636k2h-evm/a15/release/edma3_lld_rm.aa15fg \ + ${D}/${libdir}/libedma3rm.a + + # Shared Libraries + cp -a ${S}/packages/ti/sdo/edma3/drv/lib/a15/release/libedma* ${D}/${libdir} + cp -a +${S}/packages/ti/sdo/edma3/rm/lib/tci6636k2h-evm/a15/release/libedma* +${D}/${libdir} + + # Copy Headers + install -d ${D}/${includedir}/ti/sdo/edma3/drv/ + install -d ${D}/${includedir}/ti/sdo/edma3/rm + cp ${S}/packages/ti/sdo/edma3/drv/*.h ${D}/${includedir}/ti/sdo/edma3/drv/ + cp ${S}/packages/ti/sdo/edma3/rm/*.h +${D}/${includedir}/ti/sdo/edma3/rm/ + + # Copy Sample Config + install -d ${D}/${includedir}/ti/sdo/edma3/drv/sample/src/platforms + cp ${S}/examples/edma3_user_space_driver/evmTCI6636K2H/evmTCI6636K2HSample.c \ + ${D}/${includedir}/ti/sdo/edma3/drv/sample/src/platforms + cp ${S}/examples/edma3_user_space_driver/evmTCI6638K2K/evmTCI6638K2KSample.c \ + ${D}/${includedir}/ti/sdo/edma3/drv/sample/src/platforms + cp ${S}/examples/edma3_user_space_driver/evmTCI6630K2L/evmTCI6630K2LSample.c \ + ${D}/${includedir}/ti/sdo/edma3/drv/sample/src/platforms + cp ${S}/examples/edma3_user_space_driver/evmC66AK2E/evmC66AK2ESample.c \ + ${D}/${includedir}/ti/sdo/edma3/drv/sample/src/platforms + + install -d ${D}/${bindir} + install -c -m 755 ${S}/examples/edma3_user_space_driver/evmTCI6636K2H/bin/tci6636k2h-evm/edma3_drv_6636k2h_a15_sample_a15host_release.xa15fg \ + ${D}/${bindir}/edma3_drv_6636k2h_a15_sample_a15host_release.xa15fg + install -c -m 755 ${S}/examples/edma3_user_space_driver/evmTCI6638K2K/bin/tci6638k2k-evm/edma3_drv_6638k2k_a15_sample_a15host_release.xa15fg \ + ${D}/${bindir}/edma3_drv_6638k2k_a15_sample_a15host_release.xa15fg + install -c -m 755 ${S}/examples/edma3_user_space_driver/evmTCI6630K2L/bin/tci6630k2l-evm/edma3_drv_6630k2l_a15_sample_a15host_release.xa15fg \ + ${D}/${bindir}/edma3_drv_6630k2l_a15_sample_a15host_release.xa15fg + install -c -m 755 ${S}/examples/edma3_user_space_driver/evmC66AK2E/bin/c66ak2e-evm/edma3_drv_c66ak2e_a15_sample_a15host_release.xa15fg \
+ ${D}/${bindir}/edma3_drv_c66ak2e_a15_sample_a15host_release.xa15fg
+}
+
--
1.7.9.5
--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
Please refer to the reply to the mmap-lld recipe. Currently not planning to make the recipe to build only particular evm content.
Let me know if you have any other feedback. Otherwise appreciate if this can be accepted. With regards,
Sam
Quoted 161 lines
-----Original Message-----
From: Maupin, Chase
Sent: Wednesday, November 19, 2014 12:10 PM
To: Nelson, Sam; [email protected]
Subject: RE: [meta-ti] [PATCH] edma3-lld: add new recipe for edma3 low level driverSame comments as mmap-lld about whether this should be a machine specific recipe. For the
do_installyou could use a machine override for the values there. Just a thought though as to whether that makes more sense or not.-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Nelson, Sam
Sent: Wednesday, November 19, 2014 7:22 AM
To: [email protected]
Subject: [meta-ti] [PATCH] edma3-lld: add new recipe for edma3 low level driver- Provides low level driver for EDMA3 module
- supports k2k, k2l, k2e evm platformsSigned-off-by Sam Nelson <[email protected]>--- recipes-bsp/edma3-lld/edma3-lld_git.bb | 80 ++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100755 recipes-bsp/edma3-lld/edma3-lld_git.bbrecipes-bsp/edma3- renamed from recipes-bsp/edma3-lld/edma3-lld_git.bb +0
-0lld/edma3-lld_git.bb
new file mode 100755
index 0000000..1ed4b93recipes-bsp/edma3-lld/edma3-lld_git.bb new file +3
-0@@ -0,0 +1,80 @@ +DESCRIPTION = "TI EDMA3 low level driver and test code" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM ="file://COPYING.txt;md5=5bdceac872dffdec915b819654ee23ea"
recipes-bsp/edma3-lld/edma3-lld_git.bb new file +30
-0+ +BRANCH = "master" +SRC_URI = "git://git.ti.com/keystone-rtos/edma3_lld.git" +# The following commit corresponds to tag DEV_EDMA3_LLD_02_11_13_17 +SRCREV = "8c27e548fa53ca8472404ef347b8f6b6e2588d46" + +PV = "2.11.13" +PR = "r0" + +COMPATIBLE_MACHINE = "keystone" + +DEPENDS = "common-csl-ip" + +PLATFORMLIST = "tci6636k2h-evm \ + tci6638k2k-evm \ + tci6630k2l-evm \ + c66ak2e-evm \ + " + +PACKAGES =+ "${PN}-test" + +FILES_${PN}-test = "${bindir}/*" + +S = "${WORKDIR}/git" + +do_compile () { + cd ${S}/packages + for platform in ${PLATFORMLIST} + do + ROOTDIR=${S} CROSSCC="${TARGET_PREFIX}gcc"CROSSAR="${TARGET_PREFIX}ar" \
recipes-bsp/edma3-lld/edma3-lld_git.bb new file +1
-0+ CROSSLNK="${TARGET_PREFIX}gcc"INTERNAL_SW_ROOT="${S}" make \
recipes-bsp/edma3-lld/edma3-lld_git.bb new file +1
-0+ PLATFORM="$platform" TARGET=a15 TOOLCHAIN_a15=GCCFORMAT=ELF \
recipes-bsp/edma3-lld/edma3-lld_git.bb new file +9
-0+ SONAME=libedma3.so all + done +} + +do_install () { + install -d ${D}/${libdir} + + # Static Libraries + cp${S}/packages/ti/sdo/edma3/drv/lib/a15/release/edma3_lld_drv.aa15fg \
recipes-bsp/edma3-lld/edma3-lld_git.bb new file +2
-0+ ${D}/${libdir}/libedma3.a + cp ${S}/packages/ti/sdo/edma3/rm/lib/tci6636k2h-evm/a15/release/edma3_lld_rm.aa15fg \
recipes-bsp/edma3-lld/edma3-lld_git.bb new file +4
-0+ ${D}/${libdir}/libedma3rm.a + + # Shared Libraries + cp -a ${S}/packages/ti/sdo/edma3/drv/lib/a15/release/libedma*${D}/${libdir}
recipes-bsp/edma3-lld/edma3-lld_git.bb new file +2
-0+ cp -a +${S}/packages/ti/sdo/edma3/rm/lib/tci6636k2h-evm/a15/release/libedma*
+${D}/${libdir}recipes-bsp/edma3-lld/edma3-lld_git.bb new file +5
-0+ + # Copy Headers + install -d ${D}/${includedir}/ti/sdo/edma3/drv/ + install -d ${D}/${includedir}/ti/sdo/edma3/rm + cp ${S}/packages/ti/sdo/edma3/drv/*.h${D}/${includedir}/ti/sdo/edma3/drv/
recipes-bsp/edma3-lld/edma3-lld_git.bb new file +6
-0+ cp ${S}/packages/ti/sdo/edma3/rm/*.h +${D}/${includedir}/ti/sdo/edma3/rm/ + + # Copy Sample Config + install -d ${D}/${includedir}/ti/sdo/edma3/drv/sample/src/platforms + cp${S}/examples/edma3_user_space_driver/evmTCI6636K2H/evmTCI6636K2H
Sample.c\recipes-bsp/edma3-lld/edma3-lld_git.bb new file +2
-0+ ${D}/${includedir}/ti/sdo/edma3/drv/sample/src/platforms + cp${S}/examples/edma3_user_space_driver/evmTCI6638K2K/evmTCI6638K2K
Sample.c\recipes-bsp/edma3-lld/edma3-lld_git.bb new file +2
-0+ ${D}/${includedir}/ti/sdo/edma3/drv/sample/src/platforms + cp${S}/examples/edma3_user_space_driver/evmTCI6630K2L/evmTCI6630K2LS
ample.c\recipes-bsp/edma3-lld/edma3-lld_git.bb new file +2
-0+ ${D}/${includedir}/ti/sdo/edma3/drv/sample/src/platforms + cp${S}/examples/edma3_user_space_driver/evmC66AK2E/evmC66AK2ESampl
e.c\recipes-bsp/edma3-lld/edma3-lld_git.bb new file +4
-0+ ${D}/${includedir}/ti/sdo/edma3/drv/sample/src/platforms + + install -d ${D}/${bindir} + install -c -m 755${S}/examples/edma3_user_space_driver/evmTCI6636K2H/bin/tci6636k2h- evm/edma3_drv_6636k2h_a15_sample_a15host_release.xa15fg \
+${D}/${bindir}/edma3_drv_6636k2h_a15_sample_a15host_release.xa15fg
recipes-bsp/edma3-lld/edma3-lld_git.bb new file +1
-0+ install -c -m 755${S}/examples/edma3_user_space_driver/evmTCI6638K2K/bin/tci6638k2k- evm/edma3_drv_6638k2k_a15_sample_a15host_release.xa15fg \
+${D}/${bindir}/edma3_drv_6638k2k_a15_sample_a15host_release.xa15fg
recipes-bsp/edma3-lld/edma3-lld_git.bb new file +1
-0+ install -c -m 755${S}/examples/edma3_user_space_driver/evmTCI6630K2L/bin/tci6630k2l- evm/edma3_drv_6630k2l_a15_sample_a15host_release.xa15fg \
+${D}/${bindir}/edma3_drv_6630k2l_a15_sample_a15host_release.xa15fg
recipes-bsp/edma3-lld/edma3-lld_git.bb new file +1
-0+ install -c -m 755${S}/examples/edma3_user_space_driver/evmC66AK2E/bin/c66ak2e- evm/edma3_drv_c66ak2e_a15_sample_a15host_release.xa15fg \
+${D}/${bindir}/edma3_drv_c66ak2e_a15_sample_a15host_release.xa15fg
recipes-bsp/edma3-lld/edma3-lld_git.bb new file +2
-1+} + --1.7.9.5
--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti