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 |
| 6 | PRJ_PATH ?= lynq/CPE |
| 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: |
| 25 | cp -rf $(PRJ_PATH)/* . |
| 26 | .PHONY:help |
| 27 | help: |
| 28 | @echo example : make or make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini. |
| 29 | @echo The default value of AP_PRJ is prj_cpe_min. The following values are optional : |
| 30 | @ls ap/project/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| 31 | @echo |
| 32 | @echo |
| 33 | @echo The default value of BOOT_PRJ is ufi_mini. The following values are optional : |
| 34 | @ls boot/prj/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| 35 | @echo |
| 36 | |