Subversion Repositories HomeAutomation

Rev

Rev 560 | Rev 563 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 560 Rev 561
Line 1... Line 1...
1
# $Id: Makefile 560 2007-07-28 16:21:52Z andfri $
1
# $Id: Makefile 561 2007-07-28 17:56:17Z andfri $
2
BIOS_VERSION   = 0x1338
2
BIOS_VERSION   = 0x1338
3
 
3
 
4
# Paths: set default pathnames if they are not
4
# Paths: set default pathnames if they are not
5
# passed on from parent Makefile.
5
# passed on from parent Makefile.
6
ifndef TARGET
6
ifndef TARGET
Line 245... Line 245...
245
	@$(COFFCONVERT) -O coff-ext-avr $< $(TARGET).cof
245
	@$(COFFCONVERT) -O coff-ext-avr $< $(TARGET).cof
246
 
246
 
247
# Create final output files (.hex, .eep) from ELF output file.
247
# Create final output files (.hex, .eep) from ELF output file.
248
%.hex: %.elf
248
%.hex: %.elf
249
	@echo $(MSG_FLASH) $@
249
	@echo $(MSG_FLASH) $@
250
	@$(OBJCOPY) -j .text -j .data -O ihex $< $@
250
	@$(OBJCOPY) -j .text -j .data -j .bootloader -O ihex $< $@
251
 
251
 
252
%.eep: %.elf
252
%.eep: %.elf
253
	@echo $(MSG_EEPROM) $@
253
	@echo $(MSG_EEPROM) $@
254
	-@$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \
254
	-@$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \
255
	--change-section-lma .eeprom=0 -O ihex $< $@
255
	--change-section-lma .eeprom=0 -O ihex $< $@