diff --git a/build.sh b/build.sh index 82808db..d39f3d5 100755 --- a/build.sh +++ b/build.sh @@ -43,9 +43,8 @@ if [ -d ${BUILD_DIR} ]; then fi if [[ "${fronthaul_option}" == "jesd" ]]; then - cd ${RFIC_DIR}/ - make clean - make lib CROSS_CC=aarch64-linux-gnu- + chmod +x build_jesd.sh + source ./build_jesd.sh cp ${RFIC_DIR}/librfic.a ${DIR_ROOT}/lib fi diff --git a/build_jesd.sh b/build_jesd.sh new file mode 100644 index 0000000..4a0b09c --- /dev/null +++ b/build_jesd.sh @@ -0,0 +1,15 @@ +set -e + +git submodule init +git submodule update + +pushd driver/rfic +git checkout DEV +git pull +#git checkout commitid +git submodule init +git submodule update + +make clean +make lib +popd \ No newline at end of file