build : add iw to build
[wilink8-wlan/build-utilites.git] / build_wl18xx.sh
index d2fd338835a81414e2cd6422be3312b17492a7d1..6ad58bccf9600232e34ceb6156687653576abeaa 100755 (executable)
@@ -330,6 +330,18 @@ function build_openssl()
        cd_back
 }
 
        cd_back
 }
 
+
+function build_iw()
+{
+       cd_repo iw
+       [ -z $NO_CLEAN ] && make clean
+       [ -z $NO_CLEAN ] && assert_no_error
+       CC=${CROSS_COMPILE}gcc LIBS+=" -lpthread -lm" make V=1
+       assert_no_error
+       DESTDIR=`path filesystem` make install
+       assert_no_error
+       cd_back
+}
 function build_libnl()
 {
        cd_repo libnl
 function build_libnl()
 {
        cd_repo libnl
@@ -658,6 +670,7 @@ function build_all()
     if [ -z $NO_TI ] 
     then
         build_modules
     if [ -z $NO_TI ] 
     then
         build_modules
+        build_iw
         build_wpa_supplicant
         build_hostapd  
         build_calibrator
         build_wpa_supplicant
         build_hostapd  
         build_calibrator
@@ -762,6 +775,11 @@ function main()
                build_libnl
                ;;
 
                build_libnl
                ;;
 
+               'iw')
+               print_highlight " building only iw"
+               build_iw
+               ;;
+
                'openssl')
                print_highlight " building only openssl"
                build_openssl
                'openssl')
                print_highlight " building only openssl"
                build_openssl