numbering...

This commit is contained in:
tkl 2016-08-01 14:05:39 +02:00
parent dc3ee9f2b9
commit 99cff149b7

View File

@ -1,13 +1,16 @@
##############################################################
#
##############################################################
include config/make/rules.mk include config/make/rules.mk
OS_NAME = kosmos OS_NAME = kosmos
MAINFILE = $(EXE_DIR)/lib$(OS_NAME)-$(ARCH)-$(BOARD)$(DBG_EXT)$(LIB_EXT) # version numbering deployed by ci deploy script - no necessary for local build
DEPLOY_PACKET = lib$(OS_NAME)-$(ARCH)-$(BOARD)-$()$(DBG_EXT).tar.gz ifdef $(SW_KERNEL)
VERSION := -$(SW_KERNEL).$(SW_MAJOR).$(SW_MINOR)-
else
VERSION :=
endif
MAINFILE = $(EXE_DIR)/lib$(OS_NAME)-$(ARCH)-$(BOARD)$(VERSION)$(DBG_EXT)$(LIB_EXT)
DEPLOY_PACKET = lib$(OS_NAME)-$(ARCH)-$(BOARD)$(VERSION)$(DBG_EXT).tar.xz
INCLUDES += $(SRC_DIR) INCLUDES += $(SRC_DIR)
@ -30,17 +33,14 @@ ASMSOURCES += $(foreach folder, $(SUB_FOLDER), $(wildcard $(ROOT_DIR)/$(folder)/
all: check $(MAINFILE) all: check $(MAINFILE)
deploy: all deploy: all
echo $(SW_KERNEL)
echo $(SW_MAJOR)
echo $(SW_MINOR)
@$(MKDIR) $(EXE_DIR)/include @$(MKDIR) $(EXE_DIR)/include
$(SRC_DIR)/scripts/board_interface.py -b "$(SRC_DIR)/firmware/arch/$(CPU)/board/$(BOARD)/include/$(BOARD).h" -o "$(EXE_DIR)/include/board_devices.h" $(SRC_DIR)/scripts/board_interface.py -b "$(SRC_DIR)/firmware/arch/$(CPU)/board/$(BOARD)/include/$(BOARD).h" -o "$(EXE_DIR)/include/board_devices.h"
$(SRC_DIR)/scripts/stack_interface.py -i "$(SRC_DIR)/firmware/arch/$(CPU)/include/$(CPU)_stack.h" -o "$(EXE_DIR)/include/stack.h" $(SRC_DIR)/scripts/stack_interface.py -i "$(SRC_DIR)/firmware/arch/$(CPU)/include/$(CPU)_stack.h" -o "$(EXE_DIR)/include/stack.h"
cp $(SRC_DIR)/firmware/kernel/interface/*.* $(EXE_DIR)/include/ cp $(SRC_DIR)/firmware/kernel/interface/*.* $(EXE_DIR)/include/
tar cvJf $(DEPLOY_PACKET) -C $(EXE_DIR) .
echo $(DEPLOY_PACKET)
check: check:
echo $(CHECK_FOLDER)
echo $(CHECKSOURCES)
$(CPPCHECK) $(CPPCHECK_FLAGS) $(CHECKSOURCES) $(CPPCHECK) $(CPPCHECK_FLAGS) $(CHECKSOURCES)