Makefile (1311B)
1 # -*- Makefile -*- 2 # 3 # This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 4 # 5 # Copyright 2007-2019 Broadcom Inc. All rights reserved. 6 7 # 8 # This make job requires the following environment variables to be set: 9 # 10 # SDK - path to StrataXGS SDK root directory 11 # 12 # Optionally the following environment variables can be set to 13 # override the default build server configuration: 14 # 15 # TOOLS_DIR - path to build tools (if not in PATH already) 16 # CROSS_COMPILE - cross compile tools prefix 17 # LINUX_INCLUDE - path to Linux kernel include directory 18 # 19 20 SDK :=$(shell if [ -n "$$SDK" ] ; then\ 21 echo $$SDK;\ 22 else\ 23 cd $(dir $(lastword $(MAKEFILE_LIST))); while /usr/bin/test ! -e RELEASE ; do \ 24 dir=`cd ../;pwd`; \ 25 if [ "$$dir" = "/" ] ; then \ 26 echo Cannot find SDK in $(lastword $(MAKEFILE_LIST)) 1>&2; \ 27 exit 1; \ 28 fi ; \ 29 cd $$dir; \ 30 done ; \ 31 pwd; \ 32 fi) 33 34 ifeq ($(SDK),) 35 $(error Please run this in a tree) 36 endif 37 38 export SDK 39 40 override kernel_version=4_4 41 platform=gts-$(kernel_version) 42 LINUX_MAKE_USER=1 43 export LINKER_RELAX = 1 44 45 46 include ${SDK}/make/Make.linux