39 lines
1.0 KiB
PHP
39 lines
1.0 KiB
PHP
# Copyright (C) 2016 Freescale Semiconductor
|
|
# Copyright 2017-2018 NXP
|
|
# Released under the MIT license (see COPYING.MIT for the terms)
|
|
|
|
DESCRIPTION = "GPU G2D library and apps for i.MX with 2D GPU and no DPU"
|
|
LICENSE = "Proprietary"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=6dfb32a488e5fd6bae52fbf6c7ebb086"
|
|
|
|
DEPENDS += "libgal-imx"
|
|
PROVIDES += "virtual/libg2d"
|
|
|
|
SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
|
|
|
|
S="${WORKDIR}/${PN}-${PV}"
|
|
|
|
inherit fsl-eula-unpack
|
|
|
|
do_install () {
|
|
|
|
install -d ${D}${libdir}
|
|
install -d ${D}${includedir}
|
|
|
|
cp ${S}/g2d/usr/lib/*.so* ${D}${libdir}
|
|
cp -Pr ${S}/g2d/usr/include/* ${D}${includedir}
|
|
cp -r ${S}/gpu-demos/opt ${D}
|
|
}
|
|
|
|
RDEPENDS_${PN} = "libgal-imx"
|
|
|
|
FILES_${PN} = "${libdir}/libg2d* /opt"
|
|
FILES_${PN}-dev = "${includedir}"
|
|
INSANE_SKIP_${PN} = "ldflags"
|
|
|
|
# Compatible with i.MX with 2D GPU but no DPU
|
|
COMPATIBLE_MACHINE_2D = "(^$)"
|
|
COMPATIBLE_MACHINE_2D_imxgpu2d = "${MACHINE}"
|
|
COMPATIBLE_MACHINE = "${COMPATIBLE_MACHINE_2D}"
|
|
COMPATIBLE_MACHINE_imxdpu = "(^$)"
|