blob: c7bca08f25e82baf7dbe45cd7210b9433e6d2c51 [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.wang4f1b5282024-08-14 15:47:35 +08007ifeq ($(RF_TYPES), 230A)
8RF_TYPE_R306 = RF_TYPE=230A
9endif
10ifeq ($(DCXOS), yes)
11DCXO_R306 = DCXO=yes
12endif
wz.wang4cbe62b2024-06-28 11:28:43 +080013
14.PHONY:all
15all:copy boot ap pack
16 @echo OK
17.PHONY:pack
18pack:
19 make -C allbins/zx297520v3/$(PACK_PRJ)/scripts_linux/
20.PHONY:boot
21boot:
22 make -C boot/prj/zx297520v3/$(BOOT_PRJ)/build/ allclean all
23.PHONY:ap
24ap:
zw.wang4f1b5282024-08-14 15:47:35 +080025 make -C ap/project/zx297520v3/$(AP_PRJ)/build/ allclean all $(RF_TYPE_R306) $(DCXO_R306)
wz.wang4cbe62b2024-06-28 11:28:43 +080026.PHONY:ap_normal2
27ap_normal2:
zw.wang4f1b5282024-08-14 15:47:35 +080028 make -C ap/project/zx297520v3/$(AP_PRJ)/build/ normal2 $(RF_TYPE_R306) $(DCXO_R306)
wz.wang4cbe62b2024-06-28 11:28:43 +080029.PHONY:copy
30copy:
wz.wang6c460702024-07-01 10:20:35 +080031 cp -rf $(PATH_PRJ)/* .
wz.wang4cbe62b2024-06-28 11:28:43 +080032.PHONY:help
33help:
wz.wang6c460702024-07-01 10:20:35 +080034 @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 +080035 @echo example prj_cpe_aic8800dw : make AP_PRJ=prj_cpe PATH_PRJ=lynq/CPE_AIC8800DW
wz.wang6c460702024-07-01 10:20:35 +080036 @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 +080037 @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 +080038 @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 -070039 @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 +080040 @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 +080041 @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 +080042 @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 +080043 @echo The default value of AP_PRJ is prj_cpe_min. The following values are optional :
44 @ls ap/project/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' '
45 @echo
46 @echo
47 @echo The default value of BOOT_PRJ is ufi_mini. The following values are optional :
48 @ls boot/prj/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' '
49 @echo
wz.wang6c460702024-07-01 10:20:35 +080050 @echo
51 @echo The default value of PACK_PRJ is prj_cpe. The following values are optional :
52 @ls allbins/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' '
53 @echo
54 @echo
55 @echo The default value of PATH_PRJ is lynq/CPE. The following values are optional :
56 @ls lynq/*/ -d | tr '\n' ' '
57 @echo
wz.wang4cbe62b2024-06-28 11:28:43 +080058