Skip to content

Commit

Permalink
update rule to build template
Browse files Browse the repository at this point in the history
  • Loading branch information
HotelCalifornia committed Sep 11, 2020
1 parent 1c812d8 commit bcb0d6b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,17 @@ TEMPLATE_FILES=$(INCDIR)/display $(INCDIR)/pros/llemu.*
################################################################################
########## Nothing below this line should be edited by typical users ###########
-include ./common.mk

TEMPLATE_KERNEL_SEMVER:=">=4.0.0"

template: clean-template library
$(VV)mkdir -p $(TEMPLATE_DIR)
@echo "Moving template files to $(TEMPLATE_DIR)"
$Dcp --parents -r $(TEMPLATE_FILES) $(TEMPLATE_DIR)
$(VV)mkdir -p $(TEMPLATE_DIR)/firmware
$Dcp $(LIBAR) $(TEMPLATE_DIR)/firmware
@echo "Creating template"
$Dprosv5 c create-template \
$(TEMPLATE_DIR) $(LIBNAME) $(VERSION) \
$(foreach file,$(TEMPLATE_FILES) $(LIBAR),--system "$(file)") \
--target v5 --kernels $(TEMPLATE_KERNEL_SEMVER)

0 comments on commit bcb0d6b

Please sign in to comment.