[Feature][R306][task-view-154][SDK] Creating an R306 compilation project
Only Configure: Yes
Affected branch: master
Affected module: wifi
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: Ifa5745a1f2b230ab985bb1a38d5cdffddeb55c7d
diff --git a/Makefile b/Makefile
index 2304875..0663ff6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,15 @@
AP_PRJ ?= prj_cpe_min
BOOT_PRJ ?= ufi_mini
PACK_PRJ ?= prj_cpe
-RF_TYPE ?= 230A
-DCXO ?= yes
+RF_TYPES ?= 230A
+DCXOS ?= yes
PATH_PRJ ?= lynq/CPE
+ifeq ($(RF_TYPES), 230A)
+RF_TYPE_R306 = RF_TYPE=230A
+endif
+ifeq ($(DCXOS), yes)
+DCXO_R306 = DCXO=yes
+endif
.PHONY:all
all:copy boot ap pack
@@ -16,10 +22,10 @@
make -C boot/prj/zx297520v3/$(BOOT_PRJ)/build/ allclean all
.PHONY:ap
ap:
- make -C ap/project/zx297520v3/$(AP_PRJ)/build/ allclean all RF_TYPE=$(RF_TYPE) DCXO=$(DCXO)
+ make -C ap/project/zx297520v3/$(AP_PRJ)/build/ allclean all $(RF_TYPE_R306) $(DCXO_R306)
.PHONY:ap_normal2
ap_normal2:
- make -C ap/project/zx297520v3/$(AP_PRJ)/build/ normal2 RF_TYPE=$(RF_TYPE) DCXO=$(DCXO)
+ make -C ap/project/zx297520v3/$(AP_PRJ)/build/ normal2 $(RF_TYPE_R306) $(DCXO_R306)
.PHONY:copy
copy:
cp -rf $(PATH_PRJ)/* .
@@ -29,6 +35,7 @@
@echo example prj_cpe_aic8800dw : make AP_PRJ=prj_cpe PATH_PRJ=lynq/CPE_AIC8800DW
@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
@echo example R305 : make AP_PRJ=prj_cpe_min BOOT_PRJ=ufi_mini PACK_PRJ=prj_cpe PATH_PRJ=lynq/R305
+ @echo example R306 : make AP_PRJ=prj_mifi_min BOOT_PRJ=mifi_mini_64 PACK_PRJ=prj_mifi PATH_PRJ=lynq/R306
@echo The default value of AP_PRJ is prj_cpe_min. The following values are optional :
@ls ap/project/zx297520v3/*/ -d | xargs -I {} basename "{}" | tr '\n' ' '
@echo