From 1f9390005f15e011ec8ffd394ba73a6119b58345 Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 21 Dec 2020 21:10:37 +0100 Subject: Add musl --- fw/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'fw/Makefile') 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= -- cgit