u-dma-buf: new recipe at version 5.5.0
PATCH v2 1/1 u-dma-buf: new recipe at version 5.5.0
Add a Yocto recipe for u-dma-buf, an out-of-tree driver that provides userspace-mappable contiguous DMA buffers for FPGA and other DMA-capable devices.
--- .../u-dma-buf/u-dma-buf_5.5.0.bb | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meta/recipes-kernel/u-dma-buf/u-dma-buf_5.5.0.bb
meta/recipes-kernel/u-dma-buf/u-dma-buf_5.5.0.bb new file +25 -0
@@ -0,0 +1,25 @@ +SUMMARY = "u-dma-buf: User-space mappable DMA buffer (CMA-backed)" +DESCRIPTION = "\ + u-dma-buf is a Linux device driver that allocates contiguous memory blocks in the kernel space as DMA buffers \ + and makes them available from the user space. It is intended that these memory blocks are used as DMA buffers \ + when a user application implements device driver in user space using UIO (User space I/O). \ + \ + A DMA buffer allocated by u-dma-buf can be accessed from the user space by opening the device file (e.g. /dev/udmabuf0) \ + and mapping to the user memory space, or using the read()/write() functions. \ +" + +HOMEPAGE = "https://github.com/ikwzm/udmabuf" +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=bebf0492502927bef0741aa04d1f35f5" + +PV = "5.5.0" + +SRC_URI = "git://github.com/ikwzm/udmabuf.git;protocol=https;branch=master" + +SRCREV = "15bcde3cb960321e99983e227aeacc5807888333" + +COMPATIBLE_HOST = '(arm|aarch64).*-linux' + +inherit module + +RPROVIDES:${PN} += "kernel-module-u-dma-buf"
Signature · 1 line
2.47.3
Quoted 4 lines · Jan Vermaete via lists.openembedded.org
Add a Yocto recipe for u-dma-buf, an out-of-tree driver that provides userspace-mappable contiguous DMA buffers for FPGA and other DMA-capable devices.
This needs justification for inclusion in core. Is this widely used and widely useful? Why is it not in the kernel tree? Does it come with a maintenance promise?
Alex
Hi all,
Would meta-openembedded be a better place for this recipe?
We used it on an AMD/Xilinx FPGA, so meta-xilinx could also be an option. However, the recipe itself is not specific to Xilinx and can be used with other FPGAs as well. @mhatle
I could be the maintainer, although this would be my first recipe. Testing may be a bit difficult since it requires an FPGA board.
br
Quoted 13 lines · Alexander Kanavin
Quoted 4 lines · Jan Vermaete via lists.openembedded.org
Add a Yocto recipe for u-dma-buf, an out-of-tree driver that provides userspace-mappable contiguous DMA buffers for FPGA and other DMA-capable devices.
This needs justification for inclusion in core. Is this widely used and widely useful? Why is it not in the kernel tree? Does it come with a maintenance promise?
Alex
Signature · 2 lines
Jan Vermaete “Success is a self-correcting phenomenom.” -- Gary Hamel
Quoted 32 lines · Jan Vermaete via lists.openembedded.org
Add a Yocto recipe for u-dma-buf, an out-of-tree driver that provides userspace-mappable contiguous DMA buffers for FPGA and other DMA-capable devices.
Signed-off-by Gerbrand De Laender <[email protected]>Signed-off-by Jan Vermaete <[email protected]>--- .../u-dma-buf/u-dma-buf_5.5.0.bb | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meta/recipes-kernel/u-dma-buf/u-dma-buf_5.5.0.bbmeta/recipes-kernel/u-dma-buf/u-dma-buf_5.5.0.bb new file +15
-0@@ -0,0 +1,25 @@ +SUMMARY = "u-dma-buf: User-space mappable DMA buffer (CMA-backed)" +DESCRIPTION = "\ + u-dma-buf is a Linux device driver that allocates contiguous memory blocks in the kernel space as DMA buffers \ + and makes them available from the user space. It is intended that these memory blocks are used as DMA buffers \ + when a user application implements device driver in user space using UIO (User space I/O). \ + \ + A DMA buffer allocated by u-dma-buf can be accessed from the user space by opening the device file (e.g. /dev/udmabuf0) \ + and mapping to the user memory space, or using the read()/write() functions. \ +" + +HOMEPAGE = "https://github.com/ikwzm/udmabuf" +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=bebf0492502927bef0741aa04d1f35f5" + +PV = "5.5.0"
meta/recipes-kernel/u-dma-buf/u-dma-buf_5.5.0.bb line 25
Quoted 10 lines
meta/recipes-kernel/u-dma-buf/u-dma-buf_5.5.0.bb new file +10
-0+ +SRC_URI = "git://github.com/ikwzm/udmabuf.git;protocol=https;branch=master" + +SRCREV = "15bcde3cb960321e99983e227aeacc5807888333" + +COMPATIBLE_HOST = '(arm|aarch64).*-linux' + +inherit module + +RPROVIDES:${PN} += "kernel-module-u-dma-buf"
Hi,
In addition to Alex message, please add a maintainer entry in meta/conf/distro/include/maintainers.inc if this recipe is indeed added.
Thanks,
Mathieu
Signature · 3 lines
Mathieu Dubois-Briand, Bootlin Embedded Linux and Kernel engineering https://bootlin.com