diff --git a/targets/build_oai.bash b/targets/build_oai.bash index 450b412be398168d5d72f4b9b17284d381ba791f..3cac55dc26fc358dc8ec569cd32e6006407fd1e8 100755 --- a/targets/build_oai.bash +++ b/targets/build_oai.bash @@ -675,66 +675,6 @@ build_hss(){ -############################################ -# set the build -############################################ - -if [ x$BUILD_LTE == x ]; then - : ${DIALOG_OK=0} - : ${DIALOG_CANCEL=1} - : ${DIALOG_HELP=2} - : ${DIALOG_EXTRA=3} - : ${DIALOG_ITEM_HELP=4} - : ${DIALOG_ESC=255} - - : ${SIG_NONE=0} - : ${SIG_HUP=1} - : ${SIG_INT=2} - : ${SIG_QUIT=3} - : ${SIG_KILL=9} - : ${SIG_TERM=15} - input=`tempfile 2>/dev/null` || input=/tmp/input$$ - output=`tempfile 2>/dev/null` || output=/tmp/test$$ - trap "rm -f $input $output" $SIG_NONE $SIG_HUP $SIG_INT $SIG_TRAP $SIG_TERM - cat >$input <<-EOF -ENB: evolved Node B target -EPC: Experimental Evolved Packet Core target -HSS: Experimental Home Subscriber Server target -NONE: Do not build/run anything -EOF - cat $input | sed -e 's/^/"/' -e 's/:/" "/g' -e 's/$/"/' >$output - cat $output >$input - - BUILD_LTE="NONE" - dialog --clear --title "BUILD TARGET SELECTION" \ - --menu "You did not choose a target \n\ - to build (optionaly to run) \n\ - You can use the UP/DOWN arrow keys, \n\ - the first letter of the choice as a hot key,\n\ - or the number keys 1-4 to choose an option.\n\ - \n\n\ - Choose the target:" 20 69 4 \ - --file $input 2> $output - retval=$? - tempfile=$output - case $retval in - $DIALOG_OK) - BUILD_LTE=`cat $tempfile` - ;; - $DIALOG_CANCEL) - ;; - $DIALOG_HELP) - ;; - $DIALOG_EXTRA) - ;; - $DIALOG_ITEM_HELP) - ;; - $DIALOG_ESC) - ;; - *) - ;; - esac -fi echo_info "3. set the top-level build target" case "$BUILD_LTE" in