-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
43 lines (37 loc) · 2.57 KB
/
Makefile
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
NUM_PROCESSORS = `grep -c ^processor /proc/cpuinfo`
dependencies:
sudo apt update
sudo apt upgrade -y
sudo apt install raspberrypi-kernel-headers bc -y
install_wifi: dependencies
MODEL=EW-7611ULB && SRC_NAME=Linux_Driver && SRC_VER=1.0.1.1 && SRC_EXT=zip && \
rm -rf $${MODEL}_$${SRC_NAME}_$${SRC_VER}.$${SRC_EXT} && \
wget https://www.edimax.com/edimax/mw/cufiles/files/download/Driver_Utility/$${MODEL}/$${MODEL}_$${SRC_NAME}_$${SRC_VER}.$${SRC_EXT} && \
rm -rf Bluetooth && rm -rf Wi-FI && unzip $${MODEL}_$${SRC_NAME}_$${SRC_VER}.$${SRC_EXT} && \
rm -rf Bluetooth && rm -rf $${MODEL}_$${SRC_NAME}_$${SRC_VER}.$${SRC_EXT} && patch -p1 < 0001_kernel_5v10_support.patch && \
cd Wi-FI/rtl8723BU_WiFi_linux_v5.8.4_33660.20190516_COEX20181129-7272 && ARCH=arm make -j$(NUM_PROCESSORS) && sudo make install && \
cd ../.. && rm -rf Wi-FI
uninstall_wifi: dependencies
MODEL=EW-7611ULB && SRC_NAME=Linux_Driver && SRC_VER=1.0.1.1 && SRC_EXT=zip && \
rm -rf $${MODEL}_$${SRC_NAME}_$${SRC_VER}.$${SRC_EXT} && \
wget https://www.edimax.com/edimax/mw/cufiles/files/download/Driver_Utility/$${MODEL}/$${MODEL}_$${SRC_NAME}_$${SRC_VER}.$${SRC_EXT} && \
rm -rf Bluetooth && rm -rf Wi-FI && unzip $${MODEL}_$${SRC_NAME}_$${SRC_VER}.$${SRC_EXT} && \
rm -rf Bluetooth && rm -rf $${MODEL}_$${SRC_NAME}_$${SRC_VER}.$${SRC_EXT} && patch -p1 < 0001_kernel_5v10_support.patch && \
cd Wi-FI/rtl8723BU_WiFi_linux_v5.8.4_33660.20190516_COEX20181129-7272 && sudo make uninstall && \
cd ../.. && rm -rf Wi-FI
install_bluetooth: dependencies
MODEL=EW-7611ULB && SRC_NAME=Bluetooth_driver && SRC_EXT=zip && \
rm -rf $${MODEL}_$${SRC_NAME}.$${SRC_EXT} && \
wget http://www.edimax.us/download/drivers/$${MODEL}/$${MODEL}_$${SRC_NAME}.$${SRC_EXT} && \
rm -rf $${MODEL}_$${SRC_NAME} && unzip $${MODEL}_$${SRC_NAME}.$${SRC_EXT} && \
rm -rf $${MODEL}_$${SRC_NAME}.$${SRC_EXT} && patch -p1 < 0001_kernel_4v5_support.patch && \
cd $${MODEL}_$${SRC_NAME}/Linux_BT_USB_v3.1_20150526_8723BU_BTCOEX_20150119-5844_Edimax && sudo make install && \
cd ../.. && rm -rf $${MODEL}_$${SRC_NAME}
uninstall_bluetooth: dependencies
MODEL=EW-7611ULB && SRC_NAME=Bluetooth_driver && SRC_EXT=zip && \
rm -rf $${MODEL}_$${SRC_NAME}.$${SRC_EXT} && \
wget http://www.edimax.us/download/drivers/$${MODEL}/$${MODEL}_$${SRC_NAME}.$${SRC_EXT} && \
rm -rf $${MODEL}_$${SRC_NAME} && unzip $${MODEL}_$${SRC_NAME}.$${SRC_EXT} && \
rm -rf $${MODEL}_$${SRC_NAME}.$${SRC_EXT} && patch -p1 < 0001_kernel_4v5_support.patch && \
cd $${MODEL}_$${SRC_NAME}/Linux_BT_USB_v3.1_20150526_8723BU_BTCOEX_20150119-5844_Edimax && sudo make uninstall && \
cd ../.. && rm -rf $${MODEL}_$${SRC_NAME}