forked from Ai-Thinker-Open/Ai-Thinker-WB2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathversion.mk
38 lines (32 loc) · 1.04 KB
/
version.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
EXTRA_CPPFLAGS ?=
ifdef CONFIG_CHIP_NAME
ifeq ("$(CONFIG_CHIP_NAME)", "BL602")
EXTRA_CPPFLAGS += -D BL_SDK_VER=\"release_bl_iot_sdk_1.6.40-11-gf4c8dac01\"
EXTRA_CPPFLAGS += -D BL_SDK_PHY_VER=\"a0_final-106-g24fc0eb\"
EXTRA_CPPFLAGS += -D BL_SDK_RF_VER=\"f6ed2e9\"
EXTRA_CPPFLAGS += -D BL_SDK_STDDRV_VER=\"a67b266\"
endif
ifeq ("$(CONFIG_CHIP_NAME)", "BL702")
EXTRA_CPPFLAGS += -D BL_SDK_VER=\"release_bl_iot_sdk_1.6.40-11-gf4c8dac01\"
EXTRA_CPPFLAGS += -D BL_SDK_STDDRV_VER=\"dff9318\"
EXTRA_CPPFLAGS += -D BL_SDK_STDCOM_VER=\"9fe1995\"
EXTRA_CPPFLAGS += -D BL_SDK_RF_VER=\"b5662bc\"
endif
else
export CONFIG_CHIP_NAME=BL602
export CONFIG_LINK_ROM=1
EXTRA_CPPFLAGS += -D BL_SDK_VER=\"release_bl_iot_sdk_1.6.40-11-gf4c8dac01\"
EXTRA_CPPFLAGS += -D BL_SDK_PHY_VER=\"a0_final-106-g24fc0eb\"
EXTRA_CPPFLAGS += -D BL_SDK_RF_VER=\"f6ed2e9\"
EXTRA_CPPFLAGS += -D BL_SDK_STDDRV_VER=\"a67b266\"
endif
ifdef p
export SERIAL_PORT=$(p)
else
export SERIAL_PORT=/dev/ttyUSB0
endif
ifdef b
export SERIAL_BAUDRATE=$(b)
else
export SERIAL_BAUDRATE=921600
endif