Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 1 | SUMMARY = "A Mali 400 Linux Kernel module" |
| 2 | SECTION = "kernel/modules" |
| 3 | |
| 4 | LICENSE = "GPLv2" |
| 5 | LIC_FILES_CHKSUM = " \ |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 6 | file://linux/license/gpl/mali_kernel_license.h;md5=f5af2d61f4c1eb262cb6a557aaa1070a \ |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 7 | " |
| 8 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 9 | PV = "r9p0-01rel0" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 10 | |
| 11 | SRC_URI = " \ |
| 12 | https://developer.arm.com/-/media/Files/downloads/mali-drivers/kernel/mali-utgard-gpu/DX910-SW-99002-${PV}.tgz \ |
| 13 | file://0001-Change-Makefile-to-be-compatible-with-Yocto.patch \ |
| 14 | file://0002-staging-mali-r8p0-01rel0-Add-the-ZYNQ-ZYNQMP-platfor.patch \ |
| 15 | file://0003-staging-mali-r8p0-01rel0-Remove-unused-trace-macros.patch \ |
| 16 | file://0004-staging-mali-r8p0-01rel0-Don-t-include-mali_read_phy.patch \ |
| 17 | file://0005-linux-mali_kernel_linux.c-Handle-clock-when-probed-a.patch \ |
| 18 | file://0006-arm.c-global-variable-dma_ops-is-removed-from-the-ke.patch \ |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 19 | file://0010-common-mali_pm.c-Add-PM-runtime-barrier-after-removi.patch \ |
| 20 | file://0011-linux-mali_kernel_linux.c-Enable-disable-clock-for-r.patch\ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 21 | file://0012-linux-mali_memory_os_alloc-Remove-__GFP_COLD.patch\ |
| 22 | file://0013-linux-mali_memory_secure-Add-header-file-dma-direct..patch\ |
| 23 | file://0014-linux-mali_-timer-Get-rid-of-init_timer.patch\ |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 24 | file://0015-fix-driver-failed-to-check-map-error.patch \ |
| 25 | file://0016-mali_memory_secure-Kernel-5.0-onwards-access_ok-API-.patch \ |
| 26 | file://0017-Support-for-vm_insert_pfn-deprecated-from-kernel-4.2.patch \ |
| 27 | file://0018-Change-return-type-to-vm_fault_t-for-fault-handler.patch \ |
| 28 | file://0019-get_monotonic_boottime-ts-deprecated-from-kernel-4.2.patch \ |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 29 | " |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 30 | SRC_URI[md5sum] = "85ea110dd6675c70b7d01af87ec9633c" |
| 31 | SRC_URI[sha256sum] = "7a67127341d17640c1fff5dad80258fb2a37c8a2121b81525fe2327e4532ce2b" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 32 | |
| 33 | inherit module |
| 34 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 35 | PARALLEL_MAKE = "-j 1" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 36 | |
| 37 | S = "${WORKDIR}/DX910-SW-99002-${PV}/driver/src/devicedrv/mali" |
| 38 | |
| 39 | COMPATIBLE_MACHINE = "^$" |
| 40 | COMPATIBLE_MACHINE_zynqmpeg = "zynqmpeg" |
| 41 | COMPATIBLE_MACHINE_zynqmpev = "zynqmpev" |
| 42 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 43 | PACKAGE_ARCH = "${SOC_VARIANT_ARCH}" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 44 | |
| 45 | EXTRA_OEMAKE = 'KDIR="${STAGING_KERNEL_DIR}" \ |
| 46 | ARCH="${ARCH}" \ |
| 47 | BUILD=release \ |
| 48 | MALI_PLATFORM="arm" \ |
| 49 | USING_DT=1 \ |
| 50 | MALI_SHARED_INTERRUPTS=1 \ |
| 51 | CROSS_COMPILE="${TARGET_PREFIX}" \ |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 52 | MALI_QUIET=1 \ |
| 53 | ' |