blob: 24a189015643694316b2c9338a2cd79607f5e4d9 [file] [log] [blame]
# 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 += CONFIG_MALI_PROTECTED_MEMORY_ALLOCATOR=m
KBUILD_OPTIONS += CONFIG_MALI_PIXEL_STATS=m
KBUILD_OPTIONS += CONFIG_MALI_PIXEL_GPU_SLC=y
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" $(KBUILD_OPTIONS) $(@)
modules_install:
$(MAKE) -C $(KERNEL_SRC) M=$(M) modules_install
clean:
$(MAKE) -C $(KDIR) M=$(CURDIR) clean