]>
Commit | Line | Data |
---|---|---|
8c411768 BC |
1 | AutoGen definitions Makefile.tpl; |
2 | ||
b524259b | 3 | script = { |
3572f2b6 | 4 | installdir = noinst; |
b524259b BC |
5 | name = gensyminfo.sh; |
6 | common = gensyminfo.sh.in; | |
7 | }; | |
8 | ||
9 | script = { | |
3572f2b6 | 10 | installdir = noinst; |
b524259b BC |
11 | name = genmod.sh; |
12 | common = genmod.sh.in; | |
13 | }; | |
14 | ||
6ad6223e VS |
15 | script = { |
16 | installdir = noinst; | |
17 | name = modinfo.sh; | |
18 | common = modinfo.sh.in; | |
19 | }; | |
20 | ||
2536cf64 | 21 | script = { |
80a71213 | 22 | installdir = platform; |
2536cf64 LK |
23 | name = gmodule.pl; |
24 | common = gmodule.pl.in; | |
25 | }; | |
26 | ||
27 | script = { | |
80a71213 | 28 | installdir = platform; |
2536cf64 LK |
29 | name = gdb_grub; |
30 | common = gdb_grub.in; | |
31 | }; | |
32 | ||
a79b8a15 VS |
33 | script = { |
34 | installdir = platform; | |
35 | name = grub.chrp; | |
36 | common = boot/powerpc/grub.chrp.in; | |
daaa64bd VS |
37 | enable = powerpc_ieee1275; |
38 | }; | |
39 | ||
40 | script = { | |
41 | installdir = platform; | |
42 | name = bootinfo.txt; | |
43 | common = boot/powerpc/bootinfo.txt.in; | |
44 | enable = powerpc_ieee1275; | |
a79b8a15 VS |
45 | }; |
46 | ||
8c411768 BC |
47 | kernel = { |
48 | name = kernel; | |
49 | ||
c1c6e4c0 BC |
50 | nostrip = emu; |
51 | ||
911bd640 | 52 | emu_ldflags = '-Wl,-r,-d'; |
6585de4c | 53 | i386_efi_ldflags = '-Wl,-r,-d'; |
0f021838 | 54 | i386_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version'; |
6585de4c | 55 | x86_64_efi_ldflags = '-Wl,-r,-d'; |
0f021838 | 56 | x86_64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version'; |
6585de4c VS |
57 | |
58 | ia64_efi_cflags = '-fno-builtin -fpic -minline-int-divide-max-throughput'; | |
bea33583 | 59 | ia64_efi_ldflags = '-Wl,-r,-d'; |
0f021838 | 60 | ia64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version'; |
2d465fb0 | 61 | |
389b31cd LL |
62 | arm_efi_ldflags = '-Wl,-r,-d'; |
63 | arm_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version'; | |
64 | ||
2d465fb0 | 65 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; |
60240b8b | 66 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x9000'; |
2d465fb0 BC |
67 | |
68 | i386_qemu_ldflags = '$(TARGET_IMG_LDFLAGS)'; | |
fb53b340 | 69 | i386_qemu_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x8200'; |
2d465fb0 | 70 | |
03f80960 VS |
71 | ldadd = '$(LDADD_KERNEL)'; |
72 | ||
fb53b340 VS |
73 | i386_coreboot_ldflags = '-Wl,-Ttext=0x8200'; |
74 | i386_multiboot_ldflags = '-Wl,-Ttext=0x8200'; | |
75 | i386_ieee1275_ldflags = '-Wl,-Ttext=0x10000'; | |
54da1feb | 76 | mips_loongson_ldflags = '-Wl,-Ttext,0x80200000'; |
fb53b340 VS |
77 | powerpc_ieee1275_ldflags = '-Wl,-Ttext,0x200000'; |
78 | sparc64_ieee1275_ldflags = '-Wl,-Ttext,0x4400'; | |
7f63a64f | 79 | mips_arc_ldflags = '-Wl,-Ttext,$(TARGET_LINK_ADDR)'; |
3666d5f6 | 80 | mips_qemu_mips_ldflags = '-Wl,-Ttext,0x80200000'; |
8c411768 | 81 | |
17f9fd29 | 82 | mips_arc_cppflags = '-DGRUB_DECOMPRESSOR_LINK_ADDR=$(TARGET_DECOMPRESSOR_LINK_ADDR)'; |
ccfc0bdb | 83 | mips_loongson_cppflags = '-DUSE_ASCII_FALLBACK'; |
8c411768 | 84 | i386_qemu_cppflags = '-DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)'; |
16321bf9 BC |
85 | emu_cflags = '$(CFLAGS_GNULIB)'; |
86 | emu_cppflags = '$(CPPFLAGS_GNULIB)'; | |
389b31cd LL |
87 | arm_uboot_ldflags = '-Wl,-Ttext=0x08000000'; |
88 | arm_uboot_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version'; | |
8c411768 | 89 | |
8427685f BC |
90 | i386_pc_startup = kern/i386/pc/startup.S; |
91 | i386_efi_startup = kern/i386/efi/startup.S; | |
92 | x86_64_efi_startup = kern/x86_64/efi/startup.S; | |
93 | i386_qemu_startup = kern/i386/qemu/startup.S; | |
94 | i386_ieee1275_startup = kern/i386/ieee1275/startup.S; | |
eefe8abd VS |
95 | i386_coreboot_startup = kern/i386/coreboot/startup.S; |
96 | i386_multiboot_startup = kern/i386/coreboot/startup.S; | |
f440c33f | 97 | mips_startup = kern/mips/startup.S; |
8427685f BC |
98 | sparc64_ieee1275_startup = kern/sparc64/ieee1275/crt0.S; |
99 | powerpc_ieee1275_startup = kern/powerpc/ieee1275/startup.S; | |
389b31cd LL |
100 | arm_uboot_startup = kern/arm/uboot/startup.S; |
101 | arm_efi_startup = kern/arm/efi/startup.S; | |
8427685f BC |
102 | |
103 | common = kern/command.c; | |
104 | common = kern/corecmd.c; | |
105 | common = kern/device.c; | |
106 | common = kern/disk.c; | |
107 | common = kern/dl.c; | |
108 | common = kern/env.c; | |
109 | common = kern/err.c; | |
110 | common = kern/file.c; | |
111 | common = kern/fs.c; | |
112 | common = kern/list.c; | |
113 | common = kern/main.c; | |
114 | common = kern/misc.c; | |
115 | common = kern/parser.c; | |
116 | common = kern/partition.c; | |
117 | common = kern/rescue_parser.c; | |
118 | common = kern/rescue_reader.c; | |
119 | common = kern/term.c; | |
120 | ||
121 | noemu = kern/mm.c; | |
122 | noemu = kern/time.c; | |
123 | noemu = kern/generic/millisleep.c; | |
124 | ||
125 | noemu_nodist = symlist.c; | |
126 | ||
8906c3dd | 127 | mips = kern/generic/rtc_get_time_ms.c; |
8427685f BC |
128 | |
129 | ieee1275 = disk/ieee1275/ofdisk.c; | |
130 | ieee1275 = kern/ieee1275/cmain.c; | |
131 | ieee1275 = kern/ieee1275/ieee1275.c; | |
132 | ieee1275 = kern/ieee1275/mmap.c; | |
133 | ieee1275 = kern/ieee1275/openfw.c; | |
ca8c0baf | 134 | ieee1275 = term/ieee1275/console.c; |
574618a2 | 135 | ieee1275 = kern/ieee1275/init.c; |
8427685f | 136 | |
389b31cd LL |
137 | uboot = disk/uboot/ubootdisk.c; |
138 | uboot = kern/uboot/uboot.c; | |
139 | uboot = kern/uboot/init.c; | |
140 | uboot = kern/uboot/hw.c; | |
141 | uboot = term/uboot/console.c; | |
142 | ||
ee74fa48 VS |
143 | terminfoinkernel = term/terminfo.c; |
144 | terminfoinkernel = term/tparm.c; | |
145 | terminfoinkernel = commands/extcmd.c; | |
146 | terminfoinkernel = lib/arg.c; | |
8427685f BC |
147 | |
148 | i386 = kern/i386/dl.c; | |
149 | ||
96f33fed VS |
150 | i386_coreboot = kern/i386/coreboot/init.c; |
151 | i386_multiboot = kern/i386/coreboot/init.c; | |
152 | i386_qemu = kern/i386/qemu/init.c; | |
8427685f | 153 | i386_coreboot_multiboot_qemu = term/i386/pc/vga_text.c; |
fc4c4fdd | 154 | i386_coreboot = video/i386/coreboot/cbfb.c; |
8427685f | 155 | |
6585de4c VS |
156 | efi = disk/efi/efidisk.c; |
157 | efi = kern/efi/efi.c; | |
158 | efi = kern/efi/init.c; | |
159 | efi = kern/efi/mm.c; | |
160 | efi = term/efi/console.c; | |
8427685f | 161 | |
f75835bd VS |
162 | x86 = kern/i386/tsc.c; |
163 | ||
6585de4c | 164 | i386_efi = kern/i386/efi/init.c; |
9d34bb85 | 165 | i386_efi = bus/pci.c; |
8427685f | 166 | |
8427685f BC |
167 | x86_64_efi = kern/x86_64/dl.c; |
168 | x86_64_efi = kern/x86_64/efi/callwrap.S; | |
6585de4c | 169 | x86_64_efi = kern/i386/efi/init.c; |
9d34bb85 | 170 | x86_64_efi = bus/pci.c; |
6585de4c VS |
171 | |
172 | ia64_efi = kern/ia64/efi/startup.S; | |
6585de4c | 173 | ia64_efi = kern/ia64/efi/init.c; |
c18271ed | 174 | ia64_efi = kern/ia64/dl.c; |
5452733f | 175 | ia64_efi = kern/ia64/dl_helper.c; |
8427685f | 176 | |
389b31cd LL |
177 | arm_efi = kern/arm/efi/init.c; |
178 | arm_efi = kern/arm/efi/misc.c; | |
179 | ||
8c411768 BC |
180 | i386_pc = kern/i386/pc/init.c; |
181 | i386_pc = kern/i386/pc/mmap.c; | |
8c411768 | 182 | i386_pc = term/i386/pc/console.c; |
8427685f BC |
183 | |
184 | i386_qemu = bus/pci.c; | |
93c06ff9 | 185 | i386_qemu = kern/vga_init.c; |
8427685f | 186 | i386_qemu = kern/i386/qemu/mmap.c; |
8427685f | 187 | |
8c411768 | 188 | i386_coreboot = kern/i386/coreboot/mmap.c; |
e6930a45 | 189 | i386_coreboot = kern/i386/coreboot/cbtable.c; |
8427685f | 190 | |
062cdbc1 | 191 | i386_multiboot = kern/i386/multiboot_mmap.c; |
8c411768 | 192 | |
f440c33f VS |
193 | mips = kern/mips/cache.S; |
194 | mips = kern/mips/dl.c; | |
195 | mips = kern/mips/init.c; | |
8906c3dd | 196 | |
3666d5f6 VS |
197 | mips_qemu_mips = kern/mips/qemu_mips/init.c; |
198 | mips_qemu_mips = term/ns8250.c; | |
199 | mips_qemu_mips = term/serial.c; | |
d7345994 | 200 | mips_qemu_mips = term/at_keyboard.c; |
fc4c4fdd | 201 | mips_qemu_mips = commands/boot.c; |
d7345994 | 202 | mips_qemu_mips = commands/keylayouts.c; |
93c06ff9 | 203 | mips_qemu_mips = term/i386/pc/vga_text.c; |
93c06ff9 | 204 | mips_qemu_mips = kern/vga_init.c; |
3666d5f6 | 205 | |
8906c3dd VS |
206 | mips_arc = kern/mips/arc/init.c; |
207 | mips_arc = term/arc/console.c; | |
208 | mips_arc = disk/arc/arcdisk.c; | |
209 | ||
54da1feb VS |
210 | mips_loongson = term/ns8250.c; |
211 | mips_loongson = bus/bonito.c; | |
212 | mips_loongson = bus/cs5536.c; | |
213 | mips_loongson = bus/pci.c; | |
54da1feb VS |
214 | mips_loongson = kern/mips/loongson/init.c; |
215 | mips_loongson = term/at_keyboard.c; | |
fc4c4fdd | 216 | mips_loongson = commands/boot.c; |
54da1feb VS |
217 | mips_loongson = term/serial.c; |
218 | mips_loongson = video/sm712.c; | |
219 | mips_loongson = video/sis315pro.c; | |
d94497ea | 220 | mips_loongson = video/radeon_fuloong2e.c; |
6556eba9 | 221 | extra_dist = video/sm712_init.c; |
2702b4e4 | 222 | extra_dist = video/sis315_init.c; |
54da1feb | 223 | mips_loongson = commands/keylayouts.c; |
8c411768 | 224 | |
8c411768 | 225 | powerpc_ieee1275 = kern/powerpc/cache.S; |
8427685f BC |
226 | powerpc_ieee1275 = kern/powerpc/dl.c; |
227 | ||
228 | sparc64_ieee1275 = kern/sparc64/cache.S; | |
229 | sparc64_ieee1275 = kern/sparc64/dl.c; | |
8c411768 | 230 | sparc64_ieee1275 = kern/sparc64/ieee1275/ieee1275.c; |
8c411768 | 231 | |
389b31cd | 232 | arm = kern/arm/dl.c; |
854f383c | 233 | arm = kern/arm/dl_helper.c; |
390df92f VS |
234 | arm = kern/arm/cache_armv6.S; |
235 | arm = kern/arm/cache_armv7.S; | |
ed8c0887 | 236 | extra_dist = kern/arm/cache.S; |
390df92f | 237 | arm = kern/arm/cache.c; |
389b31cd LL |
238 | arm = kern/arm/misc.S; |
239 | ||
8427685f | 240 | emu = disk/host.c; |
0a2b2cdc | 241 | emu = kern/emu/cache_s.S; |
8c411768 | 242 | emu = kern/emu/hostdisk.c; |
620b52bf | 243 | emu = osdep/unix/hostdisk.c; |
40346de6 VS |
244 | emu = osdep/exec.c; |
245 | extra_dist = osdep/unix/exec.c; | |
620b52bf VS |
246 | emu = osdep/devmapper/hostdisk.c; |
247 | emu = osdep/hostdisk.c; | |
8c411768 | 248 | emu = kern/emu/hostfs.c; |
8427685f | 249 | emu = kern/emu/main.c; |
6a656b0e | 250 | emu = kern/emu/argp_common.c; |
8427685f BC |
251 | emu = kern/emu/misc.c; |
252 | emu = kern/emu/mm.c; | |
253 | emu = kern/emu/time.c; | |
6f49d0aa | 254 | emu = kern/emu/cache.c; |
69ca5876 VS |
255 | emu = osdep/emuconsole.c; |
256 | extra_dist = osdep/unix/emuconsole.c; | |
257 | extra_dist = osdep/windows/emuconsole.c; | |
620b52bf | 258 | emu = osdep/sleep.c; |
21d85db1 | 259 | emu = osdep/init.c; |
70671037 VS |
260 | emu = osdep/emunet.c; |
261 | extra_dist = osdep/linux/emunet.c; | |
262 | extra_dist = osdep/basic/emunet.c; | |
7e45abce VS |
263 | emu = osdep/cputime.c; |
264 | extra_dist = osdep/unix/cputime.c; | |
265 | extra_dist = osdep/windows/cputime.c; | |
610c1efd | 266 | |
eefe8abd | 267 | videoinkernel = term/gfxterm.c; |
eefe8abd VS |
268 | videoinkernel = font/font.c; |
269 | videoinkernel = font/font_cmd.c; | |
270 | videoinkernel = io/bufio.c; | |
eefe8abd VS |
271 | videoinkernel = video/fb/fbblit.c; |
272 | videoinkernel = video/fb/fbfill.c; | |
273 | videoinkernel = video/fb/fbutil.c; | |
274 | videoinkernel = video/fb/video_fb.c; | |
275 | videoinkernel = video/video.c; | |
276 | ||
fc5efcc0 | 277 | extra_dist = kern/i386/int.S; |
610c1efd | 278 | extra_dist = kern/i386/realmode.S; |
2702b4e4 | 279 | extra_dist = boot/i386/pc/lzma_decode.S; |
d768d159 | 280 | extra_dist = kern/mips/cache_flush.S; |
8c411768 BC |
281 | }; |
282 | ||
283 | program = { | |
284 | name = grub-emu; | |
285 | mansection = 1; | |
286 | ||
8427685f BC |
287 | emu = kern/emu/full.c; |
288 | emu_nodist = grub_emu_init.c; | |
8c411768 | 289 | |
b24ca7cd | 290 | ldadd = 'kernel.exec$(EXEEXT)'; |
8c411768 | 291 | ldadd = '$(MODULE_FILES)'; |
db99fbe8 | 292 | ldadd = 'gnulib/libgnu.a $(LIBINTL) $(LIBUTIL) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)'; |
8c411768 | 293 | |
911bd640 | 294 | enable = emu; |
8c411768 BC |
295 | }; |
296 | ||
297 | program = { | |
298 | name = grub-emu-lite; | |
299 | ||
8427685f | 300 | emu = kern/emu/lite.c; |
8427685f | 301 | emu_nodist = symlist.c; |
8c411768 | 302 | |
b24ca7cd | 303 | ldadd = 'kernel.exec$(EXEEXT)'; |
db99fbe8 | 304 | ldadd = 'gnulib/libgnu.a $(LIBINTL) $(LIBUTIL) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)'; |
8c411768 | 305 | |
911bd640 | 306 | enable = emu; |
8c411768 BC |
307 | }; |
308 | ||
8c411768 BC |
309 | image = { |
310 | name = boot; | |
311 | i386_pc = boot/i386/pc/boot.S; | |
8c411768 | 312 | i386_qemu = boot/i386/qemu/boot.S; |
8427685f | 313 | sparc64_ieee1275 = boot/sparc64/ieee1275/boot.S; |
2d465fb0 BC |
314 | |
315 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; | |
316 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00'; | |
317 | ||
318 | i386_qemu_ldflags = '$(TARGET_IMG_LDFLAGS)'; | |
319 | i386_qemu_ldflags = '$(TARGET_IMG_BASE_LDOPT),$(GRUB_BOOT_MACHINE_LINK_ADDR)'; | |
8c411768 BC |
320 | i386_qemu_ccasflags = '-DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)'; |
321 | ||
911bd640 | 322 | sparc64_ieee1275_objcopyflags = '-O a.out-sunos-big'; |
8c411768 | 323 | sparc64_ieee1275_ldflags = ' -Wl,-Ttext=0x4000'; |
911bd640 BC |
324 | |
325 | objcopyflags = '-O binary'; | |
326 | enable = i386_pc; | |
327 | enable = i386_qemu; | |
328 | enable = sparc64_ieee1275; | |
8c411768 BC |
329 | }; |
330 | ||
b49fe879 VS |
331 | image = { |
332 | name = boot_hybrid; | |
333 | i386_pc = boot/i386/pc/boot.S; | |
334 | ||
335 | cppflags = '-DHYBRID_BOOT=1'; | |
336 | ||
337 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; | |
338 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00'; | |
339 | ||
340 | objcopyflags = '-O binary'; | |
341 | enable = i386_pc; | |
342 | }; | |
343 | ||
8c411768 BC |
344 | image = { |
345 | name = cdboot; | |
8ca86b3a | 346 | |
2d465fb0 BC |
347 | i386_pc = boot/i386/pc/cdboot.S; |
348 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; | |
349 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00'; | |
8ca86b3a VS |
350 | |
351 | sparc64_ieee1275 = boot/sparc64/ieee1275/boot.S; | |
352 | sparc64_ieee1275_objcopyflags = '-O a.out-sunos-big'; | |
353 | sparc64_ieee1275_ldflags = ' -Wl,-Ttext=0x4000'; | |
354 | sparc64_ieee1275_cppflags = '-DCDBOOT=1'; | |
355 | ||
911bd640 | 356 | objcopyflags = '-O binary'; |
8ca86b3a VS |
357 | |
358 | enable = sparc64_ieee1275; | |
911bd640 | 359 | enable = i386_pc; |
8c411768 BC |
360 | }; |
361 | ||
362 | image = { | |
363 | name = pxeboot; | |
2d465fb0 | 364 | i386_pc = boot/i386/pc/pxeboot.S; |
8c411768 | 365 | |
2d465fb0 BC |
366 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; |
367 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00'; | |
911bd640 BC |
368 | |
369 | objcopyflags = '-O binary'; | |
370 | enable = i386_pc; | |
8c411768 BC |
371 | }; |
372 | ||
373 | image = { | |
374 | name = diskboot; | |
375 | i386_pc = boot/i386/pc/diskboot.S; | |
2d465fb0 BC |
376 | |
377 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; | |
378 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x8000'; | |
8c411768 BC |
379 | |
380 | sparc64_ieee1275 = boot/sparc64/ieee1275/diskboot.S; | |
381 | sparc64_ieee1275_ldflags = '-Wl,-Ttext=0x4200'; | |
911bd640 BC |
382 | |
383 | objcopyflags = '-O binary'; | |
384 | ||
385 | enable = i386_pc; | |
386 | enable = sparc64_ieee1275; | |
8c411768 BC |
387 | }; |
388 | ||
389 | image = { | |
390 | name = lnxboot; | |
2d465fb0 | 391 | i386_pc = boot/i386/pc/lnxboot.S; |
8c411768 | 392 | |
2d465fb0 BC |
393 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; |
394 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x6000'; | |
911bd640 BC |
395 | |
396 | objcopyflags = '-O binary'; | |
397 | enable = i386_pc; | |
8c411768 BC |
398 | }; |
399 | ||
c5b4cd37 | 400 | image = { |
758194b0 | 401 | name = xz_decompress; |
c5b4cd37 | 402 | mips = boot/mips/startup_raw.S; |
758194b0 VS |
403 | common = boot/decompressor/minilib.c; |
404 | common = boot/decompressor/xz.c; | |
f8926c32 VS |
405 | common = lib/xzembed/xz_dec_bcj.c; |
406 | common = lib/xzembed/xz_dec_lzma2.c; | |
407 | common = lib/xzembed/xz_dec_stream.c; | |
c5b4cd37 | 408 | |
400b9371 | 409 | cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -DGRUB_EMBED_DECOMPRESSOR=1'; |
c5b4cd37 VS |
410 | |
411 | objcopyflags = '-O binary'; | |
7f63a64f | 412 | mips_ldflags = '-static-libgcc -Wl,-Ttext,$(TARGET_DECOMPRESSOR_LINK_ADDR)'; |
5a407278 | 413 | ldadd = '-lgcc'; |
ebcecdf1 | 414 | cflags = '-Wno-unreachable-code -static-libgcc'; |
c5b4cd37 VS |
415 | enable = mips; |
416 | }; | |
417 | ||
758194b0 VS |
418 | image = { |
419 | name = none_decompress; | |
420 | mips = boot/mips/startup_raw.S; | |
421 | common = boot/decompressor/none.c; | |
422 | ||
400b9371 | 423 | cppflags = '-DGRUB_EMBED_DECOMPRESSOR=1'; |
758194b0 VS |
424 | |
425 | objcopyflags = '-O binary'; | |
7f63a64f | 426 | mips_ldflags = '-static-libgcc -Wl,-Ttext,$(TARGET_DECOMPRESSOR_LINK_ADDR)'; |
5a407278 | 427 | ldadd = '-lgcc'; |
758194b0 VS |
428 | cflags = '-static-libgcc'; |
429 | enable = mips; | |
430 | }; | |
431 | ||
60240b8b VS |
432 | image = { |
433 | name = lzma_decompress; | |
434 | i386_pc = boot/i386/pc/startup_raw.S; | |
cc284112 | 435 | i386_pc_nodist = rs_decoder.h; |
60240b8b VS |
436 | |
437 | objcopyflags = '-O binary'; | |
c4c48c54 | 438 | ldflags = '$(TARGET_IMG_LDFLAGS) $(TARGET_IMG_BASE_LDOPT),0x8200'; |
60240b8b VS |
439 | enable = i386_pc; |
440 | }; | |
441 | ||
297f0c2b BC |
442 | image = { |
443 | name = fwstart; | |
54da1feb | 444 | mips_loongson = boot/mips/loongson/fwstart.S; |
911bd640 | 445 | objcopyflags = '-O binary'; |
1d955d00 | 446 | ldflags = '-static-libgcc -lgcc -Wl,-N,-S,-Ttext,0xbfc00000,-Bstatic'; |
54da1feb | 447 | enable = mips_loongson; |
297f0c2b BC |
448 | }; |
449 | ||
a9fa2a22 | 450 | image = { |
14a2562c VS |
451 | name = fwstart_fuloong2f; |
452 | mips_loongson = boot/mips/loongson/fuloong2f.S; | |
911bd640 | 453 | objcopyflags = '-O binary'; |
a9fa2a22 | 454 | ldflags = '-static-libgcc -lgcc -Wl,-N,-S,-Ttext,0xbfc00000,-Bstatic'; |
54da1feb | 455 | enable = mips_loongson; |
297f0c2b BC |
456 | }; |
457 | ||
442b86de VS |
458 | module = { |
459 | name = disk; | |
460 | common = lib/disk.c; | |
461 | }; | |
462 | ||
e235a228 BC |
463 | module = { |
464 | name = trig; | |
8427685f | 465 | common_nodist = trigtables.c; |
e235a228 | 466 | extra_dist = gentrigtables.c; |
e235a228 BC |
467 | }; |
468 | ||
baea1766 BC |
469 | module = { |
470 | name = cs5536; | |
f7711f5e BC |
471 | x86 = bus/cs5536.c; |
472 | enable = x86; | |
baea1766 BC |
473 | }; |
474 | ||
8c411768 BC |
475 | module = { |
476 | name = libusb; | |
8427685f | 477 | emu = bus/usb/emu/usb.c; |
911bd640 BC |
478 | enable = emu; |
479 | condition = COND_GRUB_EMU_USB; | |
8c411768 BC |
480 | }; |
481 | ||
297f0c2b BC |
482 | module = { |
483 | name = lsspd; | |
54da1feb VS |
484 | mips_loongson = commands/mips/loongson/lsspd.c; |
485 | enable = mips_loongson; | |
297f0c2b BC |
486 | }; |
487 | ||
8c411768 BC |
488 | module = { |
489 | name = usb; | |
8427685f | 490 | common = bus/usb/usb.c; |
fe942b7d VS |
491 | common = bus/usb/usbtrans.c; |
492 | common = bus/usb/usbhub.c; | |
eefe8abd | 493 | enable = usb; |
fe942b7d VS |
494 | }; |
495 | ||
496 | module = { | |
497 | name = emuusb; | |
498 | common = bus/usb/usb.c; | |
499 | condition = COND_GRUB_EMU_USB; | |
8c411768 BC |
500 | }; |
501 | ||
d84666e6 BC |
502 | module = { |
503 | name = usbserial_common; | |
504 | common = bus/usb/serial/common.c; | |
eefe8abd | 505 | enable = usb; |
d84666e6 BC |
506 | }; |
507 | ||
508 | module = { | |
509 | name = usbserial_pl2303; | |
510 | common = bus/usb/serial/pl2303.c; | |
eefe8abd | 511 | enable = usb; |
d84666e6 BC |
512 | }; |
513 | ||
514 | module = { | |
515 | name = usbserial_ftdi; | |
516 | common = bus/usb/serial/ftdi.c; | |
eefe8abd | 517 | enable = usb; |
d84666e6 BC |
518 | }; |
519 | ||
66a93674 VS |
520 | module = { |
521 | name = usbserial_usbdebug; | |
522 | common = bus/usb/serial/usbdebug_late.c; | |
523 | enable = usb; | |
524 | }; | |
525 | ||
8c411768 BC |
526 | module = { |
527 | name = uhci; | |
8427685f | 528 | common = bus/usb/uhci.c; |
f7bf6c31 | 529 | enable = pci; |
8c411768 BC |
530 | }; |
531 | ||
532 | module = { | |
533 | name = ohci; | |
8427685f | 534 | common = bus/usb/ohci.c; |
eefe8abd | 535 | enable = pci; |
8c411768 BC |
536 | }; |
537 | ||
2f82ea94 AN |
538 | module = { |
539 | name = ehci; | |
540 | common = bus/usb/ehci.c; | |
541 | enable = pci; | |
542 | }; | |
543 | ||
8c411768 BC |
544 | module = { |
545 | name = pci; | |
fe942b7d | 546 | common = bus/pci.c; |
d9b78bce | 547 | |
911bd640 | 548 | enable = i386_pc; |
911bd640 BC |
549 | enable = i386_ieee1275; |
550 | enable = i386_coreboot; | |
f0b05761 | 551 | enable = i386_multiboot; |
fe942b7d VS |
552 | }; |
553 | ||
7cd0df84 VS |
554 | module = { |
555 | name = nativedisk; | |
556 | common = commands/nativedisk.c; | |
ef9d8cd5 VS |
557 | |
558 | enable = x86; | |
559 | enable = mips_loongson; | |
560 | enable = mips_qemu_mips; | |
7cd0df84 VS |
561 | }; |
562 | ||
fe942b7d VS |
563 | module = { |
564 | name = emupci; | |
565 | common = bus/emu/pci.c; | |
566 | common = commands/lspci.c; | |
567 | ||
568 | condition = COND_GRUB_EMU_PCI; | |
8c411768 BC |
569 | }; |
570 | ||
8906c3dd VS |
571 | module = { |
572 | name = lsdev; | |
573 | common = commands/arc/lsdev.c; | |
574 | ||
575 | enable = mips_arc; | |
576 | }; | |
577 | ||
8c411768 BC |
578 | library = { |
579 | name = libgnulib.a; | |
8427685f | 580 | common = gnulib/regex.c; |
8c411768 BC |
581 | cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)'; |
582 | cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB)'; | |
8c411768 BC |
583 | }; |
584 | ||
16c7cb32 BC |
585 | module = { |
586 | name = cmostest; | |
eefe8abd VS |
587 | common = commands/i386/cmostest.c; |
588 | enable = cmos; | |
16c7cb32 BC |
589 | }; |
590 | ||
d55ffb02 VS |
591 | module = { |
592 | name = cmosdump; | |
593 | common = commands/i386/cmosdump.c; | |
594 | enable = cmos; | |
595 | }; | |
596 | ||
8c411768 BC |
597 | module = { |
598 | name = iorw; | |
8427685f | 599 | common = commands/iorw.c; |
f7711f5e | 600 | enable = x86; |
8c411768 BC |
601 | }; |
602 | ||
e6930a45 VS |
603 | module = { |
604 | name = cbtable; | |
605 | common = kern/i386/coreboot/cbtable.c; | |
606 | enable = i386_pc; | |
607 | enable = i386_efi; | |
608 | enable = i386_qemu; | |
609 | enable = i386_multiboot; | |
610 | enable = i386_ieee1275; | |
611 | enable = x86_64_efi; | |
612 | }; | |
613 | ||
cc19857a VS |
614 | module = { |
615 | name = cbtime; | |
616 | common = commands/i386/coreboot/cb_timestamps.c; | |
e6930a45 | 617 | enable = x86; |
cc19857a VS |
618 | }; |
619 | ||
620 | module = { | |
621 | name = cbls; | |
622 | common = commands/i386/coreboot/cbls.c; | |
e6930a45 | 623 | enable = x86; |
cc19857a VS |
624 | }; |
625 | ||
626 | module = { | |
627 | name = cbmemc; | |
628 | common = term/i386/coreboot/cbmemc.c; | |
e6930a45 | 629 | enable = x86; |
cc19857a VS |
630 | }; |
631 | ||
8c411768 BC |
632 | module = { |
633 | name = regexp; | |
8427685f | 634 | common = commands/regexp.c; |
8fdefb92 | 635 | common = commands/wildcard.c; |
8c411768 | 636 | ldadd = libgnulib.a; |
3c7eac44 | 637 | dependencies = libgnulib.a; |
8c411768 BC |
638 | cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)'; |
639 | cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB)'; | |
8c411768 BC |
640 | }; |
641 | ||
642 | module = { | |
643 | name = acpi; | |
644 | ||
1782b135 | 645 | common = commands/acpi.c; |
6585de4c | 646 | efi = commands/efi/acpi.c; |
8c411768 | 647 | i386_pc = commands/i386/pc/acpi.c; |
16bd6cfa VS |
648 | i386_coreboot = commands/i386/pc/acpi.c; |
649 | i386_multiboot = commands/i386/pc/acpi.c; | |
911bd640 | 650 | |
6585de4c | 651 | enable = efi; |
911bd640 | 652 | enable = i386_pc; |
16bd6cfa VS |
653 | enable = i386_coreboot; |
654 | enable = i386_multiboot; | |
8c411768 BC |
655 | }; |
656 | ||
1782b135 TG |
657 | module = { |
658 | name = lsacpi; | |
659 | ||
660 | common = commands/lsacpi.c; | |
661 | ||
9a79fcf2 | 662 | enable = efi; |
1782b135 TG |
663 | enable = i386_pc; |
664 | enable = i386_coreboot; | |
665 | enable = i386_multiboot; | |
666 | }; | |
667 | ||
105de6a7 TG |
668 | module = { |
669 | name = lsefisystab; | |
670 | ||
671 | common = commands/efi/lsefisystab.c; | |
672 | ||
9a79fcf2 | 673 | enable = efi; |
105de6a7 TG |
674 | }; |
675 | ||
676 | module = { | |
677 | name = lssal; | |
678 | ||
679 | common = commands/efi/lssal.c; | |
680 | ||
9a79fcf2 | 681 | enable = efi; |
105de6a7 TG |
682 | }; |
683 | ||
41a331a8 TG |
684 | module = { |
685 | name = lsefimmap; | |
686 | ||
687 | common = commands/efi/lsefimmap.c; | |
688 | ||
9a79fcf2 | 689 | enable = efi; |
41a331a8 TG |
690 | }; |
691 | ||
7bd29c01 VS |
692 | module = { |
693 | name = lsefi; | |
694 | common = commands/efi/lsefi.c; | |
695 | enable = efi; | |
696 | }; | |
697 | ||
c5052c81 PJ |
698 | module = { |
699 | name = efifwsetup; | |
700 | efi = commands/efi/efifwsetup.c; | |
701 | enable = efi; | |
702 | }; | |
703 | ||
8c411768 | 704 | module = { |
8c411768 | 705 | name = blocklist; |
8427685f | 706 | common = commands/blocklist.c; |
8c411768 BC |
707 | }; |
708 | ||
709 | module = { | |
8c411768 | 710 | name = boot; |
8427685f | 711 | common = commands/boot.c; |
8c411768 | 712 | i386_pc = lib/i386/pc/biosnum.c; |
fc4c4fdd VS |
713 | enable = x86; |
714 | enable = emu; | |
715 | enable = sparc64_ieee1275; | |
716 | enable = powerpc_ieee1275; | |
717 | enable = mips_arc; | |
718 | enable = ia64_efi; | |
bd744218 VS |
719 | enable = arm_efi; |
720 | enable = arm_uboot; | |
8c411768 BC |
721 | }; |
722 | ||
723 | module = { | |
8c411768 | 724 | name = cat; |
8427685f | 725 | common = commands/cat.c; |
8c411768 BC |
726 | }; |
727 | ||
728 | module = { | |
8c411768 | 729 | name = cmp; |
8427685f | 730 | common = commands/cmp.c; |
8c411768 BC |
731 | }; |
732 | ||
733 | module = { | |
8c411768 | 734 | name = configfile; |
8427685f | 735 | common = commands/configfile.c; |
8c411768 BC |
736 | }; |
737 | ||
738 | module = { | |
739 | name = cpuid; | |
354128c8 | 740 | x86 = commands/i386/cpuid.c; |
911bd640 | 741 | enable = x86; |
8c411768 BC |
742 | }; |
743 | ||
8c411768 | 744 | module = { |
8c411768 | 745 | name = date; |
8427685f | 746 | common = commands/date.c; |
8c411768 BC |
747 | }; |
748 | ||
749 | module = { | |
750 | name = drivemap; | |
751 | ||
752 | i386_pc = commands/i386/pc/drivemap.c; | |
753 | i386_pc = commands/i386/pc/drivemap_int13h.S; | |
911bd640 | 754 | enable = i386_pc; |
8c411768 BC |
755 | }; |
756 | ||
757 | module = { | |
8c411768 | 758 | name = echo; |
8427685f | 759 | common = commands/echo.c; |
8c411768 BC |
760 | }; |
761 | ||
593e430c AB |
762 | module = { |
763 | name = eval; | |
764 | common = commands/eval.c; | |
765 | }; | |
766 | ||
8c411768 | 767 | module = { |
8c411768 | 768 | name = extcmd; |
8427685f BC |
769 | common = commands/extcmd.c; |
770 | common = lib/arg.c; | |
ee74fa48 | 771 | enable = terminfomodule; |
8c411768 BC |
772 | }; |
773 | ||
774 | module = { | |
775 | name = fixvideo; | |
6585de4c VS |
776 | common = commands/efi/fixvideo.c; |
777 | enable = i386_efi; | |
778 | enable = x86_64_efi; | |
8c411768 BC |
779 | }; |
780 | ||
781 | module = { | |
8c411768 | 782 | name = gptsync; |
8427685f | 783 | common = commands/gptsync.c; |
8c411768 BC |
784 | }; |
785 | ||
786 | module = { | |
787 | name = halt; | |
8427685f | 788 | nopc = commands/halt.c; |
8c411768 | 789 | i386_pc = commands/i386/pc/halt.c; |
4df7996d | 790 | i386_pc = commands/acpihalt.c; |
2419f17a VS |
791 | i386_coreboot = commands/acpihalt.c; |
792 | i386_multiboot = commands/acpihalt.c; | |
c18271ed | 793 | i386_efi = commands/acpihalt.c; |
794 | x86_64_efi = commands/acpihalt.c; | |
afba9f98 VS |
795 | i386_multiboot = lib/i386/halt.c; |
796 | i386_coreboot = lib/i386/halt.c; | |
797 | i386_qemu = lib/i386/halt.c; | |
6585de4c | 798 | efi = lib/efi/halt.c; |
afba9f98 VS |
799 | ieee1275 = lib/ieee1275/halt.c; |
800 | emu = lib/emu/halt.c; | |
389b31cd | 801 | uboot = lib/uboot/halt.c; |
8c411768 BC |
802 | }; |
803 | ||
544c2487 VS |
804 | module = { |
805 | name = reboot; | |
806 | i386 = lib/i386/reboot.c; | |
807 | i386 = lib/i386/reboot_trampoline.S; | |
808 | ia64_efi = lib/efi/reboot.c; | |
809 | x86_64_efi = lib/efi/reboot.c; | |
389b31cd | 810 | arm_efi = lib/efi/reboot.c; |
544c2487 VS |
811 | powerpc_ieee1275 = lib/ieee1275/reboot.c; |
812 | sparc64_ieee1275 = lib/ieee1275/reboot.c; | |
813 | mips_arc = lib/mips/arc/reboot.c; | |
814 | mips_loongson = lib/mips/loongson/reboot.c; | |
815 | mips_qemu_mips = lib/mips/qemu_mips/reboot.c; | |
389b31cd | 816 | uboot = lib/uboot/reboot.c; |
544c2487 VS |
817 | common = commands/reboot.c; |
818 | }; | |
819 | ||
8c411768 | 820 | module = { |
8c411768 | 821 | name = hashsum; |
8427685f | 822 | common = commands/hashsum.c; |
8c411768 BC |
823 | }; |
824 | ||
5e3b8dcb VS |
825 | module = { |
826 | name = verify; | |
827 | common = commands/verify.c; | |
828 | cflags = '$(CFLAGS_POSIX)'; | |
829 | cppflags = '-I$(srcdir)/lib/posix_wrap'; | |
830 | }; | |
831 | ||
8c411768 BC |
832 | module = { |
833 | name = hdparm; | |
8427685f BC |
834 | common = commands/hdparm.c; |
835 | common = lib/hexdump.c; | |
eefe8abd | 836 | enable = pci; |
9a79fcf2 | 837 | enable = mips_qemu_mips; |
8c411768 BC |
838 | }; |
839 | ||
840 | module = { | |
8c411768 | 841 | name = help; |
8427685f | 842 | common = commands/help.c; |
8c411768 BC |
843 | }; |
844 | ||
845 | module = { | |
8c411768 | 846 | name = hexdump; |
8427685f BC |
847 | common = commands/hexdump.c; |
848 | common = lib/hexdump.c; | |
8c411768 BC |
849 | }; |
850 | ||
851 | module = { | |
8c411768 | 852 | name = keystatus; |
8427685f | 853 | common = commands/keystatus.c; |
8c411768 BC |
854 | }; |
855 | ||
856 | module = { | |
857 | name = loadbios; | |
6585de4c VS |
858 | common = commands/efi/loadbios.c; |
859 | enable = i386_efi; | |
860 | enable = x86_64_efi; | |
8c411768 BC |
861 | }; |
862 | ||
863 | module = { | |
8c411768 | 864 | name = loadenv; |
8427685f BC |
865 | common = commands/loadenv.c; |
866 | common = lib/envblk.c; | |
8c411768 BC |
867 | }; |
868 | ||
869 | module = { | |
8c411768 | 870 | name = ls; |
8427685f | 871 | common = commands/ls.c; |
8c411768 BC |
872 | }; |
873 | ||
874 | module = { | |
8c411768 | 875 | name = lsmmap; |
8427685f | 876 | common = commands/lsmmap.c; |
8c411768 BC |
877 | }; |
878 | ||
879 | module = { | |
880 | name = lspci; | |
8427685f | 881 | common = commands/lspci.c; |
8c411768 | 882 | |
eefe8abd | 883 | enable = pci; |
8c411768 BC |
884 | }; |
885 | ||
886 | module = { | |
8c411768 | 887 | name = memrw; |
8427685f | 888 | common = commands/memrw.c; |
8c411768 BC |
889 | }; |
890 | ||
891 | module = { | |
8c411768 | 892 | name = minicmd; |
8427685f | 893 | common = commands/minicmd.c; |
8c411768 BC |
894 | }; |
895 | ||
896 | module = { | |
8c411768 | 897 | name = parttool; |
8427685f | 898 | common = commands/parttool.c; |
8c411768 BC |
899 | }; |
900 | ||
901 | module = { | |
8c411768 | 902 | name = password; |
8427685f | 903 | common = commands/password.c; |
8c411768 BC |
904 | }; |
905 | ||
906 | module = { | |
8c411768 | 907 | name = password_pbkdf2; |
8427685f | 908 | common = commands/password_pbkdf2.c; |
8c411768 BC |
909 | }; |
910 | ||
911 | module = { | |
912 | name = play; | |
f7711f5e BC |
913 | x86 = commands/i386/pc/play.c; |
914 | enable = x86; | |
8c411768 BC |
915 | }; |
916 | ||
b78d6c32 VS |
917 | module = { |
918 | name = spkmodem; | |
919 | x86 = term/spkmodem.c; | |
920 | enable = x86; | |
921 | }; | |
922 | ||
923 | module = { | |
924 | name = morse; | |
925 | x86 = term/morse.c; | |
926 | enable = x86; | |
927 | }; | |
928 | ||
8c411768 | 929 | module = { |
8c411768 | 930 | name = probe; |
8427685f | 931 | common = commands/probe.c; |
8c411768 BC |
932 | }; |
933 | ||
8c411768 | 934 | module = { |
8c411768 | 935 | name = read; |
8427685f | 936 | common = commands/read.c; |
8c411768 BC |
937 | }; |
938 | ||
8c411768 | 939 | module = { |
8c411768 | 940 | name = search; |
8427685f | 941 | common = commands/search_wrap.c; |
610c1efd | 942 | extra_dist = commands/search.c; |
8c411768 BC |
943 | }; |
944 | ||
945 | module = { | |
8c411768 | 946 | name = search_fs_file; |
8427685f | 947 | common = commands/search_file.c; |
8c411768 BC |
948 | }; |
949 | ||
950 | module = { | |
8c411768 | 951 | name = search_fs_uuid; |
8427685f | 952 | common = commands/search_uuid.c; |
8c411768 BC |
953 | }; |
954 | ||
955 | module = { | |
8c411768 | 956 | name = search_label; |
8427685f | 957 | common = commands/search_label.c; |
8c411768 BC |
958 | }; |
959 | ||
960 | module = { | |
961 | name = setpci; | |
8427685f | 962 | common = commands/setpci.c; |
30545b85 | 963 | enable = pci; |
8c411768 BC |
964 | }; |
965 | ||
7d462559 VS |
966 | module = { |
967 | name = pcidump; | |
968 | common = commands/pcidump.c; | |
969 | enable = pci; | |
970 | }; | |
971 | ||
8c411768 | 972 | module = { |
8c411768 | 973 | name = sleep; |
8427685f | 974 | common = commands/sleep.c; |
8c411768 BC |
975 | }; |
976 | ||
977 | module = { | |
978 | name = suspend; | |
8427685f | 979 | ieee1275 = commands/ieee1275/suspend.c; |
911bd640 BC |
980 | enable = i386_ieee1275; |
981 | enable = powerpc_ieee1275; | |
8c411768 BC |
982 | }; |
983 | ||
61c42af0 VS |
984 | module = { |
985 | name = escc; | |
986 | ieee1275 = term/ieee1275/escc.c; | |
987 | enable = powerpc_ieee1275; | |
988 | }; | |
989 | ||
8c411768 | 990 | module = { |
8c411768 | 991 | name = terminal; |
8427685f | 992 | common = commands/terminal.c; |
8c411768 BC |
993 | }; |
994 | ||
995 | module = { | |
8c411768 | 996 | name = test; |
8427685f | 997 | common = commands/test.c; |
8c411768 BC |
998 | }; |
999 | ||
1000 | module = { | |
8c411768 | 1001 | name = true; |
8427685f | 1002 | common = commands/true.c; |
8c411768 BC |
1003 | }; |
1004 | ||
1005 | module = { | |
1006 | name = usbtest; | |
8427685f | 1007 | common = commands/usbtest.c; |
eefe8abd | 1008 | enable = usb; |
8c411768 BC |
1009 | }; |
1010 | ||
1011 | module = { | |
540e2fe1 VS |
1012 | name = videoinfo; |
1013 | common = commands/videoinfo.c; | |
8c411768 BC |
1014 | }; |
1015 | ||
1016 | module = { | |
8c411768 | 1017 | name = videotest; |
8427685f | 1018 | common = commands/videotest.c; |
8c411768 BC |
1019 | }; |
1020 | ||
1021 | module = { | |
8c411768 | 1022 | name = xnu_uuid; |
8427685f | 1023 | common = commands/xnu_uuid.c; |
8c411768 BC |
1024 | }; |
1025 | ||
1026 | module = { | |
8c411768 | 1027 | name = dm_nv; |
8427685f | 1028 | common = disk/dmraid_nvidia.c; |
8c411768 BC |
1029 | }; |
1030 | ||
1031 | module = { | |
8c411768 | 1032 | name = loopback; |
8427685f | 1033 | common = disk/loopback.c; |
8c411768 BC |
1034 | }; |
1035 | ||
8585e54b VS |
1036 | module = { |
1037 | name = cryptodisk; | |
1038 | common = disk/cryptodisk.c; | |
1039 | }; | |
1040 | ||
7217f315 MG |
1041 | module = { |
1042 | name = luks; | |
1043 | common = disk/luks.c; | |
1044 | common = disk/AFSplitter.c; | |
1045 | }; | |
1046 | ||
1a1f408f VS |
1047 | module = { |
1048 | name = geli; | |
1049 | common = disk/geli.c; | |
1050 | }; | |
1051 | ||
8c411768 | 1052 | module = { |
8c411768 | 1053 | name = lvm; |
8427685f | 1054 | common = disk/lvm.c; |
8c411768 BC |
1055 | }; |
1056 | ||
076e7c0f VS |
1057 | module = { |
1058 | name = ldm; | |
1059 | common = disk/ldm.c; | |
1060 | }; | |
1061 | ||
8c411768 | 1062 | module = { |
1e8d555b | 1063 | name = mdraid09; |
8427685f | 1064 | common = disk/mdraid_linux.c; |
8c411768 BC |
1065 | }; |
1066 | ||
22e6a774 VS |
1067 | module = { |
1068 | name = mdraid09_be; | |
1069 | common = disk/mdraid_linux_be.c; | |
1070 | }; | |
1071 | ||
1e8d555b VS |
1072 | module = { |
1073 | name = mdraid1x; | |
1074 | common = disk/mdraid1x_linux.c; | |
1075 | }; | |
1076 | ||
8c411768 | 1077 | module = { |
076e7c0f VS |
1078 | name = diskfilter; |
1079 | common = disk/diskfilter.c; | |
8c411768 BC |
1080 | }; |
1081 | ||
1082 | module = { | |
8c411768 | 1083 | name = raid5rec; |
8427685f | 1084 | common = disk/raid5_recover.c; |
8c411768 BC |
1085 | }; |
1086 | ||
1087 | module = { | |
8c411768 | 1088 | name = raid6rec; |
8427685f | 1089 | common = disk/raid6_recover.c; |
8c411768 BC |
1090 | }; |
1091 | ||
1092 | module = { | |
8c411768 | 1093 | name = scsi; |
8427685f | 1094 | common = disk/scsi.c; |
8c411768 BC |
1095 | }; |
1096 | ||
1097 | module = { | |
8c411768 | 1098 | name = memdisk; |
8427685f | 1099 | common = disk/memdisk.c; |
8c411768 BC |
1100 | }; |
1101 | ||
1102 | module = { | |
1103 | name = ata; | |
8427685f | 1104 | common = disk/ata.c; |
eefe8abd | 1105 | enable = pci; |
a228ec10 | 1106 | enable = mips_qemu_mips; |
8c411768 BC |
1107 | }; |
1108 | ||
1109 | module = { | |
de2690be VS |
1110 | name = ahci; |
1111 | common = disk/ahci.c; | |
eefe8abd | 1112 | enable = pci; |
8c411768 BC |
1113 | }; |
1114 | ||
de2690be VS |
1115 | module = { |
1116 | name = pata; | |
1117 | common = disk/pata.c; | |
eefe8abd | 1118 | enable = pci; |
a228ec10 | 1119 | enable = mips_qemu_mips; |
8c411768 BC |
1120 | }; |
1121 | ||
1122 | module = { | |
1123 | name = biosdisk; | |
1124 | i386_pc = disk/i386/pc/biosdisk.c; | |
911bd640 | 1125 | enable = i386_pc; |
8c411768 BC |
1126 | }; |
1127 | ||
1128 | module = { | |
1129 | name = usbms; | |
8427685f | 1130 | common = disk/usbms.c; |
eefe8abd | 1131 | enable = usb; |
8c411768 BC |
1132 | }; |
1133 | ||
1134 | module = { | |
1135 | name = nand; | |
8427685f | 1136 | ieee1275 = disk/ieee1275/nand.c; |
911bd640 | 1137 | enable = i386_ieee1275; |
8c411768 BC |
1138 | }; |
1139 | ||
1140 | module = { | |
1141 | name = efiemu; | |
16bd6cfa VS |
1142 | common = efiemu/main.c; |
1143 | common = efiemu/i386/loadcore32.c; | |
1144 | common = efiemu/i386/loadcore64.c; | |
8c411768 | 1145 | i386_pc = efiemu/i386/pc/cfgtables.c; |
8218d8b6 VS |
1146 | i386_coreboot = efiemu/i386/pc/cfgtables.c; |
1147 | i386_multiboot = efiemu/i386/pc/cfgtables.c; | |
1148 | i386_ieee1275 = efiemu/i386/nocfgtables.c; | |
6f8157cb | 1149 | i386_qemu = efiemu/i386/nocfgtables.c; |
16bd6cfa VS |
1150 | common = efiemu/mm.c; |
1151 | common = efiemu/loadcore_common.c; | |
1152 | common = efiemu/symbols.c; | |
1153 | common = efiemu/loadcore32.c; | |
1154 | common = efiemu/loadcore64.c; | |
1155 | common = efiemu/prepare32.c; | |
1156 | common = efiemu/prepare64.c; | |
1157 | common = efiemu/pnvram.c; | |
1158 | common = efiemu/i386/coredetect.c; | |
a60f6ee1 BC |
1159 | |
1160 | extra_dist = efiemu/prepare.c; | |
1161 | extra_dist = efiemu/loadcore.c; | |
1162 | extra_dist = efiemu/runtime/efiemu.S; | |
1163 | extra_dist = efiemu/runtime/efiemu.c; | |
911bd640 BC |
1164 | |
1165 | enable = i386_pc; | |
8218d8b6 | 1166 | enable = i386_coreboot; |
16bd6cfa VS |
1167 | enable = i386_ieee1275; |
1168 | enable = i386_multiboot; | |
6f8157cb | 1169 | enable = i386_qemu; |
8c411768 BC |
1170 | }; |
1171 | ||
1172 | module = { | |
1173 | name = font; | |
8427685f BC |
1174 | common = font/font.c; |
1175 | common = font/font_cmd.c; | |
eefe8abd | 1176 | enable = videomodules; |
8c411768 BC |
1177 | }; |
1178 | ||
ce50dbd7 VS |
1179 | module = { |
1180 | name = procfs; | |
1181 | common = fs/proc.c; | |
1182 | }; | |
1183 | ||
8c411768 | 1184 | module = { |
8c411768 | 1185 | name = affs; |
8427685f | 1186 | common = fs/affs.c; |
8c411768 BC |
1187 | }; |
1188 | ||
1189 | module = { | |
8c411768 | 1190 | name = afs; |
8427685f | 1191 | common = fs/afs.c; |
8c411768 BC |
1192 | }; |
1193 | ||
1194 | module = { | |
5825b379 VS |
1195 | name = bfs; |
1196 | common = fs/bfs.c; | |
8c411768 BC |
1197 | }; |
1198 | ||
1199 | module = { | |
4dfbc574 RM |
1200 | name = btrfs; |
1201 | common = fs/btrfs.c; | |
3836e89d | 1202 | common = lib/crc.c; |
095f077e SJ |
1203 | cflags = '$(CFLAGS_POSIX) -Wno-undef'; |
1204 | cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H'; | |
8c411768 BC |
1205 | }; |
1206 | ||
5027af38 VS |
1207 | module = { |
1208 | name = archelp; | |
1209 | common = fs/archelp.c; | |
1210 | }; | |
1211 | ||
1212 | module = { | |
1213 | name = cbfs; | |
1214 | common = fs/cbfs.c; | |
1215 | }; | |
1216 | ||
8c411768 | 1217 | module = { |
8c411768 | 1218 | name = cpio; |
8427685f | 1219 | common = fs/cpio.c; |
8c411768 BC |
1220 | }; |
1221 | ||
4dfbc574 | 1222 | module = { |
a1a8b1b9 VS |
1223 | name = cpio_be; |
1224 | common = fs/cpio_be.c; | |
4dfbc574 RM |
1225 | }; |
1226 | ||
8c411768 | 1227 | module = { |
a1a8b1b9 VS |
1228 | name = newc; |
1229 | common = fs/newc.c; | |
1230 | }; | |
1231 | ||
1232 | module = { | |
1233 | name = odc; | |
1234 | common = fs/odc.c; | |
8c411768 BC |
1235 | }; |
1236 | ||
1237 | module = { | |
8c411768 | 1238 | name = ext2; |
8427685f | 1239 | common = fs/ext2.c; |
8c411768 BC |
1240 | }; |
1241 | ||
1242 | module = { | |
8c411768 | 1243 | name = fat; |
8427685f | 1244 | common = fs/fat.c; |
8c411768 BC |
1245 | }; |
1246 | ||
48fe18dc VS |
1247 | module = { |
1248 | name = exfat; | |
1249 | common = fs/exfat.c; | |
1250 | }; | |
1251 | ||
8c411768 | 1252 | module = { |
8c411768 | 1253 | name = fshelp; |
8427685f | 1254 | common = fs/fshelp.c; |
8c411768 BC |
1255 | }; |
1256 | ||
1257 | module = { | |
8c411768 | 1258 | name = hfs; |
8427685f | 1259 | common = fs/hfs.c; |
8c411768 BC |
1260 | }; |
1261 | ||
1262 | module = { | |
8c411768 | 1263 | name = hfsplus; |
8427685f | 1264 | common = fs/hfsplus.c; |
8c411768 BC |
1265 | }; |
1266 | ||
8098f655 VS |
1267 | module = { |
1268 | name = hfspluscomp; | |
1269 | common = fs/hfspluscomp.c; | |
1270 | }; | |
1271 | ||
8c411768 | 1272 | module = { |
8c411768 | 1273 | name = iso9660; |
8427685f | 1274 | common = fs/iso9660.c; |
8c411768 BC |
1275 | }; |
1276 | ||
1277 | module = { | |
8c411768 | 1278 | name = jfs; |
8427685f | 1279 | common = fs/jfs.c; |
8c411768 BC |
1280 | }; |
1281 | ||
1282 | module = { | |
8c411768 | 1283 | name = minix; |
8427685f | 1284 | common = fs/minix.c; |
8c411768 BC |
1285 | }; |
1286 | ||
b4a0c915 VS |
1287 | module = { |
1288 | name = minix2; | |
1289 | common = fs/minix2.c; | |
1290 | }; | |
1291 | ||
3dd3dd33 FZ |
1292 | module = { |
1293 | name = minix3; | |
1294 | common = fs/minix3.c; | |
1295 | }; | |
1296 | ||
ac66b453 VS |
1297 | module = { |
1298 | name = minix_be; | |
1299 | common = fs/minix_be.c; | |
1300 | }; | |
1301 | ||
1302 | module = { | |
1303 | name = minix2_be; | |
1304 | common = fs/minix2_be.c; | |
1305 | }; | |
1306 | ||
1307 | module = { | |
1308 | name = minix3_be; | |
1309 | common = fs/minix3_be.c; | |
1310 | }; | |
1311 | ||
8c411768 | 1312 | module = { |
8c411768 | 1313 | name = nilfs2; |
8427685f | 1314 | common = fs/nilfs2.c; |
8c411768 BC |
1315 | }; |
1316 | ||
1317 | module = { | |
8c411768 | 1318 | name = ntfs; |
8427685f | 1319 | common = fs/ntfs.c; |
8c411768 BC |
1320 | }; |
1321 | ||
1322 | module = { | |
8c411768 | 1323 | name = ntfscomp; |
8427685f | 1324 | common = fs/ntfscomp.c; |
8c411768 BC |
1325 | }; |
1326 | ||
1327 | module = { | |
8c411768 | 1328 | name = reiserfs; |
8427685f | 1329 | common = fs/reiserfs.c; |
8c411768 BC |
1330 | }; |
1331 | ||
29184e93 VS |
1332 | module = { |
1333 | name = romfs; | |
1334 | common = fs/romfs.c; | |
1335 | }; | |
1336 | ||
8c411768 | 1337 | module = { |
8c411768 | 1338 | name = sfs; |
8427685f | 1339 | common = fs/sfs.c; |
8c411768 BC |
1340 | }; |
1341 | ||
332fa368 VS |
1342 | module = { |
1343 | name = squash4; | |
1344 | common = fs/squash4.c; | |
c029da8a VS |
1345 | cflags = '$(CFLAGS_POSIX) -Wno-undef'; |
1346 | cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H'; | |
332fa368 VS |
1347 | }; |
1348 | ||
8c411768 | 1349 | module = { |
8c411768 | 1350 | name = tar; |
8427685f | 1351 | common = fs/tar.c; |
8c411768 BC |
1352 | }; |
1353 | ||
1354 | module = { | |
8c411768 | 1355 | name = udf; |
8427685f | 1356 | common = fs/udf.c; |
8c411768 BC |
1357 | }; |
1358 | ||
1359 | module = { | |
8c411768 | 1360 | name = ufs1; |
8427685f | 1361 | common = fs/ufs.c; |
8c411768 BC |
1362 | }; |
1363 | ||
d9c48c7b VS |
1364 | module = { |
1365 | name = ufs1_be; | |
1366 | common = fs/ufs_be.c; | |
1367 | }; | |
1368 | ||
8c411768 | 1369 | module = { |
8c411768 | 1370 | name = ufs2; |
8427685f | 1371 | common = fs/ufs2.c; |
8c411768 BC |
1372 | }; |
1373 | ||
1374 | module = { | |
8c411768 | 1375 | name = xfs; |
8427685f | 1376 | common = fs/xfs.c; |
8c411768 BC |
1377 | }; |
1378 | ||
bf78d5b2 RM |
1379 | module = { |
1380 | name = zfs; | |
1381 | common = fs/zfs/zfs.c; | |
1382 | common = fs/zfs/zfs_lzjb.c; | |
038016f4 | 1383 | common = fs/zfs/zfs_lz4.c; |
bf78d5b2 RM |
1384 | common = fs/zfs/zfs_sha256.c; |
1385 | common = fs/zfs/zfs_fletcher.c; | |
1386 | }; | |
1387 | ||
f003a8c5 VS |
1388 | module = { |
1389 | name = zfscrypt; | |
1390 | common = fs/zfs/zfscrypt.c; | |
1391 | }; | |
1392 | ||
bf78d5b2 RM |
1393 | module = { |
1394 | name = zfsinfo; | |
1395 | common = fs/zfs/zfsinfo.c; | |
1396 | }; | |
1397 | ||
8c411768 BC |
1398 | module = { |
1399 | name = pxe; | |
8e60fc8f | 1400 | i386_pc = net/drivers/i386/pc/pxe.c; |
911bd640 | 1401 | enable = i386_pc; |
8c411768 BC |
1402 | }; |
1403 | ||
1404 | module = { | |
1405 | name = gettext; | |
8427685f | 1406 | common = gettext/gettext.c; |
8c411768 BC |
1407 | }; |
1408 | ||
1409 | module = { | |
8c411768 | 1410 | name = gfxmenu; |
8427685f BC |
1411 | common = gfxmenu/gfxmenu.c; |
1412 | common = gfxmenu/model.c; | |
1413 | common = gfxmenu/view.c; | |
1414 | common = gfxmenu/font.c; | |
1415 | common = gfxmenu/icon_manager.c; | |
1416 | common = gfxmenu/theme_loader.c; | |
1417 | common = gfxmenu/widget-box.c; | |
1418 | common = gfxmenu/gui_canvas.c; | |
1419 | common = gfxmenu/gui_circular_progress.c; | |
1420 | common = gfxmenu/gui_box.c; | |
1421 | common = gfxmenu/gui_label.c; | |
1422 | common = gfxmenu/gui_list.c; | |
1423 | common = gfxmenu/gui_image.c; | |
1424 | common = gfxmenu/gui_progress_bar.c; | |
1425 | common = gfxmenu/gui_util.c; | |
1426 | common = gfxmenu/gui_string_util.c; | |
8c411768 BC |
1427 | }; |
1428 | ||
1429 | module = { | |
8c411768 | 1430 | name = hello; |
8427685f | 1431 | common = hello/hello.c; |
8c411768 BC |
1432 | }; |
1433 | ||
1434 | module = { | |
8c411768 | 1435 | name = gzio; |
8427685f | 1436 | common = io/gzio.c; |
8c411768 BC |
1437 | }; |
1438 | ||
1439 | module = { | |
1440 | name = bufio; | |
8427685f | 1441 | common = io/bufio.c; |
eefe8abd | 1442 | enable = videomodules; |
8c411768 BC |
1443 | }; |
1444 | ||
1445 | module = { | |
8c411768 | 1446 | name = elf; |
8427685f | 1447 | common = kern/elf.c; |
18866643 AB |
1448 | |
1449 | extra_dist = kern/elfXX.c; | |
8c411768 BC |
1450 | }; |
1451 | ||
8c411768 | 1452 | module = { |
8c411768 | 1453 | name = crypto; |
8427685f | 1454 | common = lib/crypto.c; |
610c1efd BC |
1455 | |
1456 | extra_dist = lib/libgcrypt-grub/cipher/crypto.lst; | |
8c411768 BC |
1457 | }; |
1458 | ||
8c411768 | 1459 | module = { |
8c411768 | 1460 | name = pbkdf2; |
8427685f | 1461 | common = lib/pbkdf2.c; |
8c411768 BC |
1462 | }; |
1463 | ||
1464 | module = { | |
1465 | name = relocator; | |
16bd6cfa VS |
1466 | common = lib/relocator.c; |
1467 | x86 = lib/i386/relocator16.S; | |
1468 | x86 = lib/i386/relocator32.S; | |
1469 | x86 = lib/i386/relocator64.S; | |
1470 | i386 = lib/i386/relocator_asm.S; | |
1471 | x86_64 = lib/x86_64/relocator_asm.S; | |
8c411768 | 1472 | x86 = lib/i386/relocator.c; |
16bd6cfa | 1473 | ieee1275 = lib/ieee1275/relocator.c; |
6585de4c | 1474 | efi = lib/efi/relocator.c; |
16bd6cfa VS |
1475 | mips = lib/mips/relocator_asm.S; |
1476 | mips = lib/mips/relocator.c; | |
1477 | powerpc = lib/powerpc/relocator_asm.S; | |
1478 | powerpc = lib/powerpc/relocator.c; | |
1479 | ||
6556eba9 BC |
1480 | extra_dist = lib/i386/relocator_common.S; |
1481 | extra_dist = kern/powerpc/cache_flush.S; | |
1482 | ||
911bd640 | 1483 | enable = mips; |
16bd6cfa | 1484 | enable = powerpc; |
911bd640 | 1485 | enable = x86; |
8c411768 BC |
1486 | }; |
1487 | ||
1488 | module = { | |
1489 | name = datetime; | |
eefe8abd | 1490 | cmos = lib/cmos_datetime.c; |
6585de4c | 1491 | efi = lib/efi/datetime.c; |
389b31cd | 1492 | uboot = lib/uboot/datetime.c; |
8c411768 BC |
1493 | sparc64_ieee1275 = lib/ieee1275/datetime.c; |
1494 | powerpc_ieee1275 = lib/ieee1275/datetime.c; | |
a07a81b3 VS |
1495 | sparc64_ieee1275 = lib/ieee1275/cmos.c; |
1496 | powerpc_ieee1275 = lib/ieee1275/cmos.c; | |
1497 | ||
8906c3dd | 1498 | mips_arc = lib/arc/datetime.c; |
eefe8abd | 1499 | enable = noemu; |
8c411768 BC |
1500 | }; |
1501 | ||
1502 | module = { | |
1503 | name = setjmp; | |
8427685f | 1504 | common = lib/setjmp.S; |
2b6c0084 BC |
1505 | extra_dist = lib/i386/setjmp.S; |
1506 | extra_dist = lib/mips/setjmp.S; | |
1507 | extra_dist = lib/x86_64/setjmp.S; | |
1508 | extra_dist = lib/sparc64/setjmp.S; | |
1509 | extra_dist = lib/powerpc/setjmp.S; | |
9a79fcf2 | 1510 | extra_dist = lib/ia64/setjmp.S; |
2702b4e4 | 1511 | extra_dist = lib/ia64/longjmp.S; |
389b31cd | 1512 | extra_dist = lib/arm/setjmp.S; |
8c411768 BC |
1513 | }; |
1514 | ||
1515 | module = { | |
1516 | name = aout; | |
8427685f | 1517 | common = loader/aout.c; |
16bd6cfa | 1518 | enable = x86; |
8c411768 BC |
1519 | }; |
1520 | ||
1521 | module = { | |
1522 | name = bsd; | |
16bd6cfa VS |
1523 | x86 = loader/i386/bsd.c; |
1524 | x86 = loader/i386/bsd32.c; | |
1525 | x86 = loader/i386/bsd64.c; | |
610c1efd BC |
1526 | |
1527 | extra_dist = loader/i386/bsdXX.c; | |
1528 | extra_dist = loader/i386/bsd_pagetable.c; | |
1529 | ||
16bd6cfa | 1530 | enable = x86; |
8c411768 BC |
1531 | }; |
1532 | ||
70e8145a VS |
1533 | module = { |
1534 | name = plan9; | |
1535 | i386_pc = loader/i386/pc/plan9.c; | |
1536 | enable = i386_pc; | |
1537 | }; | |
1538 | ||
1539 | ||
8c411768 BC |
1540 | module = { |
1541 | name = linux16; | |
0789b672 | 1542 | common = loader/i386/pc/linux.c; |
92750e4c | 1543 | common = loader/linux.c; |
0789b672 VS |
1544 | common = lib/cmdline.c; |
1545 | enable = x86; | |
8c411768 BC |
1546 | }; |
1547 | ||
16bd6cfa VS |
1548 | module = { |
1549 | name = ntldr; | |
1550 | i386_pc = loader/i386/pc/ntldr.c; | |
1551 | enable = i386_pc; | |
1552 | }; | |
1553 | ||
b28fd807 VS |
1554 | module = { |
1555 | name = freedos; | |
1556 | i386_pc = loader/i386/pc/freedos.c; | |
1557 | enable = i386_pc; | |
1558 | }; | |
1559 | ||
0a96117d VS |
1560 | module = { |
1561 | name = pxechain; | |
1562 | i386_pc = loader/i386/pc/pxechainloader.c; | |
1563 | enable = i386_pc; | |
1564 | }; | |
1565 | ||
8c411768 BC |
1566 | module = { |
1567 | name = multiboot2; | |
1568 | cppflags = "-DGRUB_USE_MULTIBOOT2"; | |
1569 | ||
8427685f BC |
1570 | common = loader/multiboot.c; |
1571 | common = loader/multiboot_mbi2.c; | |
911bd640 BC |
1572 | enable = x86; |
1573 | enable = mips; | |
8c411768 BC |
1574 | }; |
1575 | ||
1576 | module = { | |
1577 | name = multiboot; | |
8427685f BC |
1578 | common = loader/multiboot.c; |
1579 | x86 = loader/i386/multiboot_mbi.c; | |
a60f6ee1 | 1580 | extra_dist = loader/multiboot_elfxx.c; |
911bd640 | 1581 | enable = x86; |
8c411768 BC |
1582 | }; |
1583 | ||
1584 | module = { | |
1585 | name = linux; | |
16bd6cfa | 1586 | x86 = loader/i386/linux.c; |
e31bb619 | 1587 | i386_pc = lib/i386/pc/vesa_modes_table.c; |
8c411768 BC |
1588 | mips = loader/mips/linux.c; |
1589 | powerpc_ieee1275 = loader/powerpc/ieee1275/linux.c; | |
1590 | sparc64_ieee1275 = loader/sparc64/ieee1275/linux.c; | |
6585de4c | 1591 | ia64_efi = loader/ia64/efi/linux.c; |
389b31cd | 1592 | arm = loader/arm/linux.c; |
c6a8472b | 1593 | arm = lib/fdt.c; |
92750e4c | 1594 | common = loader/linux.c; |
25953e10 | 1595 | common = lib/cmdline.c; |
8427685f | 1596 | enable = noemu; |
8c411768 BC |
1597 | }; |
1598 | ||
1599 | module = { | |
1600 | name = xnu; | |
16bd6cfa VS |
1601 | x86 = loader/xnu_resume.c; |
1602 | x86 = loader/i386/xnu.c; | |
1603 | x86 = loader/macho32.c; | |
1604 | x86 = loader/macho64.c; | |
1605 | x86 = loader/macho.c; | |
1606 | x86 = loader/xnu.c; | |
99ce1597 | 1607 | x86 = loader/lzss.c; |
a60f6ee1 BC |
1608 | |
1609 | extra_dist = loader/machoXX.c; | |
16bd6cfa | 1610 | enable = x86; |
8c411768 BC |
1611 | }; |
1612 | ||
1613 | module = { | |
1614 | name = appleldr; | |
6585de4c VS |
1615 | common = loader/efi/appleloader.c; |
1616 | enable = i386_efi; | |
1617 | enable = x86_64_efi; | |
8c411768 BC |
1618 | }; |
1619 | ||
1620 | module = { | |
1621 | name = chain; | |
6585de4c | 1622 | efi = loader/efi/chainloader.c; |
8c411768 | 1623 | i386_pc = loader/i386/pc/chainloader.c; |
8d5d8444 | 1624 | i386_coreboot = loader/i386/coreboot/chainloader.c; |
911bd640 | 1625 | enable = i386_pc; |
ba7df45e | 1626 | enable = i386_coreboot; |
6585de4c | 1627 | enable = efi; |
8c411768 BC |
1628 | }; |
1629 | ||
1630 | module = { | |
1631 | name = mmap; | |
eefe8abd VS |
1632 | common = mmap/mmap.c; |
1633 | x86 = mmap/i386/uppermem.c; | |
1634 | x86 = mmap/i386/mmap.c; | |
1635 | ||
8c411768 BC |
1636 | i386_pc = mmap/i386/pc/mmap.c; |
1637 | i386_pc = mmap/i386/pc/mmap_helper.S; | |
1638 | ||
6585de4c | 1639 | efi = mmap/efi/mmap.c; |
8c411768 | 1640 | |
8906c3dd | 1641 | mips = mmap/mips/uppermem.c; |
911bd640 BC |
1642 | |
1643 | enable = x86; | |
c18271ed | 1644 | enable = ia64_efi; |
389b31cd | 1645 | enable = arm_efi; |
f440c33f | 1646 | enable = mips; |
8c411768 BC |
1647 | }; |
1648 | ||
1649 | module = { | |
8c411768 | 1650 | name = normal; |
8427685f BC |
1651 | common = normal/main.c; |
1652 | common = normal/cmdline.c; | |
1653 | common = normal/dyncmd.c; | |
1654 | common = normal/auth.c; | |
1655 | common = normal/autofs.c; | |
1656 | common = normal/color.c; | |
1657 | common = normal/completion.c; | |
1658 | common = normal/datetime.c; | |
1659 | common = normal/menu.c; | |
1660 | common = normal/menu_entry.c; | |
1661 | common = normal/menu_text.c; | |
1662 | common = normal/misc.c; | |
1663 | common = normal/crypto.c; | |
1664 | common = normal/term.c; | |
1665 | common = normal/context.c; | |
1666 | common = normal/charset.c; | |
1667 | ||
1668 | common = script/main.c; | |
1669 | common = script/script.c; | |
1670 | common = script/execute.c; | |
1671 | common = script/function.c; | |
1672 | common = script/lexer.c; | |
1673 | common = script/argv.c; | |
1674 | ||
9284756e BC |
1675 | common = commands/menuentry.c; |
1676 | ||
8427685f BC |
1677 | common = unidata.c; |
1678 | common_nodist = grub_script.tab.c; | |
1679 | common_nodist = grub_script.yy.c; | |
1680 | common_nodist = grub_script.tab.h; | |
1681 | common_nodist = grub_script.yy.h; | |
297f0c2b BC |
1682 | |
1683 | extra_dist = script/yylex.l; | |
1684 | extra_dist = script/parser.y; | |
1685 | ||
ebcecdf1 | 1686 | cflags = '$(CFLAGS_POSIX) -Wno-redundant-decls'; |
297f0c2b | 1687 | cppflags = '$(CPPFLAGS_POSIX)'; |
8c411768 BC |
1688 | }; |
1689 | ||
1690 | module = { | |
8c411768 | 1691 | name = part_acorn; |
8427685f | 1692 | common = partmap/acorn.c; |
8c411768 BC |
1693 | }; |
1694 | ||
1695 | module = { | |
8c411768 | 1696 | name = part_amiga; |
8427685f | 1697 | common = partmap/amiga.c; |
8c411768 BC |
1698 | }; |
1699 | ||
1700 | module = { | |
8c411768 | 1701 | name = part_apple; |
8427685f | 1702 | common = partmap/apple.c; |
8c411768 BC |
1703 | }; |
1704 | ||
1705 | module = { | |
8c411768 | 1706 | name = part_gpt; |
8427685f | 1707 | common = partmap/gpt.c; |
8c411768 BC |
1708 | }; |
1709 | ||
1710 | module = { | |
8c411768 | 1711 | name = part_msdos; |
8427685f | 1712 | common = partmap/msdos.c; |
8c411768 BC |
1713 | }; |
1714 | ||
1715 | module = { | |
8c411768 | 1716 | name = part_sun; |
8427685f | 1717 | common = partmap/sun.c; |
8c411768 BC |
1718 | }; |
1719 | ||
ac9ef7ee VS |
1720 | module = { |
1721 | name = part_plan; | |
1722 | common = partmap/plan.c; | |
111c1778 | 1723 | }; |
4e01c8c1 | 1724 | |
8906c3dd VS |
1725 | module = { |
1726 | name = part_dvh; | |
1727 | common = partmap/dvh.c; | |
1728 | }; | |
1729 | ||
8c411768 | 1730 | module = { |
8c411768 | 1731 | name = part_bsd; |
8427685f | 1732 | common = partmap/bsdlabel.c; |
8c411768 BC |
1733 | }; |
1734 | ||
1735 | module = { | |
8c411768 | 1736 | name = part_sunpc; |
8427685f | 1737 | common = partmap/sunpc.c; |
8c411768 BC |
1738 | }; |
1739 | ||
1e908b34 RS |
1740 | module = { |
1741 | name = part_dfly; | |
1742 | common = partmap/dfly.c; | |
1743 | }; | |
1744 | ||
8c411768 | 1745 | module = { |
8c411768 | 1746 | name = msdospart; |
8427685f | 1747 | common = parttool/msdospart.c; |
8c411768 BC |
1748 | }; |
1749 | ||
8c411768 BC |
1750 | module = { |
1751 | name = at_keyboard; | |
8427685f | 1752 | common = term/at_keyboard.c; |
911bd640 | 1753 | enable = x86; |
8c411768 BC |
1754 | }; |
1755 | ||
1756 | module = { | |
1757 | name = gfxterm; | |
8427685f | 1758 | common = term/gfxterm.c; |
eefe8abd | 1759 | enable = videomodules; |
8c411768 BC |
1760 | }; |
1761 | ||
fc4c4fdd VS |
1762 | module = { |
1763 | name = gfxterm_background; | |
1764 | common = term/gfxterm_background.c; | |
1765 | }; | |
1766 | ||
8c411768 BC |
1767 | module = { |
1768 | name = serial; | |
8427685f | 1769 | common = term/serial.c; |
d84666e6 | 1770 | x86 = term/ns8250.c; |
a9c7fd1c | 1771 | ieee1275 = term/ieee1275/serial.c; |
b04b5990 | 1772 | mips_arc = term/arc/serial.c; |
a9c7fd1c | 1773 | efi = term/efi/serial.c; |
d84666e6 | 1774 | |
a9c7fd1c VS |
1775 | enable = terminfomodule; |
1776 | enable = ieee1275; | |
b04b5990 | 1777 | enable = mips_arc; |
d84666e6 BC |
1778 | }; |
1779 | ||
1780 | module = { | |
1781 | name = sendkey; | |
1782 | i386_pc = commands/i386/pc/sendkey.c; | |
1783 | enable = i386_pc; | |
8c411768 BC |
1784 | }; |
1785 | ||
1786 | module = { | |
8c411768 | 1787 | name = terminfo; |
8427685f BC |
1788 | common = term/terminfo.c; |
1789 | common = term/tparm.c; | |
ee74fa48 | 1790 | enable = terminfomodule; |
8c411768 BC |
1791 | }; |
1792 | ||
1793 | module = { | |
1794 | name = usb_keyboard; | |
8427685f | 1795 | common = term/usb_keyboard.c; |
eefe8abd | 1796 | enable = usb; |
8c411768 BC |
1797 | }; |
1798 | ||
1799 | module = { | |
1800 | name = vga; | |
9fc9ce37 | 1801 | common = video/i386/pc/vga.c; |
911bd640 | 1802 | enable = i386_pc; |
8c411768 BC |
1803 | }; |
1804 | ||
1805 | module = { | |
1806 | name = vga_text; | |
16bd6cfa | 1807 | common = term/i386/pc/vga_text.c; |
16bd6cfa | 1808 | enable = i386_pc; |
8c411768 BC |
1809 | }; |
1810 | ||
c35fc5bd VS |
1811 | module = { |
1812 | name = mda_text; | |
1813 | common = term/i386/pc/mda_text.c; | |
1814 | enable = i386_pc; | |
1815 | enable = i386_coreboot_multiboot_qemu; | |
1816 | }; | |
1817 | ||
297f0c2b BC |
1818 | module = { |
1819 | name = video_cirrus; | |
f7711f5e BC |
1820 | x86 = video/cirrus.c; |
1821 | enable = x86; | |
297f0c2b BC |
1822 | }; |
1823 | ||
1824 | module = { | |
1825 | name = video_bochs; | |
f7711f5e BC |
1826 | x86 = video/bochs.c; |
1827 | enable = x86; | |
297f0c2b BC |
1828 | }; |
1829 | ||
8c411768 BC |
1830 | module = { |
1831 | name = functional_test; | |
8427685f BC |
1832 | common = tests/lib/functional_test.c; |
1833 | common = tests/lib/test.c; | |
8cec7bd4 | 1834 | common = tests/checksums.h; |
50361660 VS |
1835 | common = tests/video_checksum.c; |
1836 | common = tests/fake_input.c; | |
1837 | common = video/capture.c; | |
8c411768 BC |
1838 | }; |
1839 | ||
1840 | module = { | |
526ef13d | 1841 | name = exfctest; |
8427685f | 1842 | common = tests/example_functional_test.c; |
8c411768 BC |
1843 | }; |
1844 | ||
011f8ae8 VS |
1845 | module = { |
1846 | name = setjmp_test; | |
1847 | common = tests/setjmp_test.c; | |
1848 | }; | |
1849 | ||
50361660 VS |
1850 | module = { |
1851 | name = videotest_checksum; | |
1852 | common = tests/videotest_checksum.c; | |
1853 | }; | |
1854 | ||
c104b6f9 VS |
1855 | module = { |
1856 | name = gfxterm_menu; | |
1857 | common = tests/gfxterm_menu.c; | |
1858 | }; | |
1859 | ||
0e7b2e32 VS |
1860 | module = { |
1861 | name = cmdline_cat_test; | |
1862 | common = tests/cmdline_cat_test.c; | |
1863 | }; | |
1864 | ||
8c411768 BC |
1865 | module = { |
1866 | name = bitmap; | |
8427685f | 1867 | common = video/bitmap.c; |
8c411768 BC |
1868 | }; |
1869 | ||
1870 | module = { | |
1871 | name = bitmap_scale; | |
8427685f | 1872 | common = video/bitmap_scale.c; |
8c411768 BC |
1873 | }; |
1874 | ||
1875 | module = { | |
1876 | name = efi_gop; | |
6585de4c VS |
1877 | efi = video/efi_gop.c; |
1878 | enable = efi; | |
8c411768 BC |
1879 | }; |
1880 | ||
1881 | module = { | |
1882 | name = efi_uga; | |
6585de4c | 1883 | efi = video/efi_uga.c; |
c18271ed | 1884 | enable = i386_efi; |
1885 | enable = x86_64_efi; | |
8c411768 BC |
1886 | }; |
1887 | ||
1888 | module = { | |
8c411768 | 1889 | name = jpeg; |
8427685f | 1890 | common = video/readers/jpeg.c; |
8c411768 BC |
1891 | }; |
1892 | ||
1893 | module = { | |
8c411768 | 1894 | name = png; |
8427685f | 1895 | common = video/readers/png.c; |
8c411768 BC |
1896 | }; |
1897 | ||
1898 | module = { | |
8c411768 | 1899 | name = tga; |
8427685f | 1900 | common = video/readers/tga.c; |
8c411768 BC |
1901 | }; |
1902 | ||
1903 | module = { | |
1904 | name = vbe; | |
9fc9ce37 | 1905 | common = video/i386/pc/vbe.c; |
911bd640 | 1906 | enable = i386_pc; |
8c411768 BC |
1907 | }; |
1908 | ||
1909 | module = { | |
1910 | name = video_fb; | |
8427685f BC |
1911 | common = video/fb/video_fb.c; |
1912 | common = video/fb/fbblit.c; | |
1913 | common = video/fb/fbfill.c; | |
1914 | common = video/fb/fbutil.c; | |
eefe8abd | 1915 | enable = videomodules; |
8c411768 BC |
1916 | }; |
1917 | ||
1918 | module = { | |
1919 | name = video; | |
8427685f | 1920 | common = video/video.c; |
eefe8abd | 1921 | enable = videomodules; |
8c411768 BC |
1922 | }; |
1923 | ||
1924 | module = { | |
fc4c4fdd VS |
1925 | name = video_colors; |
1926 | common = video/colors.c; | |
8c411768 BC |
1927 | }; |
1928 | ||
d178788e | 1929 | module = { |
fc4c4fdd VS |
1930 | name = ieee1275_fb; |
1931 | ieee1275 = video/ieee1275.c; | |
1932 | enable = powerpc_ieee1275; | |
d178788e VS |
1933 | }; |
1934 | ||
8c411768 BC |
1935 | module = { |
1936 | name = sdl; | |
8427685f | 1937 | emu = video/emu/sdl.c; |
911bd640 | 1938 | enable = emu; |
8427685f | 1939 | condition = COND_GRUB_EMU_SDL; |
8c411768 BC |
1940 | }; |
1941 | ||
1942 | module = { | |
1943 | name = datehook; | |
8427685f | 1944 | common = hook/datehook.c; |
8c411768 | 1945 | }; |
92eb189b | 1946 | |
975cffff VS |
1947 | module = { |
1948 | name = net; | |
c0425677 | 1949 | common = net/net.c; |
038ec56a | 1950 | common = net/dns.c; |
138eeb36 | 1951 | common = net/bootp.c; |
7bb47706 MA |
1952 | common = net/ip.c; |
1953 | common = net/udp.c; | |
3a7af372 | 1954 | common = net/tcp.c; |
1367c143 | 1955 | common = net/icmp.c; |
a53cf653 | 1956 | common = net/icmp6.c; |
7bb47706 MA |
1957 | common = net/ethernet.c; |
1958 | common = net/arp.c; | |
7bb47706 MA |
1959 | common = net/netbuff.c; |
1960 | }; | |
1961 | ||
1962 | module = { | |
1963 | name = tftp; | |
1964 | common = net/tftp.c; | |
1965 | }; | |
1966 | ||
80e72236 VS |
1967 | module = { |
1968 | name = http; | |
1969 | common = net/http.c; | |
1970 | }; | |
1971 | ||
7bb47706 MA |
1972 | module = { |
1973 | name = ofnet; | |
9d22909b | 1974 | common = net/drivers/ieee1275/ofnet.c; |
7bb47706 MA |
1975 | enable = ieee1275; |
1976 | }; | |
90451bb1 | 1977 | |
c86c39ab VS |
1978 | module = { |
1979 | name = ubootnet; | |
1980 | common = net/drivers/uboot/ubootnet.c; | |
1981 | enable = uboot; | |
1982 | }; | |
1983 | ||
9d22909b VS |
1984 | module = { |
1985 | name = efinet; | |
1986 | common = net/drivers/efi/efinet.c; | |
1987 | enable = efi; | |
1988 | }; | |
1989 | ||
90451bb1 VS |
1990 | module = { |
1991 | name = emunet; | |
70671037 | 1992 | emu = net/drivers/emu/emunet.c; |
d8123bfb | 1993 | enable = emu; |
90451bb1 | 1994 | }; |
760a7e5a | 1995 | |
92eb189b VS |
1996 | module = { |
1997 | name = legacycfg; | |
1998 | common = commands/legacycfg.c; | |
fff175c7 | 1999 | common = lib/legacy_parse.c; |
d6d94820 | 2000 | emu = lib/i386/pc/vesa_modes_table.c; |
ec2dd179 VS |
2001 | i386_efi = lib/i386/pc/vesa_modes_table.c; |
2002 | x86_64_efi = lib/i386/pc/vesa_modes_table.c; | |
2003 | ||
92eb189b | 2004 | enable = i386_pc; |
ec2dd179 VS |
2005 | enable = i386_efi; |
2006 | enable = x86_64_efi; | |
abda0cad | 2007 | enable = emu; |
bd960307 | 2008 | }; |
122a9b2c | 2009 | |
928bad47 BC |
2010 | module = { |
2011 | name = test_blockarg; | |
2012 | common = tests/test_blockarg.c; | |
47b4c2c3 | 2013 | }; |
06f70117 | 2014 | |
f0aff67c SJ |
2015 | module = { |
2016 | name = xzio; | |
2017 | common = io/xzio.c; | |
2018 | common = lib/xzembed/xz_dec_bcj.c; | |
2019 | common = lib/xzembed/xz_dec_lzma2.c; | |
2020 | common = lib/xzembed/xz_dec_stream.c; | |
2021 | cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed'; | |
ebcecdf1 | 2022 | cflags='-Wno-unreachable-code'; |
f0aff67c SJ |
2023 | }; |
2024 | ||
d6beefcf SJ |
2025 | module = { |
2026 | name = lzopio; | |
2027 | common = io/lzopio.c; | |
2028 | common = lib/minilzo/minilzo.c; | |
ebcecdf1 | 2029 | cflags = '$(CFLAGS_POSIX) -Wno-undef -Wno-redundant-decls -Wno-error'; |
d6beefcf SJ |
2030 | cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H'; |
2031 | }; | |
2032 | ||
06f70117 VS |
2033 | module = { |
2034 | name = testload; | |
2035 | common = commands/testload.c; | |
fff175c7 | 2036 | }; |
890c9fa5 | 2037 | |
9ad7edd0 VS |
2038 | module = { |
2039 | name = backtrace; | |
1948a3b7 VS |
2040 | x86 = lib/i386/backtrace.c; |
2041 | common = lib/backtrace.c; | |
c1677cfc | 2042 | enable = x86; |
245f4582 VS |
2043 | }; |
2044 | ||
890c9fa5 VS |
2045 | module = { |
2046 | name = lsapm; | |
2047 | common = commands/i386/pc/lsapm.c; | |
2048 | enable = i386_pc; | |
2049 | }; | |
1a9130dd | 2050 | |
5aaf2c18 VS |
2051 | module = { |
2052 | name = keylayouts; | |
2053 | common = commands/keylayouts.c; | |
fc4c4fdd | 2054 | enable = x86; |
5aaf2c18 | 2055 | }; |
c5dc1690 | 2056 | |
4db34616 VS |
2057 | module = { |
2058 | name = priority_queue; | |
2059 | common = lib/priority_queue.c; | |
2060 | }; | |
2061 | ||
5ff1d945 VS |
2062 | module = { |
2063 | name = time; | |
2064 | common = commands/time.c; | |
2065 | }; | |
99cecb4f | 2066 | |
c5dc1690 SJ |
2067 | module = { |
2068 | name = cacheinfo; | |
2069 | common = commands/cacheinfo.c; | |
2070 | condition = COND_ENABLE_CACHE_STATS; | |
2071 | }; | |
9a8d32a2 | 2072 | |
e744219b VS |
2073 | module = { |
2074 | name = boottime; | |
2075 | common = commands/boottime.c; | |
2076 | condition = COND_ENABLE_BOOT_TIME_STATS; | |
2077 | }; | |
2078 | ||
9a8d32a2 SJ |
2079 | module = { |
2080 | name = adler32; | |
2081 | common = lib/adler32.c; | |
2082 | }; | |
158dc1ea VS |
2083 | |
2084 | module = { | |
2085 | name = crc64; | |
2086 | common = lib/crc64.c; | |
2087 | }; | |
22c7ce85 | 2088 | |
5e3b8dcb VS |
2089 | module = { |
2090 | name = mpi; | |
2091 | common = lib/libgcrypt-grub/mpi/mpiutil.c; | |
2092 | common = lib/libgcrypt-grub/mpi/mpi-bit.c; | |
2093 | common = lib/libgcrypt-grub/mpi/mpi-add.c; | |
2094 | common = lib/libgcrypt-grub/mpi/mpi-mul.c; | |
2095 | common = lib/libgcrypt-grub/mpi/mpi-mod.c; | |
2096 | common = lib/libgcrypt-grub/mpi/mpi-gcd.c; | |
2097 | common = lib/libgcrypt-grub/mpi/mpi-div.c; | |
2098 | common = lib/libgcrypt-grub/mpi/mpi-cmp.c; | |
2099 | common = lib/libgcrypt-grub/mpi/mpi-inv.c; | |
2100 | common = lib/libgcrypt-grub/mpi/mpi-pow.c; | |
2101 | common = lib/libgcrypt-grub/mpi/mpi-mpow.c; | |
2102 | common = lib/libgcrypt-grub/mpi/mpih-lshift.c; | |
2103 | common = lib/libgcrypt-grub/mpi/mpih-mul.c; | |
2104 | common = lib/libgcrypt-grub/mpi/mpih-mul1.c; | |
2105 | common = lib/libgcrypt-grub/mpi/mpih-mul2.c; | |
2106 | common = lib/libgcrypt-grub/mpi/mpih-mul3.c; | |
2107 | common = lib/libgcrypt-grub/mpi/mpih-add1.c; | |
2108 | common = lib/libgcrypt-grub/mpi/mpih-sub1.c; | |
2109 | common = lib/libgcrypt-grub/mpi/mpih-div.c; | |
2110 | common = lib/libgcrypt-grub/mpi/mpicoder.c; | |
2111 | common = lib/libgcrypt-grub/mpi/mpih-rshift.c; | |
4a9950ec | 2112 | common = lib/libgcrypt-grub/mpi/mpi-inline.c; |
5e3b8dcb VS |
2113 | common = lib/libgcrypt_wrap/mem.c; |
2114 | ||
2115 | cflags = '$(CFLAGS_GCRY) -Wno-redundant-decls -Wno-sign-compare'; | |
2116 | cppflags = '$(CPPFLAGS_GCRY)'; | |
2117 | }; | |
2118 | ||
22c7ce85 VS |
2119 | module = { |
2120 | name = all_video; | |
2121 | common = lib/fake_module.c; | |
2122 | }; | |
ff27c3dd | 2123 | |
66d6a793 LK |
2124 | module = { |
2125 | name = gdb; | |
2126 | common = gdb/cstub.c; | |
2127 | common = gdb/gdb.c; | |
2128 | i386 = gdb/i386/idt.c; | |
2129 | i386 = gdb/i386/machdep.S; | |
2130 | i386 = gdb/i386/signal.c; | |
2131 | enable = i386; | |
ff27c3dd LK |
2132 | }; |
2133 | ||
fa292343 B |
2134 | module = { |
2135 | name = testspeed; | |
2136 | common = commands/testspeed.c; | |
2137 | }; | |
3d46c22f BC |
2138 | |
2139 | module = { | |
2140 | name = tr; | |
2141 | common = commands/tr.c; | |
2142 | }; | |
84a0e969 PFS |
2143 | |
2144 | module = { | |
2145 | name = progress; | |
2146 | common = lib/progress.c; | |
2147 | }; |