[Feature][S300]task-view-1245] add wifi rtl8192fs support, compile options
Change-Id: I918e1b2cb1dcb9c8f424e60a3d66e62a2447d25d
diff --git a/Makefile b/Makefile
index 5f29e93..1b473df 100755
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,8 @@
DCXO_R306 = DCXO=yes
endif
+wifi_proj:=$(shell echo $(PATH_PRJ) | awk -F "/" '{print $$2}')
+
.PHONY:all
all:copy boot ap pack
@echo OK
@@ -41,6 +43,12 @@
echo "CUST is defined and has a value: $(CUST)"
cp -rf $(PATH_PRJ)/$(CUST)/* .
endif
+ifeq ($(wifi),)
+ echo "default use wifi rtl8192cd_92es_wpa2"
+else
+ echo "using wifi lynq/wifi/$(wifi_proj)/$(wifi), make sure config.linux file and Makefile of wireless is correct!!!"
+ cp -rf lynq/wifi/$(wifi_proj)/$(wifi)/* .
+endif
.PHONY:help
help:
@@ -53,7 +61,7 @@
@echo example CPE_TELKOMSEL : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/CPE_TELKOMSEL
@echo example R307 : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/R307
@echo example R307L : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/R307L
- @echo example S300 : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/S300
+ @echo example S300 : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/S300 [wifi=rtl8192cd_92fs]
@echo example S300_COMMON : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/S300_COMMON
@echo example MD310 : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/MD310
@echo example MD310 TSEL/XL/HKM/HIFI: make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/MD310 CUST=TSEL/XL/HKM/HIFI