Add option to build just the wireless modules
authorYaniv Machani <yanivma@ti.com>
Tue, 21 Jul 2015 11:36:46 +0000 (14:36 +0300)
committerYaniv Machani <yanivma@ti.com>
Tue, 21 Jul 2015 11:36:46 +0000 (14:36 +0300)
Signed-off-by: Yaniv Machani <yanivma@ti.com>
build_wl18xx.sh
configuration.sh

index 31f3a513c5e3e151399f6545d75e1b3d62747765..d3efcbfe71ab4cd6d4f5b5071ce843bbce30915e 100755 (executable)
@@ -294,6 +294,24 @@ function build_intree()
        cd_back
 }
 
+function rebuild_intree()
+{
+    cd_repo driver
+       export KERNEL_PATH=`repo_path driver`
+
+       INSTALL_MOD_PATH=`path filesystem` make -j${PROCESSORS_NUMBER} M=net/wireless/ modules
+       INSTALL_MOD_PATH=`path filesystem` make -j${PROCESSORS_NUMBER} M=net/wireless/ modules_install
+
+       INSTALL_MOD_PATH=`path filesystem` make -j${PROCESSORS_NUMBER} M=net/mac80211/ modules
+       INSTALL_MOD_PATH=`path filesystem` make -j${PROCESSORS_NUMBER} M=net/mac80211/ modules_install
+
+       INSTALL_MOD_PATH=`path filesystem` make -j${PROCESSORS_NUMBER} M=drivers/net/wireless/ti/ modules
+       INSTALL_MOD_PATH=`path filesystem` make -j${PROCESSORS_NUMBER} M=drivers/net/wireless/ti/ modules_install
+
+       assert_no_error
+       cd_back
+}
+
 function build_uimage()
 {
     cd_repo kernel
@@ -485,6 +503,17 @@ function build_fw_download()
        cp `repo_path fw_download`/*.bin `path filesystem`/lib/firmware/ti-connectivity
 }
 
+function build_fw()
+{
+       cd `repo_path firmware-build`/victoria/firmware
+       [ -z $NO_CLEAN ] && ./build.sh clean
+       ./build.sh
+       cp `repo_path firmware-build`/victoria/firmware/out/Firmware18xx/wl18xx-fw-4.bin `path filesystem`/lib/firmware/ti-connectivity
+       cp `repo_path firmware-build`/victoria/firmware/out/Firmware18xx/wl18xx-fw-4.bin `path outputs`
+       cd_back
+}
+
+
 function patch_kernel()
 {
        [ ! -d $KERNEL_PATH ] && echo "Error KERNEL_PATH: $KERNEL_PATH dir does not exist" && exit 1
@@ -860,16 +889,20 @@ function main()
         #################### Building single components #############################
                'kernel')
                print_highlight " building only Kernel "
-                #clean_kernel
+        #clean_kernel
                build_uimage
                ;;
 
                'intree')
                print_highlight " building modules intree"
-                #clean_kernel
                build_intree
                ;;
                
+               'intree_m')
+               print_highlight " Building JUST wireless modules intree"
+               rebuild_intree
+               ;;
+
         'kernel_modules')
         print_highlight " building kernel and driver modules"
         build_uimage
@@ -927,6 +960,11 @@ function main()
                build_fw_download
                ;;
 
+               'fw')
+               print_highlight " building only firmware"
+               build_fw
+               ;;
+
                'patch_kernel')
                print_highlight " only patching kernel $2 without performing an actual build!"
                NO_BUILD=1
index 4ad8ce361f70b8fb12a04c9e3784e374a8f8b920..2794223e712a916d5a5df1addddf92c7ec060458 100755 (executable)
@@ -98,4 +98,9 @@ master
 bt-firmware
 git://git.ti.com/ti-bt/service-packs.git
 master
+
+firmware-build
+git@gitorious.design.ti.com:wilink-wlan/firmware-build.git
+staging
+
 )