blob: 29bcbcf9576014e6e5df272994724a7b99ee7e48 [file] [log] [blame]
Kim Kempfe109db72017-10-05 13:12:54 -07001#
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16#
17# Run from OpenNetworkLinux top directory INSIDE of onlbuilder docker workspace
18#
19#cd /aux/OpenNetworkLinux
20set -e
21
22# override shell variables to match custom local build environment
23: ${ONL_TOPDIR:=`pwd`}
24: ${MAKE_JOBS:=1}
25: ${BALSRC_RELEASE:=bal_src_release}
26: ${SWISDK_TARNAME:=sdk-all-6.5.7}
27
28echo ONL_TOPDIR=${ONL_TOPDIR}
29echo MAKE_JOBS=${MAKE_JOBS}
30echo BALSRC_RELEASE=${BALSRC_RELEASE}
31
32cd ${BALSRC_RELEASE}/bal_release
33make BOARD=asfvolt16 maple_sdk_dir
34make BOARD=asfvolt16 maple_sdk
35make BOARD=asfvolt16 switch_sdk_dir
36make BOARD=asfvolt16 switch_sdk
37
38pushd 3rdparty/bcm-sdk/build-asfvolt16/${SWISDK_TARNAME}/systems/linux/user/x86-generic_64-2_6
39KERNDIR=$ONL_TOPDIR/packages/base/amd64/kernels/kernel-3.7-x86-64-all/builds/linux-3.7.10 BOARD=asfvolt16 ARCH=x86_64 SDKBUILD=build_bcm_user make
40popd
41
42make BOARD=asfvolt16 bal
43make BOARD=asfvolt16 release_board
44
45ls -l 3rdparty/maple/cur/asfvolt16/release
46
47date
48echo "ASFvOLT16 build finished!"