mirror of
https://github.com/Fishwaldo/OBLFR.git
synced 2025-03-15 19:31:28 +00:00
36 lines
605 B
Text
36 lines
605 B
Text
BL_SDK_BASE ?= ${OBLFR_SDK_PATH}/../bl_mcu_sdk
|
|
|
|
export BL_SDK_BASE
|
|
|
|
|
|
BOARD ?= ox64
|
|
|
|
BOARD_DIR ?= ${OBLFR_SDK_PATH}/bsp
|
|
CROSS_COMPILE ?= riscv64-unknown-elf-
|
|
|
|
default: proj.conf
|
|
@$(MAKE) build
|
|
|
|
config: proj.conf
|
|
cd build && make config
|
|
|
|
proj.conf:
|
|
$(CMAKE) -S . -B build -G $(cmake_generator) $(cmake_definition)
|
|
cd build && make proj.conf
|
|
|
|
include $(BL_SDK_BASE)/project.build
|
|
|
|
distclean: clean
|
|
-@rm -rf build || true
|
|
-@rm -f sdkconfig || true
|
|
|
|
clean::
|
|
-@rm -f proj.conf || true
|
|
|
|
flash: default
|
|
@$(MAKE) -C build flash
|
|
|
|
monitor:
|
|
@$(MAKE) -C build monitor
|
|
|
|
.PHONY:config clean default distclean
|