From f78ff987ac2df62dbd8326ce33ae61c97673710e Mon Sep 17 00:00:00 2001 From: J08nY Date: Wed, 26 Feb 2020 14:28:52 +0100 Subject: Get stuff to work on STM32F0. --- pyecsca/codegen/Makefile.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'pyecsca/codegen/Makefile.inc') diff --git a/pyecsca/codegen/Makefile.inc b/pyecsca/codegen/Makefile.inc index 2b809d2..bb8a08d 100644 --- a/pyecsca/codegen/Makefile.inc +++ b/pyecsca/codegen/Makefile.inc @@ -14,6 +14,8 @@ # # make extcoff = Convert ELF to AVR Extended COFF. # +# make strip = Strip the binary. +# # make program = Download the hex file to the device, using avrdude. # Please customize the avrdude settings below first! # @@ -291,7 +293,7 @@ MSG_CREATING_LIBRARY = Creating library: # Define all object files. -OBJ = $(SRC:%.c=$(OBJDIR)/%.o) $(CPPSRC:%.cpp=$(OBJDIR)/%.o) $(ASRC:%.S=$(OBJDIR)/%.o) +OBJ = $(SRC:%.c=$(OBJDIR)/%.o) $(CPPSRC:%.cpp=$(OBJDIR)/%.o) $(ASRC:%.S=$(OBJDIR)/%.o) # Define all listing files. LST = $(SRC:%.c=$(OBJDIR)/%.lst) $(CPPSRC:%.cpp=$(OBJDIR)/%.lst) $(ASRC:%.S=$(OBJDIR)/%.lst) @@ -347,6 +349,9 @@ ifeq ($(ELFSIZE),) ELFSIZE = $(SIZE) $(TARGET-PLAT).elf endif +strip: + $(STRIP) $(TARGET-PLAT).elf + sizeafter: build @echo $(MSG_SIZE_AFTER) @$(ELFSIZE) @@ -551,7 +556,7 @@ clean_list : # Listing of phony targets. -.PHONY : all begin finish end sizeafter gccversion \ +.PHONY : all begin finish end strip sizeafter gccversion \ build elf hex eep lss sym coff extcoff \ clean clean_list clean_print clean_objs program debug gdb-config -- cgit v1.3.1