blob: 5e808ef12e9b8d8973b87a34da03a6a180e11908 [file] [log] [blame]
wz.wang4cbe62b2024-06-28 11:28:43 +08001AP_PRJ ?= prj_cpe_min
2BOOT_PRJ ?= ufi_mini
3PACK_PRJ ?= prj_cpe
zw.wang4f1b5282024-08-14 15:47:35 +08004RF_TYPES ?= 230A
5DCXOS ?= yes
wz.wang6c460702024-07-01 10:20:35 +08006PATH_PRJ ?= lynq/CPE
zw.wangcd454f52024-11-13 17:56:28 +08007PATCH ?= no
zw.wang4f1b5282024-08-14 15:47:35 +08008ifeq ($(RF_TYPES), 230A)
9RF_TYPE_R306 = RF_TYPE=230A
10endif
11ifeq ($(DCXOS), yes)
12DCXO_R306 = DCXO=yes
13endif
wz.wang4cbe62b2024-06-28 11:28:43 +080014
15.PHONY:all
16all:copy boot ap pack
17 @echo OK
18.PHONY:pack
19pack:
20 make -C allbins/zx297520v3/$(PACK_PRJ)/scripts_linux/
21.PHONY:boot
22boot:
23 make -C boot/prj/zx297520v3/$(BOOT_PRJ)/build/ allclean all
24.PHONY:ap
25ap:
zw.wang4f1b5282024-08-14 15:47:35 +080026 make -C ap/project/zx297520v3/$(AP_PRJ)/build/ allclean all $(RF_TYPE_R306) $(DCXO_R306)
wz.wang4cbe62b2024-06-28 11:28:43 +080027.PHONY:ap_normal2
28ap_normal2:
zw.wang4f1b5282024-08-14 15:47:35 +080029 make -C ap/project/zx297520v3/$(AP_PRJ)/build/ normal2 $(RF_TYPE_R306) $(DCXO_R306)
wz.wang4cbe62b2024-06-28 11:28:43 +080030.PHONY:copy
31copy:
wz.wang6c460702024-07-01 10:20:35 +080032 cp -rf $(PATH_PRJ)/* .
zw.wangcd454f52024-11-13 17:56:28 +080033ifeq ($(PATCH), yes)
34 cp -rf $(PATH_PRJ)/nand_patch/* .
35else
36 @echo PATCH=no
37endif
wz.wang4cbe62b2024-06-28 11:28:43 +080038.PHONY:help
39help:
wz.wang6c460702024-07-01 10:20:35 +080040 @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.wangbd896262024-07-22 18:04:13 +080041 @echo example prj_cpe_aic8800dw : make AP_PRJ=prj_cpe PATH_PRJ=lynq/CPE_AIC8800DW
wz.wang6c460702024-07-01 10:20:35 +080042 @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.wangcfae4372024-08-12 16:41:12 +080043 @echo example R305 : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/R305
zw.wang4f1b5282024-08-14 15:47:35 +080044 @echo example R306 : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/R306
mj.qu4cea4592024-08-29 22:35:55 -070045 @echo example CPE_COMMON : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/CPE_COMMON
qumengjia90e33962024-09-24 19:15:16 +080046 @echo example CPE_TELKOMSEL : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/CPE_TELKOMSEL
qumengjiaa295b332024-11-01 09:35:57 +080047 @echo example R307 : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/R307
qumengjiaca65ef52024-11-06 15:42:21 +080048 @echo example CPE_COMMON : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/S300
wz.wang4cbe62b2024-06-28 11:28:43 +080049 @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.wang6c460702024-07-01 10:20:35 +080056 @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.wangcd454f52024-11-13 17:56:28 +080064 @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.wang4cbe62b2024-06-28 11:28:43 +080070