blob: fe2fbdcf588e575e4ef4232d8d12f0f810f2b666 [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\
Brad Bishop26bdd442019-08-16 17:08:17 -040024 file://0012-linux-mali_memory_os_alloc-Remove-__GFP_COLD.patch\
25 file://0013-linux-mali_memory_secure-Add-header-file-dma-direct..patch\
26 file://0014-linux-mali_-timer-Get-rid-of-init_timer.patch\
Brad Bishop286d45c2018-10-02 15:21:57 -040027 "
28SRC_URI[md5sum] = "8f04ae86957fd56197ad5a9d017b84ff"
29SRC_URI[sha256sum] = "bfd14fa3f75a71d4ba313534e651ca1c58dc354e882c0b39867e335882a06350"
30
31inherit module
32
33do_make_scripts[depends] += "virtual/kernel:do_unpack"
34
35S = "${WORKDIR}/DX910-SW-99002-${PV}/driver/src/devicedrv/mali"
36
37COMPATIBLE_MACHINE = "^$"
38COMPATIBLE_MACHINE_zynqmpeg = "zynqmpeg"
39COMPATIBLE_MACHINE_zynqmpev = "zynqmpev"
40
41PACKAGE_ARCH = "${SOC_FAMILY}${SOC_VARIANT}"
42
43EXTRA_OEMAKE = 'KDIR="${STAGING_KERNEL_DIR}" \
44 ARCH="${ARCH}" \
45 BUILD=release \
46 MALI_PLATFORM="arm" \
47 USING_DT=1 \
48 MALI_SHARED_INTERRUPTS=1 \
49 CROSS_COMPILE="${TARGET_PREFIX}" \
50 O=${STAGING_KERNEL_BUILDDIR} \
51 MALI_QUIET=1 \
52 '