diff options
| author | J08nY | 2020-02-26 14:28:52 +0100 |
|---|---|---|
| committer | J08nY | 2020-02-26 14:28:52 +0100 |
| commit | f78ff987ac2df62dbd8326ce33ae61c97673710e (patch) | |
| tree | 9b63026e223254bc3c4e6af164bd3ae3bdcc0404 /pyecsca/codegen/Makefile.inc | |
| parent | 3892d994470b181f950703fabf719a9c963d1c20 (diff) | |
| download | pyecsca-codegen-f78ff987ac2df62dbd8326ce33ae61c97673710e.tar.gz pyecsca-codegen-f78ff987ac2df62dbd8326ce33ae61c97673710e.tar.zst pyecsca-codegen-f78ff987ac2df62dbd8326ce33ae61c97673710e.zip | |
Get stuff to work on STM32F0.
Diffstat (limited to 'pyecsca/codegen/Makefile.inc')
| -rw-r--r-- | pyecsca/codegen/Makefile.inc | 9 |
1 files changed, 7 insertions, 2 deletions
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 |
