Makefile.linux-x86-generic-common-2_6 (1461B)
1 # 2 # Copyright 2017 Broadcom 3 # 4 # This program is free software; you can redistribute it and/or modify 5 # it under the terms of the GNU General Public License, version 2, as 6 # published by the Free Software Foundation (the "GPL"). 7 # 8 # This program is distributed in the hope that it will be useful, but 9 # WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 # General Public License version 2 (GPLv2) for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # version 2 (GPLv2) along with this source code. 15 # 16 # $Id: Makefile.linux-x86-generic-common-2_6,v 1.2 Broadcom SDK $ 17 # $Copyright: (c) 2008 Broadcom Corp. 18 # All Rights Reserved.$ 19 20 # Default kernel source directory 21 ifeq (,$(KERNDIR)) 22 KERNDIR := /lib/modules/$(shell uname -r)/build 23 export KERNDIR 24 endif 25 26 # Default architecture 27 ifeq (,$(ARCH)) 28 ARCH = $(shell uname -p) 29 ifneq (x86_64,$(ARCH)) 30 ARCH = i386 31 endif 32 endif 33 34 # Noisy kernel build 35 KBUILD_VERBOSE = 1 36 37 export ARCH KBUILD_VERBOSE KERNDIR 38 39 # Default Linux include directory 40 ifeq (,$(LINUX_INCLUDE)) 41 LINUX_INCLUDE := $(KERNDIR)/include 42 endif 43 44 # autoconf.h was moved in later kernels 45 AUTOCONF = $(KERNDIR)/include/generated/autoconf.h 46 ifeq (,$(shell ls $(AUTOCONF) 2>/dev/null)) 47 AUTOCONF = $(KERNDIR)/include/linux/autoconf.h 48 endif 49 50 # gcc system include path 51 SYSINC = $(shell gcc -print-search-dirs | grep install | cut -c 10-)include