-
Notifications
You must be signed in to change notification settings - Fork 11
/
3_make_wifi_and_pull_files
executable file
·26 lines (26 loc) · 1.27 KB
/
3_make_wifi_and_pull_files
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
START=$(date +%s)
echo "[*]-------->>>> Pulling Compiled Kernel..."
cp kernel/arch/arm/boot/zImage compiled/.
echo "[*]-------->>>> Wifi module..."
cd platform/vendor/atheros/wlan/host
echo "[*]-------->>>> cleaning..."
ATH_LINUXPATH=/home/doomlord/android/freexperia-semc-kernel-qsd8k-bbb3b79/kernel ATH_CROSS_COMPILE=/home/doomlord/android-toolchain-eabi/bin/arm-eabi- make clean
echo "[*]-------->>>> Compiling Wifi module..."
ATH_LINUXPATH=/home/doomlord/android/freexperia-semc-kernel-qsd8k-bbb3b79/kernel ATH_CROSS_COMPILE=/home/doomlord/android-toolchain-eabi/bin/arm-eabi- make
echo "[*]-------->>>> Pulling Wifi module..."
cd ../../../../..
cp platform/vendor/atheros/wlan/host/os/linux/ar6000.ko compiled/.
cp platform/vendor/atheros/wlan/host/os/linux/ar6000.ko compiled/wifi.ko
echo "[*]-------->>>> Stripping modules..."
cd /home/doomlord/android/freexperia-semc-kernel-qsd8k-bbb3b79/compiled/
/home/doomlord/android-toolchain-eabi/bin/arm-eabi-strip --strip-unneeded ar6000.ko
/home/doomlord/android-toolchain-eabi/bin/arm-eabi-strip --strip-unneeded wifi.ko
END=$(date +%s)
ELAPSED=$((END - START))
E_MIN=$((ELAPSED / 60))
E_SEC=$((ELAPSED - E_MIN * 60))
echo -n "[*]-------->>>> "
printf "Elapsed: "
[ $E_MIN != 0 ] && printf "%d min(s) " $E_MIN
printf "%d sec(s)\n" $E_SEC