mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-29 00:11:16 +01:00
boards: added shared Makefile.inc for msp430 boards
This commit is contained in:
parent
cca167e77c
commit
a07bff47a8
21
boards/Makefile.include.msp430_common
Normal file
21
boards/Makefile.include.msp430_common
Normal file
@ -0,0 +1,21 @@
|
||||
# default toolchain prefix
|
||||
export PREFIX ?= msp430-
|
||||
|
||||
# define build specific options
|
||||
CFLAGS_CPU = -mmcu=$(CPU_MODEL)
|
||||
CFLAGS_STYLE = -std=gnu99 -Wall -Wstrict-prototypes
|
||||
CFLAGS_LINK =
|
||||
CFLAGS_DBG = -gdwarf-2
|
||||
CFLAGS_OPT ?= -Os
|
||||
# export compiler flags
|
||||
export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_STYLE) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)
|
||||
# export assmebly flags
|
||||
export ASFLAGS += $(CFLAGS_CPU) --defsym $(CPU_MODEL)=1 $(CFLAGS_DEBUG)
|
||||
# export linker flags
|
||||
export LINKFLAGS += $(CFLAGS_CPU) -lgcc
|
||||
|
||||
# Import all toolchain settings
|
||||
include $(RIOTBOARD)/Makefile.include.gnu
|
||||
|
||||
# export board specific includes to the global includes-listing
|
||||
export INCLUDES += -I$(RIOTBOARD)/$(BOARD)/include
|
||||
Loading…
x
Reference in New Issue
Block a user