Commit 80fb09ba authored by Reem Bahsoun's avatar Reem Bahsoun

Build BladeRF strictly from source.

To avoid version mismatch between built Docker image and BladeRF FW.
parent 46b76706
...@@ -338,7 +338,7 @@ install_bladerf_driver_from_source(){ ...@@ -338,7 +338,7 @@ install_bladerf_driver_from_source(){
rm -rf /tmp/bladeRF rm -rf /tmp/bladeRF
git clone https://github.com/Nuand/bladeRF.git git clone https://github.com/Nuand/bladeRF.git
cd bladeRF cd bladeRF
git checkout tags/2016.06 git checkout tags/2025.10
mkdir -p build mkdir -p build
cd build cd build
$CMAKE ../ $CMAKE ../
...@@ -350,14 +350,12 @@ install_bladerf_driver_from_source(){ ...@@ -350,14 +350,12 @@ install_bladerf_driver_from_source(){
check_install_bladerf_driver(){ check_install_bladerf_driver(){
if [[ "$OS_BASEDISTRO" == "debian" ]]; then if [[ "$OS_BASEDISTRO" == "debian" ]]; then
$SUDO apt-get install -y bladerf libbladerf-dev $SUDO apt-get update
$SUDO apt-get install -y bladerf-firmware-fx3 $SUDO apt-get install -y libcurl4-openssl-dev
$SUDO apt-get install -y bladerf-fpga-hostedx40 elif [[ "$OS_BASEDISTRO" == "fedora" ]]; then
elif [[ "$OS_BASEDISTRO" == "fedora" ]]; then $SUDO dnf -y install libcurl-devel
install_bladerf_driver_from_source fi
else install_bladerf_driver_from_source
echo_error "BladeRF Installer for OAI does not support automatic build. Install BladeRF compiling sources manually from BladeRF website"
fi
} }
check_install_lmssdr_driver(){ check_install_lmssdr_driver(){
...@@ -371,8 +369,6 @@ check_install_lmssdr_driver(){ ...@@ -371,8 +369,6 @@ check_install_lmssdr_driver(){
echo_info "https://wiki.myriadrf.org/Lime_Suite" echo_info "https://wiki.myriadrf.org/Lime_Suite"
echo_fatal "Cannot compile lmssdr device" echo_fatal "Cannot compile lmssdr device"
fi fi
} }
install_soapy_from_source(){ install_soapy_from_source(){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment