implements VMCB_EXIT_MSR
[freebsd-src/fkvm-freebsd.git] / sys / conf / Makefile.mips
blob443065aaafcc5f884c2655f83f18d2a2582d8cb9
1 # Makefile.mips
2 # $FreeBSD$
4 # Makefile for FreeBSD
6 # This makefile is constructed from a machine description:
7 #       config machineid
8 # Most changes should be made in the machine description
9 #       /sys/mips/conf/``machineid''
10 # after which you should do
11 #        config machineid
12 # Generic makefile changes should be made in
13 #       /sys/conf/Makefile.mips
14 # after which config should be rerun for all machines.
17 # Which version of config(8) is required.
18 %VERSREQ=       600004
20 STD8X16FONT?=   iso
22 .if !defined(S)
23 .if exists(./@/.)
24 S=      ./@
25 .else
26 S=      ../../..
27 .endif
28 .endif
29 .include "$S/conf/kern.pre.mk"
31 # XXX: Such sweeping assumptions...
32 MACHINE=mips
33 MACHINE_ARCH=mips
35 MKMODULESENV+=  MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH}
37 # We default to the MIPS32 ISA, if none specified in the
38 # kernel configuration file.
39 ARCH_FLAGS?=-march=mips32
41 HACK_EXTRA_FLAGS=-shared
42 .if defined(TARGET_BIG_ENDIAN)
43 CFLAGS+=-EB
44 SYSTEM_LD+=-EB
45 HACK_EXTRA_FLAGS+=-EB -Wl,-EB
46 .else
47 CFLAGS+=-EL
48 SYSTEM_LD+=-EL
49 HACK_EXTRA_FLAGS+=-EL -Wl,-EL
50 .endif
52 # We add the -fno-pic flag to kernels because otherwise performance
53 # is extremely poor, as well as -mno-abicalls to force no ABI usage.
54 CFLAGS+=-fno-pic -mno-abicalls -G0 $(ARCH_FLAGS)
55 HACK_EXTRA_FLAGS+=-fno-pic -mno-abicalls -G0 $(ARCH_FLAGS)
57 # XXX hardcoded kernel entry point
58 ASM_CFLAGS+=${CFLAGS} -D_LOCORE -DLOCORE
60 %BEFORE_DEPEND
62 %OBJS
64 %FILES.c
66 %FILES.s
68 %FILES.m
70 %CLEAN
72 %RULES
74 .include "$S/conf/kern.post.mk"