1# 2# (C) COPYRIGHT 2010-2019 ARM Limited. All rights reserved. 3# 4# This program is free software and is provided to you under the terms of the 5# GNU General Public License version 2 as published by the Free Software 6# Foundation, and any use by you of this program is subject to the terms 7# of such GNU licence. 8# 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY; without even the implied warranty of 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12# GNU General Public License for more details. 13# 14# You should have received a copy of the GNU General Public License 15# along with this program; if not, you can access it online at 16# http://www.gnu.org/licenses/gpl-2.0.html. 17# 18# SPDX-License-Identifier: GPL-2.0 19# 20# 21 22 23KDIR ?= /lib/modules/$(shell uname -r)/build 24 25BUSLOG_PATH_RELATIVE = $(CURDIR)/../../../.. 26KBASE_PATH_RELATIVE = $(CURDIR) 27 28ifeq ($(CONFIG_MALI_BUSLOG),y) 29#Add bus logger symbols 30EXTRA_SYMBOLS += $(BUSLOG_PATH_RELATIVE)/drivers/base/bus_logger/Module.symvers 31endif 32 33# we get the symbols from modules using KBUILD_EXTRA_SYMBOLS to prevent warnings about unknown functions 34all: 35 $(MAKE) -C $(KDIR) M=$(CURDIR) EXTRA_CFLAGS="-I$(CURDIR)/../../../../include -I$(CURDIR)/../../../../tests/include $(SCONS_CFLAGS)" $(SCONS_CONFIGS) KBUILD_EXTRA_SYMBOLS="$(EXTRA_SYMBOLS)" modules 36 37clean: 38 $(MAKE) -C $(KDIR) M=$(CURDIR) clean 39