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 |
w.deng | 2f3b5c7 | 2025-02-25 14:01:30 +0800 | [diff] [blame^] | 38 | ifeq ($(CUST),) |
| 39 | echo "CUST is empty or not defined" |
| 40 | else |
| 41 | echo "CUST is defined and has a value: $(CUST)" |
| 42 | cp -rf $(PATH_PRJ)/$(CUST)/* . |
| 43 | endif |
| 44 | |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 45 | .PHONY:help |
| 46 | help: |
wz.wang | 6c46070 | 2024-07-01 10:20:35 +0800 | [diff] [blame] | 47 | @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] | 48 | @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] | 49 | @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] | 50 | @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] | 51 | @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] | 52 | @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] | 53 | @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] | 54 | @echo example R307 : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/R307 |
qumengjia | 6d2212e | 2024-11-14 09:33:12 +0800 | [diff] [blame] | 55 | @echo example S300 : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/S300 |
mj.qu | f47abdc | 2025-01-14 17:23:20 -0800 | [diff] [blame] | 56 | @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] | 57 | @echo example MD310 : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/MD310 |
w.deng | 2f3b5c7 | 2025-02-25 14:01:30 +0800 | [diff] [blame^] | 58 | @echo example MD310 TSEL/XL/HKM: make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/MD310 CUST=TSEL/XL/HKM |
yuezonghe | c78e2ef | 2025-02-13 17:57:46 -0800 | [diff] [blame] | 59 | @echo example MD310EU : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/MD310EU |
zw.wang | d8c38a4 | 2025-02-19 14:25:39 +0800 | [diff] [blame] | 60 | @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] | 61 | @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] | 62 | @echo The default value of AP_PRJ is prj_cpe_min. The following values are optional : |
| 63 | @ls ap/project/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| 64 | @echo |
| 65 | @echo |
| 66 | @echo The default value of BOOT_PRJ is ufi_mini. The following values are optional : |
| 67 | @ls boot/prj/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| 68 | @echo |
wz.wang | 6c46070 | 2024-07-01 10:20:35 +0800 | [diff] [blame] | 69 | @echo |
| 70 | @echo The default value of PACK_PRJ is prj_cpe. The following values are optional : |
| 71 | @ls allbins/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' ' |
| 72 | @echo |
| 73 | @echo |
| 74 | @echo The default value of PATH_PRJ is lynq/CPE. The following values are optional : |
| 75 | @ls lynq/*/ -d | tr '\n' ' ' |
| 76 | @echo |
zw.wang | cd454f5 | 2024-11-13 17:56:28 +0800 | [diff] [blame] | 77 | @echo |
| 78 | @echo The default value of PATCH is no. The nand_patch directory is supported as follows : |
| 79 | @find lynq -mindepth 1 -maxdepth 2 -name nand_patch | xargs -I {} dirname "{}" | tr '\n' ' ' |
| 80 | @echo |
| 81 | @echo To support the nand_patch directory, add PATCH=yes at the end of compilation. |
| 82 | @echo |
wz.wang | 4cbe62b | 2024-06-28 11:28:43 +0800 | [diff] [blame] | 83 | |