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 | |
| 15 | .PHONY:all |
| 16 | all:copy boot ap pack |
| 17 | @echo OK |
| 18 | .PHONY:pack |
| 19 | pack: |
| 20 | make -C allbins/zx297520v3/$(PACK_PRJ)/scripts_linux/ |
| 21 | .PHONY:boot |
| 22 | boot: |
| 23 | make -C boot/prj/zx297520v3/$(BOOT_PRJ)/build/ allclean all |
| 24 | .PHONY:ap |
| 25 | ap: |
zw.wang | 4f1b528 | 2024-08-14 15:47:35 +0800 | [diff] [blame] | 26 | 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] | 27 | .PHONY:ap_normal2 |
| 28 | ap_normal2: |
zw.wang | 4f1b528 | 2024-08-14 15:47:35 +0800 | [diff] [blame] | 29 | 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] | 30 | .PHONY:copy |
| 31 | copy: |
wz.wang | 6c46070 | 2024-07-01 10:20:35 +0800 | [diff] [blame] | 32 | cp -rf $(PATH_PRJ)/* . |
zw.wang | cd454f5 | 2024-11-13 17:56:28 +0800 | [diff] [blame^] | 33 | ifeq ($(PATCH), yes) |
| 34 | cp -rf $(PATH_PRJ)/nand_patch/* . |
| 35 | else |
| 36 | @echo PATCH=no |
| 37 | endif |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 38 | .PHONY:help |
| 39 | help: |
wz.wang | 6c46070 | 2024-07-01 10:20:35 +0800 | [diff] [blame] | 40 | @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] | 41 | @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] | 42 | @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] | 43 | @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] | 44 | @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] | 45 | @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] | 46 | @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] | 47 | @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] | 48 | @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] | 49 | @echo The default value of AP_PRJ is prj_cpe_min. The following values are optional : |
| 50 | @ls ap/project/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| 51 | @echo |
| 52 | @echo |
| 53 | @echo The default value of BOOT_PRJ is ufi_mini. The following values are optional : |
| 54 | @ls boot/prj/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| 55 | @echo |
wz.wang | 6c46070 | 2024-07-01 10:20:35 +0800 | [diff] [blame] | 56 | @echo |
| 57 | @echo The default value of PACK_PRJ is prj_cpe. The following values are optional : |
| 58 | @ls allbins/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| 59 | @echo |
| 60 | @echo |
| 61 | @echo The default value of PATH_PRJ is lynq/CPE. The following values are optional : |
| 62 | @ls lynq/*/ -d | tr '\n' ' ' |
| 63 | @echo |
zw.wang | cd454f5 | 2024-11-13 17:56:28 +0800 | [diff] [blame^] | 64 | @echo |
| 65 | @echo The default value of PATCH is no. The nand_patch directory is supported as follows : |
| 66 | @find lynq -mindepth 1 -maxdepth 2 -name nand_patch | xargs -I {} dirname "{}" | tr '\n' ' ' |
| 67 | @echo |
| 68 | @echo To support the nand_patch directory, add PATCH=yes at the end of compilation. |
| 69 | @echo |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 70 | |