6 # This makefile is constructed from a machine description:
8 # Most changes should be made in the machine description
9 # /sys/mips/conf/``machineid''
10 # after which you should do
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.
29 .include "$S/conf/kern.pre.mk"
31 # XXX: Such sweeping assumptions...
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)
45 HACK_EXTRA_FLAGS+=-EB -Wl,-EB
49 HACK_EXTRA_FLAGS+=-EL -Wl,-EL
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
74 .include "$S/conf/kern.post.mk"