/SPARTAN/trunk/src/build.mips |
1,8 → 1,14 |
#! /bin/sh |
|
set -e |
if [ -z "$1" ]; then |
echo "Usage: $0 [msim|simics|lgxemul|bgxemul|indy]" |
exit 1 |
else |
MACHINE=$1 |
fi |
|
# Generate context_offset.h |
(cd ../tools/mips/;make gencontext;./gencontext) |
rm ../arch/mips/_link.ld |
|
|
make all ARCH=mips |
make all ARCH=mips MACHINE=$MACHINE |
/SPARTAN/trunk/src/Makefile |
32,6 → 32,9 |
smp/ipi.c \ |
fb/font-8x16.c |
|
# CFLAGS options same for all targets |
CFLAGS+=-nostdinc -I../include -Werror-implicit-function-declaration -Wmissing-prototypes -Werror |
|
ifdef DEBUG_SPINLOCK |
CFLAGS+=-D$(DEBUG_SPINLOCK) |
endif |
59,7 → 62,7 |
ln -s ../arch/$(ARCH)/include ../include/arch |
|
depend: |
$(CC) $(CPPFLAGS) -M $(arch_sources) $(sources) >Makefile.depend |
$(CC) $(CFLAGS) -M $(arch_sources) $(sources) >Makefile.depend |
|
build: kernel.bin boot |
|