Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 456 → Rev 457

/SPARTAN/trunk/arch/mips32/boot/boot.S
32,11 → 32,7
.set noreorder
.set nomacro
 
#include <arch/asm/boot.h>
 
#ifndef KERNEL_LOAD_ADDRESS
# define KERNEL_LOAD_ADDRESS 0x80100000
#endif
#define KERNEL_LOAD_ADDRESS 0x80100000
.global start
start:
/SPARTAN/trunk/arch/mips32/boot/Makefile
1,26 → 1,15
MIPS_BINUTILS_DIR=/usr/local/mipsel/bin
MIPS_TARGET=mipsel-linux-gnu
.PHONY: build clean
 
.PHONY: nothing build
CFLAGS = -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mips3 -I../include
 
nothing:
 
build: boot.bin
cp boot.bin ../../../load.bin
 
AS=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-as
CC=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-gcc
LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld
 
AFLAGS=-mips2 -I../../../generic/include
LFLAGS=--oformat=binary -e start -T _link.ld
 
.S.o:
$(CC) $(ASFLAGS) -c -o $@ $<
 
boot.bin: boot.o
$(LD) $(LFLAGS) $< -o $@
$(LD) -e start -T _link.ld boot.o -o $@
 
boot.o: boot.S
$(CC) $(CFLAGS) -c boot.S -o $@
 
clean:
-rm *.o *.bin
-rm -f boot.o boot.bin ../../../load.bin