diff options
Diffstat (limited to 'recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.2.0.bb')
| -rw-r--r-- | recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.2.0.bb | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.2.0.bb b/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.2.0.bb index a94d6bf14..3296ebd94 100644 --- a/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.2.0.bb +++ b/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.2.0.bb | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | DESCRIPTION = 'Library for allocating and managing physically contiguous memory \ | 1 | DESCRIPTION = 'Library for allocating and managing physically contiguous memory \ |
| 2 | ("DMA memory" or "DMA buffers") on i.MX devices.' | 2 | ("DMA memory" or "DMA buffers") on i.MX devices.' |
| 3 | HOMEPAGE = "https://github.com/Freescale/libimxdmabuffer" | 3 | HOMEPAGE = "https://github.com/Freescale/libimxdmabuffer" |
| 4 | LICENSE = "LGPL-2.1-only" | 4 | LICENSE = "LGPL-2.1-only" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=38fa42a5a6425b26d2919b17b1527324" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=38fa42a5a6425b26d2919b17b1527324" |
| @@ -11,7 +11,7 @@ SRCBRANCH ?= "master" | |||
| 11 | SRCREV = "d44deb80af881b82f394d44696433e6695022c8c" | 11 | SRCREV = "d44deb80af881b82f394d44696433e6695022c8c" |
| 12 | SRC_URI = "git://github.com/Freescale/libimxdmabuffer.git;branch=${SRCBRANCH};protocol=https \ | 12 | SRC_URI = "git://github.com/Freescale/libimxdmabuffer.git;branch=${SRCBRANCH};protocol=https \ |
| 13 | file://run-ptest \ | 13 | file://run-ptest \ |
| 14 | " | 14 | " |
| 15 | 15 | ||
| 16 | inherit pkgconfig waf use-imx-headers ptest | 16 | inherit pkgconfig waf use-imx-headers ptest |
| 17 | 17 | ||
| @@ -47,33 +47,33 @@ CACHED_DMA_HEAP_CONF = "--dma-heap-device-node-path=${CACHED_DMA_HEAP_DEVICE_NOD | |||
| 47 | UNCACHED_DMA_HEAP_CONF = "--dma-heap-device-node-path=${UNCACHED_DMA_HEAP_DEVICE_NODE_PATH} \ | 47 | UNCACHED_DMA_HEAP_CONF = "--dma-heap-device-node-path=${UNCACHED_DMA_HEAP_DEVICE_NODE_PATH} \ |
| 48 | --dma-heap-uncached-memory" | 48 | --dma-heap-uncached-memory" |
| 49 | 49 | ||
| 50 | PACKAGECONFIG ?= " " | 50 | PACKAGECONFIG ?= "" |
| 51 | PACKAGECONFIG:append:imxgpu2d = " ${LIBG2D_PACKAGECONFIG}" | 51 | PACKAGECONFIG:append:imxgpu2d = " ${LIBG2D_PACKAGECONFIG}" |
| 52 | PACKAGECONFIG:append:imxipu = " ipu" | 52 | PACKAGECONFIG:append:imxipu = " ipu" |
| 53 | PACKAGECONFIG:append:imxpxp = " pxp" | 53 | PACKAGECONFIG:append:imxpxp = " pxp" |
| 54 | # All i.MX8 machines can use the dma-heap allocator. i.MX8m ones | 54 | # All i.MX8 machines can use the dma-heap allocator. i.MX8m ones |
| 55 | # can also use the DWL allocator, though dma-heap is preferred. | 55 | # can also use the DWL allocator, though dma-heap is preferred. |
| 56 | # Vendor kernels that are older than kernel 5.6 cannot use | 56 | # Vendor kernels that are older than kernel 5.6 cannot use |
| 57 | # dma-heap, however, and should use ion instead, since the | 57 | # dma-heap, however, and should use ion instead, since the |
| 58 | # former is not available pre-5.6. Out of the dma-heaps, we | 58 | # former is not available pre-5.6. Out of the dma-heaps, we |
| 59 | # pick the uncached one by default (see above). | 59 | # pick the uncached one by default (see above). |
| 60 | PACKAGECONFIG:append:mx8-nxp-bsp = " dma-heap-uncached" | 60 | PACKAGECONFIG:append:mx8-nxp-bsp = " dma-heap-uncached" |
| 61 | PACKAGECONFIG:append:mx8mq-nxp-bsp = " dwl" | 61 | PACKAGECONFIG:append:mx8mq-nxp-bsp = " dwl" |
| 62 | PACKAGECONFIG:append:mx8mm-nxp-bsp = " dwl" | 62 | PACKAGECONFIG:append:mx8mm-nxp-bsp = " dwl" |
| 63 | PACKAGECONFIG:append:mx8mp-nxp-bsp = " dwl" | 63 | PACKAGECONFIG:append:mx8mp-nxp-bsp = " dwl" |
| 64 | 64 | ||
| 65 | HANTRO_CONF = "--hantro-headers-path=${STAGING_INCDIR}/hantro_dec --hantro-decoder-version=G2" | 65 | HANTRO_CONF = "--hantro-headers-path=${STAGING_INCDIR}/hantro_dec --hantro-decoder-version=G2" |
| 66 | 66 | ||
| 67 | PACKAGECONFIG[dwl] = "--with-dwl-allocator=yes ${HANTRO_CONF}, --with-dwl-allocator=no,imx-vpu-hantro" | 67 | PACKAGECONFIG[dwl] = "--with-dwl-allocator=yes ${HANTRO_CONF}, --with-dwl-allocator=no,imx-vpu-hantro" |
| 68 | PACKAGECONFIG[ion] = "--with-ion-allocator=yes, --with-ion-allocator=no," | 68 | PACKAGECONFIG[ion] = "--with-ion-allocator=yes, --with-ion-allocator=no," |
| 69 | PACKAGECONFIG[ipu] = "--with-ipu-allocator=yes, --with-ipu-allocator=no," | 69 | PACKAGECONFIG[ipu] = "--with-ipu-allocator=yes, --with-ipu-allocator=no," |
| 70 | PACKAGECONFIG[g2d] = "--with-g2d-allocator=yes, --with-g2d-allocator=no,virtual/libg2d" | 70 | PACKAGECONFIG[g2d] = "--with-g2d-allocator=yes, --with-g2d-allocator=no,virtual/libg2d" |
| 71 | PACKAGECONFIG[pxp] = "--with-pxp-allocator=yes, --with-pxp-allocator=no," | 71 | PACKAGECONFIG[pxp] = "--with-pxp-allocator=yes, --with-pxp-allocator=no," |
| 72 | # --with-dma-heap-allocator=no is not added by these packageconfigs. | 72 | # --with-dma-heap-allocator=no is not added by these packageconfigs. |
| 73 | # Otherwise, it would always be added, since only one of these two | 73 | # Otherwise, it would always be added, since only one of these two |
| 74 | # dma-heap-* packageconfigs can be selected. Instead, that switch | 74 | # dma-heap-* packageconfigs can be selected. Instead, that switch |
| 75 | # is added to EXTRA_OECONF above. | 75 | # is added to EXTRA_OECONF above. |
| 76 | PACKAGECONFIG[dma-heap-cached] = "--with-dma-heap-allocator=yes ${CACHED_DMA_HEAP_CONF}, \ | 76 | PACKAGECONFIG[dma-heap-cached] = "--with-dma-heap-allocator=yes ${CACHED_DMA_HEAP_CONF}, \ |
| 77 | ,,,,dma-heap-uncached" | 77 | ,,,,dma-heap-uncached" |
| 78 | PACKAGECONFIG[dma-heap-uncached] = "--with-dma-heap-allocator=yes ${UNCACHED_DMA_HEAP_CONF}, \ | 78 | PACKAGECONFIG[dma-heap-uncached] = "--with-dma-heap-allocator=yes ${UNCACHED_DMA_HEAP_CONF}, \ |
| 79 | ,,,,dma-heap-cached" | 79 | ,,,,dma-heap-cached" |
