3 # Released into the public domain.
5 # dean [at] fourwalledcubicle [dot] com
6 # www.fourwalledcubicle.com
9 # Run "make help" for target help.
15 TARGET = HID_EEPROM_Loader
19 OBJECT_FILES = InputEEData.o
24 # Determine the AVR sub-architecture of the build main application object file
25 FIND_AVR_SUBARCH = avr$(shell avr-objdump -f $(TARGET).o | grep architecture | cut -d':' -f3 | cut -d',' -f1)
27 # Create a linkable object file with the input binary EEPROM data stored in the FLASH section
28 InputEEData.o: InputEEData.bin $(TARGET).o $(MAKEFILE_LIST)
29 @echo $(MSG_OBJCPY_CMD) Converting \"$<\" to a object file \"$@\"
30 avr-objcopy -I binary -O elf32-avr -B $(call FIND_AVR_SUBARCH) --rename-section .data=.progmem.data,contents,alloc,readonly,data $< $@
32 # Include LUFA build script makefiles