blob: 08bf6dd1eb11517534ca1cb6f3c7526200d53db3 [file] [log] [blame]
Shad Ansari2f7f9be2017-06-07 13:34:53 -07001This file contains instructions of how to extract BAL/SDN-PAL source release packages and compile them.
2It is assumed that switch (Qumran) SDK is obtained from its relevant repository and it is not part of SDN-PAL 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. Extract SDN-PAL:
15
16 tar --strip-components=1 -C /tmp/bal_src_release/bal_release -xvzf <path_to_sdn_pal_tarball>/sdn_pal.<suffix>.tar.gz
17
184. In case OMCI is also required, you should extract OMCI:
19
20 tar --strip-components=1 -C /tmp/bal_src_release/bal_release -xvzf <path_to_omci_tarball>/omci.<suffix>.tar.gz
21
225. Obtain switch (Qumran) SDK from its repository.
23
246. Copy switch (Qumran) SDK to /tmp/bal_src_release/bal_release/3rdparty/bcm-sdk.
25
26 cp /<path_to_switch_sdk>/sdk-all-<revision>.tar.gz /tmp/bal_src_release/bal_release/3rdparty/bcm-sdk
27
287. Change directory to the selected location.
29
30 cd /tmp/bal_src_release/bal_release
31
328. Compile Maple SDK
33
34 make maple_sdk_dir
35 make maple_sdk
36
379. Compile switch (Qumran) SDK
38
39 make ing_sdk_dir
40 make ing_sdk
41
4210. Compile SDN-PAL:
43
44 make sdn_agent
45
4611. When the build ends successfully, bal_core executable (build/core/src/core/main/bal_core) and SDN agent executable (build/agent/bcm_sdn_agent) should be created.
47