openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

Makefile.linux-x86-generic-common-2_6 (903B)


      1 # 
      2 # This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      3 # 
      4 # Copyright 2007-2019 Broadcom Inc. All rights reserved.
      5 
      6 # Default kernel source directory
      7 ifeq (,$(KERNDIR))
      8 KERNDIR := /lib/modules/$(shell uname -r)/build
      9 export KERNDIR
     10 endif
     11 
     12 # Default architecture
     13 ifeq (,$(ARCH))
     14 ARCH = $(shell uname -p)
     15 ifneq (x86_64,$(ARCH))
     16 ARCH = i386
     17 endif
     18 endif
     19 
     20 # Noisy kernel build
     21 KBUILD_VERBOSE = 1
     22 
     23 export ARCH KBUILD_VERBOSE KERNDIR
     24 
     25 # Default Linux include directory
     26 ifeq (,$(LINUX_INCLUDE))
     27 LINUX_INCLUDE := $(KERNDIR)/include
     28 endif
     29 
     30 # autoconf.h was moved in later kernels
     31 AUTOCONF = $(KERNDIR)/include/generated/autoconf.h
     32 ifeq (,$(shell ls $(AUTOCONF) 2>/dev/null))
     33 AUTOCONF = $(KERNDIR)/include/linux/autoconf.h
     34 endif
     35 
     36 # gcc system include path
     37 SYSINC = $(shell gcc -print-search-dirs | grep install | cut -c 10-)include