1 # Makefile.riscv -- with config changes.
2 # Copyright 1990 W. Jolitz
3 # from: @(#)Makefile.i386 7.1 5/10/91
4 # from FreeBSD: src/sys/conf/Makefile.i386,v 1.255 2002/02/20 23:35:49
9 # RISCVTODO: copy pasted from aarch64, needs to be
10 # constructed from a machine description:
12 # Most changes should be made in the machine description
13 # /sys/riscv/conf/``machineid''
14 # after which you should do
16 # Generic makefile changes should be made in
17 # /sys/conf/Makefile.riscv
18 # after which config should be rerun for all machines.
21 # Which version of config(8) is required.
27 .include "$S/conf/kern.pre.mk"
29 INCLUDES+= -I$S/contrib/libfdt
31 SYSTEM_LD= @${LD} -N -m ${LD_EMULATION} -Bdynamic -T ${LDSCRIPT} ${_LDFLAGS} \
32 --no-warn-mismatch --warn-common --export-dynamic \
33 --dynamic-linker /red/herring \
34 -o ${.TARGET} -X ${SYSTEM_OBJS} vers.o
36 .if !empty(DDB_ENABLED)
37 CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
40 # hack because genassym.c includes sys/bus.h which includes these.
41 genassym.o: bus_if.h device_if.h
57 .include "$S/conf/kern.post.mk"