Fix stupid fucking bug with simulator compilation

This commit is contained in:
2024-06-10 17:39:48 +02:00
parent 1d56e5a865
commit b53bd2baf7
4 changed files with 9 additions and 4 deletions

View File

@ -16,7 +16,6 @@ application_path := $(call qs,$(abspath $(call sq,$(makefile_path)../..)))
# Since the path may show up as a target in the Makefile, we can't have a colon
# in it. So we replace z:/ with /z/ to avoid this.
subst_drivename = $(shell echo $(1) | sed -e 's!^\([a-zA-Z]\):/!/\1/!')
export subst_drivename
application_path := $(call subst_drivename,$(application_path))
.PHONY: clean assets all
@ -26,7 +25,7 @@ all clean assets:
$(error Spaces not allowed in path)
else
ADDITIONAL_SOURCES := $(application_path)/../Core/Src/vehicle_state.c
ADDITIONAL_SOURCES := vehicle_state.c
ADDITIONAL_INCLUDE_PATHS := $(application_path)/../Core/Inc
ADDITIONAL_LIBRARY_PATHS :=
ADDITIONAL_LIBRARIES :=