Kim Kempf | e109db7 | 2017-10-05 13:12:54 -0700 | [diff] [blame] | 1 | # |
| 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 |
| 20 | set -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 | |
| 28 | echo ONL_TOPDIR=${ONL_TOPDIR} |
| 29 | echo MAKE_JOBS=${MAKE_JOBS} |
| 30 | echo BALSRC_RELEASE=${BALSRC_RELEASE} |
| 31 | |
| 32 | cd ${BALSRC_RELEASE}/bal_release |
| 33 | make BOARD=asfvolt16 maple_sdk_dir |
| 34 | make BOARD=asfvolt16 maple_sdk |
| 35 | make BOARD=asfvolt16 switch_sdk_dir |
| 36 | make BOARD=asfvolt16 switch_sdk |
| 37 | |
| 38 | pushd 3rdparty/bcm-sdk/build-asfvolt16/${SWISDK_TARNAME}/systems/linux/user/x86-generic_64-2_6 |
| 39 | KERNDIR=$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 |
| 40 | popd |
| 41 | |
| 42 | make BOARD=asfvolt16 bal |
| 43 | make BOARD=asfvolt16 release_board |
| 44 | |
| 45 | ls -l 3rdparty/maple/cur/asfvolt16/release |
| 46 | |
| 47 | date |
| 48 | echo "ASFvOLT16 build finished!" |