Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/flipperdevices/libusb_stm32.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry <dmitrystu@gmail.com>2017-11-12 22:23:01 +0300
committerDmitry <dmitrystu@gmail.com>2017-11-12 22:23:01 +0300
commit083821a33fe1524da1e72d9ff7caa111d0463740 (patch)
tree9cee79441659619368b720f6fae883928130df43 /Makefile
parentd10081bf942f9ba8b92bb3054412e18076257a39 (diff)
chore: use CMSIS V4 or CMSIS V5 directory structure
closes #7
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 3f22c07..9945145 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
CMSIS ?=../../CMSIS
-CMSISDEV = $(CMSIS)/Device/ST
-CMSISINC = $(CMSIS)/Include
+CMSISDEV ?= $(CMSIS)/Device
+CMSISCORE ?= $(CMSIS)/CMSIS/Include $(CMSIS)/CMSIS/Core/Include
FLASH ?= st-flash
TOOLSET ?= arm-none-eabi-
CC = $(TOOLSET)gcc
@@ -8,18 +8,17 @@ LD = $(TOOLSET)gcc
AR = $(TOOLSET)gcc-ar
OBJCOPY = $(TOOLSET)objcopy
-
-STARTUP.stm32l052x8 = $(CMSISDEV)/STM32L0xx/Source/Templates/gcc/startup_stm32l052xx.s
+STARTUP.stm32l052x8 = $(CMSISDEV)/ST/STM32L0xx/Source/Templates/gcc/startup_stm32l052xx.s
CFLAGS.stm32l052x8 = -mcpu=cortex-m0plus -mfloat-abi=soft
DEFINES.stm32l052x8 = STM32L0 STM32L052xx
LDSCRIPT.stm32l052x8 = demo/stm32l052x8.ld
-STARTUP.stm32l100xc = $(CMSISDEV)/STM32L1xx/Source/Templates/gcc/startup_stm32l100xc.s
+STARTUP.stm32l100xc = $(CMSISDEV)/ST/STM32L1xx/Source/Templates/gcc/startup_stm32l100xc.s
CFLAGS.stm32l100xc = -mcpu=cortex-m3 -mfloat-abi=soft
DEFINES.stm32l100xc = STM32L1 STM32L100xC
LDSCRIPT.stm32l100xc = demo/stm32l100xc.ld
-STARTUP.stm32l476rg = $(CMSISDEV)/STM32L4xx/Source/Templates/gcc/startup_stm32l476xx.s
+STARTUP.stm32l476rg = $(CMSISDEV)/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l476xx.s
CFLAGS.stm32l476rg = -mcpu=cortex-m4
DEFINES.stm32l476rg = STM32L4 STM32L476xx
LDSCRIPT.stm32l476rg = demo/stm32l476xg.ld
@@ -37,7 +36,7 @@ MODULE ?= libusb_stm32.a
CFLAGS ?= $(CFLAGS.$(MCU))
CFLAGS2 = -mthumb -Os -std=gnu99
DEFINES ?= $(DEFINES.$(MCU)) FORCE_C_DRIVER
-INCLUDES ?= $(CMSISDEV) $(CMSISINC) .
+INCLUDES ?= $(CMSISDEV)/ST $(CMSISCORE) .
SOURCES = $(wildcard src/*.c) $(wildcard src/*.S)
OBJECTS = $(addsuffix .o, $(basename $(SOURCES)))
ARFLAGS ?= -cvq