Add GIT_TREE path
[wilink8-wlan/build-utilites.git] / build_wl18xx.sh
1 export PATH__ROOT=`pwd`    
2 . configuration.sh    
3 . setup-env
4 # Pretty colors
5 GREEN="\033[01;32m"
6 YELLOW="\033[01;33m"
7 NORMAL="\033[00m"
8 BLUE="\033[34m"
9 RED="\033[31m"
10 PURPLE="\033[35m"
11 CYAN="\033[36m"
12 UNDERLINE="\033[02m"
14 function print_highlight()
15 {      
16     echo -e "   ${YELLOW}***** $1 ***** ${NORMAL} "
17 }
19 function usage ()
20 {
21         echo ""
22     echo "This script compiles one/all of the following utilities: kernel, libnl, openssl, hostapd, wpa_supplicant,wl18xx_modules,firmware,crda,calibrator"
23         echo "by calling specific utility name and action."
24     echo ""
25         echo " Usage: ./wl18xx_build.sh init         <head|TAG>  [ Update w/o build        ] "
26         echo "                          update       <head|TAG>  [ Update & build          ] "
27         echo "                          rebuild                  [ Build w/o update        ] "
28     echo "                          clean                    [ Clean, Update & build   ] "
29     echo "                              "
30     echo " Building a specific module usage "
31     echo "       ./build.sh    hostapd "
32     echo "                     wpa_supplicant "
33     echo "                     modules(driver) "
34     echo "                     firmware "
35     echo "                     scripts "
36     echo "                     calibrator "
37     echo "                     wlconf "
38     echo "                     uimage "
39     echo "                     openssl "
40     echo "                     libnl "
41     echo "                     crda "
43         exit 1
44 }
46 function assert_no_error()
47 {
48         if [ $? -ne 0 ]; then
49                 echo "****** ERROR $? $@*******"
50                 exit 1
51         fi
52     echo "****** $1 *******"
53 }
55 function repo_id()
56 {
57         i="0"
58         while [ $i -lt ${#repositories[@]} ]; do
59                 [ $1 == "${repositories[i]}" ] && echo $i
60                 i=$[$i + 3]
61         done
62 }
64 function repo_url()
65 {
66         echo "${repositories[`repo_id $1` + 1]}"
67 }
69 function repo_branch()
70 {
71         echo "${repositories[`repo_id $1` + 2]}"
72 }
74 function path()
75 {
76         i="0"
77         while [ $i -lt "${#paths[@]}" ]; do
78                 [ $1 == "${paths[i]}" ] && echo "${paths[i + 1]}"
79                 i=$[$i + 2]
80         done
81 }
83 function set_path()
84 {
85         i="0"    
86         while [ $i -lt "${#paths[@]}" ]; do
87                 [ $1 == "${paths[i]}" ] && paths[i+1]=$2    
88                 i=$[$i + 2]
89         done
90 }
92 function repo_path()
93 {
94         echo `path src`/$1
95 }
97 function cd_path()
98 {
99         cd `path $1`
102 function cd_repo()
104         cd `repo_path $1`
107 function cd_back()
109         cd - > /dev/null
112 #----------------------------------------------------------j
113 function setup_environment()
115     if [ ! -e setup-env ]
116     then
117         echo "No setup-env"
118         exit 1
119     fi
120     
121     #if a rootfs path is set - replace the default.
122     if [[ "$ROOTFS" != "DEFAULT" ]]
123     then            
124         echo " Changing ROOTFS path to $ROOTFS"
125         set_path filesystem $ROOTFS
126         [ ! -d $ROOTFS ] && echo "Error ROOTFS: $ROOTFS dir does not exist" && exit 1
127     fi   
128     echo "!!!!!!!!!!!!!   `path filesystem`  "
129     #if no toolchain path is set - download it.
130     if [[ "$TOOLCHAIN_PATH" == "DEFAULT" ]]
131     then            
132         echo " Setting TOOLCHAIN_PATH path to default"
133         export TOOLCHAIN_PATH=`path toolchain`/arm/bin
134         DEFAULT_TOOLCHAIN=1
135     fi   
137     #if no kernel path is set - download it.
138     if [[ "$KERNEL_PATH" == "DEFAULT" ]]
139     then            
140         echo " Setting KERNEL_PATH path to default"
141         export KERNEL_PATH=`repo_path kernel`
142         DEFAULT_KERNEL=1
143     else 
144         echo " Using user defined kernel"                        
145         [ ! -d $KERNEL_PATH ] && echo "Error KERNEL_PATH: $KERNEL_PATH dir does not exist" && exit 1
146     fi  
147     
148         export PROCESSORS_NUMBER=$(egrep '^processor' /proc/cpuinfo | wc -l)
149         export PKG_CONFIG_PATH=`path filesystem`/lib/pkgconfig
150         export INSTALL_PREFIX=`path filesystem`
151         export LIBNL_PATH=`repo_path libnl`     
152         export KLIB=${KERNEL_PATH}
153         export KLIB_BUILD=${KERNEL_PATH}
154         export GIT_TREE=`repo_path driver`
155         export PATH=$TOOLCHAIN_PATH:$PATH
156     
159 function setup_filesystem_skeleton()
161         mkdir -p `path filesystem`/usr/bin
162         mkdir -p `path filesystem`/etc
163         mkdir -p `path filesystem`/usr/lib/crda
164         mkdir -p `path filesystem`/lib/firmware/ti-connectivity
165         mkdir -p `path filesystem`/usr/share/wl18xx
166         mkdir -p `path filesystem`/usr/sbin/wlconf
167         mkdir -p `path filesystem`/usr/sbin/wlconf/official_inis
168         mkdir -p `path filesystem`/etc/wireless-regdb/pubkeys
171 function setup_directories()
173         i="0"
174         while [ $i -lt ${#paths[@]} ]; do
175                 mkdir -p ${paths[i + 1]}
176                 i=$[$i + 2]
177         done
178         setup_filesystem_skeleton
182 function setup_repositories()
184         i="0"
185         while [ $i -lt ${#repositories[@]} ]; do
186                 url=${repositories[$i + 1]}
187                 name=${repositories[$i]}
188         echo -e "${NORMAL}Cloning into: ${GREEN} $name ${NORMAL}"        
189         #Skip kernel clone if it was user defined 
190                 [ "$name" != "kernel" -o "$DEFAULT_KERNEL" ] && [ ! -d `repo_path $name` ] && git clone $url `repo_path $name`
191                 i=$[$i + 3]
192         done        
195 function setup_branches()
197         i="0"    
198         while [ $i -lt ${#repositories[@]} ]; do
199                 name=${repositories[$i]}
200                 url=${repositories[$i + 1]}
201         branch=${repositories[$i + 2]}   
202         checkout_type="branch"       
203         #for all the openlink repo. we use a tag if provided.        
204         [ "$name" == "kernel" ] && [ -z "$DEFAULT_KERNEL" ] && i=$[$i + 3] && continue
205         cd_repo $name    
206         echo -e "\n${NORMAL}Checking out branch ${GREEN}$branch  ${NORMAL}in repo ${GREEN}$name ${NORMAL} "
207                 git checkout $branch        
208         git fetch origin
209         git fetch origin --tags  
210         if [[ "$url" == *git.ti.com* ]]
211         then            
212            [[ -n $RESET ]] && echo -e "${PURPLE}Reset to latest in repo ${GREEN}$name ${NORMAL} branch  ${GREEN}$branch ${NORMAL}"  && git reset --hard origin/$branch
213            [[ -n $USE_TAG ]] && git reset --hard $USE_TAG  && echo -e "${NORMAL}Reset to tag ${GREEN}$USE_TAG   ${NORMAL}in repo ${GREEN}$name ${NORMAL} "            
214         fi        
215                 cd_back
216                 i=$[$i + 3]
217         done
220 function setup_toolchain()
222         if [ ! -f `path downloads`/arm-toolchain.tar.bz2 ]; then
223         echo "Setting toolchain"
224                 wget ${toolchain[0]} -O `path downloads`/arm-toolchain.tar.bz2
225                 tar -xjf `path downloads`/arm-toolchain.tar.bz2 -C `path toolchain`
226                 mv `path toolchain`/* `path toolchain`/arm
227         fi
230 function build_uimage()
232         cd_repo kernel
233         [ -z $NO_CONFIG ] && cp `path configuration`/kernel.config `repo_path kernel`/.config
234         [ -z $NO_CLEAN ] && make clean
235         [ -z $NO_CLEAN ] && assert_no_error
236         make -j${PROCESSORS_NUMBER} uImage
237         assert_no_error
238         #LOADADDR=0x80008000 make -j${PROCESSORS_NUMBER} uImage-dtb.am335x-evm
239         assert_no_error
240         cp `repo_path kernel`/arch/arm/boot/uImage `path tftp`/uImage
241         cd_back
244 function generate_compat()
246         cd_repo backports
247         python ./gentree.py --clean `repo_path driver` `path compat_wireless`
248         cd_back
251 function build_modules()
253     generate_compat
254         cd_repo compat_wireless
255         if [ -z $NO_CLEAN ]; then
256                 make clean
257         fi
258         make defconfig-wl18xx
259     make -j${PROCESSORS_NUMBER} 
260         assert_no_error
261         find . -name \*.ko -exec cp {} `path debugging`/ \;
262         find . -name \*.ko -exec ${CROSS_COMPILE}strip -g {} \;
263     
264         make -C ${KERNEL_PATH} M=`pwd` "INSTALL_MOD_PATH=`path filesystem`" modules_install
265         assert_no_error
266         #chmod -R 0777 ${PATH__FILESYSTEM}/lib/modules/
267         cd_back
270 function build_openssl()
272         cd_repo openssl
273         [ -z $NO_CONFIG ] && ./Configure s/compiler:gcc
274         [ -z $NO_CLEAN ] && make clean
275         [ -z $NO_CLEAN ] && assert_no_error
276         make
277         assert_no_error
278         make install_sw
279         assert_no_error
280         cd_back
283 function build_libnl()
285         cd_repo libnl
286         [ -z $NO_CONFIG ] && ./autogen.sh
287         [ -z $NO_CONFIG ] && ./configure --prefix=`path filesystem` --host=${ARCH} CC=${CROSS_COMPILE}gcc AR=${CROSS_COMPILE}ar
288         [ -z $NO_CLEAN ] && make clean
289         [ -z $NO_CLEAN ] && assert_no_error
290         make
291         assert_no_error
292         make install
293         assert_no_error
294         cd_back
297 function build_wpa_supplicant()
299         cd `repo_path hostap`/wpa_supplicant
300         [ -z $NO_CONFIG ] && cp android.config .config
301         CONFIG_LIBNL32=y DESTDIR=`path filesystem` make clean
302         assert_no_error
303         CONFIG_LIBNL32=y DESTDIR=`path filesystem` CFLAGS+="-I`path filesystem`/usr/local/ssl/include -I`repo_path libnl`/include" LIBS+="-L`path filesystem`/lib -L`path filesystem`/usr/local/ssl/lib -lssl -lcrypto -lm -ldl -lpthread" LIBS_p+="-L`path filesystem`/lib -L`path filesystem`/usr/local/ssl/lib -lssl -lcrypto -lm -ldl -lpthread" make -j${PROCESSORS_NUMBER} CC=${CROSS_COMPILE}gcc LD=${CROSS_COMPILE}ld AR=${CROSS_COMPILE}ar
304         assert_no_error
305         CONFIG_LIBNL32=y DESTDIR=`path filesystem` make install
306         assert_no_error
307         cd_back    
308     cp `repo_path scripts_download`/conf/*_supplicant.conf  `path filesystem`/etc/
311 function build_hostapd()
312 {              
313     cd `repo_path hostap`/hostapd
314         [ -z $NO_CONFIG ] && cp android.config .config
315         CONFIG_LIBNL32=y DESTDIR=`path filesystem` make clean
316         assert_no_error
317         CONFIG_LIBNL32=y DESTDIR=`path filesystem` CFLAGS+="-I`path filesystem`/usr/local/ssl/include -I`repo_path libnl`/include" LIBS+="-L`path filesystem`/lib -L`path filesystem`/usr/local/ssl/lib -lssl -lcrypto -lm -ldl -lpthread" LIBS_p+="-L`path filesystem`/lib -L`path filesystem`/usr/local/ssl/lib -lssl -lcrypto -lm -ldl -lpthread" make -j${PROCESSORS_NUMBER} CC=${CROSS_COMPILE}gcc LD=${CROSS_COMPILE}ld AR=${CROSS_COMPILE}ar
318         assert_no_error
319         CONFIG_LIBNL32=y DESTDIR=`path filesystem` make install
320         assert_no_error
321         cd_back
322     cp `repo_path scripts_download`/conf/hostapd.conf  `path filesystem`/etc/    
325 function build_crda()
326 {       
327         cp `repo_path wireless_regdb`/regulatory.bin `path filesystem`/usr/lib/crda/regulatory.bin
328         cp `repo_path wireless_regdb`/linville.key.pub.pem `path filesystem`/etc/wireless-regdb/pubkeys/
329     cd_repo crda
330         
331         [ -z $NO_CLEAN ] && DESTDIR=`path filesystem` make clean
332         [ -z $NO_CLEAN ] && assert_no_error
333         PKG_CONFIG_LIBDIR="`path filesystem`/lib/pkgconfig" PKG_CONFIG_PATH="`path filesystem`/usr/local/ssl/lib/pkgconfig" DESTDIR=`path filesystem` CFLAGS+="-I`path filesystem`/usr/local/ssl/include -I`path filesystem`/include -L`path filesystem`/usr/local/ssl/lib -L`path filesystem`/lib" LDLIBS+=-lpthread V=1 USE_OPENSSL=1 make -j${PROCESSORS_NUMBER} all_noverify CC=${CROSS_COMPILE}gcc LD=${CROSS_COMPILE}ld AR=${CROSS_COMPILE}ar
334         assert_no_error
335         DESTDIR=`path filesystem` make install
336         assert_no_error
337         cd_back
340 function build_calibrator()
342         cd_repo ti_utils
343         [ -z $NO_CLEAN ] && NFSROOT=`path filesystem` make clean
344         [ -z $NO_CLEAN ] && assert_no_error
345         NLVER=3 NLROOT=`repo_path libnl`/include NFSROOT=`path filesystem` LIBS+=-lpthread make
346         assert_no_error
347         NFSROOT=`path filesystem` make install
348         #assert_no_error
349         cd_back
352 function build_wlconf()
354         files_to_copy="dictionary.txt struct.bin wl18xx-conf-default.bin README example.conf example.ini configure-device.sh"
355         cd `repo_path ti_utils`/wlconf
356         if [ -z $NO_CLEAN ]; then
357                 NFSROOT=`path filesystem` make clean
358                 assert_no_error
359                 for file_to_copy in $files_to_copy; do
360                         rm -f `path filesstem`/usr/sbin/wlconf/$file_to_copy
361                 done
362                 rm -f `path filesystem`/usr/sbin/wlconf/official_inis/*
363         fi
364         NFSROOT=`path filesystem` make CC=${CROSS_COMPILE}gcc LD=${CROSS_COMPILE}ld
365         assert_no_error
367         # install
368         cp -f `repo_path ti_utils`/wlconf/wlconf `path filesystem`/usr/sbin/wlconf
369         chmod 755 `path filesystem`/usr/sbin/wlconf
370         for file_to_copy in $files_to_copy; do
371                 cp $file_to_copy `path filesystem`/usr/sbin/wlconf/$file_to_copy
372         done
373         cp official_inis/* `path filesystem`/usr/sbin/wlconf/official_inis/
374         cd_back
377 function build_fw_download()
379         cp `repo_path fw_download`/*.bin `path filesystem`/lib/firmware/ti-connectivity
383 function build_scripts_download()
385         cd_repo scripts_download
386         echo "Copying scripts"
387         scripts_download_path=`repo_path scripts_download`
388         for script_dir in `ls $scripts_download_path`
389         do
390                 echo "Copying everything from ${script_dir} to `path filesystem`/usr/share/wl18xx directory"
391                 cp -rf `repo_path scripts_download`/${script_dir}/* `path filesystem`/usr/share/wl18xx
392         done
393         cd_back
396 function clean_outputs()
398         echo "Cleaning outputs"    
399     rm -rf `path filesystem`/*
400     rm -f `path outputs`/${tar_filesystem[0]}
401         rm -f `path outputs`/uImage
402         
405 function build_outputs()
407         if [[ "$ROOTFS" == "DEFAULT" ]]
408     then  
409         echo "Building outputs"    
410         cd_path filesystem
411         tar cpjf `path outputs`/${tar_filesystem[0]} .
412         cd_back
413         cp `path tftp`/uImage `path outputs`/uImage
414     fi
417 function install_outputs()
419     echo "Installing outputs"
420         tftp_path=${setup[2]}
421         sitara_left_path=${setup[5]}
422         sitara_right_path=${setup[8]}
424         cp `path outputs`/uImage ${tftp_path}
425         cp `path outputs`/${tar_filesystem[0]} $sitara_left_path
426         cp `path outputs`/${tar_filesystem[0]} $sitara_right_path
428         cd $sitara_left_path
429         tar xjf ${tar_filesystem[0]}
430         cd_back
432         cd $sitara_right_path
433         tar xjf ${tar_filesystem[0]}
434         cd_back
437 files_to_verify=(
438 # skeleton path
439 # source path
440 # pattern in output of file
442 `path filesystem`/usr/local/sbin/wpa_supplicant
443 `repo_path hostap`/wpa_supplicant/wpa_supplicant
444 "ELF 32-bit LSB executable, ARM"
446 `path filesystem`/usr/local/bin/hostapd
447 `repo_path hostap`/hostapd/hostapd
448 "ELF 32-bit LSB executable, ARM"
450 `path filesystem`/sbin/crda
451 `repo_path crda`/crda
452 "ELF 32-bit LSB executable, ARM"
454 `path filesystem`/usr/lib/crda/regulatory.bin
455 `repo_path wireless_regdb`/regulatory.bin
456 "CRDA wireless regulatory database file"
458 `path filesystem`/lib/firmware/ti-connectivity/wl18xx-fw-4.bin
459 `repo_path fw_download`/wl18xx-fw-4.bin
460 "data"
462 `path filesystem`/lib/modules/3.2.*/extra/drivers/net/wireless/ti/wl18xx/wl18xx.ko
463 `path compat_wireless`/drivers/net/wireless/ti/wl18xx/wl18xx.ko
464 "ELF 32-bit LSB relocatable, ARM"
466 `path filesystem`/lib/modules/3.2.*/extra/drivers/net/wireless/ti/wlcore/wlcore.ko
467 `path compat_wireless`/drivers/net/wireless/ti/wlcore/wlcore.ko
468 "ELF 32-bit LSB relocatable, ARM"
470 #`path filesystem`/usr/bin/calibrator
471 #`repo_path ti_utils`/calibrator
472 #"ELF 32-bit LSB executable, ARM"
474 `path filesystem`/usr/sbin/wlconf/wlconf
475 `repo_path ti_utils`/wlconf/wlconf
476 "ELF 32-bit LSB executable, ARM"
479 function get_tag()
481        i="0"
482        while [ $i -lt ${#repositories[@]} ]; do
483                name=${repositories[$i]}
484                url=${repositories[$i + 1]}
485         branch=${repositories[$i + 2]}
486         checkout_type="branch"
487         cd_repo $name
488         if [[ "$url" == *git.ti.com* ]]
489         then
490                 echo -e "${PURPLE}Describe of ${NORMAL} repo : ${GREEN}$name ${NORMAL} "  ;
491                 git describe
492         fi
493                cd_back
494                i=$[$i + 3]
495        done
500 function admin_tag()
502         i="0"    
503         while [ $i -lt ${#repositories[@]} ]; do
504                 name=${repositories[$i]}
505                 url=${repositories[$i + 1]}
506         branch=${repositories[$i + 2]}   
507         checkout_type="branch"              
508         cd_repo $name    
509         if [[ "$url" == *git.ti.com* ]]
510         then                                   
511                 echo -e "${PURPLE}Adding tag ${GREEN} $1 ${NORMAL} to repo : ${GREEN}$name ${NORMAL} "  ;
512                 git show --summary        
513                 read -p "Do you want to tag this commit ?" yn
514                 case $yn in
515                     [Yy]* )  git tag -a $1 -m "$1" ;
516                              git push --tags ;;
517                     [Nn]* ) echo -e "${PURPLE}Tag was not applied ${NORMAL} " ;;
518                     
519                     * ) echo "Please answer yes or no.";;
520                 esac
521            
522         fi        
523                 cd_back
524                 i=$[$i + 3]
525         done
529 function verify_skeleton()
531         echo "Verifying filesystem skeleton..."
533         i="0"
534         while [ $i -lt ${#files_to_verify[@]} ]; do
535                 skeleton_path=${files_to_verify[i]}
536                 source_path=${files_to_verify[i + 1]}
537                 file_pattern=${files_to_verify[i + 2]}
538                 file $skeleton_path | grep "${file_pattern}" >/dev/null
539         if [ $? -eq 1 ]; then
540         echo -e "${RED}ERROR " $skeleton_path " Not found ! ${NORMAL}"
541         #exit
542         fi
544                 md5_skeleton=$(md5sum $skeleton_path | awk '{print $1}')
545                 md5_source=$(md5sum $source_path     | awk '{print $1}')
546                 if [ $md5_skeleton != $md5_source ]; then
547                         echo "ERROR: file mismatch"
548                         echo $skeleton_path
549                         exit 1
550                 fi
551                 i=$[$i + 3]
552         done
554         which regdbdump > /dev/null
555         if [ $? -eq 0 ]; then
556                 regdbdump `path filesystem`/usr/lib/crda/regulatory.bin > /dev/null
557                 assert_no_error
558         fi
561 function setup_workspace()
563         setup_directories       
564         setup_repositories
565         setup_branches
566     #Download toolchain only if it was not set
567     [ DEFAULT_TOOLCHAIN ] && setup_toolchain   
569     
573 function build_all()
575     if [ -z $NO_EXTERNAL ] 
576     then        
577         [ $DEFAULT_KERNEL ] && build_uimage
578         build_openssl
579         build_libnl
580         build_crda
581     fi
582     
583     if [ -z $NO_TI ] 
584     then
585         build_modules
586         build_wpa_supplicant
587         build_hostapd   
588         build_calibrator
589         build_wlconf
590         build_fw_download
591         build_scripts_download
592     fi
593     
594     [ -z $NO_VERIFY ] && verify_skeleton
595     
598 function setup_and_build()
600     setup_workspace
601     build_all
604 function main()
606         [[ "$1" == "-h" || "$1" == "--help"  ]] && usage
608     setup_environment
609     setup_directories
610     
611      
612     
613         case "$1" in
614                 'update')                
615         print_highlight " setting up workspace and building all "       
616                 if [  -n "$2" ]
617         then
618             print_highlight "Using tag $2 " 
619             USE_TAG=$2
620         else
621             print_highlight "Updating all to head (this will revert local changes)" 
622             RESET=1    
623         fi        
624         setup_workspace
625         build_all
626                 ;;
627         
628         'init')                
629         print_highlight " initializing workspace (w/o build) "       
630                 [[  -n "$2" ]] && echo "Using tag $2 " && USE_TAG=$2                
631         NO_BUILD=1 
632         setup_workspace
633                 ;;
634         
635         
636         'clean')        
637         print_highlight " cleaning & building all "       
638                 #clean_outputs
639         setup_directories
640         build_all        
641                 ;;
643                 'rebuild')
644         print_highlight " building all (w/o clean) "       
645                 NO_CLEAN=1 build_all
646                 ;;
647         
648                 'openlink')
649         print_highlight " building all (w/o clean) "       
650                 NO_EXTERNAL=1 setup_and_build
651                 ;;
652         #################### Building single components #############################
653                 'kernel')
654                 print_highlight " building only Kernel "
655                 build_uimage
656                 ;;
658                 'modules')
659         print_highlight " building only Driver modules "
660                 build_modules
661                 ;;
663                 'wpa_supplicant')
664         print_highlight " building only wpa_supplicant "
665                 build_wpa_supplicant
666         
667                 ;;
669                 'hostapd')
670         print_highlight " building only hostapd "
671                 build_hostapd
672                 ;;
674                 'crda')
675         print_highlight " building only CRDA "
676                 build_crda
677                 ;;
678         
679         'scripts')
680         print_highlight " Copying scripts "
681                 build_scripts_download
682                 ;;
683         'utils')
684         print_highlight " building only ti-utils "
685         build_calibrator
686         build_wlconf            
687                 ;;        
688         ############################################################
689         'get_tag')
690         get_tag
691         exit
692         ;;
693                 
694         'admin_tag')        
695                 admin_tag $2
696                 ;;
697         
698         *)
699         print_highlight " building all (No clean & no source code update) "  
700                 #clean_outputs
701         NO_CLEAN=1 build_all
702                 ;;
703         esac
704         
705         [[ -z $NO_BUILD ]] && build_outputs
706         [[ -n $INSTALL_NFS ]] && install_outputs
708 main $@