Merge pull request #2577 from theotherjimmy/gcc-arm-consolidation

tools-exporters! - Move to Toolchain-polymorphic makefiles
pull/2721/head
Sam Grove 2016-09-15 12:58:02 -05:00 committed by GitHub
commit 1eaa272b38
110 changed files with 317 additions and 786 deletions

View File

@ -19,7 +19,7 @@ from os.path import join, exists, basename
from shutil import copytree, rmtree, copy
import yaml
from tools.export import uvision4, uvision5, codered, gccarm, ds5_5, iar
from tools.export import uvision4, uvision5, codered, makefile, ds5_5, iar
from tools.export import emblocks, coide, kds, simplicityv3, atmelstudio
from tools.export import sw4stm32, e2studio, zip
from tools.export.exporters import OldLibrariesException, FailedBuildException
@ -32,7 +32,10 @@ EXPORTERS = {
'uvision4': uvision4.Uvision4,
'uvision5': uvision5.Uvision5,
'lpcxpresso': codered.CodeRed,
'gcc_arm': gccarm.GccArm,
'gcc_arm': makefile.GccArm,
'make_gcc_arm': makefile.GccArm,
'make_armc5': makefile.Armc5,
'make_iar': makefile.IAR,
'ds5_5': ds5_5.DS5_5,
'iar': iar.IAREmbeddedWorkbench,
'emblocks' : emblocks.IntermediateFile,

View File

@ -1,14 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block additional_variables %}
SOFTDEVICE = mbed/TARGET_ARCH_BLE/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_7_1_0/s110_nrf51822_7.1.0_softdevice.hex
{% endblock %}
{% block additional_executables %}
SREC_CAT = srec_cat
{% endblock %}
{% block additional_targets %}
merge:
$(SREC_CAT) $(SOFTDEVICE) -intel $(PROJECT).hex -intel -o combined.hex -intel --line-length=44
{% endblock %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1,133 +0,0 @@
# This file was automagically generated by mbed.org. For more information,
# see http://mbed.org/handbook/Exporting-to-GCC-ARM-Embedded
# cross-platform directory manipulation
ifeq ($(shell echo $$OS),$$OS)
MAKEDIR = if not exist "$(1)" mkdir "$(1)"
RM = rmdir /S /Q "$(1)"
else
MAKEDIR = $(SHELL) -c "mkdir -p \"$(1)\""
RM = $(SHELL) -c "rm -rf \"$(1)\""
endif
ifeq (,$(filter .build,$(notdir $(CURDIR))))
.SUFFIXES:
OBJDIR := .build
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
MAKETARGET = $(MAKE) --no-print-directory -C $(OBJDIR) -f $(mkfile_path) \
SRCDIR=$(CURDIR) $(MAKECMDGOALS)
.PHONY: $(OBJDIR) clean
all:
+@$(call MAKEDIR,$(OBJDIR))
+@$(MAKETARGET)
$(OBJDIR): all
Makefile : ;
% :: $(OBJDIR) ; :
clean :
$(call RM,$(OBJDIR))
{% block target_clean -%}
{% endblock %}
else
VPATH = {% for path in vpath %}{{path}} {% endfor %}
GCC_BIN =
PROJECT = {{name}}
OBJECTS = {% for f in to_be_compiled %}{{f}} {% endfor %}
SYS_OBJECTS = {% for f in object_files %}{{f}} {% endfor %}
INCLUDE_PATHS = {% for p in include_paths %}-I{{p}} {% endfor %}
LIBRARY_PATHS = {% for p in library_paths %}-L{{p}} {% endfor %}
LIBRARIES = {% for lib in libraries %}-l{{lib}} {% endfor %}
LINKER_SCRIPT = {{linker_script}}
{%- block additional_variables -%}{% endblock %}
###############################################################################
AS = $(GCC_BIN)arm-none-eabi-as
CC = $(GCC_BIN)arm-none-eabi-gcc
CPP = $(GCC_BIN)arm-none-eabi-g++
LD = $(GCC_BIN)arm-none-eabi-gcc
OBJCOPY = $(GCC_BIN)arm-none-eabi-objcopy
OBJDUMP = $(GCC_BIN)arm-none-eabi-objdump
SIZE = $(GCC_BIN)arm-none-eabi-size
{%- block additional_executables -%}{% endblock %}
{%- block flags -%}
{% block hardfp %}
{% if "-mfloat-abi=softfp" in cpu_flags %}
ifeq ($(HARDFP),1)
FLOAT_ABI = hard
else
FLOAT_ABI = softfp
endif
{% endif %}
{%- endblock %}
CPU = {% block cpu %}{% for cf in cpu_flags %}{{cf|replace("-mfloat-abi=softfp","-mfloat-abi=$(FLOAT_ABI)")}} {% endfor %}{% endblock %}
CC_FLAGS = {% block cc_flags %}{{common_flags|join(" ")}} {{c_flags|join(" ")}} -MMD -MP{% endblock %}
CPPC_FLAGS = {% block cppc_flags %}{{common_flags|join(" ")}} {{cxx_flags|join(" ")}} -MMD -MP{% endblock %}
ASM_FLAGS = {% block asm_flags %}{{asm_flags|join(" ")}} {{common_flags|join(" ")}}{% endblock %}
CC_SYMBOLS = {% block cc_symbols %}{% for s in symbols %}-D{{s}} {% endfor %}{% endblock %}
LD_FLAGS = {%- block ld_flags -%} {{ld_flags|join(" ")}} {% endblock %}
LD_SYS_LIBS = {% block ld_sys_libs %}-lstdc++ -lsupc++ -lm -lc -lgcc -lnosys{% endblock %}
{% endblock %}
ifeq ($(DEBUG), 1)
CC_FLAGS += -DDEBUG -O0
else
CC_FLAGS += -DNDEBUG -Os
endif
.PHONY: all lst size
{% block target_all -%}
all: $(PROJECT).bin $(PROJECT).hex size
{% endblock %}
.asm.o:
+@$(call MAKEDIR,$(dir $@))
$(CC) $(CPU) -c $(ASM_FLAGS) $(CC_SYMBOLS) $(INCLUDE_PATHS) -o $@ $<
.s.o:
+@$(call MAKEDIR,$(dir $@))
$(CC) $(CPU) -c $(ASM_FLAGS) $(CC_SYMBOLS) $(INCLUDE_PATHS) -o $@ $<
.S.o:
+@$(call MAKEDIR,$(dir $@))
$(CC) $(CPU) -c $(ASM_FLAGS) $(CC_SYMBOLS) $(INCLUDE_PATHS) -o $@ $<
.c.o:
+@$(call MAKEDIR,$(dir $@))
$(CC) $(CC_FLAGS) $(CC_SYMBOLS) $(INCLUDE_PATHS) -o $@ $<
.cpp.o:
+@$(call MAKEDIR,$(dir $@))
$(CPP) $(CPPC_FLAGS) $(CC_SYMBOLS) $(INCLUDE_PATHS) -o $@ $<
{% block target_project_elf %}
$(PROJECT).elf: $(OBJECTS) $(SYS_OBJECTS) $(LINKER_SCRIPT)
$(LD) $(LD_FLAGS) -T$(filter %.ld, $^) $(LIBRARY_PATHS) -o $@ $(filter %.o, $^) -Wl,--start-group $(LIBRARIES) $(LD_SYS_LIBS) -Wl,--end-group
{% endblock %}
$(PROJECT).bin: $(PROJECT).elf
$(OBJCOPY) -O binary $< $@
$(PROJECT).hex: $(PROJECT).elf
@$(OBJCOPY) -O ihex $< $@
$(PROJECT).lst: $(PROJECT).elf
@$(OBJDUMP) -Sdh $< > $@
lst: $(PROJECT).lst
size: $(PROJECT).elf
$(SIZE) $(PROJECT).elf
DEPS = $(OBJECTS:.o=.d) $(SYS_OBJECTS:.o=.d)
-include $(DEPS)
{% block additional_targets %}{% endblock %}
endif

View File

@ -1,14 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block additional_variables %}
SOFTDEVICE = mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_7_0_0/s110_nrf51822_7.0.0_softdevice.hex
{% endblock %}
{% block additional_executables %}
SREC_CAT = srec_cat
{% endblock %}
{% block additional_targets %}
merge:
$(SREC_CAT) $(SOFTDEVICE) -intel $(PROJECT).hex -intel -o combined.hex -intel --line-length=44
{% endblock %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1,8 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %} {{ super() }} @echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{%- endblock %}

View File

@ -1,8 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %} {{ super() }} @echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{%- endblock %}

View File

@ -1,8 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %} {{ super() }} @echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{%- endblock %}

View File

@ -1,8 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %} {{ super() }} @echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{%- endblock %}

View File

@ -1,8 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %} {{ super() }} @echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{%- endblock %}

View File

@ -1,8 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %} {{ super() }} @echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{%- endblock %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1,14 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block additional_variables %}
SOFTDEVICE = mbed/TARGET_HRM1017/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0/s130_nrf51_1.0.0_softdevice.hex
{% endblock %}
{% block additional_executables %}
SREC_CAT = srec_cat
{% endblock %}
{% block additional_targets %}
merge:
$(SREC_CAT) $(SOFTDEVICE) -intel $(PROJECT).hex -intel -o combined.hex -intel --line-length=44
{% endblock %}

View File

@ -1,4 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block hardfp %}{% endblock %}
{% block cpu %}-mcpu=cortex-m4 -mthumb{% endblock %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1,10 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %}
{{ super() }}
@echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{% endblock %}

View File

@ -1,10 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %}
{{ super() }}
@echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{% endblock %}

View File

@ -1,10 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %}
{{ super() }}
@echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{% endblock %}

View File

@ -1,10 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %}
{{ super() }}
@echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{% endblock %}

View File

@ -1,10 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %}
{{ super() }}
@echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{% endblock %}

View File

@ -1,10 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %}
{{ super() }}
@echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{% endblock %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1,10 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %}
{{ super() }}
@echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{% endblock %}

View File

@ -1,10 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %}
{{ super() }}
@echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{% endblock %}

View File

@ -1,10 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %}
{{ super() }}
@echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{% endblock %}

View File

@ -1,10 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %}
{{ super() }}
@echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{% endblock %}

View File

@ -1,10 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %}
{{ super() }}
@echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{% endblock %}

View File

@ -1,10 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %}
{{ super() }}
@echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{% endblock %}

View File

@ -1,10 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %}
{{ super() }}
@echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{% endblock %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1,14 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block additional_variables %}
SOFTDEVICE = mbed/TARGET_MTM_MTCONNECT04S/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0/s130_nrf51_1.0.0_softdevice.hex
{% endblock %}
{% block additional_executables %}
SREC_CAT = srec_cat
{% endblock %}
{% block additional_targets %}
merge:
$(SREC_CAT) $(SOFTDEVICE) -intel $(PROJECT).hex -intel -o combined.hex -intel --line-length=44
{% endblock %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1,14 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block additional_variables %}
SOFTDEVICE = mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0/s130_nrf51_1.0.0_softdevice.hex
{% endblock %}
{% block additional_executables %}
SREC_CAT = srec_cat
{% endblock %}
{% block additional_targets %}
merge:
$(SREC_CAT) $(SOFTDEVICE) -intel $(PROJECT).hex -intel -o combined.hex -intel --line-length=44
{% endblock %}

View File

@ -1,18 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_all %}
all: $(PROJECT).bin $(PROJECT)-combined.hex size
{% endblock %}
{% block additional_variables %}
SOFTDEVICE = {% for f in hex_files %}{{f}} {% endfor %}
{% endblock %}
{% block additional_executables %}
SREC_CAT = srec_cat
{% endblock %}
{% block additional_targets %}
$(PROJECT)-combined.hex: $(PROJECT).hex
$(SREC_CAT) $(SOFTDEVICE) -intel $(PROJECT).hex -intel -o $(PROJECT)-combined.hex -intel --line-length=44
{% endblock %}

View File

@ -1,14 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block additional_variables %}
SOFTDEVICE = mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_7_0_0/s110_nrf51822_7.0.0_softdevice.hex
{% endblock %}
{% block additional_executables %}
SREC_CAT = srec_cat
{% endblock %}
{% block additional_targets %}
merge:
$(SREC_CAT) $(SOFTDEVICE) -intel $(PROJECT).hex -intel -o combined.hex -intel --line-length=44
{% endblock %}

View File

@ -1,14 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block additional_variables %}
SOFTDEVICE = mbed/TARGET_NRF51_MICROBIT/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_8_0_0/s110_nrf51822_8.0.0_softdevice.hex
{% endblock %}
{% block additional_executables %}
SREC_CAT = srec_cat
{% endblock %}
{% block additional_targets %}
merge:
$(SREC_CAT) $(SOFTDEVICE) -intel $(PROJECT).hex -intel -o combined.hex -intel --line-length=44
{% endblock %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1,14 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block additional_variables %}
SOFTDEVICE = mbed/TARGET_RBLAB_BLENANO/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0/s130_nrf51_1.0.0_softdevice.hex
{% endblock %}
{% block additional_executables %}
SREC_CAT = srec_cat
{% endblock %}
{% block additional_targets %}
merge:
$(SREC_CAT) $(SOFTDEVICE) -intel $(PROJECT).hex -intel -o combined.hex -intel --line-length=44
{% endblock %}

View File

@ -1,14 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block additional_variables %}
SOFTDEVICE = mbed/TARGET_RBLAB_NRF51822/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_7_1_0/s110_nrf51822_7.1.0_softdevice.hex
{% endblock %}
{% block additional_executables %}
SREC_CAT = srec_cat
{% endblock %}
{% block additional_targets %}
merge:
$(SREC_CAT) $(SOFTDEVICE) -intel $(PROJECT).hex -intel -o combined.hex -intel --line-length=44
{% endblock %}

View File

@ -1,16 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block cc_flags -%}
$(CPU) -c -g -fno-common -fmessage-length=0 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
CC_FLAGS += -fno-exceptions -fno-builtin -ffunction-sections -fdata-sections -fno-delete-null-pointer-checks -fomit-frame-pointer
CC_FLAGS += -MMD -MP
{% endblock %}
{% block target_project_elf %}
{{ super() }}
@echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{% endblock %}

View File

@ -1,4 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block cpu %} -mcpu=cortex-m0plus -mthumb {% endblock %}
{% block ld_sys_libs %}{{ super() }} -Wl,--start-group -lc -lc -lnosys -Wl,--end-group {% endblock %}

View File

@ -1,4 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block cpu %} -mcpu=cortex-m0plus -mthumb {% endblock %}
{% block ld_sys_libs %}{{ super() }} -Wl,--start-group -lc -lc -lnosys -Wl,--end-group {% endblock %}

View File

@ -1,4 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block hardfp %}{% endblock %}
{% block cpu %}-mcpu=cortex-m4 -mthumb{% endblock %}

View File

@ -1,4 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block cpu %} -mcpu=cortex-m0plus -mthumb {% endblock %}
{% block ld_sys_libs %}{{ super() }} -Wl,--start-group -lc -lc -lnosys -Wl,--end-group {% endblock %}

View File

@ -1,4 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block cpu %} -mcpu=cortex-m0plus -mthumb {% endblock %}
{% block ld_sys_libs %}{{ super() }} -Wl,--start-group -lc -lc -lnosys -Wl,--end-group {% endblock %}

View File

@ -1,14 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block additional_variables %}
SOFTDEVICE = mbed/TARGET_ARCH_BLE/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_7_1_0/s110_nrf51822_7.1.0_softdevice.hex
{% endblock %}
{% block additional_executables %}
SREC_CAT = srec_cat
{% endblock %}
{% block additional_targets %}
merge:
$(SREC_CAT) $(SOFTDEVICE) -intel $(PROJECT).hex -intel -o combined.hex -intel --line-length=44
{% endblock %}

View File

@ -1,10 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block target_project_elf %}
{{ super() }}
@echo ""
@echo "*****"
@echo "***** You must modify vector checksum value in *.bin and *.hex files."
@echo "*****"
@echo ""
{% endblock %}

View File

@ -1 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}

View File

@ -1,4 +0,0 @@
{% extends "gcc_arm_common.tmpl" %}
{% block hardfp %}{% endblock %}
{% block cpu %}-mcpu=cortex-m4 -mthumb{% endblock %}

Some files were not shown because too many files have changed in this diff Show More