Zhimin | 2fbf700 | 2020-05-29 06:01:04 +0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
Luis Farias | 892daba | 2022-06-22 13:59:47 -0700 | [diff] [blame] | 3 | export DIR_ROOT=$HOME |
Zhimin | 2fbf700 | 2020-05-29 06:01:04 +0800 | [diff] [blame] | 4 | #set the L1 binary root DIR |
| 5 | export DIR_ROOT_L1_BIN=$DIR_ROOT/FlexRAN |
| 6 | #set the phy root DIR |
| 7 | export DIR_ROOT_PHY=$DIR_ROOT/phy |
Zhimin | 2fbf700 | 2020-05-29 06:01:04 +0800 | [diff] [blame] | 8 | #set the DPDK root DIR |
Luis Farias | 892daba | 2022-06-22 13:59:47 -0700 | [diff] [blame] | 9 | export DIR_ROOT_DPDK=/$DIR_ROOT/dpdk |
Zhimin | 2fbf700 | 2020-05-29 06:01:04 +0800 | [diff] [blame] | 10 | #set the GTEST root DIR |
Luis Farias | 70d9d92 | 2020-08-11 16:05:37 -0700 | [diff] [blame] | 11 | #export DIR_ROOT_GTEST=/home/gtest/gtest-1.7.0 |
Zhimin | 2fbf700 | 2020-05-29 06:01:04 +0800 | [diff] [blame] | 12 | |
| 13 | export DIR_WIRELESS_TEST_5G=$DIR_ROOT_L1_BIN/testcase |
| 14 | export DIR_WIRELESS_SDK=$DIR_ROOT_L1_BIN/sdk/build-avx512-icc |
| 15 | export DIR_WIRELESS_TABLE_5G=$DIR_ROOT_L1_BIN/l1/bin/nr5g/gnb/l1/table |
| 16 | #source /opt/intel/system_studio_2019/bin/iccvars.sh intel64 -platform linux |
| 17 | export XRAN_DIR=$DIR_ROOT_PHY/fhi_lib |
Luis Farias | 70d9d92 | 2020-08-11 16:05:37 -0700 | [diff] [blame] | 18 | export XRAN_LIB_SO=true |
Zhimin | 2fbf700 | 2020-05-29 06:01:04 +0800 | [diff] [blame] | 19 | export RTE_TARGET=x86_64-native-linuxapp-icc |
Luis Farias | 892daba | 2022-06-22 13:59:47 -0700 | [diff] [blame] | 20 | export RTE_SDK=$DIR_ROOT_DPDK |
| 21 | export DESTDIR=$DIR_ROOT_DPDK |
Zhimin | 2fbf700 | 2020-05-29 06:01:04 +0800 | [diff] [blame] | 22 | |
Luis Farias | 892daba | 2022-06-22 13:59:47 -0700 | [diff] [blame] | 23 | #Uncomment to run tests - it's commented to make builds faster. |
Zhimin | 2fbf700 | 2020-05-29 06:01:04 +0800 | [diff] [blame] | 24 | #export GTEST_ROOT=$DIR_ROOT_GTEST |
| 25 | |
| 26 | export ORAN_5G_FAPI=true |
| 27 | export DIR_WIRELESS_WLS=$DIR_ROOT_PHY/wls_lib |
| 28 | export DEBUG_MODE=true |
Luis Farias | 70d9d92 | 2020-08-11 16:05:37 -0700 | [diff] [blame] | 29 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DIR_WIRELESS_WLS:$XRAN_DIR/lib/build |
Zhimin | 2fbf700 | 2020-05-29 06:01:04 +0800 | [diff] [blame] | 30 | export DIR_WIRELESS=$DIR_ROOT_L1_BIN/l1 |
| 31 | export DIR_WIRELESS_ORAN_5G_FAPI=$DIR_ROOT_PHY/fapi_5g |
Luis Farias | 70d9d92 | 2020-08-11 16:05:37 -0700 | [diff] [blame] | 32 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DIR_ROOT_L1_BIN/libs/cpa/bin |
Zhimin | 2fbf700 | 2020-05-29 06:01:04 +0800 | [diff] [blame] | 33 | |