Skip to content

Commit bcb0d6b

Browse files
update rule to build template
1 parent 1c812d8 commit bcb0d6b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,17 @@ TEMPLATE_FILES=$(INCDIR)/display $(INCDIR)/pros/llemu.*
4242
################################################################################
4343
########## Nothing below this line should be edited by typical users ###########
4444
-include ./common.mk
45+
46+
TEMPLATE_KERNEL_SEMVER:=">=4.0.0"
47+
48+
template: clean-template library
49+
$(VV)mkdir -p $(TEMPLATE_DIR)
50+
@echo "Moving template files to $(TEMPLATE_DIR)"
51+
$Dcp --parents -r $(TEMPLATE_FILES) $(TEMPLATE_DIR)
52+
$(VV)mkdir -p $(TEMPLATE_DIR)/firmware
53+
$Dcp $(LIBAR) $(TEMPLATE_DIR)/firmware
54+
@echo "Creating template"
55+
$Dprosv5 c create-template \
56+
$(TEMPLATE_DIR) $(LIBNAME) $(VERSION) \
57+
$(foreach file,$(TEMPLATE_FILES) $(LIBAR),--system "$(file)") \
58+
--target v5 --kernels $(TEMPLATE_KERNEL_SEMVER)

0 commit comments

Comments
 (0)