wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 1 | AP_PRJ ?= prj_cpe_min |
| 2 | BOOT_PRJ ?= ufi_mini |
| 3 | PACK_PRJ ?= prj_cpe |
zw.wang | 4f1b528 | 2024-08-14 15:47:35 +0800 | [diff] [blame] | 4 | RF_TYPES ?= 230A |
| 5 | DCXOS ?= yes |
wz.wang | 6c46070 | 2024-07-01 10:20:35 +0800 | [diff] [blame] | 6 | PATH_PRJ ?= lynq/CPE |
zw.wang | cd454f5 | 2024-11-13 17:56:28 +0800 | [diff] [blame] | 7 | PATCH ?= no |
zw.wang | 4f1b528 | 2024-08-14 15:47:35 +0800 | [diff] [blame] | 8 | ifeq ($(RF_TYPES), 230A) |
| 9 | RF_TYPE_R306 = RF_TYPE=230A |
| 10 | endif |
| 11 | ifeq ($(DCXOS), yes) |
| 12 | DCXO_R306 = DCXO=yes |
| 13 | endif |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 14 | |
you.chen | 4debc60 | 2025-04-04 17:44:21 +0800 | [diff] [blame] | 15 | wifi_proj:=$(shell echo $(PATH_PRJ) | awk -F "/" '{print $$2}') |
| 16 | |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 17 | .PHONY:all |
| 18 | all:copy boot ap pack |
| 19 | @echo OK |
| 20 | .PHONY:pack |
| 21 | pack: |
| 22 | make -C allbins/zx297520v3/$(PACK_PRJ)/scripts_linux/ |
| 23 | .PHONY:boot |
| 24 | boot: |
| 25 | make -C boot/prj/zx297520v3/$(BOOT_PRJ)/build/ allclean all |
| 26 | .PHONY:ap |
| 27 | ap: |
zw.wang | 4f1b528 | 2024-08-14 15:47:35 +0800 | [diff] [blame] | 28 | make -C ap/project/zx297520v3/$(AP_PRJ)/build/ allclean all $(RF_TYPE_R306) $(DCXO_R306) |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 29 | .PHONY:ap_normal2 |
| 30 | ap_normal2: |
zw.wang | 4f1b528 | 2024-08-14 15:47:35 +0800 | [diff] [blame] | 31 | make -C ap/project/zx297520v3/$(AP_PRJ)/build/ normal2 $(RF_TYPE_R306) $(DCXO_R306) |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 32 | .PHONY:copy |
| 33 | copy: |
wz.wang | 6c46070 | 2024-07-01 10:20:35 +0800 | [diff] [blame] | 34 | cp -rf $(PATH_PRJ)/* . |
zw.wang | cd454f5 | 2024-11-13 17:56:28 +0800 | [diff] [blame] | 35 | ifeq ($(PATCH), yes) |
| 36 | cp -rf $(PATH_PRJ)/nand_patch/* . |
| 37 | else |
| 38 | @echo PATCH=no |
| 39 | endif |
w.deng | 2f3b5c7 | 2025-02-25 14:01:30 +0800 | [diff] [blame] | 40 | ifeq ($(CUST),) |
| 41 | echo "CUST is empty or not defined" |
| 42 | else |
| 43 | echo "CUST is defined and has a value: $(CUST)" |
| 44 | cp -rf $(PATH_PRJ)/$(CUST)/* . |
| 45 | endif |
you.chen | 4debc60 | 2025-04-04 17:44:21 +0800 | [diff] [blame] | 46 | ifeq ($(wifi),) |
| 47 | echo "default use wifi rtl8192cd_92es_wpa2" |
| 48 | else |
| 49 | echo "using wifi lynq/wifi/$(wifi_proj)/$(wifi), make sure config.linux file and Makefile of wireless is correct!!!" |
| 50 | cp -rf lynq/wifi/$(wifi_proj)/$(wifi)/* . |
| 51 | endif |
mj.qu | eb3af45 | 2025-04-06 23:23:59 -0700 | [diff] [blame^] | 52 | ifeq ($(key),) |
| 53 | echo "key is empty or not defined" |
| 54 | else |
| 55 | echo "key is defined and has a value: $(key)" |
| 56 | cp -rf $(PATH_PRJ)/$(key)/* . |
| 57 | endif |
w.deng | 2f3b5c7 | 2025-02-25 14:01:30 +0800 | [diff] [blame] | 58 | |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 59 | .PHONY:help |
| 60 | help: |
wz.wang | 6c46070 | 2024-07-01 10:20:35 +0800 | [diff] [blame] | 61 | @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 |
zw.wang | bd89626 | 2024-07-22 18:04:13 +0800 | [diff] [blame] | 62 | @echo example prj_cpe_aic8800dw : make AP_PRJ=prj_cpe PATH_PRJ=lynq/CPE_AIC8800DW |
wz.wang | 6c46070 | 2024-07-01 10:20:35 +0800 | [diff] [blame] | 63 | @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 |
zw.wang | cfae437 | 2024-08-12 16:41:12 +0800 | [diff] [blame] | 64 | @echo example R305 : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/R305 |
zw.wang | 4f1b528 | 2024-08-14 15:47:35 +0800 | [diff] [blame] | 65 | @echo example R306 : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/R306 |
mj.qu | 4cea459 | 2024-08-29 22:35:55 -0700 | [diff] [blame] | 66 | @echo example CPE_COMMON : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/CPE_COMMON |
qumengjia | 90e3396 | 2024-09-24 19:15:16 +0800 | [diff] [blame] | 67 | @echo example CPE_TELKOMSEL : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/CPE_TELKOMSEL |
qumengjia | a295b33 | 2024-11-01 09:35:57 +0800 | [diff] [blame] | 68 | @echo example R307 : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/R307 |
you.chen | 808f8ef | 2025-04-02 13:58:10 +0800 | [diff] [blame] | 69 | @echo example R307L : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/R307L |
mj.qu | eb3af45 | 2025-04-06 23:23:59 -0700 | [diff] [blame^] | 70 | @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 |
mj.qu | f47abdc | 2025-01-14 17:23:20 -0800 | [diff] [blame] | 71 | @echo example S300_COMMON : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/S300_COMMON |
yuezonghe | c78e2ef | 2025-02-13 17:57:46 -0800 | [diff] [blame] | 72 | @echo example MD310 : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/MD310 |
w.deng | 64d2efd | 2025-02-26 16:43:45 +0800 | [diff] [blame] | 73 | @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 |
yuezonghe | c78e2ef | 2025-02-13 17:57:46 -0800 | [diff] [blame] | 74 | @echo example MD310EU : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/MD310EU |
w.deng | f34a531 | 2025-03-12 09:47:16 +0800 | [diff] [blame] | 75 | @echo example MD310EU AFC: make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/MD310EU CUST=AFC |
zw.wang | d8c38a4 | 2025-02-19 14:25:39 +0800 | [diff] [blame] | 76 | @echo example S300_AIC : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/S300_AIC |
you.chen | 1667856 | 2025-02-20 11:26:11 +0800 | [diff] [blame] | 77 | @echo example R306_MTN : make AP_PRJ=prj_cpe BOOT_PRJ=cpe PACK_PRJ=prj_cpe PATH_PRJ=lynq/R306_MTN |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 78 | @echo The default value of AP_PRJ is prj_cpe_min. The following values are optional : |
| 79 | @ls ap/project/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| 80 | @echo |
| 81 | @echo |
| 82 | @echo The default value of BOOT_PRJ is ufi_mini. The following values are optional : |
| 83 | @ls boot/prj/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| 84 | @echo |
wz.wang | 6c46070 | 2024-07-01 10:20:35 +0800 | [diff] [blame] | 85 | @echo |
| 86 | @echo The default value of PACK_PRJ is prj_cpe. The following values are optional : |
| 87 | @ls allbins/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| 88 | @echo |
| 89 | @echo |
| 90 | @echo The default value of PATH_PRJ is lynq/CPE. The following values are optional : |
| 91 | @ls lynq/*/ -d | tr '\n' ' ' |
| 92 | @echo |
zw.wang | cd454f5 | 2024-11-13 17:56:28 +0800 | [diff] [blame] | 93 | @echo |
| 94 | @echo The default value of PATCH is no. The nand_patch directory is supported as follows : |
| 95 | @find lynq -mindepth 1 -maxdepth 2 -name nand_patch | xargs -I {} dirname "{}" | tr '\n' ' ' |
| 96 | @echo |
| 97 | @echo To support the nand_patch directory, add PATCH=yes at the end of compilation. |
| 98 | @echo |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 99 | |