aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Build
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-03-09 10:37:12 +0000
committerDean Camera <dean@fourwalledcubicle.com>2013-03-09 10:37:12 +0000
commit726b325c73d2f6a2a733e67d1dad9fa7aedef1c0 (patch)
tree60c5e361812ea39b4c9b69212e7c831f89b41cdf /LUFA/Build
parentbb8754e2b8f1f8e6d027da98f76ed66de4a361cc (diff)
downloadlufa-726b325c73d2f6a2a733e67d1dad9fa7aedef1c0.tar.gz
lufa-726b325c73d2f6a2a733e67d1dad9fa7aedef1c0.tar.bz2
lufa-726b325c73d2f6a2a733e67d1dad9fa7aedef1c0.zip
Update BUILD build system module to produce BIN files as well as HEX.
Diffstat (limited to 'LUFA/Build')
-rw-r--r--LUFA/Build/lufa_build.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/LUFA/Build/lufa_build.mk b/LUFA/Build/lufa_build.mk
index 6baed1b2d..364c8bec1 100644
--- a/LUFA/Build/lufa_build.mk
+++ b/LUFA/Build/lufa_build.mk
@@ -252,12 +252,13 @@ clean: mostlyclean
rm -f $(TARGET).elf $(TARGET).hex $(TARGET).eep $(TARGET).map $(TARGET).lss $(TARGET).sym $(TARGET).a
# Performs a complete build of the user application and prints size information afterwards
-all: build_begin elf hex lss sym size build_end
+all: build_begin elf hex bin lss sym size build_end
# Helper targets, to build a specific type of output file without having to know the project target name
lib: lib$(TARGET).a
elf: $(TARGET).elf
hex: $(TARGET).hex $(TARGET).eep
+bin: $(TARGET).bin $(TARGET).eep
lss: $(TARGET).lss
sym: $(TARGET).sym
@@ -311,6 +312,11 @@ $(OBJDIR)/%.o: %.S $(MAKEFILE_LIST)
@echo $(MSG_OBJCPY_CMD) Extracting HEX file data from \"$<\"
$(CROSS)-objcopy -O ihex -R .eeprom -R .fuse -R .lock -R .signature $< $@
+# Extracts out the loadable FLASH memory data from the project ELF file, and creates an Binary format file of it
+%.bin: %.elf
+ @echo $(MSG_OBJCPY_CMD) Extracting BIN file data from \"$<\"
+ $(CROSS)-objcopy -O binary -R .eeprom -R .fuse -R .lock -R .signature $< $@
+
# Extracts out the loadable EEPROM memory data from the project ELF file, and creates an Intel HEX format file of it
%.eep: %.elf
@echo $(MSG_OBJCPY_CMD) Extracting EEP file data from \"$<\"