]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/boot/common/Makefile.inc
Update DTS files from Linux 4.12
[FreeBSD/FreeBSD.git] / sys / boot / common / Makefile.inc
1 # $FreeBSD$
2
3 SRCS+=  boot.c commands.c console.c devopen.c interp.c 
4 SRCS+=  interp_backslash.c interp_parse.c ls.c misc.c 
5 SRCS+=  module.c panic.c
6
7 .if ${MACHINE} == "i386" || ${MACHINE_CPUARCH} == "amd64"
8 SRCS+=  load_elf32.c load_elf32_obj.c reloc_elf32.c
9 SRCS+=  load_elf64.c load_elf64_obj.c reloc_elf64.c
10 .elif ${MACHINE_CPUARCH} == "aarch64"
11 SRCS+=  load_elf64.c reloc_elf64.c
12 .elif ${MACHINE_CPUARCH} == "arm"
13 SRCS+=  load_elf32.c reloc_elf32.c
14 .elif ${MACHINE_CPUARCH} == "powerpc"
15 SRCS+=  load_elf32.c reloc_elf32.c
16 SRCS+=  load_elf64.c reloc_elf64.c
17 .elif ${MACHINE_CPUARCH} == "sparc64"
18 SRCS+=  load_elf64.c reloc_elf64.c
19 .elif ${MACHINE_ARCH:Mmips64*} != ""
20 SRCS+= load_elf64.c reloc_elf64.c
21 .elif ${MACHINE} == "mips"
22 SRCS+=  load_elf32.c reloc_elf32.c
23 .endif
24
25 .if defined(LOADER_NET_SUPPORT)
26 SRCS+=  dev_net.c
27 .endif
28
29 .if !defined(LOADER_NO_DISK_SUPPORT)
30 SRCS+=  disk.c part.c
31 CFLAGS+= -DLOADER_DISK_SUPPORT
32 .if !defined(LOADER_NO_GPT_SUPPORT)
33 SRCS+=  crc32.c
34 CFLAGS+= -DLOADER_GPT_SUPPORT
35 .endif
36 .if !defined(LOADER_NO_MBR_SUPPORT)
37 CFLAGS+= -DLOADER_MBR_SUPPORT
38 .endif
39 .endif
40 .if !defined(LOADER_NO_GELI_SUPPORT)
41 CFLAGS+= -DLOADER_GELI_SUPPORT
42 .endif
43
44 .if defined(HAVE_BCACHE)
45 SRCS+=  bcache.c
46 .endif
47
48 .if defined(MD_IMAGE_SIZE)
49 CFLAGS+= -DMD_IMAGE_SIZE=${MD_IMAGE_SIZE}
50 SRCS+=  md.c
51 .endif
52
53 # Machine-independant ISA PnP
54 .if defined(HAVE_ISABUS)
55 SRCS+=  isapnp.c
56 .endif
57 .if defined(HAVE_PNP)
58 SRCS+=  pnp.c
59 .endif
60
61 # Forth interpreter
62 .if defined(BOOT_FORTH)
63 SRCS+=  interp_forth.c
64 .include "${SRCTOP}/sys/boot/Makefile.ficl"
65 .endif
66
67 .if defined(BOOT_PROMPT_123)
68 CFLAGS+=        -DBOOT_PROMPT_123
69 .endif
70
71 .if defined(LOADER_INSTALL_SUPPORT)
72 SRCS+=  install.c
73 CFLAGS+=-I${.CURDIR}/../../../../lib/libstand
74 .endif
75
76 CLEANFILES+=    vers.c
77 VERSION_FILE?=  ${.CURDIR}/version
78 .if ${MK_REPRODUCIBLE_BUILD} != no
79 REPRO_FLAG=     -r
80 .endif
81 vers.c: ${SRCTOP}/sys/boot/common/newvers.sh ${VERSION_FILE}
82         sh ${SRCTOP}/sys/boot/common/newvers.sh ${REPRO_FLAG} ${VERSION_FILE} \
83             ${NEWVERSWHAT}