blob: d93ecf266de6216235ba8f938dbf69d50488fc25 [file] [log] [blame]
Shad Ansari2f7f9be2017-06-07 13:34:53 -07001This file contains instructions of how to extract BAL source release package and compile it.
2It is assumed that switch (Qumran) SDK is obtained from its relevant repository and it is not part of BAL source release package.
3
4Here are the steps needed to extract and compile the source code:
5
61. Create a directory into which you want to extract the package. In the following steps we use /tmp/bal_src_release as an example.
7
8 mkdir -p /tmp/bal_src_release
9
102. Unzip (extract) the combined Maple SDK and BAL package into the location you selected:
11
12 unzip <path_to_release_zip>/SW-BCM68620_<revision>.zip -d /tmp/bal_src_release
13
143. Obtain switch (Qumran) SDK from its repository.
15
164. Copy switch (Qumran) SDK to /tmp/bal_src_release/bal_release/3rdparty/bcm-sdk.
17
18 cp /<path_to_switch_sdk>/sdk-all-<revision>.tar.gz /tmp/bal_src_release/bal_release/3rdparty/bcm-sdk
19
205. Change directory to the selected location.
21
22 cd /tmp/bal_src_release/bal_release
23
246. Compile Maple SDK
25
26 make maple_sdk_dir
27 make maple_sdk
28
297. Compile switch (Qumran) SDK
30
31 make ing_sdk_dir
32 make ing_sdk
33
348. Compile BAL:
35
36 make core
37
389. When the build ends successfully, bal_core executable (build/core/src/core/main/bal_core) should be created.
39