| AP_PRJ ?= prj_cpe_min |
| BOOT_PRJ ?= ufi_mini |
| PACK_PRJ ?= prj_cpe |
| RF_TYPES ?= 230A |
| DCXOS ?= yes |
| PATH_PRJ ?= lynq/CPE |
| PATCH ?= no |
| ifeq ($(RF_TYPES), 230A) |
| RF_TYPE_R306 = RF_TYPE=230A |
| endif |
| ifeq ($(DCXOS), yes) |
| DCXO_R306 = DCXO=yes |
| endif |
| |
| wifi_proj:=$(shell echo $(PATH_PRJ) | awk -F "/" '{print $$2}') |
| |
| .PHONY:all |
| all:copy boot ap pack |
| @echo OK |
| .PHONY:pack |
| pack: |
| make -C allbins/zx297520v3/$(PACK_PRJ)/scripts_linux/ |
| .PHONY:boot |
| boot: |
| make -C boot/prj/zx297520v3/$(BOOT_PRJ)/build/ allclean all |
| .PHONY:ap |
| ap: |
| make -C ap/project/zx297520v3/$(AP_PRJ)/build/ allclean all $(RF_TYPE_R306) $(DCXO_R306) |
| .PHONY:ap_normal2 |
| ap_normal2: |
| make -C ap/project/zx297520v3/$(AP_PRJ)/build/ normal2 $(RF_TYPE_R306) $(DCXO_R306) |
| .PHONY:copy |
| copy: |
| cp -rf $(PATH_PRJ)/* . |
| ifeq ($(PATCH), yes) |
| cp -rf $(PATH_PRJ)/nand_patch/* . |
| else |
| @echo PATCH=no |
| endif |
| ifeq ($(CUST),) |
| echo "CUST is empty or not defined" |
| else |
| 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 |
| ifeq ($(key),) |
| echo "key is empty or not defined" |
| else |
| echo "key is defined and has a value: $(key)" |
| cp -rf $(PATH_PRJ)/$(key)/* . |
| endif |
| |
| .PHONY:help |
| help: |
| @echo example prj_cpe_min : make or make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/CPE |
| @echo example prj_cpe_aic8800dw : make AP_PRJ=prj_cpe PATH_PRJ=lynq/CPE_AIC8800DW |
| @echo example prj_mifi_min_aic8800dw : make AP_PRJ=prj_mifi_min_aic8800dw BOOT_PRJ=mifi_mini_64 PATH_PRJ=lynq/MIFI/ PACK_PRJ=prj_mifi |
| @echo example R305 : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/R305 key=lynq_key |
| @echo example R305E: make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/R305 CUST=R305E key=lynq_key |
| @echo example R305 V4: make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/R305 CUST=V4 key=lynq_key |
| @echo example R306 : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/R306 key=lynq_key |
| @echo example CPE_COMMON : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/CPE_COMMON key=lynq_key |
| @echo example R306-HKM : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/CPE_COMMON CUST=HKM key=lynq_key |
| @echo example R306-HIFI: make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/CPE_COMMON CUST=HIFI key=lynq_key |
| @echo example R306-MMATOM : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/CPE_COMMON CUST=MMATOM key=lynq_key |
| @echo example CPE_COMMON MTN : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/CPE_COMMON CUST=MTN key=lynq_key |
| @echo example CPE_TELKOMSEL : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/CPE_TELKOMSEL key=lynq_key |
| @echo example R307 : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/R307 key=lynq_key |
| @echo example R307L : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/R307L key=lynq_key |
| @echo example R307L COMMON : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/R307L CUST=COMMON key=lynq_key |
| @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 key=lynq_key |
| @echo example S300 BJMTN : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/S300 CUST=BJMTN wifi=rtl8192cd_92fs key=lynq_key |
| @echo example S300_COMMON : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/S300_COMMON wifi=rtl8192cd_92fs key=lynq_key |
| @echo example MD310 : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/MD310 key=lynq_key |
| @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 key=lynq_key |
| @echo example MD310EU : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/MD310EU key=lynq_key |
| @echo example MD310EU AFC: make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/MD310EU CUST=AFC key=lynq_key |
| @echo example MD310EU PLUS: make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/MD310EU CUST=PLUS key=lynq_key |
| @echo example MD310EU MTN: make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/MD310EU CUST=MTN key=lynq_key |
| @echo example S300_AIC : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/S300_AIC key=lynq_key |
| @echo example R306_MTN : make AP_PRJ=prj_cpe BOOT_PRJ=cpe PACK_PRJ=prj_cpe PATH_PRJ=lynq/R306_MTN key=lynq_key |
| @echo example R306_MTN COMMON/ZMMTN/BJMTN: make AP_PRJ=prj_cpe BOOT_PRJ=cpe PACK_PRJ=prj_cpe PATH_PRJ=lynq/R306_MTN CUST=COMMON/ZMMTN/BJMTN key=lynq_key |
| @echo example R306BR : make AP_PRJ=prj_cpe BOOT_PRJ=cpe PACK_PRJ=prj_cpe PATH_PRJ=lynq/R306BR key=lynq_key |
| @echo example S300AI : make AP_PRJ=prj_cpe BOOT_PRJ=cpe PACK_PRJ=prj_cpe PATH_PRJ=lynq/S300AI key=lynq_key |
| @echo example S300AI\(rtl8192cd_92fs\): make AP_PRJ=prj_cpe BOOT_PRJ=cpe PACK_PRJ=prj_cpe PATH_PRJ=lynq/S300AI wifi=rtl8192cd_92fs key=lynq_key |
| @echo The default value of AP_PRJ is prj_cpe_min. The following values are optional : |
| @ls ap/project/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| @echo |
| @echo |
| @echo The default value of BOOT_PRJ is ufi_mini. The following values are optional : |
| @ls boot/prj/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| @echo |
| @echo |
| @echo The default value of PACK_PRJ is prj_cpe. The following values are optional : |
| @ls allbins/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| @echo |
| @echo |
| @echo The default value of PATH_PRJ is lynq/CPE. The following values are optional : |
| @ls lynq/*/ -d | tr '\n' ' ' |
| @echo |
| @echo |
| @echo The default value of PATCH is no. The nand_patch directory is supported as follows : |
| @find lynq -mindepth 1 -maxdepth 2 -name nand_patch | xargs -I {} dirname "{}" | tr '\n' ' ' |
| @echo |
| @echo To support the nand_patch directory, add PATCH=yes at the end of compilation. |
| @echo |
| |