Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 549 → Rev 550

/kernel/trunk/arch/mips32/Makefile.inc
36,8 → 36,8
## Make some default assumptions
#
 
ifndef MACHINE
MACHINE = msim
ifndef MIPS_MACHINE
MIPS_MACHINE = msim
endif
 
KERNEL_LOAD_ADDRESS = 0x80100000
44,12 → 44,12
INIT_ADDRESS = 0x80110000
INIT_SIZE = 65536
CFLAGS += -mno-abicalls -G 0 -fno-zero-initialized-in-bss
DEFS += -DMACHINE=${MACHINE} -DKERNEL_LOAD_ADDRESS=${KERNEL_LOAD_ADDRESS} -DINIT_ADDRESS=${INIT_ADDRESS} -DINIT_SIZE=${INIT_SIZE}
DEFS += -DMACHINE=${MIPS_MACHINE} -DKERNEL_LOAD_ADDRESS=${KERNEL_LOAD_ADDRESS} -DINIT_ADDRESS=${INIT_ADDRESS} -DINIT_SIZE=${INIT_SIZE}
 
## Accepted MACHINEs
#
 
ifeq ($(MACHINE),indy)
ifeq ($(MIPS_MACHINE),indy)
# GCC 4.0.1 compiled for mipsEL has problems compiling in
# BigEndian mode with the swl/swr/lwl/lwr instructions.
# We have to compile it with mips-sgi-irix5 to get it right.
61,12 → 61,12
KERNEL_LOAD_ADDRESS = 0x88002000
CFLAGS += -EB -DBIG_ENDIAN -DHAVE_FPU -march=r4600
endif
ifeq ($(MACHINE),lgxemul)
ifeq ($(MIPS_MACHINE),lgxemul)
BFD_NAME=elf32-tradlittlemips
BFD = ecoff-littlemips
CFLAGS += -DHAVE_FPU -mips3
endif
ifeq ($(MACHINE),bgxemul)
ifeq ($(MIPS_MACHINE),bgxemul)
BFD_NAME=elf32-bigmips
BFD = ecoff-bigmips
TARGET = mips-sgi-irix5
73,7 → 73,7
TOOLCHAIN_DIR = /usr/local/mips/bin
CFLAGS += -EB -DBIG_ENDIAN -DHAVE_FPU -mips3
endif
ifeq ($(MACHINE),msim4kc)
ifeq ($(MIPS_MACHINE),msim4kc)
# MSIM needs lwl/swl patch & 4kc instruction patch to work
# otherwise add -mmemcpy -mips3
81,7 → 81,7
BFD = binary
CFLAGS += -mhard-float -march=4kc
endif
ifeq ($(MACHINE),simics)
ifeq ($(MIPS_MACHINE),simics)
# SIMICS 4kc emulation is broken, although for instructions
# that do not bother us
89,17 → 89,12
BFD = elf32-tradlittlemips
CFLAGS += -mhard-float -mips3
endif
ifeq ($(MACHINE),msim)
ifeq ($(MIPS_MACHINE),msim)
BFD_NAME = elf32-tradlittlemips
BFD = binary
CFLAGS += -mhard-float -mips3
endif
 
## Own configuration directives
#
 
CONFIG_OFW = y
 
## Accepted configuration directives
#
 
/kernel/trunk/arch/ia32/Makefile.inc
38,36 → 38,36
## Make some default assumptions
#
 
ifndef CPU
CPU = pentium4
ifndef IA32_CPU
IA32_CPU = pentium4
endif
 
DEFS += -D_CPU=${CPU}
DEFS += -D_CPU=${IA32_CPU}
 
## Accepted CPUs
#
 
ifeq ($(CPU),athlon-xp)
ifeq ($(IA32_CPU),athlon-xp)
CFLAGS += -march=athlon-xp -mmmx -msse -m3dnow
DEFS += -DCONFIG_FENCES_P3
CONFIG_SMP = n
CONFIG_HT = n
endif
ifeq ($(CPU),athlon-mp)
ifeq ($(IA32_CPU),athlon-mp)
CFLAGS += -march=athlon-mp -mmmx -msse -m3dnow
DEFS += -DCONFIG_FENCES_P3
CONFIG_HT = n
endif
ifeq ($(CPU),pentium3)
ifeq ($(IA32_CPU),pentium3)
CFLAGS += -march=pentium3 -mmmx -msse
DEFS += -DCONFIG_FENCES_P3
CONFIG_HT = n
endif
ifeq ($(CPU),prescott)
ifeq ($(IA32_CPU),prescott)
CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -msse3
DEFS += -DCONFIG_FENCES_P4
endif
ifeq ($(CPU),pentium4)
ifeq ($(IA32_CPU),pentium4)
CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2
DEFS += -DCONFIG_FENCES_P4
endif