diff options
author | jaseg <git@jaseg.de> | 2020-12-21 21:10:37 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2020-12-21 21:10:37 +0100 |
commit | 1f9390005f15e011ec8ffd394ba73a6119b58345 (patch) | |
tree | 678d2737d592caf9b49ed6964c1cb013feff8f97 /fw/Makefile | |
parent | 74507f4c364d9cfac39df98fdfaf7eb2de107230 (diff) | |
download | minikbd-1f9390005f15e011ec8ffd394ba73a6119b58345.tar.gz minikbd-1f9390005f15e011ec8ffd394ba73a6119b58345.tar.bz2 minikbd-1f9390005f15e011ec8ffd394ba73a6119b58345.zip |
Add musl
Diffstat (limited to 'fw/Makefile')
-rw-r--r-- | fw/Makefile | 7 |
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= |