diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup index 3c31b67469..5897f23512 100644 --- a/build/jam/BuildSetup +++ b/build/jam/BuildSetup @@ -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