mirror of
https://github.com/xenia-project/xell-reloaded.git
synced 2024-11-26 21:30:28 +00:00
UART: DemoN/Cygnos UART Baud (38400) compatibility binaries
This commit is contained in:
parent
507a5733e6
commit
f249a0f870
9
Makefile
9
Makefile
@ -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)
|
||||
|
||||
|
16
source/lv1/xell-1f_cygnos_demon.lds
Normal file
16
source/lv1/xell-1f_cygnos_demon.lds
Normal 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 = .;
|
||||
}
|
16
source/lv1/xell-2f_cygnos_demon.lds
Normal file
16
source/lv1/xell-2f_cygnos_demon.lds
Normal 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 = .;
|
||||
}
|
16
source/lv1/xell-gggggg_cygnos_demon.lds
Normal file
16
source/lv1/xell-gggggg_cygnos_demon.lds
Normal 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 = .;
|
||||
}
|
Loading…
Reference in New Issue
Block a user