define platform specific constants for all chips
previously, only stm32 chips passed the information about which chip to build on into the compiler. this information is essential to dispatch, thus defining LPC13XX, LPC17XX, LPC43XX and LM3S in analogy to STM32F1..4.
This commit is contained in:
parent
75c2165827
commit
99d7b21032
@ -37,7 +37,7 @@ endif
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS += -O0 -g3 -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
|
CFLAGS += -O0 -g3 -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
|
||||||
-mcpu=cortex-m3 -mthumb -MD
|
-mcpu=cortex-m3 -mthumb -MD -DLM3S
|
||||||
LDSCRIPT ?= $(BINARY).ld
|
LDSCRIPT ?= $(BINARY).ld
|
||||||
LDFLAGS += -L$(TOOLCHAIN_DIR)/lib \
|
LDFLAGS += -L$(TOOLCHAIN_DIR)/lib \
|
||||||
-T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections
|
-T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections
|
||||||
|
@ -37,7 +37,7 @@ endif
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
|
CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
|
||||||
-mcpu=cortex-m3 -mthumb -MD
|
-mcpu=cortex-m3 -mthumb -MD -DLPC13XX
|
||||||
LDSCRIPT ?= $(BINARY).ld
|
LDSCRIPT ?= $(BINARY).ld
|
||||||
LDFLAGS += -L$(TOOLCHAIN_DIR)/lib \
|
LDFLAGS += -L$(TOOLCHAIN_DIR)/lib \
|
||||||
-T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections
|
-T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections
|
||||||
|
@ -37,7 +37,7 @@ endif
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS += -O0 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
|
CFLAGS += -O0 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
|
||||||
-mcpu=cortex-m3 -mthumb -MD
|
-mcpu=cortex-m3 -mthumb -MD -DLPC17XX
|
||||||
LDSCRIPT ?= $(BINARY).ld
|
LDSCRIPT ?= $(BINARY).ld
|
||||||
LDFLAGS += -L$(TOOLCHAIN_DIR)/lib \
|
LDFLAGS += -L$(TOOLCHAIN_DIR)/lib \
|
||||||
-T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections
|
-T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections
|
||||||
|
@ -41,7 +41,7 @@ endif
|
|||||||
|
|
||||||
CFLAGS += -O2 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
|
CFLAGS += -O2 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
|
||||||
-mcpu=cortex-m4 -mthumb -MD \
|
-mcpu=cortex-m4 -mthumb -MD \
|
||||||
-mfloat-abi=hard -mfpu=fpv4-sp-d16
|
-mfloat-abi=hard -mfpu=fpv4-sp-d16 -DLPC43XX
|
||||||
LDSCRIPT ?= $(BINARY).ld
|
LDSCRIPT ?= $(BINARY).ld
|
||||||
LDFLAGS += -L$(TOOLCHAIN_DIR)/lib \
|
LDFLAGS += -L$(TOOLCHAIN_DIR)/lib \
|
||||||
-T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections -Xlinker -Map=$(BINARY).map
|
-T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections -Xlinker -Map=$(BINARY).map
|
||||||
|
@ -25,7 +25,7 @@ CC = $(PREFIX)-gcc
|
|||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os -g -Wall -Wextra -I../../include -fno-common \
|
CFLAGS = -Os -g -Wall -Wextra -I../../include -fno-common \
|
||||||
-mcpu=cortex-m3 -mthumb -Wstrict-prototypes \
|
-mcpu=cortex-m3 -mthumb -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD
|
-ffunction-sections -fdata-sections -MD -DLM3S
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = gpio.o vector.o assert.o
|
OBJS = gpio.o vector.o assert.o
|
||||||
|
@ -25,7 +25,7 @@ CC = $(PREFIX)-gcc
|
|||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -Os -g -Wall -Wextra -I../../include -fno-common \
|
CFLAGS = -Os -g -Wall -Wextra -I../../include -fno-common \
|
||||||
-mcpu=cortex-m3 -mthumb -Wstrict-prototypes \
|
-mcpu=cortex-m3 -mthumb -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD
|
-ffunction-sections -fdata-sections -MD -DLPC13XX
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = gpio.o
|
OBJS = gpio.o
|
||||||
|
@ -25,7 +25,7 @@ CC = $(PREFIX)-gcc
|
|||||||
AR = $(PREFIX)-ar
|
AR = $(PREFIX)-ar
|
||||||
CFLAGS = -O0 -g -Wall -Wextra -I../../include -fno-common \
|
CFLAGS = -O0 -g -Wall -Wextra -I../../include -fno-common \
|
||||||
-mcpu=cortex-m3 -mthumb -Wstrict-prototypes \
|
-mcpu=cortex-m3 -mthumb -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD
|
-ffunction-sections -fdata-sections -MD -DLPC17XX
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = gpio.o
|
OBJS = gpio.o
|
||||||
|
@ -28,7 +28,7 @@ AR = $(PREFIX)-ar
|
|||||||
CFLAGS = -O2 -g3 -Wall -Wextra -I../../include -fno-common \
|
CFLAGS = -O2 -g3 -Wall -Wextra -I../../include -fno-common \
|
||||||
-mcpu=cortex-m4 -mthumb -Wstrict-prototypes \
|
-mcpu=cortex-m4 -mthumb -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD \
|
-ffunction-sections -fdata-sections -MD \
|
||||||
-mfloat-abi=hard -mfpu=fpv4-sp-d16
|
-mfloat-abi=hard -mfpu=fpv4-sp-d16 -DLPC43XX
|
||||||
# ARFLAGS = rcsv
|
# ARFLAGS = rcsv
|
||||||
ARFLAGS = rcs
|
ARFLAGS = rcs
|
||||||
OBJS = gpio.o scu.o i2c.o ssp.o
|
OBJS = gpio.o scu.o i2c.o ssp.o
|
||||||
|
Loading…
x
Reference in New Issue
Block a user