You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
3.0 KiB
TOML

# Lookup Helper Manifest
# This file is for connecting all targets to their respective locations in the framework
[arch]
QUOTE = "\""
PROJECT_NAME = "Default Project Name"
DIR_INCLUDES = ["-I$(QUOTE)../ESF/mcu/inc$(QUOTE)",
"-I$(QUOTE)../inc$(QUOTE)"]
DEPS = "$(OBJS:%.o=%.d)"
DEPS_AS_ARGS = "$(OBJS:%.o=%.d)"
OBJS = ["src/main.o"]
OBJS_AS_ARGS = ["$(QUOTE)src/main.o$(QUOTE)", "."]
CLEAN_PREREQS = [""]
CLEAN_CMDS = ["rm -f $(OBJS_AS_ARGS)",
"rm -f $(DEPS_AS_ARGS)"]
[arch.arm]
TOOLCHAIN = "${ESF_DIR}/toolchain/arm/bin/arm-none-eabi"
CC = "${TOOLCHAIN}-gcc"
CXX = "${TOOLCHAIN}-g++"
OBJCOPY = "${TOOLCHAIN}-objcopy"
OBJDUMP = "${TOOLCHAIN}-objdump"
GDB = "${TOOLCHAIN}-gdb"
SIZE = "${TOOLCHAIN}-size"
AS = "${TOOLCHAIN}-as"
CFLAGS = ["-x c", "-DDEBUG", "-Os",
"-g3",
"-Wall",
"-std=gnu99",
"$(DIR_INCLUDES)",
"-MD -MP",
"-MF$(QUOTE)$(@:%.o=%.d)$(QUOTE)",
"-MT$(QUOTE)$(@:%.o=%.d)$(QUOTE)",
"-MT$(QUOTE)$(@:%.o=%.o)$(QUOTE)"]
EFLAGS = ["-Wl,--start-group -l m",
"-Wl,--end-group -mthumb",
"-Wl,-Map=$(QUOTE)$(PROJECT_NAME).map$(QUOTE)",
"--specs=nano.specs",
"-Wl,--gc-sections"]
HFLAGS = ["-R .eeprom",
"-R .fuse",
"-R .lock",
"-R .signature"]
EEP_FLAGS = ["-j .eeprom --set-section-flags=.eeprom=alloc,load",
"--change-section-lma",
".eeprom=0",
"--no-change-warnings"]
LD_PATH = "../ESF/ld"
DIR_INCLUDES = ["-I$(QUOTE)../ESF/common/inc$(QUOTE)",
"-I$(QUOTE)../ESF/common/inc/cmsis$(QUOTE)"]
BUILD_PREREQ = ["$(SUB_DIRS)",
"$(PROJECT_NAME).elf)",
"$(PROJECT_NAME).bin)",
"$(PROJECT_NAME).hex)",
"$(PROJECT_NAME).eep)",
"$(PROJECT_NAME).lss)"]
BUILD_CMDS = ["$(QUOTE)$(SIZE)$(QUOTE) $(QUOTE)$(PROJECT_NAME).elf$(QUOTE)"]
SUB_DIRS = ["src", "ESF/mcu/src"]
[arch.arm.samd21a]
MCPU = "cortex-m0plus"
[arch.arm.samd21a.samd21e15a]
[arch.arm.samd21a.samd21e16a]
[arch.arm.samd21a.samd21e17a]
[arch.arm.samd21a.samd21e18a]
[arch.arm.samd21a.samd21g15a]
[arch.arm.samd21a.samd21g16a]
[arch.arm.samd21a.samd21g17a]
[arch.arm.samd21a.samd21g17au]
[arch.arm.samd21a.samd21g18a]
[arch.arm.samd21a.samd21g18au]
[arch.arm.samd21a.samd21j15a]
[arch.arm.samd21a.samd21j16a]
[arch.arm.samd21a.samd21j17a]
MCU = "__SAMD21J17A__"
LD_SCRIPT = "$(LD_PATH)/samd21j17a_flash.ld"
[arch.arm.samd21a.samd21j18a]
OBJS = ["ESF/mcu/src/startup_samd21j18a.o",
"ESF/mcu/src/system_samd21j18a.o"]
OBJS_AS_ARGS = ["$(QUOTE)ESF/mcu/src/startup_samd21j18a.o$(QUOTE)",
"$(QUOTE)ESF/mcu/src/system_samd21j18a.o$(QUOTE)"]
MCU = "__SAMD21J18A__"
LD_SCRIPT = "$(LD_PATH)/samd21j18a_flash.ld"
[arch.arm.same54]
MCPU = "cortex-m4"
FPU = "fpv4-sp-d16"
FLOAT_ABI = "softfp"
[arch.arm.same54.same54p20a]
MCU = "__SAME54P20A__"
[arch.avr]
CC = "arm-none-eabi-gcc"
CXX = "arm-none-eabi-g++"
OBJCOPY = "arm-none-eabi-objcopy"
OBJDUMP = "arm-none-eabi-objdump"
SIZE = "arm-none-eabi-gdb"
AS = "arm-none-eabi-as"