This repository has been archived on 2023-07-17. You can view files and clone it, but cannot push or open issues or pull requests.
bl_mcu_sdk/Makefile
2021-06-20 12:33:52 +08:00

57 lines
1.0 KiB
Makefile

BOARD?=bl706_iot
CHIP?=bl702
APP_DIR?=examples
APP?=helloworld
CPU_ID?=m0
SUPPORT_SHELL?=n
SUPPORT_FREERTOS?=n
SUPPORT_CRYPTO?=n
SUPPORT_LVGL?=n
SUPPORT_FLOAT?=n
SUPPORT_BLE?=n
SUPPORT_XZ?=n
SUPPORT_LWIP?=n
SUPPORT_TFLITE?=n
INTERFACE?=uart
BAUDRATE ?=2000000
FORMAT_DIR?=.
export BOARD
export CHIP
export APP_DIR
export APP
export CPU_ID
export SUPPORT_SHELL
export SUPPORT_FREERTOS
export SUPPORT_CRYPTO
export SUPPORT_LVGL
export SUPPORT_FLOAT
export SUPPORT_BLE
export SUPPORT_XZ
export SUPPORT_LWIP
export SUPPORT_TFLITE
# The command to remove a file.
RM = cmake -E rm -rf
build:
cmake -E make_directory build
cmake -E copy project.build build
make -C ./build -f ./project.build
download:
./tools/bflb_flash_tool/bflb_mcu_tool --chipname=$(CHIP) --interface=$(INTERFACE) --baudrate=$(BAUDRATE)
format:
find $(FORMAT_DIR)/ -name "*.c" -o -name "*.h" | xargs clang-format -style=file -i
clean:
$(RM) out
$(RM) build
.PHONY:build clean download format