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.
145 lines
4.8 KiB
TOML
145 lines
4.8 KiB
TOML
# Lookup Helper Manifest
|
|
# This file is for connecting all targets to their respective locations in the framework
|
|
|
|
|
|
[arch]
|
|
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)",
|
|
"rm -f $(PROJECT_NAME).bin",
|
|
"rm -f $(PROJECT_NAME).elf",
|
|
"rm -f $(PROJECT_NAME).hex"]
|
|
|
|
DEBUG_PREREQS = ["$(PROJECT_NAME).elf"]
|
|
DEBUG_CMDS = ["$(QUOTE)arm-none-eabi-gdb$(QUOTE) -iex $(QUOTE)target extended-remote localhost:3333$(QUOTE) $(PROJECT_NAME).elf"]
|
|
|
|
ELF_TARGET_PREREQS = ["$(OBJS)"]
|
|
ELF_TARGET_CMDS = ["$(QUOTE)$(CC)$(QUOTE) -o $@ $(OBJS_AS_ARGS) $(ELF_FLAGS)"]
|
|
|
|
BIN_TARGET_PREREQS = ["$(PROJECT_NAME).elf"]
|
|
BIN_TARGET_CMDS = ["$(QUOTE)$(OBJCOPY)$(QUOTE) -O binary $(QUOTE)$<$(QUOTE) $(QUOTE)$@$(QUOTE)"]
|
|
|
|
HEX_TARGET_PREREQS = ["$(PROJECT_NAME).elf"]
|
|
HEX_TARGET_CMDS = ["$(QUOTE)$(OBJCOPY)$(QUOTE) -O ihex $(HEX_FLAGS) $(QUOTE)$<$(QUOTE) $(QUOTE)$@$(QUOTE)"]
|
|
|
|
[arch.arm]
|
|
TOOLCHAIN = "${ESF_DIR}/toolchains/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",
|
|
"-c",
|
|
"-std=gnu99",
|
|
"$(DIR_INCLUDES)",
|
|
"-MD -MP",
|
|
"-MF$(QUOTE)$(@:%.o=%.d)$(QUOTE)",
|
|
"-MT$(QUOTE)$(@:%.o=%.d)$(QUOTE)",
|
|
"-MT$(QUOTE)$(@:%.o=%.o)$(QUOTE)"]
|
|
|
|
ELF_FLAGS = ["-Wl,--start-group -l m",
|
|
"-Wl,--end-group -mthumb",
|
|
"-Wl,-Map=$(QUOTE)$(PROJECT_NAME).map$(QUOTE)",
|
|
"--specs=nano.specs",
|
|
"-Wl,--gc-sections",
|
|
"-T$(QUOTE)$(LD_SCRIPT)$(QUOTE)",
|
|
"-L$(QUOTE)$(LD_PATH)$(QUOTE)"]
|
|
|
|
HEX_FLAGS = ["-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)"]
|
|
ALL_PREREQS = ["$(SUB_DIRS)",
|
|
"$(PROJECT_NAME).elf",
|
|
"$(PROJECT_NAME).bin",
|
|
"$(PROJECT_NAME).hex",
|
|
"$(PROJECT_NAME).eep",
|
|
"$(PROJECT_NAME).lss"]
|
|
ALL_CMDS = ["$(QUOTE)$(SIZE)$(QUOTE) $(QUOTE)$(PROJECT_NAME).elf$(QUOTE)"]
|
|
SUB_DIRS = ["src", "ESF/mcu/src"]
|
|
|
|
EEP_TARGET_PREREQS = ["$(PROJECT_NAME).elf"]
|
|
EEP_TARGET_CMDS = ["$(QUOTE)$(OBJCOPY)$(QUOTE) $(EEP_FLAGS) -O binary $(QUOTE)$<$(QUOTE)",
|
|
"$(QUOTE)$@$(QUOTE) || exit 0"]
|
|
LSS_TARGET_PREREQS = ["$(PROJECT_NAME).elf"]
|
|
LSS_TARGET_CMDS = ["$(QUOTE)$(OBJDUMP)$(QUOTE) -h -S $(QUOTE)$<$(QUOTE) > $(QUOTE)$@$(QUOTE)"]
|
|
|
|
CLEAN_CMDS = ["rm -f $(PROJECT_NAME).a",
|
|
"rm -f $(PROJECT_NAME).lss",
|
|
"rm -f $(PROJECT_NAME).srec",
|
|
"rm -f $(PROJECT_NAME).map",
|
|
"rm -f $(PROJECT_NAME).eep"]
|
|
|
|
|
|
[arch.arm.samd21a]
|
|
MCPU = "cortex-m0plus"
|
|
CFLAGS = ["-D$(MCU)", "-mcpu=$(MCPU)"]
|
|
[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"
|
|
OBJS = ["ESF/mcu/src/startup_samd21j17a.o",
|
|
"ESF/mcu/src/system_samd21j17a.o"]
|
|
OBJS_AS_ARGS = ["$(QUOTE)ESF/mcu/src/startup_samd21j17a.o$(QUOTE)",
|
|
"$(QUOTE)ESF/mcu/src/system_samd21j17a.o$(QUOTE)"]
|
|
[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.same54a]
|
|
MCPU = "cortex-m4"
|
|
FPU = "fpv4-sp-d16"
|
|
FLOAT_ABI = "softfp"
|
|
[arch.arm.same54a.same54p20a]
|
|
MCU = "__SAME54P20A__"
|
|
LD_SCRIPT = "$(LD_PATH)/same54p20a_flash.ld"
|
|
OBJS = ["ESF/mcu/src/startup_same54p20a.o",
|
|
"ESF/mcu/src/system_same54p20a.o"]
|
|
OBJS_AS_ARGS = ["$(QUOTE)ESF/mcu/src/startup_same54p20a.o$(QUOTE)",
|
|
"$(QUOTE)ESF/mcu/src/system_same54p20a.o$(QUOTE)"]
|
|
[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"
|