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=72c0f70181bb6e83eee6aab8de12a9f3"
|
|
|
|
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] = "cb59630320d91c4a11306e60a682781d"
|
|
SRC_URI[sha256sum] = "cee8b44509d15b9eb0dbf736d25c080d151602849a5e621be13e9b8f7b501f04"
|
|
|
|
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}"
|