Prepare mipsel for jamming. Adding mipsel target case, a simple boot platform and a -fno-pic setting for the kernel.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30585 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jonas Sundström
2009-05-02 19:03:19 +00:00
parent 5fac79601e
commit 226136446a
+16
View File
@@ -163,6 +163,7 @@ switch $(HAIKU_GCC_MACHINE) {
case i686-* : HAIKU_CPU = x86 ;
case powerpc-* : HAIKU_CPU = ppc ;
case m68k-* : HAIKU_CPU = m68k ;
case mipsel-* : HAIKU_CPU = mipsel ;
case * : Exit "Unsupported gcc target machine:" $(HAIKU_GCC_MACHINE) ;
}
@@ -196,6 +197,14 @@ switch $(HAIKU_CPU) {
# offset in floppy image (>= sizeof(haiku_loader))
HAIKU_BOOT_ARCHIVE_IMAGE_OFFSET = 150 ; # in kB
}
case mipsel :
{
HAIKU_DEFINES += __MIPSEL__ ;
# RouterBOARD firmware (ELF image over TFTP)
HAIKU_BOOT_PLATFORM = routerboot_mipsel ;
# offset in floppy image (>= sizeof(haiku_loader))
HAIKU_BOOT_ARCHIVE_IMAGE_OFFSET = 192 ; # in kB - todo/fixme
}
case * :
Exit "Currently unsupported target CPU:" $(HAIKU_CPU) ;
}
@@ -264,6 +273,11 @@ if $(HAIKU_ARCH) = m68k {
HAIKU_KERNEL_CCFLAGS += -m68020-60 ;
HAIKU_KERNEL_C++FLAGS += -m68020-60 ;
}
if $(HAIKU_ARCH) = mipsel {
# todo: verify correctness of this
HAIKU_KERNEL_PIC_CCFLAGS = -fno-pic ;
HAIKU_KERNEL_PIC_LINKFLAGS = ;
}
# If the environment variable DEBUG_PRINTF is defined we define an equally
# named macro to the variable value. Some components use the macro to allow
@@ -642,6 +656,8 @@ if $(HOST_PLATFORM_BEOS_COMPATIBLE) {
HOST_DEFINES += __POWERPC__ ;
} else if $(HOST_CPU) = m68k {
HOST_DEFINES += __M68K__ ;
} else if $(HOST_CPU) = mipsel {
HOST_DEFINES += __MIPSEL__ ;
}
# Supposing this is a glibc platform, let's try to get features like large