1#!/bin/bash 2xilinx_sdk_dir=$1 3adi_lnx_dir=$2\ 4 5if [ "$#" -ne 2 ]; then 6 echo "You must enter exactly 2 command line arguments" 7 echo "First argument is the path, second argument is the path to adi linux repository, please don't add slash at the end of the path" 8 echo "Eg, ./make_all.sh /opt/Xilinx/SDK/2017.4 /home/gitfolder/linux" 9 exit 1 10fi 11 12# check if user entered the right path to SDK 13if [ -d "$xilinx_sdk_dir" ]; then 14 echo " setup sdk path ${xilinx_sdk_dir}" 15 tmp=/settings64.sh 16 sdk_setting="$xilinx_sdk_dir$tmp" 17 source ${sdk_setting} 18else 19 echo "Error: sdk: ${xilinx_sdk_dir} not found. Can not continue." 20 exit 1 21fi 22 23# check if user entered the right path to analog device linux 24if [ -d "$adi_lnx_dir" ]; then 25 echo " setup linux kernel path ${adi_lnx_dir}" 26else 27 echo "Error: path to adi linux: ${adi_lnx_dir} not found. Can not continue." 28 exit 1 29fi 30 31 32 33#source ~/Xilinx/SDK/2017.4/settings64.sh 34#set -x 35make KDIR=$adi_lnx_dir 36cd openofdm_tx 37make KDIR=$adi_lnx_dir 38cd ../openofdm_rx 39make KDIR=$adi_lnx_dir 40cd ../tx_intf 41make KDIR=$adi_lnx_dir 42cd ../rx_intf 43make KDIR=$adi_lnx_dir 44cd ../xpu 45make KDIR=$adi_lnx_dir 46cd ../ad9361 47make KDIR=$adi_lnx_dir 48cd ../xilinx_dma 49./make_xilinx_dma.sh $adi_lnx_dir $sdk_setting 50cd .. 51 52 53