Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 4470BE00BD5; Mon, 8 Jul 2019 12:39:52 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low * trust * [80.241.60.215 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid Received: from mx2.mailbox.org (mx2.mailbox.org [80.241.60.215]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 25BF7E006B6 for ; Mon, 8 Jul 2019 12:39:51 -0700 (PDT) Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 0DCAFA11C2 for ; Mon, 8 Jul 2019 21:39:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= message-id:date:date:subject:subject:from:from:received; s= mail20150812; t=1562614780; bh=HKjMrjWr5xJIwShaC+3fEKed6a0nGqm2p /Kj56Ezdv8=; b=q9RBgPou9fQjj3n16x4q+zNnWyjuKbzesx0z9lT9slHCFB4UL xfqL3yF881pB7cv4A9B+Wek2m/b4A9vJE5fJflG9BKQYZxr0JwXl5xBND3O0vvXE hK0Rk2/7Ge1fbC6TZDFWzjSs2/uB2v7YokKEBkbm/xrIAO70SNBpvHtbXIq8ettt DedoJ94OZwzb5h3CcQc7T+I9bjJpEyMKBoX0It3cPoqrLZ2kCppOdjYD4nczftbk rSKjRZYGoQZ+VDTKJJhuHbFGDgkzEkwU2fdcGEKRP21NpbBq6J7ZZKFiIbALNA9O avfb1PZ/NFoiiZQwMde1DDAM+Y+SmFAKN/pHw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1562614788; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=VTnU83hxS4Zb563bDhzZlVIpSCrnL0JDh0mzByMj6Nk=; b=C+WxoSZbYHyD815CEBJH2+wTRY6Rvi0cfXysTXZdWrj0fas868JWpkeuLgYJ9SviIGVzUN eWbQAWIQBoAymyqy0R/6FtSZAocy9VKVmj5tguyBucxPI0sE+17xE+btAKp3BmymI1IiTF 97l1SiaJ65epN7KvW3fe2hoPRGC3gmchqN2QQv9914rIOCUAkoxVb75DmdzJFdZi/PniLN 7gjzQSPx6VlloN79Vg2YGUwPO7ar9QbzoLd+oimGgacglCjTM9XYpSwUg67uu9ff2+Y7HD q/lq2niSEdOFjrYHlA+Dc4i7xlKhl4ciF7gJ1a6Yvvya+9wkeWTqj6nai3Mi0Q== X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id DEd1jaLkgFEA for ; Mon, 8 Jul 2019 21:39:40 +0200 (CEST) From: Carlos Rafael Giani To: meta-freescale@yoctoproject.org Date: Mon, 8 Jul 2019 21:39:32 +0200 Message-Id: <20190708193932.12394-1-crg7475@mailbox.org> Subject: [PATCH] libimxdmabuffer: Add recipe X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jul 2019 19:39:52 -0000 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 --- .../libimxdmabuffer/libimxdmabuffer_1.0.0.bb | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.0.bb 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 @@ +DESCRIPTION = 'Library for allocating and managing physically contiguous memory \ + ("DMA memory" or "DMA buffers") on i.MX devices.' +HOMEPAGE = "https://github.com/Freescale/libimxdmabuffer" +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM = "file://LICENSE;md5=38fa42a5a6425b26d2919b17b1527324" +SECTION = "base" + +PV = "1.0.0+git${SRCPV}" + +SRCBRANCH ?= "master" +SRCREV = "db17cb57d1087cf590b28487c43cb5c47bf76fe7" +SRC_URI = "git://github.com/Freescale/libimxdmabuffer.git;branch=${SRCBRANCH}" + +S = "${WORKDIR}/git" + +inherit pkgconfig waf use-imx-headers ptest + +EXTRA_OECONF = "--imx-linux-headers-path=${STAGING_INCDIR_IMX} \ + --libdir=${libdir} \ + ${PACKAGECONFIG_CONFARGS}" + +PACKAGECONFIG ?= " " +PACKAGECONFIG_append_imxgpu2d = " g2d" +PACKAGECONFIG_append_imxipu = " ipu" +PACKAGECONFIG_append_imxpxp = " pxp" +PACKAGECONFIG_append_mx8m = " dwl ion" + +HANTRO_CONF = "--hantro-headers-path=${STAGING_INCDIR}/hantro_dec --hantro-decoder-version=G2" + +PACKAGECONFIG[dwl] = "--with-dwl-allocator=yes ${HANTRO_CONF},--with-dwl-allocator=no,imx-vpu-hantro" +PACKAGECONFIG[ion] = "--with-ion-allocator=yes, --with-ion-allocator=no," +PACKAGECONFIG[ipu] = "--with-ipu-allocator=yes, --with-ipu-allocator=no," +PACKAGECONFIG[g2d] = "--with-g2d-allocator=yes, --with-g2d-allocator=no,virtual/libg2d" +PACKAGECONFIG[pxp] = "--with-pxp-allocator=yes, --with-pxp-allocator=no," + +do_install_ptest () { + install -d ${D}${PTEST_PATH}/tests + install -m 0755 ${B}/test-alloc ${D}${PTEST_PATH}/tests +} + +COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" -- 2.17.1