mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-23 13:18:59 +00:00
[chore] add ninja support
This commit is contained in:
parent
f7af90c996
commit
93116cbb91
3 changed files with 5 additions and 2 deletions
|
@ -11,7 +11,6 @@ CMAKE = $(BL_SDK_BASE)/tools/cmake/bin/cmake
|
|||
endif
|
||||
|
||||
# The command to remove a file.
|
||||
|
||||
RM = $(CMAKE) -E remove_directory
|
||||
|
||||
CPU_ID ?=
|
||||
|
@ -33,11 +32,15 @@ build:Makefile
|
|||
$(CMAKE) -S . -B build -G "Unix Makefiles" $(cmake_definition)
|
||||
cd build && make -j4
|
||||
|
||||
ninja:Makefile
|
||||
$(CMAKE) -S . -B build -G Ninja $(cmake_definition)
|
||||
cd build && ninja
|
||||
|
||||
clean:
|
||||
$(RM) build
|
||||
|
||||
menuconfig:
|
||||
python ../../tools/kconfig/menuconfig.py
|
||||
|
||||
.PHONY:build clean menuconfig
|
||||
.PHONY:build clean menuconfig ninja
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue