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 |
| 4 | RF_TYPE ?= 230A |
| 5 | DCXO ?= yes |
wz.wang | 6c46070 | 2024-07-01 10:20:35 +0800 | [diff] [blame] | 6 | PATH_PRJ ?= lynq/CPE |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 7 | |
| 8 | .PHONY:all |
| 9 | all:copy boot ap pack |
| 10 | @echo OK |
| 11 | .PHONY:pack |
| 12 | pack: |
| 13 | make -C allbins/zx297520v3/$(PACK_PRJ)/scripts_linux/ |
| 14 | .PHONY:boot |
| 15 | boot: |
| 16 | make -C boot/prj/zx297520v3/$(BOOT_PRJ)/build/ allclean all |
| 17 | .PHONY:ap |
| 18 | ap: |
| 19 | make -C ap/project/zx297520v3/$(AP_PRJ)/build/ allclean all RF_TYPE=$(RF_TYPE) DCXO=$(DCXO) |
| 20 | .PHONY:ap_normal2 |
| 21 | ap_normal2: |
| 22 | make -C ap/project/zx297520v3/$(AP_PRJ)/build/ normal2 RF_TYPE=$(RF_TYPE) DCXO=$(DCXO) |
| 23 | .PHONY:copy |
| 24 | copy: |
wz.wang | 6c46070 | 2024-07-01 10:20:35 +0800 | [diff] [blame] | 25 | cp -rf $(PATH_PRJ)/* . |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 26 | .PHONY:help |
| 27 | help: |
wz.wang | 6c46070 | 2024-07-01 10:20:35 +0800 | [diff] [blame] | 28 | @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^] | 29 | @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] | 30 | @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 |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 31 | @echo The default value of AP_PRJ is prj_cpe_min. The following values are optional : |
| 32 | @ls ap/project/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| 33 | @echo |
| 34 | @echo |
| 35 | @echo The default value of BOOT_PRJ is ufi_mini. The following values are optional : |
| 36 | @ls boot/prj/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| 37 | @echo |
wz.wang | 6c46070 | 2024-07-01 10:20:35 +0800 | [diff] [blame] | 38 | @echo |
| 39 | @echo The default value of PACK_PRJ is prj_cpe. The following values are optional : |
| 40 | @ls allbins/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| 41 | @echo |
| 42 | @echo |
| 43 | @echo The default value of PATH_PRJ is lynq/CPE. The following values are optional : |
| 44 | @ls lynq/*/ -d | tr '\n' ' ' |
| 45 | @echo |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 46 | |