13d0407baSopenharmony_ci# 23d0407baSopenharmony_ci# (C) COPYRIGHT 2010-2016, 2017 ARM Limited. All rights reserved. 33d0407baSopenharmony_ci# 43d0407baSopenharmony_ci# This program is free software and is provided to you under the terms of the 53d0407baSopenharmony_ci# GNU General Public License version 2 as published by the Free Software 63d0407baSopenharmony_ci# Foundation, and any use by you of this program is subject to the terms 73d0407baSopenharmony_ci# of such GNU licence. 83d0407baSopenharmony_ci# 93d0407baSopenharmony_ci# A copy of the licence is included with the program, and can also be obtained 103d0407baSopenharmony_ci# from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 113d0407baSopenharmony_ci# Boston, MA 02110-1301, USA. 123d0407baSopenharmony_ci# 133d0407baSopenharmony_ci# 143d0407baSopenharmony_ci 153d0407baSopenharmony_ci 163d0407baSopenharmony_ci 173d0407baSopenharmony_ciKDIR ?= /lib/modules/$(shell uname -r)/build 183d0407baSopenharmony_ci 193d0407baSopenharmony_ciBUSLOG_PATH_RELATIVE = $(CURDIR)/../../../.. 203d0407baSopenharmony_ciUMP_PATH_RELATIVE = $(CURDIR)/../../../base/ump 213d0407baSopenharmony_ciKBASE_PATH_RELATIVE = $(CURDIR) 223d0407baSopenharmony_ciKDS_PATH_RELATIVE = $(CURDIR)/../../../.. 233d0407baSopenharmony_ciEXTRA_SYMBOLS = $(UMP_PATH_RELATIVE)/src/Module.symvers 243d0407baSopenharmony_ci 253d0407baSopenharmony_ciifeq ($(MALI_UNIT_TEST), 1) 263d0407baSopenharmony_ci EXTRA_SYMBOLS += $(KBASE_PATH_RELATIVE)/tests/internal/src/kernel_assert_module/linux/Module.symvers 273d0407baSopenharmony_ciendif 283d0407baSopenharmony_ci 293d0407baSopenharmony_ciifeq ($(MALI_BUS_LOG), 1) 303d0407baSopenharmony_ci#Add bus logger symbols 313d0407baSopenharmony_ciEXTRA_SYMBOLS += $(BUSLOG_PATH_RELATIVE)/drivers/base/bus_logger/Module.symvers 323d0407baSopenharmony_ciendif 333d0407baSopenharmony_ci 343d0407baSopenharmony_ci# GPL driver supports KDS 353d0407baSopenharmony_ciEXTRA_SYMBOLS += $(KDS_PATH_RELATIVE)/drivers/base/kds/Module.symvers 363d0407baSopenharmony_ci 373d0407baSopenharmony_ci# we get the symbols from modules using KBUILD_EXTRA_SYMBOLS to prevent warnings about unknown functions 383d0407baSopenharmony_ciall: 393d0407baSopenharmony_ci $(MAKE) -C $(KDIR) M=$(CURDIR) EXTRA_CFLAGS="-I$(CURDIR)/../../../../include -I$(CURDIR)/../../../../tests/include $(SCONS_CFLAGS)" $(SCONS_CONFIGS) KBUILD_EXTRA_SYMBOLS="$(EXTRA_SYMBOLS)" modules 403d0407baSopenharmony_ci 413d0407baSopenharmony_ciclean: 423d0407baSopenharmony_ci $(MAKE) -C $(KDIR) M=$(CURDIR) clean 43