Subversion Repositories HomeAutomation

Rev

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

Rev 350 Rev 354
Line 4... Line 4...
4
 
4
 
5
MCU_TARGET     = atmega88
5
MCU_TARGET     = atmega88
6
OPTIMIZE       = -Os -mcall-prologues
6
OPTIMIZE       = -Os -mcall-prologues
7
# grep bios.map for __bios_ram_end to retreive this value
7
# grep bios.map for __bios_ram_end to retreive this value
8
# In the future, this should be automatically inserted into *_app.ld at every bios compilation
8
# In the future, this should be automatically inserted into *_app.ld at every bios compilation
9
BIOS_RAM_END   = 0x0080012a
9
BIOS_RAM_END   = 0x0080012c
10
#0x0080015d
10
#0x0080015d
11
ifeq ($(MCU_TARGET),atmega88)
11
ifeq ($(MCU_TARGET),atmega88)
12
	#uncomment this line if you're using m88, remove line when gcc-bug fixed
12
	#uncomment this line if you're using m88, remove line when gcc-bug fixed
13
	EXTRA_LD        = avr-ld -m avr4 -o $(PRG).elf /usr/avr/lib/avr4/crtm88.o -L/usr/lib/gcc/avr/4.1.0/avr4 -L/usr/lib/gcc/avr/4.1.0/avr4 -L/usr/avr/lib/avr4 -Map $(PRG).map -L../AVR-Bios --defsym __bios_ram_end=$(BIOS_RAM_END) -T$(MCU_TARGET)_app.ld $(PRG).o -lgcc -lc -lgcc
13
	EXTRA_LD        = avr-ld -m avr4 -o $(PRG).elf /usr/avr/lib/avr4/crtm88.o -L/usr/lib/gcc/avr/4.1.0/avr4 -L/usr/lib/gcc/avr/4.1.0/avr4 -L/usr/avr/lib/avr4 -Map $(PRG).map -L../AVR-Bios --defsym __bios_ram_end=$(BIOS_RAM_END) -T$(MCU_TARGET)_app.ld $(PRG).o -lgcc -lc -lgcc
14
endif
14
endif