add option in build_oai script to build all optional libraries
This commit is contained in:
+14
-9
@@ -150,7 +150,7 @@ Options
|
|||||||
--build-eclipse
|
--build-eclipse
|
||||||
Build eclipse project files. Paths are auto corrected by fixprj.sh
|
Build eclipse project files. Paths are auto corrected by fixprj.sh
|
||||||
--build-lib <libraries>
|
--build-lib <libraries>
|
||||||
Build optional shared library, <libraries> can be one or several of $OPTIONAL_LIBRARIES
|
Build optional shared library, <libraries> can be one or several of $OPTIONAL_LIBRARIES or \"all\"
|
||||||
--usrp-recplay
|
--usrp-recplay
|
||||||
Build for I/Q record-playback modes
|
Build for I/Q record-playback modes
|
||||||
|
|
||||||
@@ -324,16 +324,21 @@ function main() {
|
|||||||
shift 1;;
|
shift 1;;
|
||||||
--build-lib)
|
--build-lib)
|
||||||
BUILD_OPTLIB=""
|
BUILD_OPTLIB=""
|
||||||
for alib in $2 ; do
|
if [ "$2" == "all" ] ; then
|
||||||
|
BUILD_OPTLIB="$OPTIONAL_LIBRARIES"
|
||||||
|
echo_info "Enabling build of all optional shared libraries ($OPTIONAL_LIBRARIES)"
|
||||||
|
else
|
||||||
|
for alib in $2 ; do
|
||||||
for oklib in $OPTIONAL_LIBRARIES ; do
|
for oklib in $OPTIONAL_LIBRARIES ; do
|
||||||
if [ "$alib" = "$oklib" ] ; then
|
if [ "$alib" = "$oklib" ] ; then
|
||||||
BUILD_OPTLIB="$BUILD_OPTLIB $alib"
|
BUILD_OPTLIB="$BUILD_OPTLIB $alib"
|
||||||
echo_info "Enabling build of lib${alib}.so"
|
echo_info "Enabling build of lib${alib}.so"
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
done
|
done
|
||||||
done
|
if [ "${BUILD_OPTLIB## }" != "$2" ] ; then
|
||||||
if [ "${BUILD_OPTLIB## }" != "$2" ] ; then
|
echo_fatal "Unknown optional library in $2, valid libraries are $OPTIONAL_LIBRARIES"
|
||||||
echo_fatal "Unknown optional library in $2, valid libraries are $OPTIONAL_LIBRARIES"
|
fi
|
||||||
fi
|
fi
|
||||||
shift 2;;
|
shift 2;;
|
||||||
--usrp-recplay)
|
--usrp-recplay)
|
||||||
|
|||||||
@@ -323,12 +323,10 @@ static void get_options(void) {
|
|||||||
int CC_id;
|
int CC_id;
|
||||||
int tddflag;
|
int tddflag;
|
||||||
char *loopfile=NULL;
|
char *loopfile=NULL;
|
||||||
|
|
||||||
int dumpframe=0;
|
int dumpframe=0;
|
||||||
int timingadv;
|
int timingadv;
|
||||||
uint8_t nfapi_mode;
|
uint8_t nfapi_mode;
|
||||||
int simL1flag ;
|
int simL1flag ;
|
||||||
|
|
||||||
set_default_frame_parms(frame_parms);
|
set_default_frame_parms(frame_parms);
|
||||||
CONFIG_SETRTFLAG(CONFIG_NOEXITONHELP);
|
CONFIG_SETRTFLAG(CONFIG_NOEXITONHELP);
|
||||||
/* unknown parameters on command line will be checked in main
|
/* unknown parameters on command line will be checked in main
|
||||||
|
|||||||
Reference in New Issue
Block a user