blob: 327f8f09e7f261403758b7176dd36271b68bb944 [file] [log] [blame]
Brad Bishop286d45c2018-10-02 15:21:57 -04001SUMMARY = "A Mali 400 Linux Kernel module"
2SECTION = "kernel/modules"
3
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = " \
6 file://linux/license/gpl/mali_kernel_license.h;md5=436192a2c5cfd47df0ad1987dffc4ae6 \
7 "
8
9PV = "r8p0-01rel0"
10
11SRC_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 "
25SRC_URI[md5sum] = "8f04ae86957fd56197ad5a9d017b84ff"
26SRC_URI[sha256sum] = "bfd14fa3f75a71d4ba313534e651ca1c58dc354e882c0b39867e335882a06350"
27
28inherit module
29
30do_make_scripts[depends] += "virtual/kernel:do_unpack"
31
32S = "${WORKDIR}/DX910-SW-99002-${PV}/driver/src/devicedrv/mali"
33
34COMPATIBLE_MACHINE = "^$"
35COMPATIBLE_MACHINE_zynqmpeg = "zynqmpeg"
36COMPATIBLE_MACHINE_zynqmpev = "zynqmpev"
37
38PACKAGE_ARCH = "${SOC_FAMILY}${SOC_VARIANT}"
39
40EXTRA_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 '