From 1f563bfd290b56ebf1865fbe950c276dfb8018e5 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 22 Apr 2002 19:12:37 +0000 Subject: First version git-svn-id: svn://svn.rockbox.org/rockbox/trunk@175 a1c6a512-1295-4272-9138-f99709370657 --- firmware/test/kernel/Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 firmware/test/kernel/Makefile (limited to 'firmware/test/kernel/Makefile') diff --git a/firmware/test/kernel/Makefile b/firmware/test/kernel/Makefile new file mode 100644 index 0000000000..fdeb9b159b --- /dev/null +++ b/firmware/test/kernel/Makefile @@ -0,0 +1,42 @@ +CC = sh-elf-gcc +LD = sh-elf-ld +AR = sh-elf-ar +AS = sh-elf-as +OC = sh-elf-objcopy + +INCLUDES=-I../../ + +CFLAGS = -O -Wall -m1 -save-temps -nostdlib -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns -fno-builtin $(INCLUDES) +AFLAGS += -small -relax + +OBJS= crt0.o main.o ../../thread.o ../../debug.o + +%.o: %.S + $(CC) -o $@ $(CFLAGS) $(INCLUDES) $(DEFS) -c $< + + +all : archos.mod + +archos.elf : $(OBJS) app.lds + $(CC) -nostartfiles -o archos.elf $(OBJS) -lgcc -Tapp.lds -Wl,-Map,archos.map + +archos.bin : archos.elf + $(OC) -O binary archos.elf archos.bin + +archos.asm: archos.bin + sh2d -sh1 archos.bin > archos.asm + +archos.mod : archos.bin + scramble archos.bin archos.mod + +archos.mod.gz : archos.mod + gzip -f archos.mod + +dist: + tar czvf dist.tar.gz Makefile main.c start.s app.lds + +clean: + -rm -f *.x *.i *.o *.elf *.bin *.map *.mod *.bak *~ + +install: + mount /mnt/archos; cp archos.mod /mnt/archos; umount /mnt/archos -- cgit v1.2.3