Skip to content

Commit

Permalink
Added target xell-readcd for booting XeLL from readcd shader
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0rg committed Apr 26, 2007
1 parent b804550 commit 448f492
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,19 @@ LWIP_OBJS = ./lwip/core/tcp_in.o \
OBJS = startup2.o main.o string.o vsprintf.o ctype.o time.o \
cache.o $(LWIP_OBJS) network.o tftp.o httpd/httpd.o httpd/vfs.o dtc.o cdrom.o

BUILD = rom xell-readcd

TARGETS = $(foreach name,$(BUILD),$(addprefix $(name).,bin elf elf32))

# Build rules
all: rom.bin
all: $(TARGETS)

.SECONDARY: $(OBJS)

.PHONY: clean

clean:
rm -rf $(OBJS) rom.elf rom.elf32 rom.bin
rm -rf $(OBJS) $(TARGETS)

.c.o:
$(CC) $(CFLAGS) -c -o $@ $*.c
Expand Down
16 changes: 16 additions & 0 deletions xell-readcd.lds
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ENTRY(_start)
SECTIONS
{
. = 0x8000000001310000;
.text : { *(.text) }
.data : { *(.data) }
.sdata : { *(.sdata) }
.rodata : { *(.rodata)}

. = 0x8000000001380000;

bss_start = .;
.bss : { *(.bss) }
.sbss : { *(.sbss) }
bss_end = .;
}

0 comments on commit 448f492

Please sign in to comment.