mbed-os/workspace_tools/export/gcc_arm_mote_l152rc.tmpl

72 lines
2.1 KiB
Cheetah
Raw Normal View History

Squashed commit of the following (PR #1023): commit 5390a0eb7fc28dda30993602652350fd0ad87df0 Merge: 7c4831f 3998966 Author: 0xc0170 <c0170@rocketmail.com> Date: Thu Apr 23 08:48:31 2015 +0100 Merge branch 'master' of https://github.com/dudmuck/mbed into dudmuck-master Conflicts: workspace_tools/export/uvision4.py commit 3998966b1b130716855ac01142d8da917c3e1d2f Author: U-owner-PC\owner <Wayne Roberts> Date: Thu Apr 9 13:45:09 2015 -0700 using defines for platform specific requirement commit 755c5d9b0713768771d110468a6750abf506bb1c Author: U-owner-PC\owner <Wayne Roberts> Date: Wed Apr 8 14:59:47 2015 -0700 added device ID for MOTE_L152RC commit d812fb0002dbc1eea64984bdaf4c18b335979d7d Merge: 6ad66e8 158cbeb Author: U-owner-PC\owner <Wayne Roberts> Date: Wed Apr 8 07:25:23 2015 -0700 Merge remote-tracking branch 'upstream/master' commit 6ad66e89d818e595a9327710a9c79bee078b067f Merge: 14a1807 cfb9dd1 Author: U-owner-PC\owner <Wayne Roberts> Date: Fri Mar 27 15:54:03 2015 -0700 merged upstream commit 14a18078ca11b4126779914b02df6b75225e1315 Author: U-owner-PC\owner <Wayne Roberts> Date: Tue Mar 24 10:01:02 2015 -0700 RTC subSeconds at 16384Hz commit 32d75d04c18177b2fb823f011e002ec36190005a Merge: bc84c03 ea01d61 Author: U-owner-PC\owner <Wayne Roberts> Date: Tue Mar 24 09:59:43 2015 -0700 Merge remote-tracking branch 'upstream/master' commit bc84c03a37e10c819e55592aa1efcb621900460b Author: U-owner-PC\owner <Wayne Roberts> Date: Mon Mar 16 16:26:18 2015 -0700 handle HSE-PLL enabled upone deepsleep wakeup commit 11bfe693b9a03744b1624f943fa6ed0f6b05ede6 Merge: b7cec55 fdc75bf Author: U-owner-PC\owner <Wayne Roberts> Date: Mon Mar 16 14:37:11 2015 -0700 Merge remote-tracking branch 'upstream/master' commit b7cec55d08020fd007046ea93f0ed968e0fb953e Merge: c5b61f5 4b74c54 Author: U-owner-PC\owner <Wayne Roberts> Date: Mon Mar 9 13:15:56 2015 -0700 syncd with upstream commit c5b61f5c1d366a789b426f9147cee3fc6e8cd6e3 Merge: c16a115 9d2fd3e Author: U-owner-PC\owner <Wayne Roberts> Date: Tue Mar 3 14:05:54 2015 -0800 syncd with upstream commit c16a115e183b340589fb8d61f79ada1f1ce8a7e2 Merge: 51efd61 1b2a621 Author: U-owner-PC\owner <Wayne Roberts> Date: Tue Feb 24 09:48:55 2015 -0800 Merge remote-tracking branch 'upstream/master' commit 51efd619f14b0534037167d5a2080106a2ac0adc Author: U-owner-PC\owner <Wayne Roberts> Date: Tue Feb 24 09:48:22 2015 -0800 MOTE_L152RC commit a122226e460e2910dfcc8e379ac3484fd5ac5e78 Author: U-owner-PC\owner <Wayne Roberts> Date: Tue Feb 24 09:46:08 2015 -0800 renamed SEMTECH_LORA915 to MOTE_L152RC commit 88fcf53069d8a7e602ddfc997947d2871cb93ffa Merge: 3e291c1 8648ff5 Author: U-owner-PC\owner <Wayne Roberts> Date: Mon Feb 23 08:11:48 2015 -0800 Merge remote-tracking branch 'upstream/master' commit 3e291c1ccec69901c498b061a6108f0df4b6db2f Merge: a59aefc c9e93d2 Author: U-owner-PC\owner <Wayne Roberts> Date: Tue Feb 17 19:04:04 2015 -0800 Merge remote-tracking branch 'upstream/master' syncing my fork with master commit a59aefc6eddfeda6df91ad526f3727c2afcd1da2 Author: U-owner-PC\owner <Wayne Roberts> Date: Tue Feb 17 18:46:27 2015 -0800 added SEMTECH_LORA915 to python scripts commit 15b1989b692673edfa1d69ef7ffdd7b5795e9778 Author: U-owner-PC\owner <Wayne Roberts> Date: Tue Feb 17 18:42:13 2015 -0800 added platform SEMTECH_LORA915
2015-04-23 07:55:29 +00:00
# This file was automagically generated by mbed.org. For more information,
# see http://mbed.org/handbook/Exporting-to-GCC-ARM-Embedded
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}}
###############################################################################
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
CPU = -mcpu=cortex-m3 -mthumb
CC_FLAGS = $(CPU) -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -fno-rtti
CC_FLAGS += -MMD -MP
CC_SYMBOLS = {% for s in symbols %}-D{{s}} {% endfor %}
LD_FLAGS = $(CPU) -Wl,--gc-sections --specs=nano.specs -u _printf_float -u _scanf_float -Wl,--wrap,main
LD_FLAGS += -Wl,-Map=$(PROJECT).map,--cref
LD_SYS_LIBS = -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
ifeq ($(DEBUG), 1)
CC_FLAGS += -DDEBUG -O0
else
CC_FLAGS += -DNDEBUG -Os
endif
all: $(PROJECT).bin $(PROJECT).hex size
clean:
rm -f $(PROJECT).bin $(PROJECT).elf $(PROJECT).hex $(PROJECT).map $(PROJECT).lst $(OBJECTS) $(DEPS)
.s.o:
$(AS) $(CPU) -o $@ $<
.c.o:
$(CC) $(CC_FLAGS) $(CC_SYMBOLS) -std=gnu99 $(INCLUDE_PATHS) -o $@ $<
.cpp.o:
$(CPP) $(CC_FLAGS) $(CC_SYMBOLS) -std=gnu++98 $(INCLUDE_PATHS) -o $@ $<
$(PROJECT).elf: $(OBJECTS) $(SYS_OBJECTS)
$(LD) $(LD_FLAGS) -T$(LINKER_SCRIPT) $(LIBRARY_PATHS) -o $@ $^ $(LIBRARIES) $(LD_SYS_LIBS) $(LIBRARIES) $(LD_SYS_LIBS)
$(PROJECT).bin: $(PROJECT).elf
@$(OBJCOPY) -O binary $< $@
$(PROJECT).hex: $(PROJECT).elf
@$(OBJCOPY) -O ihex $< $@
$(PROJECT).lst: $(PROJECT).elf
@$(OBJDUMP) -Sdh $< > $@
lst: $(PROJECT).lst
size:
$(SIZE) $(PROJECT).elf
DEPS = $(OBJECTS:.o=.d) $(SYS_OBJECTS:.o=.d)
-include $(DEPS)