mirror of
https://github.com/nxp-imx/meta-imx.git
synced 2025-10-22 15:22:15 +02:00

- Add PACKAGECONFIG to capture the build differences - Replace the Vivante-specific version with 'git' - Add -mali to the binary package name and to the SRC_URI name Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
41 lines
1021 B
BlitzBasic
41 lines
1021 B
BlitzBasic
# Copyright 2017-2021 NXP
|
|
|
|
DESCRIPTION = "Sample program to monitor i.MX GPU performance data"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=bcacc6777a7173f8b95b5d1e0ac341ae"
|
|
|
|
DEPENDS = "libgpuperfcnt"
|
|
|
|
GPUTOP_SRC ?= "git://github.com/nxp-imx/imx-gputop.git;protocol=https"
|
|
SRCBRANCH = "release"
|
|
SRC_URI = "${GPUTOP_SRC};branch=${SRCBRANCH} "
|
|
SRCREV = "9bd1c4213daf2b32509bf86e7443ab3060d251c4"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
inherit cmake pkgconfig
|
|
|
|
PACKAGECONFIG ??= "vivante"
|
|
PACKAGECONFIG:mx95-nxp-bsp = "mali"
|
|
|
|
PACKAGECONFIG[mali] = "-DMALI_GPU=1,,,,,vivante"
|
|
PACKAGECONFIG[vivante] = ",,,,,mali"
|
|
|
|
do_compile:append () {
|
|
oe_runmake -C ${S} man
|
|
}
|
|
|
|
do_install:append() {
|
|
install -d ${D}/${mandir}
|
|
install -m 0444 ${S}/man/* ${D}/${mandir}
|
|
}
|
|
|
|
PACKAGE_ARCH = "${MACHINE_SOCARCH}"
|
|
PACKAGES = "${PN}"
|
|
FILES:${PN} += "${mandir}/*"
|
|
INSANE_SKIP:${PN} += "installed-vs-shipped dev-so rpaths dev-deps"
|
|
|
|
# Compatible only with i.MX with GPU
|
|
COMPATIBLE_MACHINE = "(^$)"
|
|
COMPATIBLE_MACHINE:imxgpu = "${MACHINE}"
|