diff options
author | Carlos Rafael Giani <crg7475@mailbox.org> | 2019-07-08 20:54:41 +0200 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2019-08-06 11:26:36 -0300 |
commit | fd1a2df923f933ec9d5065fcc19856f8df67e765 (patch) | |
tree | 05116e08a436d5f58f7efd2b000942edcd1b7cb0 /recipes-bsp | |
parent | 750267eae5bdc8a515435252b4336c7ba54fca05 (diff) | |
download | meta-freescale-fd1a2df923f933ec9d5065fcc19856f8df67e765.tar.gz |
libimxdmabuffer: Add recipe
libimxdmabuffer provides an API for allocating and handling physically
contiguous buffers ("DMA buffers") on imx6, imx7, imx8 machines with the
imx-kernel. The underlying allocation can be backed by the PxP, IPU, ION,
DWL, G2D APIs.
The API is backend agnostic. The same structures and functions can be used
with the underlying PxP and IPU allocators for example. Furthermore, the
library defines a "default" allocator (which one is the "default" is
determined by the library and by the build configuration).
By using this API, libraries can use compatible types for exchanging
DMA buffers in userspace, and can also use the same API and support mx6,
mx7, and mx8 machines, without requiring platform specific code changes.
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Diffstat (limited to 'recipes-bsp')
-rw-r--r-- | recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.0.bb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.0.bb b/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.0.bb new file mode 100644 index 00000000..a4252a7b --- /dev/null +++ b/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.0.bb | |||
@@ -0,0 +1,41 @@ | |||
1 | DESCRIPTION = 'Library for allocating and managing physically contiguous memory \ | ||
2 | ("DMA memory" or "DMA buffers") on i.MX devices.' | ||
3 | HOMEPAGE = "https://github.com/Freescale/libimxdmabuffer" | ||
4 | LICENSE = "LGPLv2.1" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=38fa42a5a6425b26d2919b17b1527324" | ||
6 | SECTION = "base" | ||
7 | |||
8 | PV = "1.0.0+git${SRCPV}" | ||
9 | |||
10 | SRCBRANCH ?= "master" | ||
11 | SRCREV = "db17cb57d1087cf590b28487c43cb5c47bf76fe7" | ||
12 | SRC_URI = "git://github.com/Freescale/libimxdmabuffer.git;branch=${SRCBRANCH}" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | inherit pkgconfig waf use-imx-headers ptest | ||
17 | |||
18 | EXTRA_OECONF = "--imx-linux-headers-path=${STAGING_INCDIR_IMX} \ | ||
19 | --libdir=${libdir} \ | ||
20 | ${PACKAGECONFIG_CONFARGS}" | ||
21 | |||
22 | PACKAGECONFIG ?= " " | ||
23 | PACKAGECONFIG_append_imxgpu2d = " g2d" | ||
24 | PACKAGECONFIG_append_imxipu = " ipu" | ||
25 | PACKAGECONFIG_append_imxpxp = " pxp" | ||
26 | PACKAGECONFIG_append_mx8m = " dwl ion" | ||
27 | |||
28 | HANTRO_CONF = "--hantro-headers-path=${STAGING_INCDIR}/hantro_dec --hantro-decoder-version=G2" | ||
29 | |||
30 | PACKAGECONFIG[dwl] = "--with-dwl-allocator=yes ${HANTRO_CONF},--with-dwl-allocator=no,imx-vpu-hantro" | ||
31 | PACKAGECONFIG[ion] = "--with-ion-allocator=yes, --with-ion-allocator=no," | ||
32 | PACKAGECONFIG[ipu] = "--with-ipu-allocator=yes, --with-ipu-allocator=no," | ||
33 | PACKAGECONFIG[g2d] = "--with-g2d-allocator=yes, --with-g2d-allocator=no,virtual/libg2d" | ||
34 | PACKAGECONFIG[pxp] = "--with-pxp-allocator=yes, --with-pxp-allocator=no," | ||
35 | |||
36 | do_install_ptest () { | ||
37 | install -d ${D}${PTEST_PATH}/tests | ||
38 | install -m 0755 ${B}/test-alloc ${D}${PTEST_PATH}/tests | ||
39 | } | ||
40 | |||
41 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | ||