Skip to content

Commit

Permalink
Update sed command (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronBeneteau authored Oct 26, 2024
1 parent 13a3456 commit 83ae61e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/cmake/generate_cubemx.mk
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CustomMakefile.mk: Makefile $(CUSTOM_TARGETS_FILE)
Makefile: $(IOC_FILE) $(CUBEMX_GEN_SCRIPT_TEMPLATE)
@echo "Autogenerating from CubeMX. If you don't want to do this, you must manually 'Generate Code' before building."
# Create an file containing commands to generate the cubemx code.
sed $(CUBEMX_GEN_SCRIPT_TEMPLATE) -e 's/IOC_FILE/$(IOC_FILE)/g' > $(CUBEMX_GEN_SCRIPT)
sed -e 's/IOC_FILE/$(IOC_FILE)/g' $(CUBEMX_GEN_SCRIPT_TEMPLATE) > $(CUBEMX_GEN_SCRIPT)

# Run the cubemx program to generate code.
$(CUBEMX_JAVA) -jar "$(CUBEMX_PATH)" -q "$(CUBEMX_GEN_SCRIPT)"

0 comments on commit 83ae61e

Please sign in to comment.