diff options
author | Yaniv Machani | 2015-07-21 06:36:46 -0500 |
---|---|---|
committer | Yaniv Machani | 2015-07-21 06:36:46 -0500 |
commit | 7d45da798ca0b868bc91bd7463399781bd83557f (patch) | |
tree | e1f2ce3d8404b99d72a0400f29c29d9334e18570 | |
parent | 278dcb2695dbb55a4c2afb78fe9bdd62cd50522f (diff) | |
download | build-utilites-7d45da798ca0b868bc91bd7463399781bd83557f.tar.gz build-utilites-7d45da798ca0b868bc91bd7463399781bd83557f.tar.xz build-utilites-7d45da798ca0b868bc91bd7463399781bd83557f.zip |
Add option to build just the wireless modules
Signed-off-by: Yaniv Machani <yanivma@ti.com>
-rwxr-xr-x | build_wl18xx.sh | 42 | ||||
-rwxr-xr-x | configuration.sh | 5 |
2 files changed, 45 insertions, 2 deletions
diff --git a/build_wl18xx.sh b/build_wl18xx.sh index 31f3a51..d3efcbf 100755 --- a/build_wl18xx.sh +++ b/build_wl18xx.sh | |||
@@ -294,6 +294,24 @@ function build_intree() | |||
294 | cd_back | 294 | cd_back |
295 | } | 295 | } |
296 | 296 | ||
297 | function rebuild_intree() | ||
298 | { | ||
299 | cd_repo driver | ||
300 | export KERNEL_PATH=`repo_path driver` | ||
301 | |||
302 | INSTALL_MOD_PATH=`path filesystem` make -j${PROCESSORS_NUMBER} M=net/wireless/ modules | ||
303 | INSTALL_MOD_PATH=`path filesystem` make -j${PROCESSORS_NUMBER} M=net/wireless/ modules_install | ||
304 | |||
305 | INSTALL_MOD_PATH=`path filesystem` make -j${PROCESSORS_NUMBER} M=net/mac80211/ modules | ||
306 | INSTALL_MOD_PATH=`path filesystem` make -j${PROCESSORS_NUMBER} M=net/mac80211/ modules_install | ||
307 | |||
308 | INSTALL_MOD_PATH=`path filesystem` make -j${PROCESSORS_NUMBER} M=drivers/net/wireless/ti/ modules | ||
309 | INSTALL_MOD_PATH=`path filesystem` make -j${PROCESSORS_NUMBER} M=drivers/net/wireless/ti/ modules_install | ||
310 | |||
311 | assert_no_error | ||
312 | cd_back | ||
313 | } | ||
314 | |||
297 | function build_uimage() | 315 | function build_uimage() |
298 | { | 316 | { |
299 | cd_repo kernel | 317 | cd_repo kernel |
@@ -485,6 +503,17 @@ function build_fw_download() | |||
485 | cp `repo_path fw_download`/*.bin `path filesystem`/lib/firmware/ti-connectivity | 503 | cp `repo_path fw_download`/*.bin `path filesystem`/lib/firmware/ti-connectivity |
486 | } | 504 | } |
487 | 505 | ||
506 | function build_fw() | ||
507 | { | ||
508 | cd `repo_path firmware-build`/victoria/firmware | ||
509 | [ -z $NO_CLEAN ] && ./build.sh clean | ||
510 | ./build.sh | ||
511 | cp `repo_path firmware-build`/victoria/firmware/out/Firmware18xx/wl18xx-fw-4.bin `path filesystem`/lib/firmware/ti-connectivity | ||
512 | cp `repo_path firmware-build`/victoria/firmware/out/Firmware18xx/wl18xx-fw-4.bin `path outputs` | ||
513 | cd_back | ||
514 | } | ||
515 | |||
516 | |||
488 | function patch_kernel() | 517 | function patch_kernel() |
489 | { | 518 | { |
490 | [ ! -d $KERNEL_PATH ] && echo "Error KERNEL_PATH: $KERNEL_PATH dir does not exist" && exit 1 | 519 | [ ! -d $KERNEL_PATH ] && echo "Error KERNEL_PATH: $KERNEL_PATH dir does not exist" && exit 1 |
@@ -860,16 +889,20 @@ function main() | |||
860 | #################### Building single components ############################# | 889 | #################### Building single components ############################# |
861 | 'kernel') | 890 | 'kernel') |
862 | print_highlight " building only Kernel " | 891 | print_highlight " building only Kernel " |
863 | #clean_kernel | 892 | #clean_kernel |
864 | build_uimage | 893 | build_uimage |
865 | ;; | 894 | ;; |
866 | 895 | ||
867 | 'intree') | 896 | 'intree') |
868 | print_highlight " building modules intree" | 897 | print_highlight " building modules intree" |
869 | #clean_kernel | ||
870 | build_intree | 898 | build_intree |
871 | ;; | 899 | ;; |
872 | 900 | ||
901 | 'intree_m') | ||
902 | print_highlight " Building JUST wireless modules intree" | ||
903 | rebuild_intree | ||
904 | ;; | ||
905 | |||
873 | 'kernel_modules') | 906 | 'kernel_modules') |
874 | print_highlight " building kernel and driver modules" | 907 | print_highlight " building kernel and driver modules" |
875 | build_uimage | 908 | build_uimage |
@@ -927,6 +960,11 @@ function main() | |||
927 | build_fw_download | 960 | build_fw_download |
928 | ;; | 961 | ;; |
929 | 962 | ||
963 | 'fw') | ||
964 | print_highlight " building only firmware" | ||
965 | build_fw | ||
966 | ;; | ||
967 | |||
930 | 'patch_kernel') | 968 | 'patch_kernel') |
931 | print_highlight " only patching kernel $2 without performing an actual build!" | 969 | print_highlight " only patching kernel $2 without performing an actual build!" |
932 | NO_BUILD=1 | 970 | NO_BUILD=1 |
diff --git a/configuration.sh b/configuration.sh index 4ad8ce3..2794223 100755 --- a/configuration.sh +++ b/configuration.sh | |||
@@ -98,4 +98,9 @@ master | |||
98 | bt-firmware | 98 | bt-firmware |
99 | git://git.ti.com/ti-bt/service-packs.git | 99 | git://git.ti.com/ti-bt/service-packs.git |
100 | master | 100 | master |
101 | |||
102 | firmware-build | ||
103 | git@gitorious.design.ti.com:wilink-wlan/firmware-build.git | ||
104 | staging | ||
105 | |||
101 | ) | 106 | ) |