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


      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 # -*- Makefile -*-
     17 # $Id: Makefile,v 1.7 Broadcom SDK $
     18 # $Copyright: (c) 2005 Broadcom Corp.
     19 # All Rights Reserved.$
     20 
     21 #
     22 # This make job requires the following environment variables to be set:
     23 #
     24 # SDK                - path to StrataXGS SDK root directory
     25 #
     26 
     27 SDK :=$(shell if [ -n "$$SDK" ] ; then\
     28 	echo $$SDK;\
     29 	else\
     30 	cd $(dir $(lastword $(MAKEFILE_LIST))); while /usr/bin/test ! -e RELEASE ; do \
     31 	dir=`cd ../;pwd`;			\
     32 	if [ "$$dir" = "/" ] ; then		\
     33 	   echo Cannot find SDK in $(lastword $(MAKEFILE_LIST)) 1>&2;		\
     34 	   exit 1;				\
     35 	fi ;					\
     36 	cd $$dir;				\
     37 	done ;					\
     38 	pwd;					\
     39 	fi)
     40 
     41 ifeq ($(SDK),)
     42 $(error Please run this in a tree)
     43 endif
     44 
     45 export SDK
     46 
     47 override kernel_version=4_14
     48 platform=iproc
     49 
     50 IPROC_BUILD=1
     51 export IPROC_BUILD
     52 export BUILD_PLATFORM
     53 export ARM_LINUX_VERSION
     54 
     55 LINUX_MAKE_USER=1
     56 export ADD_TO_CFLAGS
     57 export BR_NO_CCACHE
     58 
     59 include ${SDK}/make/Make.linux