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 = " \ |
| 6 | file://linux/license/gpl/mali_kernel_license.h;md5=436192a2c5cfd47df0ad1987dffc4ae6 \ |
| 7 | " |
| 8 | |
| 9 | PV = "r8p0-01rel0" |
| 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 \ |
| 19 | file://0007-Replace-__GFP_REPEAT-by-__GFP_RETRY_MAYFAIL.patch \ |
| 20 | file://0008-mali_internal_sync-Rename-wait_queue_t-with-wait_que.patch \ |
| 21 | file://0009-mali_memory_swap_alloc.c-Rename-global_page_state-wi.patch \ |
| 22 | file://0010-common-mali_pm.c-Add-PM-runtime-barrier-after-removi.patch \ |
| 23 | file://0011-linux-mali_kernel_linux.c-Enable-disable-clock-for-r.patch\ |
| 24 | " |
| 25 | SRC_URI[md5sum] = "8f04ae86957fd56197ad5a9d017b84ff" |
| 26 | SRC_URI[sha256sum] = "bfd14fa3f75a71d4ba313534e651ca1c58dc354e882c0b39867e335882a06350" |
| 27 | |
| 28 | inherit module |
| 29 | |
| 30 | do_make_scripts[depends] += "virtual/kernel:do_unpack" |
| 31 | |
| 32 | S = "${WORKDIR}/DX910-SW-99002-${PV}/driver/src/devicedrv/mali" |
| 33 | |
| 34 | COMPATIBLE_MACHINE = "^$" |
| 35 | COMPATIBLE_MACHINE_zynqmpeg = "zynqmpeg" |
| 36 | COMPATIBLE_MACHINE_zynqmpev = "zynqmpev" |
| 37 | |
| 38 | PACKAGE_ARCH = "${SOC_FAMILY}${SOC_VARIANT}" |
| 39 | |
| 40 | EXTRA_OEMAKE = 'KDIR="${STAGING_KERNEL_DIR}" \ |
| 41 | ARCH="${ARCH}" \ |
| 42 | BUILD=release \ |
| 43 | MALI_PLATFORM="arm" \ |
| 44 | USING_DT=1 \ |
| 45 | MALI_SHARED_INTERRUPTS=1 \ |
| 46 | CROSS_COMPILE="${TARGET_PREFIX}" \ |
| 47 | O=${STAGING_KERNEL_BUILDDIR} \ |
| 48 | MALI_QUIET=1 \ |
| 49 | ' |