mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 05:45:31 +03:00
Merge pull request #11236 from blckmn/makefile_release
Makefile changes to more easily support release naming convention
This commit is contained in:
commit
5a32c7252e
1 changed files with 7 additions and 2 deletions
9
Makefile
9
Makefile
|
@ -49,6 +49,8 @@ SERIAL_DEVICE ?= $(firstword $(wildcard /dev/ttyACM*) $(firstword $(wildcard /
|
||||||
# Flash size (KB). Some low-end chips actually have more flash than advertised, use this to override.
|
# Flash size (KB). Some low-end chips actually have more flash than advertised, use this to override.
|
||||||
FLASH_SIZE ?=
|
FLASH_SIZE ?=
|
||||||
|
|
||||||
|
# Release file naming (no revision to be present if this is 'yes')
|
||||||
|
RELEASE ?= no
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Things that need to be maintained as the source changes
|
# Things that need to be maintained as the source changes
|
||||||
|
@ -304,8 +306,11 @@ CPPCHECK = cppcheck $(CSOURCES) --enable=all --platform=unix64 \
|
||||||
$(addprefix -I,$(INCLUDE_DIRS)) \
|
$(addprefix -I,$(INCLUDE_DIRS)) \
|
||||||
-I/usr/include -I/usr/include/linux
|
-I/usr/include -I/usr/include/linux
|
||||||
|
|
||||||
|
ifeq ($(RELEASE),yes)
|
||||||
|
TARGET_BASENAME = $(BIN_DIR)/$(FORKNAME)_$(FC_VER)_$(TARGET)
|
||||||
|
else
|
||||||
TARGET_BASENAME = $(BIN_DIR)/$(FORKNAME)_$(FC_VER)_$(TARGET)_$(REVISION)
|
TARGET_BASENAME = $(BIN_DIR)/$(FORKNAME)_$(FC_VER)_$(TARGET)_$(REVISION)
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# Things we will build
|
# Things we will build
|
||||||
|
@ -486,7 +491,7 @@ targets-group-rest: $(GROUP_OTHER_TARGETS)
|
||||||
|
|
||||||
$(VALID_TARGETS):
|
$(VALID_TARGETS):
|
||||||
$(V0) @echo "Building $@" && \
|
$(V0) @echo "Building $@" && \
|
||||||
$(MAKE) binary hex TARGET=$@ && \
|
$(MAKE) hex TARGET=$@ && \
|
||||||
echo "Building $@ succeeded."
|
echo "Building $@ succeeded."
|
||||||
|
|
||||||
$(NOBUILD_TARGETS):
|
$(NOBUILD_TARGETS):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue