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 | 4f1b528 | 2024-08-14 15:47:35 +0800 | [diff] [blame] | 7 | ifeq ($(RF_TYPES), 230A) |
| 8 | RF_TYPE_R306 = RF_TYPE=230A |
| 9 | endif |
| 10 | ifeq ($(DCXOS), yes) |
| 11 | DCXO_R306 = DCXO=yes |
| 12 | endif |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 13 | |
| 14 | .PHONY:all |
| 15 | all:copy boot ap pack |
| 16 | @echo OK |
| 17 | .PHONY:pack |
| 18 | pack: |
| 19 | make -C allbins/zx297520v3/$(PACK_PRJ)/scripts_linux/ |
| 20 | .PHONY:boot |
| 21 | boot: |
| 22 | make -C boot/prj/zx297520v3/$(BOOT_PRJ)/build/ allclean all |
| 23 | .PHONY:ap |
| 24 | ap: |
zw.wang | 4f1b528 | 2024-08-14 15:47:35 +0800 | [diff] [blame] | 25 | 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] | 26 | .PHONY:ap_normal2 |
| 27 | ap_normal2: |
zw.wang | 4f1b528 | 2024-08-14 15:47:35 +0800 | [diff] [blame] | 28 | 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] | 29 | .PHONY:copy |
| 30 | copy: |
wz.wang | 6c46070 | 2024-07-01 10:20:35 +0800 | [diff] [blame] | 31 | cp -rf $(PATH_PRJ)/* . |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 32 | .PHONY:help |
| 33 | help: |
wz.wang | 6c46070 | 2024-07-01 10:20:35 +0800 | [diff] [blame] | 34 | @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] | 35 | @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] | 36 | @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] | 37 | @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] | 38 | @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] | 39 | @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] | 40 | @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] | 41 | @echo example R307 : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/R307 |
qumengjia | ca65ef5 | 2024-11-06 15:42:21 +0800 | [diff] [blame] | 42 | @echo example CPE_COMMON : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/S300 |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 43 | @echo The default value of AP_PRJ is prj_cpe_min. The following values are optional : |
| 44 | @ls ap/project/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| 45 | @echo |
| 46 | @echo |
| 47 | @echo The default value of BOOT_PRJ is ufi_mini. The following values are optional : |
| 48 | @ls boot/prj/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| 49 | @echo |
wz.wang | 6c46070 | 2024-07-01 10:20:35 +0800 | [diff] [blame] | 50 | @echo |
| 51 | @echo The default value of PACK_PRJ is prj_cpe. The following values are optional : |
| 52 | @ls allbins/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| 53 | @echo |
| 54 | @echo |
| 55 | @echo The default value of PATH_PRJ is lynq/CPE. The following values are optional : |
| 56 | @ls lynq/*/ -d | tr '\n' ' ' |
| 57 | @echo |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 58 | |