udma: Add recipe for user space library for udma kernel driver
PATCH 1/1 udma: Add recipe for user space library for udma kernel driver
- Provides zero copy access from user-space to packet dma channels via udma kernel driver
Signed-off-by Sam Nelson <[email protected]>
--- recipes-ti/udma/udma_git.bb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 recipes-ti/udma/udma_git.bb
recipes-ti/udma/udma_git.bb new file +29 -0
@@ -0,0 +1,29 @@ +DESCRIPTION = "Provides zero copy access from user-space to packet dma channels via udma kernel driver" +LICENSE = "BSD-3-Clause" + +COMPATIBLE_MACHINE = "keystone" +LIC_FILES_CHKSUM = "file://include/udma.h;startline=1;endline=39;md5=ba3c7f91f970afe073b759ced61d0f27" + +BRANCH = "master" +SRC_URI = "git://git.ti.com/keystone-linux/udma.git;protocol=git;branch=${BRANCH}" +S = "${WORKDIR}/git" +# Commit corresponds to UDMA.01.00.00.00 +SRCREV = "53d09fb0bc98c41c5eb43623097e363c497d6fd8" + +PACKAGES =+ "${PN}-test" + +FILES_${PN}-test = "${bindir}/udma_test" + +do_install_append() { + install -d ${D}${bindir}/ + install -d ${D}${libdir}/ + install -d ${D}${includedir}/ + install -c -m 755 ${S}/udma_test ${D}${bindir}/ + install -c -m 755 ${S}/libudma.a ${D}${libdir}/ + install -c -m 755 ${S}/libudma.so ${D}${libdir}/ + cd ${D}${libdir}/ + mv libudma.so libudma.so.1.0.0 + ln -sf libudma.so.1.0.0 libudma.so.1 + ln -sf libudma.so.1.0.0 libudma.so + install -c -m 755 ${S}/include/* ${D}${includedir}/ +}
Signature · 1 line
1.7.9.5
Quoted 30 lines · Sam Nelson
- Provides zero copy access from user-space to packet dma channels via udma kernel driver
Signed-off-by Sam Nelson <[email protected]>--- recipes-ti/udma/udma_git.bb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 recipes-ti/udma/udma_git.bbrecipes-ti/udma/udma_git.bb new file +15
-0@@ -0,0 +1,29 @@ +DESCRIPTION = "Provides zero copy access from user-space to packet dma channels via udma kernel driver" +LICENSE = "BSD-3-Clause" + +COMPATIBLE_MACHINE = "keystone" +LIC_FILES_CHKSUM = "file://include/udma.h;startline=1;endline=39;md5=ba3c7f91f970afe073b759ced61d0f27" + +BRANCH = "master" +SRC_URI = "git://git.ti.com/keystone-linux/udma.git;protocol=git;branch=${BRANCH}" +S = "${WORKDIR}/git" +# Commit corresponds to UDMA.01.00.00.00 +SRCREV = "53d09fb0bc98c41c5eb43623097e363c497d6fd8" + +PACKAGES =+ "${PN}-test" + +FILES_${PN}-test = "${bindir}/udma_test"
recipes-ti/udma/udma_git.bb line 25
Quoted 10 lines
recipes-ti/udma/udma_git.bb new file +10
-0+ +do_install_append() { + install -d ${D}${bindir}/ + install -d ${D}${libdir}/ + install -d ${D}${includedir}/ + install -c -m 755 ${S}/udma_test ${D}${bindir}/ + install -c -m 755 ${S}/libudma.a ${D}${libdir}/ + install -c -m 755 ${S}/libudma.so ${D}${libdir}/ + cd ${D}${libdir}/ + mv libudma.so libudma.so.1.0.0
Can you make it w/o "mv"? You can install libudma.so directly into .so.1.0.0 and then do the symlinking.
Quoted 12 lines
recipes-ti/udma/udma_git.bb new file +4
-0+ ln -sf libudma.so.1.0.0 libudma.so.1 + ln -sf libudma.so.1.0.0 libudma.so + install -c -m 755 ${S}/include/* ${D}${includedir}/ +}Signature · 7 lines
1.7.9.5 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti