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