40 lines
1.1 KiB
BlitzBasic
40 lines
1.1 KiB
BlitzBasic
# 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 DPU"
|
|
LICENSE = "Proprietary"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=6dfb32a488e5fd6bae52fbf6c7ebb086"
|
|
|
|
RDEPENDS_${PN} = "libgal-imx libdrm"
|
|
|
|
PROVIDES += "virtual/libg2d"
|
|
|
|
SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
|
|
|
|
S="${WORKDIR}/${PN}-${PV}"
|
|
|
|
inherit fsl-eula-unpack
|
|
|
|
SRC_URI[md5sum] = "080de224085c37db107b5e477bd7900a"
|
|
SRC_URI[sha256sum] = "854014164be517467252a2f0a79145bdcdd2892243b317ba25a3157d85a612ba"
|
|
|
|
do_install () {
|
|
|
|
install -d ${D}${libdir}
|
|
install -d ${D}${includedir}
|
|
|
|
cp -r ${S}/g2d/usr/lib/*.so* ${D}${libdir}
|
|
cp -Pr ${S}/g2d/usr/include/* ${D}${includedir}
|
|
cp -r ${S}/gpu-demos/opt ${D}
|
|
}
|
|
|
|
INSANE_SKIP_${PN} += "ldflags"
|
|
|
|
FILES_${PN} = "${libdir}/libg2d* /opt"
|
|
FILES_${PN}-dev = "${libdir}/libg2d${SOLIBSDEV} ${includedir}"
|
|
|
|
# Compatible only with i.MX DPU
|
|
COMPATIBLE_MACHINE = "(^$)"
|
|
COMPATIBLE_MACHINE_imxdpu = "${MACHINE}"
|