summaryrefslogtreecommitdiff
path: root/fw/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'fw/Makefile')
-rw-r--r--fw/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/fw/Makefile b/fw/Makefile
index d4c4678..0a83aa2 100644
--- a/fw/Makefile
+++ b/fw/Makefile
@@ -6,6 +6,7 @@ CMSIS_DEVICE_DIR ?= upstream/st-cmsis-f0
CMSIS_CORE_DIR ?= upstream/cmsis-core
HAL_DIR ?= upstream/st-hal-f0
ST_USBD_DIR ?= upstream/st-usb-device
+MUSL_DIR ?= upstream/musl
########################################################################################################################
# Sources
@@ -20,6 +21,9 @@ C_SOURCES := src/main.c \
src/usbd_hid.c \
src/system_stm32f0xx.c
+C_SOURCES += $(MUSL_DIR)/src/string/memset.c \
+ $(MUSL_DIR)/src/string/memcpy.c
+
C_SOURCES += $(HAL_DIR)/Src/stm32f0xx_ll_usb.c \
$(HAL_DIR)/Src/stm32f0xx_hal_adc.c \
$(HAL_DIR)/Src/stm32f0xx_hal_adc_ex.c \
@@ -73,7 +77,8 @@ CFLAGS += -I$(BUILDDIR) \
-I$(CMSIS_CORE_DIR) \
-I$(HAL_DIR)/Inc \
-I$(ST_USBD_DIR)/Core/Inc \
- -I$(ST_USBD_DIR)/Class/HID/Inc
+ -I$(ST_USBD_DIR)/Class/HID/Inc \
+ -Imusl_include_shims
# for musl
CFLAGS += -Dhidden=