UART: DemoN/Cygnos UART Baud (38400) compatibility binaries

This commit is contained in:
tuxuser 2012-09-04 20:40:47 +02:00
parent 507a5733e6
commit f249a0f870
4 changed files with 56 additions and 3 deletions

View File

@ -9,7 +9,7 @@ LV1_DIR=source/lv1
# Configuration
CFLAGS = -Wall -Os -I$(LV1_DIR) -ffunction-sections -fdata-sections \
-m64 -mno-toc -DBYTE_ORDER=BIG_ENDIAN -mno-altivec -D$(CURRENT_TARGET)
-m64 -mno-toc -DBYTE_ORDER=BIG_ENDIAN -mno-altivec -D$(CURRENT_TARGET) $(CYGNOS_DEF)
AFLAGS = -Iinclude -m64
LDFLAGS = -nostdlib -n -m64 -Wl,--gc-sections
@ -23,7 +23,7 @@ OBJS = $(LV1_DIR)/startup.o \
$(LV1_DIR)/vsprintf.o \
$(LV1_DIR)/puff/puff.o
TARGETS = xell-1f xell-2f xell-gggggg
TARGETS = xell-1f xell-2f xell-gggggg xell-gggggg_cygnos_demon xell-1f_cygnos_demon xell-2f_cygnos_demon
# Build rules
all: $(foreach name,$(TARGETS),$(addprefix $(name).,build))
@ -50,6 +50,11 @@ clean:
xell-gggggg.elf: CURRENT_TARGET = HACK_GGGGGG
xell-1f.elf xell-2f.elf: CURRENT_TARGET = HACK_JTAG
xell-gggggg_cygnos_demon.elf: CURRENT_TARGET = HACK_GGGGGG
xell-gggggg_cygnos_demon.elf: CYGNOS_DEF = -DCYGNOS
xell-1f_cygnos_demon.elf xell-2f_cygnos_demon.elf: CURRENT_TARGET = HACK_JTAG
xell-1f_cygnos_demon.elf xell-2f_cygnos_demon.elf: CYGNOS_DEF = -DCYGNOS
%.elf: $(LV1_DIR)/%.lds $(OBJS)
@$(CC) -n -T $< $(LDFLAGS) -o $@ $(OBJS)

View File

@ -0,0 +1,16 @@
ENTRY(_start)
SECTIONS
{
. = 0x800000001c000000;
.text : { *(.text) }
.data : { *(.data) }
.sdata : { *(.sdata) }
.rodata : { *(.rodata)}
. = 0x800000001c080000;
bss_start = .;
.bss : { *(.bss) }
.sbss : { *(.sbss) }
bss_end = .;
}

View File

@ -0,0 +1,16 @@
ENTRY(_start)
SECTIONS
{
. = 0x800000001c040000;
.text : { *(.text) }
.data : { *(.data) }
.sdata : { *(.sdata) }
.rodata : { *(.rodata)}
. = 0x800000001c080000;
bss_start = .;
.bss : { *(.bss) }
.sbss : { *(.sbss) }
bss_end = .;
}

View File

@ -0,0 +1,16 @@
ENTRY(_start)
SECTIONS
{
. = 0x800000001c000000;
.text : { *(.text) }
.data : { *(.data) }
.sdata : { *(.sdata) }
.rodata : { *(.rodata)}
. = 0x800000001c080000;
bss_start = .;
.bss : { *(.bss) }
.sbss : { *(.sbss) }
bss_end = .;
}