]>
Commit | Line | Data |
---|---|---|
8c411768 BC |
1 | AutoGen definitions Makefile.tpl; |
2 | ||
3 | kernel = { | |
4 | name = kernel; | |
5 | ||
c1c6e4c0 BC |
6 | nostrip = emu; |
7 | ||
911bd640 BC |
8 | emu_ldflags = '-Wl,-r,-d'; |
9 | x86_efi_ldflags = '-Wl,-r,-d'; | |
10 | x86_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment'; | |
2d465fb0 BC |
11 | |
12 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; | |
13 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; | |
14 | ||
15 | i386_qemu_ldflags = '$(TARGET_IMG_LDFLAGS)'; | |
16 | i386_qemu_ldflags = '$(TARGET_IMG_BASE_LDOPT),$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; | |
17 | ||
8c411768 | 18 | i386_coreboot_ldflags = '-Wl,-Ttext=$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; |
062cdbc1 | 19 | i386_multiboot_ldflags = '-Wl,-Ttext=$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; |
8c411768 BC |
20 | i386_ieee1275_ldflags = '-Wl,-Ttext=$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; |
21 | mips_yeeloong_ldflags = '-Wl,-Ttext,$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; | |
22 | powerpc_ieee1275_ldflags = '-Wl,-Ttext,$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; | |
23 | ||
24 | mips_yeeloong_cppflags = '-DUSE_ASCII_FAILBACK'; | |
25 | i386_qemu_cppflags = '-DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)'; | |
26 | i386_qemu_ccasflags = '-DGRUB_KERNEL_MACHINE_LINK_ADDR=$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; | |
16321bf9 BC |
27 | emu_cflags = '$(CFLAGS_GNULIB)'; |
28 | emu_cppflags = '$(CPPFLAGS_GNULIB)'; | |
8c411768 BC |
29 | |
30 | mips_ldadd = '-lgcc'; | |
31 | powerpc_ldadd = '-lgcc'; | |
32 | sparc64_ldadd = '-lgcc'; | |
33 | ||
8427685f BC |
34 | i386_pc_startup = kern/i386/pc/startup.S; |
35 | i386_efi_startup = kern/i386/efi/startup.S; | |
36 | x86_64_efi_startup = kern/x86_64/efi/startup.S; | |
37 | i386_qemu_startup = kern/i386/qemu/startup.S; | |
38 | i386_ieee1275_startup = kern/i386/ieee1275/startup.S; | |
39 | i386_coreboot_multiboot_startup = kern/i386/coreboot/startup.S; | |
40 | mips_yeeloong_startup = kern/mips/startup.S; | |
41 | sparc64_ieee1275_startup = kern/sparc64/ieee1275/crt0.S; | |
42 | powerpc_ieee1275_startup = kern/powerpc/ieee1275/startup.S; | |
43 | ||
44 | common = kern/command.c; | |
45 | common = kern/corecmd.c; | |
46 | common = kern/device.c; | |
47 | common = kern/disk.c; | |
48 | common = kern/dl.c; | |
49 | common = kern/env.c; | |
50 | common = kern/err.c; | |
51 | common = kern/file.c; | |
52 | common = kern/fs.c; | |
53 | common = kern/list.c; | |
54 | common = kern/main.c; | |
55 | common = kern/misc.c; | |
56 | common = kern/parser.c; | |
57 | common = kern/partition.c; | |
58 | common = kern/rescue_parser.c; | |
59 | common = kern/rescue_reader.c; | |
60 | common = kern/term.c; | |
61 | ||
62 | noemu = kern/mm.c; | |
63 | noemu = kern/time.c; | |
64 | noemu = kern/generic/millisleep.c; | |
65 | ||
66 | noemu_nodist = symlist.c; | |
67 | ||
68 | noemu_noieee1275 = kern/generic/rtc_get_time_ms.c; | |
69 | ||
70 | ieee1275 = disk/ieee1275/ofdisk.c; | |
71 | ieee1275 = kern/ieee1275/cmain.c; | |
72 | ieee1275 = kern/ieee1275/ieee1275.c; | |
73 | ieee1275 = kern/ieee1275/mmap.c; | |
74 | ieee1275 = kern/ieee1275/openfw.c; | |
75 | ieee1275 = term/ieee1275/ofconsole.c; | |
76 | ||
77 | ieee1275_mips = term/terminfo.c; | |
78 | ieee1275_mips = term/tparm.c; | |
79 | ||
80 | i386 = kern/i386/dl.c; | |
81 | ||
82 | i386_coreboot_multiboot_qemu = kern/i386/coreboot/init.c; | |
83 | i386_coreboot_multiboot_qemu = kern/i386/halt.c; | |
84 | i386_coreboot_multiboot_qemu = term/i386/pc/vga_text.c; | |
85 | ||
86 | i386_pc_coreboot_multiboot_qemu = term/i386/vga_common.c; | |
87 | ||
88 | i386_noefi = kern/i386/misc.S; | |
89 | ||
90 | x86_noieee1275 = kern/i386/pit.c; | |
91 | ||
92 | x86_efi = disk/efi/efidisk.c; | |
93 | x86_efi = kern/efi/efi.c; | |
94 | x86_efi = kern/efi/init.c; | |
95 | x86_efi = kern/efi/mm.c; | |
96 | x86_efi = kern/i386/efi/init.c; | |
97 | x86_efi = term/efi/console.c; | |
98 | ||
99 | i386_efi = kern/i386/tsc.c; | |
100 | ||
101 | x86_64_efi = kern/i386/tsc.c; | |
102 | x86_64_efi = kern/x86_64/dl.c; | |
103 | x86_64_efi = kern/x86_64/efi/callwrap.S; | |
104 | ||
8c411768 BC |
105 | i386_pc = kern/i386/pc/init.c; |
106 | i386_pc = kern/i386/pc/mmap.c; | |
107 | i386_pc = kern/i386/tsc.c; | |
8c411768 | 108 | i386_pc = term/i386/pc/console.c; |
8427685f BC |
109 | |
110 | i386_qemu = bus/pci.c; | |
111 | i386_qemu = kern/i386/qemu/init.c; | |
112 | i386_qemu = kern/i386/qemu/mmap.c; | |
113 | i386_qemu = kern/i386/tsc.c; | |
114 | ||
8c411768 | 115 | i386_coreboot = kern/i386/coreboot/mmap.c; |
8c411768 | 116 | i386_coreboot = kern/i386/tsc.c; |
8427685f | 117 | |
062cdbc1 | 118 | i386_multiboot = kern/i386/multiboot_mmap.c; |
062cdbc1 | 119 | i386_multiboot = kern/i386/tsc.c; |
8c411768 | 120 | |
8c411768 BC |
121 | i386_ieee1275 = kern/i386/ieee1275/init.c; |
122 | i386_ieee1275 = kern/ieee1275/init.c; | |
8c411768 | 123 | |
d84666e6 | 124 | mips_yeeloong = term/ns8250.c; |
8427685f BC |
125 | mips_yeeloong = bus/bonito.c; |
126 | mips_yeeloong = bus/cs5536.c; | |
127 | mips_yeeloong = bus/pci.c; | |
128 | mips_yeeloong = commands/extcmd.c; | |
129 | mips_yeeloong = font/font.c; | |
130 | mips_yeeloong = font/font_cmd.c; | |
131 | mips_yeeloong = io/bufio.c; | |
132 | mips_yeeloong = kern/mips/cache.S; | |
133 | mips_yeeloong = kern/mips/dl.c; | |
8c411768 BC |
134 | mips_yeeloong = kern/mips/init.c; |
135 | mips_yeeloong = kern/mips/yeeloong/init.c; | |
8c411768 | 136 | mips_yeeloong = lib/arg.c; |
8c411768 BC |
137 | mips_yeeloong = term/at_keyboard.c; |
138 | mips_yeeloong = term/gfxterm.c; | |
8427685f BC |
139 | mips_yeeloong = term/serial.c; |
140 | mips_yeeloong = video/bitmap.c; | |
141 | mips_yeeloong = video/bitmap_scale.c; | |
8c411768 BC |
142 | mips_yeeloong = video/fb/fbblit.c; |
143 | mips_yeeloong = video/fb/fbfill.c; | |
144 | mips_yeeloong = video/fb/fbutil.c; | |
8427685f | 145 | mips_yeeloong = video/fb/video_fb.c; |
8c411768 | 146 | mips_yeeloong = video/sm712.c; |
8427685f | 147 | mips_yeeloong = video/video.c; |
8c411768 | 148 | |
8c411768 | 149 | powerpc_ieee1275 = kern/ieee1275/init.c; |
8c411768 | 150 | powerpc_ieee1275 = kern/powerpc/cache.S; |
8427685f BC |
151 | powerpc_ieee1275 = kern/powerpc/dl.c; |
152 | ||
153 | sparc64_ieee1275 = kern/sparc64/cache.S; | |
154 | sparc64_ieee1275 = kern/sparc64/dl.c; | |
8c411768 BC |
155 | sparc64_ieee1275 = kern/sparc64/ieee1275/ieee1275.c; |
156 | sparc64_ieee1275 = kern/sparc64/ieee1275/init.c; | |
8c411768 | 157 | |
8427685f BC |
158 | emu = disk/host.c; |
159 | emu = gnulib/progname.c; | |
160 | emu = kern/emu/console.c; | |
8c411768 | 161 | emu = kern/emu/getroot.c; |
8c411768 BC |
162 | emu = kern/emu/hostdisk.c; |
163 | emu = kern/emu/hostfs.c; | |
8427685f BC |
164 | emu = kern/emu/main.c; |
165 | emu = kern/emu/misc.c; | |
166 | emu = kern/emu/mm.c; | |
167 | emu = kern/emu/time.c; | |
610c1efd BC |
168 | |
169 | extra_dist = kern/i386/loader.S; | |
170 | extra_dist = kern/i386/realmode.S; | |
171 | extra_dist = kern/i386/pc/lzma_decode.S; | |
8c411768 BC |
172 | }; |
173 | ||
174 | program = { | |
175 | name = grub-emu; | |
176 | mansection = 1; | |
177 | ||
8427685f BC |
178 | emu = kern/emu/full.c; |
179 | emu_nodist = grub_emu_init.c; | |
8c411768 | 180 | |
e235a228 | 181 | ldadd = 'kernel.img$(EXEEXT)'; |
8c411768 | 182 | ldadd = '$(MODULE_FILES)'; |
00d06484 | 183 | ldadd = '$(LIBUTIL) $(LIBCURSES) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER)'; |
8c411768 | 184 | |
911bd640 | 185 | enable = emu; |
8c411768 BC |
186 | }; |
187 | ||
188 | program = { | |
189 | name = grub-emu-lite; | |
190 | ||
8427685f BC |
191 | emu = kern/emu/lite.c; |
192 | emu = kern/emu/cache.S; | |
193 | emu_nodist = symlist.c; | |
8c411768 | 194 | |
e235a228 | 195 | ldadd = 'kernel.img$(EXEEXT)'; |
00d06484 | 196 | ldadd = '$(LIBUTIL) $(LIBCURSES) $(LIBSDL) $(LIBUSB) $(LIBPCIACCESS) $(LIBDEVMAPPER)'; |
8c411768 | 197 | |
911bd640 | 198 | enable = emu; |
8c411768 BC |
199 | }; |
200 | ||
8c411768 BC |
201 | image = { |
202 | name = boot; | |
203 | i386_pc = boot/i386/pc/boot.S; | |
8c411768 | 204 | i386_qemu = boot/i386/qemu/boot.S; |
8427685f | 205 | sparc64_ieee1275 = boot/sparc64/ieee1275/boot.S; |
2d465fb0 BC |
206 | |
207 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; | |
208 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00'; | |
209 | ||
210 | i386_qemu_ldflags = '$(TARGET_IMG_LDFLAGS)'; | |
211 | i386_qemu_ldflags = '$(TARGET_IMG_BASE_LDOPT),$(GRUB_BOOT_MACHINE_LINK_ADDR)'; | |
8c411768 BC |
212 | i386_qemu_ccasflags = '-DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)'; |
213 | ||
911bd640 | 214 | sparc64_ieee1275_objcopyflags = '-O a.out-sunos-big'; |
8c411768 | 215 | sparc64_ieee1275_ldflags = ' -Wl,-Ttext=0x4000'; |
911bd640 BC |
216 | |
217 | objcopyflags = '-O binary'; | |
218 | enable = i386_pc; | |
219 | enable = i386_qemu; | |
220 | enable = sparc64_ieee1275; | |
8c411768 BC |
221 | }; |
222 | ||
223 | image = { | |
224 | name = cdboot; | |
2d465fb0 BC |
225 | i386_pc = boot/i386/pc/cdboot.S; |
226 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; | |
227 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00'; | |
911bd640 BC |
228 | objcopyflags = '-O binary'; |
229 | enable = i386_pc; | |
8c411768 BC |
230 | }; |
231 | ||
232 | image = { | |
233 | name = pxeboot; | |
2d465fb0 | 234 | i386_pc = boot/i386/pc/pxeboot.S; |
8c411768 | 235 | |
2d465fb0 BC |
236 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; |
237 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x7C00'; | |
911bd640 BC |
238 | |
239 | objcopyflags = '-O binary'; | |
240 | enable = i386_pc; | |
8c411768 BC |
241 | }; |
242 | ||
243 | image = { | |
244 | name = diskboot; | |
245 | i386_pc = boot/i386/pc/diskboot.S; | |
2d465fb0 BC |
246 | |
247 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; | |
248 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x8000'; | |
8c411768 BC |
249 | |
250 | sparc64_ieee1275 = boot/sparc64/ieee1275/diskboot.S; | |
251 | sparc64_ieee1275_ldflags = '-Wl,-Ttext=0x4200'; | |
911bd640 BC |
252 | |
253 | objcopyflags = '-O binary'; | |
254 | ||
255 | enable = i386_pc; | |
256 | enable = sparc64_ieee1275; | |
8c411768 BC |
257 | }; |
258 | ||
259 | image = { | |
260 | name = lnxboot; | |
2d465fb0 | 261 | i386_pc = boot/i386/pc/lnxboot.S; |
8c411768 | 262 | |
2d465fb0 BC |
263 | i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; |
264 | i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x6000'; | |
911bd640 BC |
265 | |
266 | objcopyflags = '-O binary'; | |
267 | enable = i386_pc; | |
8c411768 BC |
268 | }; |
269 | ||
297f0c2b BC |
270 | image = { |
271 | name = fwstart; | |
272 | mips_yeeloong = boot/mips/yeeloong/fwstart.S; | |
911bd640 BC |
273 | objcopyflags = '-O binary'; |
274 | enable = mips_yeeloong; | |
297f0c2b BC |
275 | }; |
276 | ||
e235a228 BC |
277 | module = { |
278 | name = trig; | |
8427685f | 279 | common_nodist = trigtables.c; |
e235a228 | 280 | extra_dist = gentrigtables.c; |
e235a228 BC |
281 | }; |
282 | ||
baea1766 BC |
283 | module = { |
284 | name = cs5536; | |
f7711f5e BC |
285 | x86 = bus/cs5536.c; |
286 | enable = x86; | |
baea1766 BC |
287 | }; |
288 | ||
8c411768 BC |
289 | module = { |
290 | name = libusb; | |
8427685f | 291 | emu = bus/usb/emu/usb.c; |
911bd640 BC |
292 | enable = emu; |
293 | condition = COND_GRUB_EMU_USB; | |
8c411768 BC |
294 | }; |
295 | ||
297f0c2b BC |
296 | module = { |
297 | name = lsspd; | |
298 | mips_yeeloong = commands/mips/yeeloong/lsspd.c; | |
911bd640 | 299 | enable = mips_yeeloong; |
297f0c2b BC |
300 | }; |
301 | ||
8c411768 BC |
302 | module = { |
303 | name = usb; | |
8427685f BC |
304 | common = bus/usb/usb.c; |
305 | noemu = bus/usb/usbtrans.c; | |
306 | noemu = bus/usb/usbhub.c; | |
307 | enable = emu; | |
911bd640 BC |
308 | enable = i386; |
309 | enable = mips_yeeloong; | |
8427685f | 310 | emu_condition = COND_GRUB_EMU_USB; |
8c411768 BC |
311 | }; |
312 | ||
d84666e6 BC |
313 | module = { |
314 | name = usbserial_common; | |
315 | common = bus/usb/serial/common.c; | |
316 | enable = emu; | |
317 | enable = i386_pc; | |
318 | enable = mips_yeeloong; | |
30c4f234 | 319 | emu_condition = COND_GRUB_EMU_USB; |
d84666e6 BC |
320 | }; |
321 | ||
322 | module = { | |
323 | name = usbserial_pl2303; | |
324 | common = bus/usb/serial/pl2303.c; | |
325 | enable = emu; | |
326 | enable = i386_pc; | |
327 | enable = mips_yeeloong; | |
30c4f234 | 328 | emu_condition = COND_GRUB_EMU_USB; |
d84666e6 BC |
329 | }; |
330 | ||
331 | module = { | |
332 | name = usbserial_ftdi; | |
333 | common = bus/usb/serial/ftdi.c; | |
334 | enable = emu; | |
335 | enable = i386_pc; | |
336 | enable = mips_yeeloong; | |
30c4f234 | 337 | emu_condition = COND_GRUB_EMU_USB; |
d84666e6 BC |
338 | }; |
339 | ||
8c411768 BC |
340 | module = { |
341 | name = uhci; | |
8427685f | 342 | common = bus/usb/uhci.c; |
d9b78bce | 343 | enable = i386_pc; |
8c411768 BC |
344 | }; |
345 | ||
346 | module = { | |
347 | name = ohci; | |
8427685f | 348 | common = bus/usb/ohci.c; |
d9b78bce | 349 | enable = i386_pc; |
911bd640 | 350 | enable = mips_yeeloong; |
8c411768 BC |
351 | }; |
352 | ||
353 | module = { | |
354 | name = pci; | |
8427685f | 355 | noemu = bus/pci.c; |
d9b78bce BC |
356 | emu = bus/emu/pci.c; |
357 | emu = commands/lspci.c; | |
358 | ||
359 | enable = emu; | |
911bd640 | 360 | enable = i386_pc; |
d9b78bce | 361 | enable = x86_efi; |
911bd640 BC |
362 | enable = i386_ieee1275; |
363 | enable = i386_coreboot; | |
d9b78bce | 364 | emu_condition = COND_GRUB_EMU_PCI; |
8c411768 BC |
365 | }; |
366 | ||
367 | library = { | |
368 | name = libgnulib.a; | |
8427685f | 369 | common = gnulib/regex.c; |
a60f6ee1 | 370 | |
a60f6ee1 BC |
371 | extra_dist = gnulib/regcomp.c; |
372 | extra_dist = gnulib/regexec.c; | |
373 | extra_dist = gnulib/fnmatch_loop.c; | |
374 | extra_dist = gnulib/regex_internal.c; | |
375 | ||
8c411768 BC |
376 | cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)'; |
377 | cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB)'; | |
8c411768 BC |
378 | }; |
379 | ||
16c7cb32 BC |
380 | module = { |
381 | name = cmostest; | |
8427685f | 382 | i386 = commands/i386/cmostest.c; |
16c7cb32 BC |
383 | enable = i386_pc; |
384 | enable = i386_coreboot; | |
385 | }; | |
386 | ||
8c411768 BC |
387 | module = { |
388 | name = iorw; | |
8427685f | 389 | common = commands/iorw.c; |
f7711f5e | 390 | enable = x86; |
8c411768 BC |
391 | }; |
392 | ||
393 | module = { | |
394 | name = regexp; | |
8427685f | 395 | common = commands/regexp.c; |
8c411768 BC |
396 | ldadd = libgnulib.a; |
397 | cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)'; | |
398 | cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB)'; | |
8c411768 BC |
399 | }; |
400 | ||
401 | module = { | |
402 | name = acpi; | |
403 | ||
8427685f | 404 | i386 = commands/acpi.c; |
8c411768 | 405 | x86_efi = commands/efi/acpi.c; |
8c411768 | 406 | i386_pc = commands/i386/pc/acpi.c; |
16bd6cfa VS |
407 | i386_coreboot = commands/i386/pc/acpi.c; |
408 | i386_multiboot = commands/i386/pc/acpi.c; | |
911bd640 BC |
409 | |
410 | enable = x86_efi; | |
411 | enable = i386_pc; | |
16bd6cfa VS |
412 | enable = i386_coreboot; |
413 | enable = i386_multiboot; | |
8c411768 BC |
414 | }; |
415 | ||
416 | module = { | |
8c411768 | 417 | name = blocklist; |
8427685f | 418 | common = commands/blocklist.c; |
8c411768 BC |
419 | }; |
420 | ||
421 | module = { | |
8c411768 | 422 | name = boot; |
8427685f | 423 | common = commands/boot.c; |
8c411768 BC |
424 | i386_pc = lib/i386/pc/biosnum.c; |
425 | }; | |
426 | ||
427 | module = { | |
8c411768 | 428 | name = cat; |
8427685f | 429 | common = commands/cat.c; |
8c411768 BC |
430 | }; |
431 | ||
432 | module = { | |
8c411768 | 433 | name = cmp; |
8427685f | 434 | common = commands/cmp.c; |
8c411768 BC |
435 | }; |
436 | ||
437 | module = { | |
8c411768 | 438 | name = configfile; |
8427685f | 439 | common = commands/configfile.c; |
8c411768 BC |
440 | }; |
441 | ||
442 | module = { | |
443 | name = cpuid; | |
354128c8 | 444 | x86 = commands/i386/cpuid.c; |
911bd640 | 445 | enable = x86; |
8c411768 BC |
446 | }; |
447 | ||
448 | module = { | |
8c411768 | 449 | name = crc; |
8427685f BC |
450 | common = commands/crc.c; |
451 | common = lib/crc.c; | |
8c411768 BC |
452 | }; |
453 | ||
454 | module = { | |
8c411768 | 455 | name = date; |
8427685f | 456 | common = commands/date.c; |
8c411768 BC |
457 | }; |
458 | ||
459 | module = { | |
460 | name = drivemap; | |
461 | ||
462 | i386_pc = commands/i386/pc/drivemap.c; | |
463 | i386_pc = commands/i386/pc/drivemap_int13h.S; | |
911bd640 | 464 | enable = i386_pc; |
8c411768 BC |
465 | }; |
466 | ||
467 | module = { | |
8c411768 | 468 | name = echo; |
8427685f | 469 | common = commands/echo.c; |
8c411768 BC |
470 | }; |
471 | ||
472 | module = { | |
8c411768 | 473 | name = extcmd; |
8427685f BC |
474 | common = commands/extcmd.c; |
475 | common = lib/arg.c; | |
8c411768 BC |
476 | }; |
477 | ||
478 | module = { | |
479 | name = fixvideo; | |
480 | x86_efi = commands/efi/fixvideo.c; | |
911bd640 | 481 | enable = x86_efi; |
8c411768 BC |
482 | }; |
483 | ||
484 | module = { | |
8c411768 | 485 | name = gptsync; |
8427685f | 486 | common = commands/gptsync.c; |
8c411768 BC |
487 | }; |
488 | ||
489 | module = { | |
490 | name = halt; | |
8427685f | 491 | nopc = commands/halt.c; |
8c411768 | 492 | i386_pc = commands/i386/pc/halt.c; |
8c411768 BC |
493 | }; |
494 | ||
495 | module = { | |
8c411768 | 496 | name = hashsum; |
8427685f | 497 | common = commands/hashsum.c; |
8c411768 BC |
498 | }; |
499 | ||
500 | module = { | |
501 | name = hdparm; | |
8427685f BC |
502 | common = commands/hdparm.c; |
503 | common = lib/hexdump.c; | |
911bd640 | 504 | enable = i386_pc; |
8c411768 BC |
505 | }; |
506 | ||
507 | module = { | |
8c411768 | 508 | name = help; |
8427685f | 509 | common = commands/help.c; |
8c411768 BC |
510 | }; |
511 | ||
512 | module = { | |
8c411768 | 513 | name = hexdump; |
8427685f BC |
514 | common = commands/hexdump.c; |
515 | common = lib/hexdump.c; | |
8c411768 BC |
516 | }; |
517 | ||
518 | module = { | |
8c411768 | 519 | name = keystatus; |
8427685f | 520 | common = commands/keystatus.c; |
8c411768 BC |
521 | }; |
522 | ||
523 | module = { | |
524 | name = loadbios; | |
525 | x86_efi = commands/efi/loadbios.c; | |
911bd640 | 526 | enable = x86_efi; |
8c411768 BC |
527 | }; |
528 | ||
529 | module = { | |
8c411768 | 530 | name = loadenv; |
8427685f BC |
531 | common = commands/loadenv.c; |
532 | common = lib/envblk.c; | |
8c411768 BC |
533 | }; |
534 | ||
535 | module = { | |
8c411768 | 536 | name = ls; |
8427685f | 537 | common = commands/ls.c; |
8c411768 BC |
538 | }; |
539 | ||
540 | module = { | |
8c411768 | 541 | name = lsmmap; |
8427685f | 542 | common = commands/lsmmap.c; |
8c411768 BC |
543 | }; |
544 | ||
545 | module = { | |
546 | name = lspci; | |
8427685f | 547 | common = commands/lspci.c; |
8c411768 | 548 | |
911bd640 BC |
549 | enable = x86; |
550 | enable = mips; | |
8c411768 BC |
551 | }; |
552 | ||
553 | module = { | |
8c411768 | 554 | name = memrw; |
8427685f | 555 | common = commands/memrw.c; |
8c411768 BC |
556 | }; |
557 | ||
558 | module = { | |
8c411768 | 559 | name = minicmd; |
8427685f | 560 | common = commands/minicmd.c; |
8c411768 BC |
561 | }; |
562 | ||
563 | module = { | |
8c411768 | 564 | name = parttool; |
8427685f | 565 | common = commands/parttool.c; |
8c411768 BC |
566 | }; |
567 | ||
568 | module = { | |
8c411768 | 569 | name = password; |
8427685f | 570 | common = commands/password.c; |
8c411768 BC |
571 | }; |
572 | ||
573 | module = { | |
8c411768 | 574 | name = password_pbkdf2; |
8427685f | 575 | common = commands/password_pbkdf2.c; |
8c411768 BC |
576 | }; |
577 | ||
578 | module = { | |
579 | name = play; | |
f7711f5e BC |
580 | x86 = commands/i386/pc/play.c; |
581 | enable = x86; | |
8c411768 BC |
582 | }; |
583 | ||
584 | module = { | |
8c411768 | 585 | name = probe; |
8427685f | 586 | common = commands/probe.c; |
8c411768 BC |
587 | }; |
588 | ||
589 | module = { | |
590 | name = pxecmd; | |
591 | i386_pc = commands/i386/pc/pxecmd.c; | |
911bd640 | 592 | enable = i386_pc; |
8c411768 BC |
593 | }; |
594 | ||
595 | module = { | |
8c411768 | 596 | name = read; |
8427685f | 597 | common = commands/read.c; |
8c411768 BC |
598 | }; |
599 | ||
600 | module = { | |
8c411768 | 601 | name = reboot; |
8427685f | 602 | common = commands/reboot.c; |
8c411768 BC |
603 | }; |
604 | ||
605 | module = { | |
8c411768 | 606 | name = search; |
8427685f | 607 | common = commands/search_wrap.c; |
610c1efd | 608 | extra_dist = commands/search.c; |
8c411768 BC |
609 | }; |
610 | ||
611 | module = { | |
8c411768 | 612 | name = search_fs_file; |
8427685f | 613 | common = commands/search_file.c; |
8c411768 BC |
614 | }; |
615 | ||
616 | module = { | |
8c411768 | 617 | name = search_fs_uuid; |
8427685f | 618 | common = commands/search_uuid.c; |
8c411768 BC |
619 | }; |
620 | ||
621 | module = { | |
8c411768 | 622 | name = search_label; |
8427685f | 623 | common = commands/search_label.c; |
8c411768 BC |
624 | }; |
625 | ||
626 | module = { | |
627 | name = setpci; | |
8427685f | 628 | common = commands/setpci.c; |
911bd640 | 629 | enable = x86; |
8c411768 BC |
630 | }; |
631 | ||
632 | module = { | |
8c411768 | 633 | name = sleep; |
8427685f | 634 | common = commands/sleep.c; |
8c411768 BC |
635 | }; |
636 | ||
637 | module = { | |
638 | name = suspend; | |
8427685f | 639 | ieee1275 = commands/ieee1275/suspend.c; |
911bd640 BC |
640 | enable = i386_ieee1275; |
641 | enable = powerpc_ieee1275; | |
8c411768 BC |
642 | }; |
643 | ||
644 | module = { | |
8c411768 | 645 | name = terminal; |
8427685f | 646 | common = commands/terminal.c; |
8c411768 BC |
647 | }; |
648 | ||
649 | module = { | |
8c411768 | 650 | name = test; |
8427685f | 651 | common = commands/test.c; |
8c411768 BC |
652 | }; |
653 | ||
654 | module = { | |
8c411768 | 655 | name = true; |
8427685f | 656 | common = commands/true.c; |
8c411768 BC |
657 | }; |
658 | ||
659 | module = { | |
660 | name = usbtest; | |
8427685f | 661 | common = commands/usbtest.c; |
911bd640 BC |
662 | enable = i386_pc; |
663 | enable = mips_yeeloong; | |
911bd640 | 664 | enable = emu; |
8427685f | 665 | emu_condition = COND_GRUB_EMU_USB; |
8c411768 BC |
666 | }; |
667 | ||
668 | module = { | |
669 | name = vbeinfo; | |
670 | i386_pc = commands/i386/pc/vbeinfo.c; | |
911bd640 | 671 | enable = i386_pc; |
8c411768 BC |
672 | }; |
673 | ||
674 | module = { | |
675 | name = vbetest; | |
676 | i386_pc = commands/i386/pc/vbetest.c; | |
911bd640 | 677 | enable = i386_pc; |
8c411768 BC |
678 | }; |
679 | ||
680 | module = { | |
8c411768 | 681 | name = videotest; |
8427685f | 682 | common = commands/videotest.c; |
8c411768 BC |
683 | }; |
684 | ||
685 | module = { | |
8c411768 | 686 | name = xnu_uuid; |
8427685f | 687 | common = commands/xnu_uuid.c; |
8c411768 BC |
688 | }; |
689 | ||
690 | module = { | |
8c411768 | 691 | name = dm_nv; |
8427685f | 692 | common = disk/dmraid_nvidia.c; |
8c411768 BC |
693 | }; |
694 | ||
695 | module = { | |
8c411768 | 696 | name = loopback; |
8427685f | 697 | common = disk/loopback.c; |
8c411768 BC |
698 | }; |
699 | ||
700 | module = { | |
8c411768 | 701 | name = lvm; |
8427685f | 702 | common = disk/lvm.c; |
8c411768 BC |
703 | }; |
704 | ||
705 | module = { | |
8c411768 | 706 | name = mdraid; |
8427685f | 707 | common = disk/mdraid_linux.c; |
8c411768 BC |
708 | }; |
709 | ||
710 | module = { | |
8c411768 | 711 | name = raid; |
8427685f | 712 | common = disk/raid.c; |
8c411768 BC |
713 | }; |
714 | ||
715 | module = { | |
8c411768 | 716 | name = raid5rec; |
8427685f | 717 | common = disk/raid5_recover.c; |
8c411768 BC |
718 | }; |
719 | ||
720 | module = { | |
8c411768 | 721 | name = raid6rec; |
8427685f | 722 | common = disk/raid6_recover.c; |
8c411768 BC |
723 | }; |
724 | ||
725 | module = { | |
8c411768 | 726 | name = scsi; |
8427685f | 727 | common = disk/scsi.c; |
8c411768 BC |
728 | }; |
729 | ||
730 | module = { | |
8c411768 | 731 | name = memdisk; |
8427685f | 732 | common = disk/memdisk.c; |
8c411768 BC |
733 | }; |
734 | ||
735 | module = { | |
736 | name = ata; | |
8427685f | 737 | common = disk/ata.c; |
911bd640 BC |
738 | enable = x86; |
739 | enable = mips; | |
8c411768 BC |
740 | }; |
741 | ||
742 | module = { | |
743 | name = ata_pthru; | |
8427685f | 744 | common = disk/ata_pthru.c; |
911bd640 BC |
745 | enable = x86; |
746 | enable = mips_yeeloong; | |
8c411768 BC |
747 | }; |
748 | ||
749 | module = { | |
750 | name = biosdisk; | |
751 | i386_pc = disk/i386/pc/biosdisk.c; | |
911bd640 | 752 | enable = i386_pc; |
8c411768 BC |
753 | }; |
754 | ||
755 | module = { | |
756 | name = usbms; | |
8427685f | 757 | common = disk/usbms.c; |
911bd640 BC |
758 | enable = i386_pc; |
759 | enable = mips_yeeloong; | |
911bd640 | 760 | enable = emu; |
8427685f | 761 | emu_condition = COND_GRUB_EMU_USB; |
8c411768 BC |
762 | }; |
763 | ||
764 | module = { | |
765 | name = nand; | |
8427685f | 766 | ieee1275 = disk/ieee1275/nand.c; |
911bd640 | 767 | enable = i386_ieee1275; |
8c411768 BC |
768 | }; |
769 | ||
770 | module = { | |
771 | name = efiemu; | |
16bd6cfa VS |
772 | common = efiemu/main.c; |
773 | common = efiemu/i386/loadcore32.c; | |
774 | common = efiemu/i386/loadcore64.c; | |
775 | common = efiemu/i386/pc/cfgtables.c; | |
776 | common = efiemu/mm.c; | |
777 | common = efiemu/loadcore_common.c; | |
778 | common = efiemu/symbols.c; | |
779 | common = efiemu/loadcore32.c; | |
780 | common = efiemu/loadcore64.c; | |
781 | common = efiemu/prepare32.c; | |
782 | common = efiemu/prepare64.c; | |
783 | common = efiemu/pnvram.c; | |
784 | common = efiemu/i386/coredetect.c; | |
a60f6ee1 BC |
785 | |
786 | extra_dist = efiemu/prepare.c; | |
787 | extra_dist = efiemu/loadcore.c; | |
788 | extra_dist = efiemu/runtime/efiemu.S; | |
789 | extra_dist = efiemu/runtime/efiemu.c; | |
911bd640 BC |
790 | |
791 | enable = i386_pc; | |
16bd6cfa VS |
792 | enable = i386_coeboot; |
793 | enable = i386_ieee1275; | |
794 | enable = i386_multiboot; | |
8c411768 BC |
795 | }; |
796 | ||
797 | module = { | |
798 | name = font; | |
8427685f BC |
799 | common = font/font.c; |
800 | common = font/font_cmd.c; | |
911bd640 BC |
801 | enable = emu; |
802 | enable = x86; | |
803 | enable = sparc64; | |
804 | enable = powerpc; | |
8c411768 BC |
805 | }; |
806 | ||
807 | module = { | |
8c411768 | 808 | name = affs; |
8427685f | 809 | common = fs/affs.c; |
8c411768 BC |
810 | }; |
811 | ||
812 | module = { | |
8c411768 | 813 | name = afs; |
8427685f | 814 | common = fs/afs.c; |
8c411768 BC |
815 | }; |
816 | ||
817 | module = { | |
8c411768 | 818 | name = afs_be; |
8427685f | 819 | common = fs/afs_be.c; |
8c411768 BC |
820 | }; |
821 | ||
822 | module = { | |
8c411768 | 823 | name = befs; |
8427685f | 824 | common = fs/befs.c; |
8c411768 BC |
825 | }; |
826 | ||
827 | module = { | |
8c411768 | 828 | name = befs_be; |
8427685f | 829 | common = fs/befs_be.c; |
8c411768 BC |
830 | }; |
831 | ||
832 | module = { | |
8c411768 | 833 | name = cpio; |
8427685f | 834 | common = fs/cpio.c; |
8c411768 BC |
835 | }; |
836 | ||
837 | module = { | |
8c411768 | 838 | name = ext2; |
8427685f | 839 | common = fs/ext2.c; |
8c411768 BC |
840 | }; |
841 | ||
842 | module = { | |
8c411768 | 843 | name = fat; |
8427685f | 844 | common = fs/fat.c; |
8c411768 BC |
845 | }; |
846 | ||
847 | module = { | |
8c411768 | 848 | name = fshelp; |
8427685f | 849 | common = fs/fshelp.c; |
8c411768 BC |
850 | }; |
851 | ||
852 | module = { | |
8c411768 | 853 | name = hfs; |
8427685f | 854 | common = fs/hfs.c; |
8c411768 BC |
855 | }; |
856 | ||
857 | module = { | |
8c411768 | 858 | name = hfsplus; |
8427685f | 859 | common = fs/hfsplus.c; |
8c411768 BC |
860 | }; |
861 | ||
862 | module = { | |
8c411768 | 863 | name = iso9660; |
8427685f | 864 | common = fs/iso9660.c; |
8c411768 BC |
865 | }; |
866 | ||
867 | module = { | |
8c411768 | 868 | name = jfs; |
8427685f | 869 | common = fs/jfs.c; |
8c411768 BC |
870 | }; |
871 | ||
872 | module = { | |
8c411768 | 873 | name = minix; |
8427685f | 874 | common = fs/minix.c; |
8c411768 BC |
875 | }; |
876 | ||
877 | module = { | |
8c411768 | 878 | name = nilfs2; |
8427685f | 879 | common = fs/nilfs2.c; |
8c411768 BC |
880 | }; |
881 | ||
882 | module = { | |
8c411768 | 883 | name = ntfs; |
8427685f | 884 | common = fs/ntfs.c; |
8c411768 BC |
885 | }; |
886 | ||
887 | module = { | |
8c411768 | 888 | name = ntfscomp; |
8427685f | 889 | common = fs/ntfscomp.c; |
8c411768 BC |
890 | }; |
891 | ||
892 | module = { | |
8c411768 | 893 | name = reiserfs; |
8427685f | 894 | common = fs/reiserfs.c; |
8c411768 BC |
895 | }; |
896 | ||
897 | module = { | |
8c411768 | 898 | name = sfs; |
8427685f | 899 | common = fs/sfs.c; |
8c411768 BC |
900 | }; |
901 | ||
902 | module = { | |
8c411768 | 903 | name = tar; |
8427685f | 904 | common = fs/tar.c; |
8c411768 BC |
905 | }; |
906 | ||
907 | module = { | |
8c411768 | 908 | name = udf; |
8427685f | 909 | common = fs/udf.c; |
8c411768 BC |
910 | }; |
911 | ||
912 | module = { | |
8c411768 | 913 | name = ufs1; |
8427685f | 914 | common = fs/ufs.c; |
8c411768 BC |
915 | }; |
916 | ||
917 | module = { | |
8c411768 | 918 | name = ufs2; |
8427685f | 919 | common = fs/ufs2.c; |
8c411768 BC |
920 | }; |
921 | ||
922 | module = { | |
8c411768 | 923 | name = xfs; |
8427685f | 924 | common = fs/xfs.c; |
8c411768 BC |
925 | }; |
926 | ||
927 | module = { | |
928 | name = pxe; | |
929 | i386_pc = fs/i386/pc/pxe.c; | |
911bd640 | 930 | enable = i386_pc; |
8c411768 BC |
931 | }; |
932 | ||
933 | module = { | |
934 | name = gettext; | |
8427685f | 935 | common = gettext/gettext.c; |
8c411768 BC |
936 | }; |
937 | ||
938 | module = { | |
8c411768 | 939 | name = gfxmenu; |
8427685f BC |
940 | common = gfxmenu/gfxmenu.c; |
941 | common = gfxmenu/model.c; | |
942 | common = gfxmenu/view.c; | |
943 | common = gfxmenu/font.c; | |
944 | common = gfxmenu/icon_manager.c; | |
945 | common = gfxmenu/theme_loader.c; | |
946 | common = gfxmenu/widget-box.c; | |
947 | common = gfxmenu/gui_canvas.c; | |
948 | common = gfxmenu/gui_circular_progress.c; | |
949 | common = gfxmenu/gui_box.c; | |
950 | common = gfxmenu/gui_label.c; | |
951 | common = gfxmenu/gui_list.c; | |
952 | common = gfxmenu/gui_image.c; | |
953 | common = gfxmenu/gui_progress_bar.c; | |
954 | common = gfxmenu/gui_util.c; | |
955 | common = gfxmenu/gui_string_util.c; | |
956 | common = gfxmenu/named_colors.c; | |
8c411768 BC |
957 | }; |
958 | ||
959 | module = { | |
8c411768 | 960 | name = hello; |
8427685f | 961 | common = hello/hello.c; |
8c411768 BC |
962 | }; |
963 | ||
964 | module = { | |
8c411768 | 965 | name = gzio; |
8427685f | 966 | common = io/gzio.c; |
8c411768 BC |
967 | }; |
968 | ||
969 | module = { | |
970 | name = bufio; | |
8427685f | 971 | common = io/bufio.c; |
911bd640 BC |
972 | enable = emu; |
973 | enable = x86; | |
974 | enable = sparc64; | |
975 | enable = powerpc; | |
8c411768 BC |
976 | }; |
977 | ||
978 | module = { | |
8c411768 | 979 | name = elf; |
8427685f | 980 | common = kern/elf.c; |
8c411768 BC |
981 | }; |
982 | ||
8c411768 | 983 | module = { |
8c411768 | 984 | name = crypto; |
8427685f | 985 | common = lib/crypto.c; |
610c1efd BC |
986 | |
987 | extra_dist = lib/libgcrypt-grub/cipher/crypto.lst; | |
8c411768 BC |
988 | }; |
989 | ||
8c411768 | 990 | module = { |
8c411768 | 991 | name = pbkdf2; |
8427685f | 992 | common = lib/pbkdf2.c; |
8c411768 BC |
993 | }; |
994 | ||
995 | module = { | |
996 | name = relocator; | |
16bd6cfa VS |
997 | common = lib/relocator.c; |
998 | x86 = lib/i386/relocator16.S; | |
999 | x86 = lib/i386/relocator32.S; | |
1000 | x86 = lib/i386/relocator64.S; | |
1001 | i386 = lib/i386/relocator_asm.S; | |
1002 | x86_64 = lib/x86_64/relocator_asm.S; | |
8c411768 | 1003 | x86 = lib/i386/relocator.c; |
16bd6cfa VS |
1004 | ieee1275 = lib/ieee1275/relocator.c; |
1005 | x86_efi = lib/efi/relocator.c; | |
1006 | mips = lib/mips/relocator_asm.S; | |
1007 | mips = lib/mips/relocator.c; | |
1008 | powerpc = lib/powerpc/relocator_asm.S; | |
1009 | powerpc = lib/powerpc/relocator.c; | |
1010 | ||
911bd640 | 1011 | enable = mips; |
16bd6cfa | 1012 | enable = powerpc; |
911bd640 | 1013 | enable = x86; |
8c411768 BC |
1014 | }; |
1015 | ||
1016 | module = { | |
1017 | name = datetime; | |
8427685f | 1018 | x86_noefi_mips = lib/cmos_datetime.c; |
8c411768 BC |
1019 | x86_efi = lib/efi/datetime.c; |
1020 | sparc64_ieee1275 = lib/ieee1275/datetime.c; | |
1021 | powerpc_ieee1275 = lib/ieee1275/datetime.c; | |
911bd640 BC |
1022 | enable = x86; |
1023 | enable = mips; | |
1024 | enable = sparc64_ieee1275; | |
1025 | enable = powerpc_ieee1275; | |
8c411768 BC |
1026 | }; |
1027 | ||
1028 | module = { | |
1029 | name = setjmp; | |
8427685f | 1030 | common = lib/setjmp.S; |
2b6c0084 BC |
1031 | extra_dist = lib/i386/setjmp.S; |
1032 | extra_dist = lib/mips/setjmp.S; | |
1033 | extra_dist = lib/x86_64/setjmp.S; | |
1034 | extra_dist = lib/sparc64/setjmp.S; | |
1035 | extra_dist = lib/powerpc/setjmp.S; | |
8c411768 BC |
1036 | }; |
1037 | ||
1038 | module = { | |
1039 | name = aout; | |
8427685f | 1040 | common = loader/aout.c; |
16bd6cfa | 1041 | enable = x86; |
8c411768 BC |
1042 | }; |
1043 | ||
1044 | module = { | |
1045 | name = bsd; | |
16bd6cfa VS |
1046 | x86 = loader/i386/bsd.c; |
1047 | x86 = loader/i386/bsd32.c; | |
1048 | x86 = loader/i386/bsd64.c; | |
610c1efd BC |
1049 | |
1050 | extra_dist = loader/i386/bsdXX.c; | |
1051 | extra_dist = loader/i386/bsd_pagetable.c; | |
1052 | ||
16bd6cfa | 1053 | enable = x86; |
8c411768 BC |
1054 | }; |
1055 | ||
1056 | module = { | |
1057 | name = linux16; | |
8427685f | 1058 | i386_pc = loader/i386/pc/linux.c; |
911bd640 | 1059 | enable = i386_pc; |
8c411768 BC |
1060 | }; |
1061 | ||
16bd6cfa VS |
1062 | module = { |
1063 | name = ntldr; | |
1064 | i386_pc = loader/i386/pc/ntldr.c; | |
1065 | enable = i386_pc; | |
1066 | }; | |
1067 | ||
8c411768 BC |
1068 | module = { |
1069 | name = multiboot2; | |
1070 | cppflags = "-DGRUB_USE_MULTIBOOT2"; | |
1071 | ||
8427685f BC |
1072 | common = loader/multiboot.c; |
1073 | common = loader/multiboot_mbi2.c; | |
911bd640 BC |
1074 | enable = x86; |
1075 | enable = mips; | |
8c411768 BC |
1076 | }; |
1077 | ||
1078 | module = { | |
1079 | name = multiboot; | |
8427685f BC |
1080 | common = loader/multiboot.c; |
1081 | x86 = loader/i386/multiboot_mbi.c; | |
a60f6ee1 | 1082 | extra_dist = loader/multiboot_elfxx.c; |
911bd640 | 1083 | enable = x86; |
8c411768 BC |
1084 | }; |
1085 | ||
1086 | module = { | |
1087 | name = linux; | |
16bd6cfa | 1088 | x86 = loader/i386/linux.c; |
8c411768 BC |
1089 | mips = loader/mips/linux.c; |
1090 | powerpc_ieee1275 = loader/powerpc/ieee1275/linux.c; | |
1091 | sparc64_ieee1275 = loader/sparc64/ieee1275/linux.c; | |
8427685f | 1092 | enable = noemu; |
8c411768 BC |
1093 | }; |
1094 | ||
1095 | module = { | |
1096 | name = xnu; | |
16bd6cfa VS |
1097 | x86 = loader/xnu_resume.c; |
1098 | x86 = loader/i386/xnu.c; | |
1099 | x86 = loader/macho32.c; | |
1100 | x86 = loader/macho64.c; | |
1101 | x86 = loader/macho.c; | |
1102 | x86 = loader/xnu.c; | |
a60f6ee1 BC |
1103 | |
1104 | extra_dist = loader/machoXX.c; | |
16bd6cfa | 1105 | enable = x86; |
8c411768 BC |
1106 | }; |
1107 | ||
1108 | module = { | |
1109 | name = appleldr; | |
1110 | x86_efi = loader/efi/appleloader.c; | |
911bd640 | 1111 | enable = x86_efi; |
8c411768 BC |
1112 | }; |
1113 | ||
1114 | module = { | |
1115 | name = chain; | |
1116 | x86_efi = loader/efi/chainloader.c; | |
1117 | i386_pc = loader/i386/pc/chainloader.c; | |
911bd640 BC |
1118 | enable = i386_pc; |
1119 | enable = x86_efi; | |
8c411768 BC |
1120 | }; |
1121 | ||
1122 | module = { | |
1123 | name = mmap; | |
1124 | i386_pc = mmap/mmap.c; | |
1125 | i386_pc = mmap/i386/uppermem.c; | |
1126 | i386_pc = mmap/i386/mmap.c; | |
1127 | i386_pc = mmap/i386/pc/mmap.c; | |
1128 | i386_pc = mmap/i386/pc/mmap_helper.S; | |
1129 | ||
1130 | x86_efi = mmap/mmap.c; | |
1131 | x86_efi = mmap/i386/uppermem.c; | |
1132 | x86_efi = mmap/i386/mmap.c; | |
1133 | x86_efi = mmap/efi/mmap.c; | |
1134 | ||
1135 | i386_coreboot = mmap/mmap.c; | |
1136 | i386_coreboot = mmap/i386/uppermem.c; | |
1137 | i386_coreboot = mmap/i386/mmap.c; | |
1138 | ||
062cdbc1 BC |
1139 | i386_multiboot = mmap/mmap.c; |
1140 | i386_multiboot = mmap/i386/uppermem.c; | |
1141 | i386_multiboot = mmap/i386/mmap.c; | |
1142 | ||
8c411768 BC |
1143 | i386_qemu = mmap/mmap.c; |
1144 | i386_qemu = mmap/i386/uppermem.c; | |
1145 | i386_qemu = mmap/i386/mmap.c; | |
1146 | ||
1147 | i386_ieee1275 = mmap/mmap.c; | |
1148 | i386_ieee1275 = mmap/i386/uppermem.c; | |
1149 | i386_ieee1275 = mmap/i386/mmap.c; | |
1150 | ||
1151 | mips_yeeloong = mmap/mmap.c; | |
1152 | mips_yeeloong = mmap/mips/yeeloong/uppermem.c; | |
911bd640 BC |
1153 | |
1154 | enable = x86; | |
1155 | enable = mips_yeeloong; | |
8c411768 BC |
1156 | }; |
1157 | ||
1158 | module = { | |
8c411768 | 1159 | name = normal; |
8427685f BC |
1160 | common = normal/main.c; |
1161 | common = normal/cmdline.c; | |
1162 | common = normal/dyncmd.c; | |
1163 | common = normal/auth.c; | |
1164 | common = normal/autofs.c; | |
1165 | common = normal/color.c; | |
1166 | common = normal/completion.c; | |
1167 | common = normal/datetime.c; | |
1168 | common = normal/menu.c; | |
1169 | common = normal/menu_entry.c; | |
1170 | common = normal/menu_text.c; | |
1171 | common = normal/misc.c; | |
1172 | common = normal/crypto.c; | |
1173 | common = normal/term.c; | |
1174 | common = normal/context.c; | |
1175 | common = normal/charset.c; | |
1176 | ||
1177 | common = script/main.c; | |
1178 | common = script/script.c; | |
1179 | common = script/execute.c; | |
1180 | common = script/function.c; | |
1181 | common = script/lexer.c; | |
1182 | common = script/argv.c; | |
1183 | ||
1184 | common = unidata.c; | |
1185 | common_nodist = grub_script.tab.c; | |
1186 | common_nodist = grub_script.yy.c; | |
1187 | common_nodist = grub_script.tab.h; | |
1188 | common_nodist = grub_script.yy.h; | |
297f0c2b BC |
1189 | |
1190 | extra_dist = script/yylex.l; | |
1191 | extra_dist = script/parser.y; | |
1192 | ||
1193 | cflags = '$(CFLAGS_POSIX) -Wno-error'; | |
1194 | cppflags = '$(CPPFLAGS_POSIX)'; | |
8c411768 BC |
1195 | }; |
1196 | ||
1197 | module = { | |
8c411768 | 1198 | name = part_acorn; |
8427685f | 1199 | common = partmap/acorn.c; |
8c411768 BC |
1200 | }; |
1201 | ||
1202 | module = { | |
8c411768 | 1203 | name = part_amiga; |
8427685f | 1204 | common = partmap/amiga.c; |
8c411768 BC |
1205 | }; |
1206 | ||
1207 | module = { | |
8c411768 | 1208 | name = part_apple; |
8427685f | 1209 | common = partmap/apple.c; |
8c411768 BC |
1210 | }; |
1211 | ||
1212 | module = { | |
8c411768 | 1213 | name = part_gpt; |
8427685f | 1214 | common = partmap/gpt.c; |
8c411768 BC |
1215 | }; |
1216 | ||
1217 | module = { | |
8c411768 | 1218 | name = part_msdos; |
8427685f | 1219 | common = partmap/msdos.c; |
8c411768 BC |
1220 | }; |
1221 | ||
1222 | module = { | |
8c411768 | 1223 | name = part_sun; |
8427685f | 1224 | common = partmap/sun.c; |
8c411768 BC |
1225 | }; |
1226 | ||
1227 | module = { | |
8c411768 | 1228 | name = part_bsd; |
8427685f | 1229 | common = partmap/bsdlabel.c; |
8c411768 BC |
1230 | }; |
1231 | ||
1232 | module = { | |
8c411768 | 1233 | name = part_sunpc; |
8427685f | 1234 | common = partmap/sunpc.c; |
8c411768 BC |
1235 | }; |
1236 | ||
1237 | module = { | |
8c411768 | 1238 | name = msdospart; |
8427685f | 1239 | common = parttool/msdospart.c; |
8c411768 BC |
1240 | }; |
1241 | ||
8c411768 BC |
1242 | module = { |
1243 | name = at_keyboard; | |
8427685f | 1244 | common = term/at_keyboard.c; |
911bd640 | 1245 | enable = x86; |
8c411768 BC |
1246 | }; |
1247 | ||
1248 | module = { | |
1249 | name = gfxterm; | |
8427685f | 1250 | common = term/gfxterm.c; |
911bd640 BC |
1251 | enable = emu; |
1252 | enable = x86; | |
1253 | enable = sparc64; | |
1254 | enable = powerpc; | |
8c411768 BC |
1255 | }; |
1256 | ||
1257 | module = { | |
1258 | name = serial; | |
8427685f | 1259 | common = term/serial.c; |
d84666e6 BC |
1260 | x86 = term/ns8250.c; |
1261 | ||
1262 | enable = emu; | |
911bd640 | 1263 | enable = i386; |
d84666e6 | 1264 | enable = x86_64_efi; |
f7711f5e | 1265 | emu_condition = COND_GRUB_EMU_USB; |
d84666e6 BC |
1266 | }; |
1267 | ||
1268 | module = { | |
1269 | name = sendkey; | |
1270 | i386_pc = commands/i386/pc/sendkey.c; | |
1271 | enable = i386_pc; | |
8c411768 BC |
1272 | }; |
1273 | ||
1274 | module = { | |
8c411768 | 1275 | name = terminfo; |
8427685f BC |
1276 | common = term/terminfo.c; |
1277 | common = term/tparm.c; | |
8c411768 BC |
1278 | }; |
1279 | ||
1280 | module = { | |
1281 | name = usb_keyboard; | |
8427685f | 1282 | common = term/usb_keyboard.c; |
911bd640 BC |
1283 | enable = i386_pc; |
1284 | enable = mips_yeeloong; | |
8c411768 BC |
1285 | }; |
1286 | ||
1287 | module = { | |
1288 | name = vga; | |
1426af20 | 1289 | i386_pc = video/i386/pc/vga.c; |
911bd640 | 1290 | enable = i386_pc; |
8c411768 BC |
1291 | }; |
1292 | ||
1293 | module = { | |
1294 | name = vga_text; | |
16bd6cfa VS |
1295 | common = term/i386/pc/vga_text.c; |
1296 | common = term/i386/vga_common.c; | |
1297 | enable = i386_pc; | |
1298 | enable = i386_coreboot; | |
1299 | enable = i386_multiboot; | |
8c411768 BC |
1300 | }; |
1301 | ||
297f0c2b BC |
1302 | module = { |
1303 | name = video_cirrus; | |
f7711f5e BC |
1304 | x86 = video/cirrus.c; |
1305 | enable = x86; | |
297f0c2b BC |
1306 | }; |
1307 | ||
1308 | module = { | |
1309 | name = video_bochs; | |
f7711f5e BC |
1310 | x86 = video/bochs.c; |
1311 | enable = x86; | |
297f0c2b BC |
1312 | }; |
1313 | ||
8c411768 BC |
1314 | module = { |
1315 | name = functional_test; | |
8427685f BC |
1316 | common = tests/lib/functional_test.c; |
1317 | common = tests/lib/test.c; | |
8c411768 BC |
1318 | }; |
1319 | ||
1320 | module = { | |
1321 | name = example_functional_test; | |
8427685f | 1322 | common = tests/example_functional_test.c; |
8c411768 | 1323 | cflags = -Wno-format; |
8c411768 BC |
1324 | }; |
1325 | ||
1326 | module = { | |
1327 | name = bitmap; | |
8427685f | 1328 | common = video/bitmap.c; |
911bd640 BC |
1329 | enable = emu; |
1330 | enable = x86; | |
1331 | enable = sparc64; | |
1332 | enable = powerpc; | |
8c411768 BC |
1333 | }; |
1334 | ||
1335 | module = { | |
1336 | name = bitmap_scale; | |
8427685f | 1337 | common = video/bitmap_scale.c; |
911bd640 BC |
1338 | enable = emu; |
1339 | enable = x86; | |
1340 | enable = sparc64; | |
1341 | enable = powerpc; | |
8c411768 BC |
1342 | }; |
1343 | ||
1344 | module = { | |
1345 | name = efi_gop; | |
1346 | x86_efi = video/efi_gop.c; | |
911bd640 | 1347 | enable = x86_efi; |
8c411768 BC |
1348 | }; |
1349 | ||
1350 | module = { | |
1351 | name = efi_uga; | |
1352 | x86_efi = video/efi_uga.c; | |
911bd640 | 1353 | enable = x86_efi; |
8c411768 BC |
1354 | }; |
1355 | ||
1356 | module = { | |
8c411768 | 1357 | name = jpeg; |
8427685f | 1358 | common = video/readers/jpeg.c; |
8c411768 BC |
1359 | }; |
1360 | ||
1361 | module = { | |
8c411768 | 1362 | name = png; |
8427685f | 1363 | common = video/readers/png.c; |
8c411768 BC |
1364 | }; |
1365 | ||
1366 | module = { | |
8c411768 | 1367 | name = tga; |
8427685f | 1368 | common = video/readers/tga.c; |
8c411768 BC |
1369 | }; |
1370 | ||
1371 | module = { | |
1372 | name = vbe; | |
1373 | i386_pc = video/i386/pc/vbe.c; | |
911bd640 | 1374 | enable = i386_pc; |
8c411768 BC |
1375 | }; |
1376 | ||
1377 | module = { | |
1378 | name = video_fb; | |
8427685f BC |
1379 | common = video/fb/video_fb.c; |
1380 | common = video/fb/fbblit.c; | |
1381 | common = video/fb/fbfill.c; | |
1382 | common = video/fb/fbutil.c; | |
911bd640 BC |
1383 | enable = emu; |
1384 | enable = x86; | |
1385 | enable = sparc64; | |
1386 | enable = powerpc; | |
8c411768 BC |
1387 | }; |
1388 | ||
1389 | module = { | |
1390 | name = video; | |
8427685f | 1391 | common = video/video.c; |
911bd640 BC |
1392 | enable = emu; |
1393 | enable = x86; | |
1394 | enable = sparc64; | |
1395 | enable = powerpc; | |
8c411768 BC |
1396 | }; |
1397 | ||
1398 | module = { | |
1399 | name = ieee1275_fb; | |
8427685f | 1400 | ieee1275 = video/ieee1275.c; |
911bd640 BC |
1401 | enable = powerpc; |
1402 | enable = sparc64; | |
8c411768 BC |
1403 | }; |
1404 | ||
1405 | module = { | |
1406 | name = sdl; | |
8427685f | 1407 | emu = video/emu/sdl.c; |
911bd640 | 1408 | enable = emu; |
8427685f | 1409 | condition = COND_GRUB_EMU_SDL; |
8c411768 BC |
1410 | }; |
1411 | ||
1412 | module = { | |
1413 | name = datehook; | |
8427685f | 1414 | common = hook/datehook.c; |
8c411768 | 1415 | }; |