Makefile (1524B)
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 # MIPS_TOOLS_DIR - path to build tools (if not in PATH already) 16 # MIPS_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=2_6 41 platform=raptor-$(kernel_version) 42 43 # Select the build environment 44 #BUILD_PLATFORM=ELDK 45 #BUILD_PLATFORM=WR_LINUX 46 47 #Select the LINUX KERNEL VERSION 48 #KERN_VER = 2.6.21.7 49 50 51 # Select the ELDK version 52 #ELDK_VERSION=4.1 53 54 # Windriver linux version 55 #WRS_LINUX_VERSION=1.4 56 #WRS_LINUX_VERSION=2.0 57 58 export KERN_VER 59 export ELDK_VERSION 60 export BUILD_PLATFORM 61 export WRS_LINUX_VERSION 62 63 LINUX_MAKE_USER=1 64 include ${SDK}/make/Make.linux 65