1*4882a593Smuzhiyun# 2*4882a593Smuzhiyun# (C) COPYRIGHT 2014-2017 ARM Limited. All rights reserved. 3*4882a593Smuzhiyun# 4*4882a593Smuzhiyun# This program is free software and is provided to you under the terms of the 5*4882a593Smuzhiyun# GNU General Public License version 2 as published by the Free Software 6*4882a593Smuzhiyun# Foundation, and any use by you of this program is subject to the terms 7*4882a593Smuzhiyun# of such GNU licence. 8*4882a593Smuzhiyun# 9*4882a593Smuzhiyun# A copy of the licence is included with the program, and can also be obtained 10*4882a593Smuzhiyun# from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 11*4882a593Smuzhiyun# Boston, MA 02110-1301, USA. 12*4882a593Smuzhiyun# 13*4882a593Smuzhiyun# 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun# linux build system bootstrap for out-of-tree module 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun# default to building for the host 19*4882a593SmuzhiyunARCH ?= $(shell uname -m) 20*4882a593Smuzhiyun 21*4882a593Smuzhiyunifeq ($(KDIR),) 22*4882a593Smuzhiyun$(error Must specify KDIR to point to the kernel to target)) 23*4882a593Smuzhiyunendif 24*4882a593Smuzhiyun 25*4882a593Smuzhiyunall: 26*4882a593Smuzhiyun $(MAKE) ARCH=$(ARCH) -C $(KDIR) M=$(CURDIR) $(SCONS_CONFIGS) EXTRA_CFLAGS=-I$(CURDIR)/../include modules 27*4882a593Smuzhiyun 28*4882a593Smuzhiyunclean: 29*4882a593Smuzhiyun $(MAKE) ARCH=$(ARCH) -C $(KDIR) M=$(CURDIR) clean 30