summaryrefslogtreecommitdiff
path: root/mali_pixel/Makefile
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2021-03-22 22:13:08 -0700
committerJesse Hall <jessehall@google.com>2021-03-23 08:20:33 -0700
commite0072f7ba56eac21aeb7cdbb7b809e57be3b9e02 (patch)
treed718c89ae3aa8ebca9c6c031d7d171dec842aead /mali_pixel/Makefile
parent93bc11f6bce0fd9852b58bd0fea7ac008f2da7e5 (diff)
downloadgpu-e0072f7ba56eac21aeb7cdbb7b809e57be3b9e02.tar.gz
mali_pixel: consolidate mali_mgm and mali_pcm
Test: boot to Android home, check dmesg for mali-mcm and mali-pcm probe Signed-off-by: Jesse Hall <jessehall@google.com> Change-Id: I47a7da5fd3b4a24832e2978dcce0b99fe7b54c7c
Diffstat (limited to 'mali_pixel/Makefile')
-rw-r--r--mali_pixel/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/mali_pixel/Makefile b/mali_pixel/Makefile
new file mode 100644
index 0000000..517167e
--- /dev/null
+++ b/mali_pixel/Makefile
@@ -0,0 +1,21 @@
+# SPDX-License-Identifier: GPL-2.0
+#
+# Copyright 2021 Google LLC
+#
+
+KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
+M ?= $(shell pwd)
+
+KBUILD_OPTIONS += CONFIG_MALI_MEMORY_GROUP_MANAGER=m
+KBUILD_OPTIONS += CONFIG_MALI_PRIORITY_CONTROL_MANAGER=m
+
+KBUILD_OPTIONS += $(KBUILD_EXTRA) # Extra config if any
+
+modules:
+ $(MAKE) -C $(KERNEL_SRC) M=$(M) W=1 EXTRA_CFLAGS="-I$(M) -I$(M)/../common/include" modules $(KBUILD_OPTIONS) $(@)
+
+modules_install:
+ $(MAKE) -C $(KERNEL_SRC) M=$(M) modules_install
+
+clean:
+ $(MAKE) -C $(KDIR) M=$(CURDIR) clean