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 (999B)


      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 
     13 SDK :=$(shell if [ -n "$$SDK" ] ; then\
     14 	echo $$SDK;\
     15 	else\
     16 	cd $(dir $(lastword $(MAKEFILE_LIST))); while /usr/bin/test ! -e RELEASE ; do \
     17 	dir=`cd ../;pwd`;			\
     18 	if [ "$$dir" = "/" ] ; then		\
     19 	   echo Cannot find SDK in $(lastword $(MAKEFILE_LIST)) 1>&2;		\
     20 	   exit 1;				\
     21 	fi ;					\
     22 	cd $$dir;				\
     23 	done ;					\
     24 	pwd;					\
     25 	fi)
     26 
     27 ifeq ($(SDK),)
     28 $(error Please run this in a tree)
     29 endif
     30 
     31 export SDK
     32 
     33 override kernel_version=4_4
     34 platform=iproc-$(kernel_version)
     35 
     36 IPROC_BUILD=1
     37 export IPROC_BUILD
     38 export BUILD_PLATFORM
     39 export ARM_LINUX_VERSION
     40 
     41 LINUX_MAKE_USER=1
     42 export ADD_TO_CFLAGS
     43 export BR_NO_CCACHE
     44 
     45 include ${SDK}/make/Make.linux