]>
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 | ||
e235a228 BC |
458 | module = { |
459 | name = trig; | |
8427685f | 460 | common_nodist = trigtables.c; |
e235a228 | 461 | extra_dist = gentrigtables.c; |
e235a228 BC |
462 | }; |
463 | ||
baea1766 BC |
464 | module = { |
465 | name = cs5536; | |
f7711f5e BC |
466 | x86 = bus/cs5536.c; |
467 | enable = x86; | |
baea1766 BC |
468 | }; |
469 | ||
8c411768 BC |
470 | module = { |
471 | name = libusb; | |
8427685f | 472 | emu = bus/usb/emu/usb.c; |
911bd640 BC |
473 | enable = emu; |
474 | condition = COND_GRUB_EMU_USB; | |
8c411768 BC |
475 | }; |
476 | ||
297f0c2b BC |
477 | module = { |
478 | name = lsspd; | |
54da1feb VS |
479 | mips_loongson = commands/mips/loongson/lsspd.c; |
480 | enable = mips_loongson; | |
297f0c2b BC |
481 | }; |
482 | ||
8c411768 BC |
483 | module = { |
484 | name = usb; | |
8427685f | 485 | common = bus/usb/usb.c; |
fe942b7d VS |
486 | common = bus/usb/usbtrans.c; |
487 | common = bus/usb/usbhub.c; | |
eefe8abd | 488 | enable = usb; |
fe942b7d VS |
489 | }; |
490 | ||
491 | module = { | |
492 | name = emuusb; | |
493 | common = bus/usb/usb.c; | |
494 | condition = COND_GRUB_EMU_USB; | |
8c411768 BC |
495 | }; |
496 | ||
d84666e6 BC |
497 | module = { |
498 | name = usbserial_common; | |
499 | common = bus/usb/serial/common.c; | |
eefe8abd | 500 | enable = usb; |
d84666e6 BC |
501 | }; |
502 | ||
503 | module = { | |
504 | name = usbserial_pl2303; | |
505 | common = bus/usb/serial/pl2303.c; | |
eefe8abd | 506 | enable = usb; |
d84666e6 BC |
507 | }; |
508 | ||
509 | module = { | |
510 | name = usbserial_ftdi; | |
511 | common = bus/usb/serial/ftdi.c; | |
eefe8abd | 512 | enable = usb; |
d84666e6 BC |
513 | }; |
514 | ||
66a93674 VS |
515 | module = { |
516 | name = usbserial_usbdebug; | |
517 | common = bus/usb/serial/usbdebug_late.c; | |
518 | enable = usb; | |
519 | }; | |
520 | ||
8c411768 BC |
521 | module = { |
522 | name = uhci; | |
8427685f | 523 | common = bus/usb/uhci.c; |
f7bf6c31 | 524 | enable = pci; |
8c411768 BC |
525 | }; |
526 | ||
527 | module = { | |
528 | name = ohci; | |
8427685f | 529 | common = bus/usb/ohci.c; |
eefe8abd | 530 | enable = pci; |
8c411768 BC |
531 | }; |
532 | ||
2f82ea94 AN |
533 | module = { |
534 | name = ehci; | |
535 | common = bus/usb/ehci.c; | |
536 | enable = pci; | |
537 | }; | |
538 | ||
8c411768 BC |
539 | module = { |
540 | name = pci; | |
fe942b7d | 541 | common = bus/pci.c; |
d9b78bce | 542 | |
911bd640 | 543 | enable = i386_pc; |
911bd640 BC |
544 | enable = i386_ieee1275; |
545 | enable = i386_coreboot; | |
f0b05761 | 546 | enable = i386_multiboot; |
fe942b7d VS |
547 | }; |
548 | ||
7cd0df84 VS |
549 | module = { |
550 | name = nativedisk; | |
551 | common = commands/nativedisk.c; | |
ef9d8cd5 VS |
552 | |
553 | enable = x86; | |
554 | enable = mips_loongson; | |
555 | enable = mips_qemu_mips; | |
7cd0df84 VS |
556 | }; |
557 | ||
fe942b7d VS |
558 | module = { |
559 | name = emupci; | |
560 | common = bus/emu/pci.c; | |
561 | common = commands/lspci.c; | |
562 | ||
563 | condition = COND_GRUB_EMU_PCI; | |
8c411768 BC |
564 | }; |
565 | ||
8906c3dd VS |
566 | module = { |
567 | name = lsdev; | |
568 | common = commands/arc/lsdev.c; | |
569 | ||
570 | enable = mips_arc; | |
571 | }; | |
572 | ||
8c411768 BC |
573 | library = { |
574 | name = libgnulib.a; | |
8427685f | 575 | common = gnulib/regex.c; |
8c411768 BC |
576 | cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)'; |
577 | cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB)'; | |
8c411768 BC |
578 | }; |
579 | ||
16c7cb32 BC |
580 | module = { |
581 | name = cmostest; | |
eefe8abd VS |
582 | common = commands/i386/cmostest.c; |
583 | enable = cmos; | |
16c7cb32 BC |
584 | }; |
585 | ||
d55ffb02 VS |
586 | module = { |
587 | name = cmosdump; | |
588 | common = commands/i386/cmosdump.c; | |
589 | enable = cmos; | |
590 | }; | |
591 | ||
8c411768 BC |
592 | module = { |
593 | name = iorw; | |
8427685f | 594 | common = commands/iorw.c; |
f7711f5e | 595 | enable = x86; |
8c411768 BC |
596 | }; |
597 | ||
e6930a45 VS |
598 | module = { |
599 | name = cbtable; | |
600 | common = kern/i386/coreboot/cbtable.c; | |
601 | enable = i386_pc; | |
602 | enable = i386_efi; | |
603 | enable = i386_qemu; | |
604 | enable = i386_multiboot; | |
605 | enable = i386_ieee1275; | |
606 | enable = x86_64_efi; | |
607 | }; | |
608 | ||
cc19857a VS |
609 | module = { |
610 | name = cbtime; | |
611 | common = commands/i386/coreboot/cb_timestamps.c; | |
e6930a45 | 612 | enable = x86; |
cc19857a VS |
613 | }; |
614 | ||
615 | module = { | |
616 | name = cbls; | |
617 | common = commands/i386/coreboot/cbls.c; | |
e6930a45 | 618 | enable = x86; |
cc19857a VS |
619 | }; |
620 | ||
621 | module = { | |
622 | name = cbmemc; | |
623 | common = term/i386/coreboot/cbmemc.c; | |
e6930a45 | 624 | enable = x86; |
cc19857a VS |
625 | }; |
626 | ||
8c411768 BC |
627 | module = { |
628 | name = regexp; | |
8427685f | 629 | common = commands/regexp.c; |
8fdefb92 | 630 | common = commands/wildcard.c; |
8c411768 | 631 | ldadd = libgnulib.a; |
3c7eac44 | 632 | dependencies = libgnulib.a; |
8c411768 BC |
633 | cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)'; |
634 | cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB)'; | |
8c411768 BC |
635 | }; |
636 | ||
637 | module = { | |
638 | name = acpi; | |
639 | ||
1782b135 | 640 | common = commands/acpi.c; |
6585de4c | 641 | efi = commands/efi/acpi.c; |
8c411768 | 642 | i386_pc = commands/i386/pc/acpi.c; |
16bd6cfa VS |
643 | i386_coreboot = commands/i386/pc/acpi.c; |
644 | i386_multiboot = commands/i386/pc/acpi.c; | |
911bd640 | 645 | |
6585de4c | 646 | enable = efi; |
911bd640 | 647 | enable = i386_pc; |
16bd6cfa VS |
648 | enable = i386_coreboot; |
649 | enable = i386_multiboot; | |
8c411768 BC |
650 | }; |
651 | ||
1782b135 TG |
652 | module = { |
653 | name = lsacpi; | |
654 | ||
655 | common = commands/lsacpi.c; | |
656 | ||
9a79fcf2 | 657 | enable = efi; |
1782b135 TG |
658 | enable = i386_pc; |
659 | enable = i386_coreboot; | |
660 | enable = i386_multiboot; | |
661 | }; | |
662 | ||
105de6a7 TG |
663 | module = { |
664 | name = lsefisystab; | |
665 | ||
666 | common = commands/efi/lsefisystab.c; | |
667 | ||
9a79fcf2 | 668 | enable = efi; |
105de6a7 TG |
669 | }; |
670 | ||
671 | module = { | |
672 | name = lssal; | |
673 | ||
674 | common = commands/efi/lssal.c; | |
675 | ||
9a79fcf2 | 676 | enable = efi; |
105de6a7 TG |
677 | }; |
678 | ||
41a331a8 TG |
679 | module = { |
680 | name = lsefimmap; | |
681 | ||
682 | common = commands/efi/lsefimmap.c; | |
683 | ||
9a79fcf2 | 684 | enable = efi; |
41a331a8 TG |
685 | }; |
686 | ||
7bd29c01 VS |
687 | module = { |
688 | name = lsefi; | |
689 | common = commands/efi/lsefi.c; | |
690 | enable = efi; | |
691 | }; | |
692 | ||
c5052c81 PJ |
693 | module = { |
694 | name = efifwsetup; | |
695 | efi = commands/efi/efifwsetup.c; | |
696 | enable = efi; | |
697 | }; | |
698 | ||
8c411768 | 699 | module = { |
8c411768 | 700 | name = blocklist; |
8427685f | 701 | common = commands/blocklist.c; |
8c411768 BC |
702 | }; |
703 | ||
704 | module = { | |
8c411768 | 705 | name = boot; |
8427685f | 706 | common = commands/boot.c; |
8c411768 | 707 | i386_pc = lib/i386/pc/biosnum.c; |
fc4c4fdd VS |
708 | enable = x86; |
709 | enable = emu; | |
710 | enable = sparc64_ieee1275; | |
711 | enable = powerpc_ieee1275; | |
712 | enable = mips_arc; | |
713 | enable = ia64_efi; | |
bd744218 VS |
714 | enable = arm_efi; |
715 | enable = arm_uboot; | |
8c411768 BC |
716 | }; |
717 | ||
718 | module = { | |
8c411768 | 719 | name = cat; |
8427685f | 720 | common = commands/cat.c; |
8c411768 BC |
721 | }; |
722 | ||
723 | module = { | |
8c411768 | 724 | name = cmp; |
8427685f | 725 | common = commands/cmp.c; |
8c411768 BC |
726 | }; |
727 | ||
728 | module = { | |
8c411768 | 729 | name = configfile; |
8427685f | 730 | common = commands/configfile.c; |
8c411768 BC |
731 | }; |
732 | ||
733 | module = { | |
734 | name = cpuid; | |
354128c8 | 735 | x86 = commands/i386/cpuid.c; |
911bd640 | 736 | enable = x86; |
8c411768 BC |
737 | }; |
738 | ||
8c411768 | 739 | module = { |
8c411768 | 740 | name = date; |
8427685f | 741 | common = commands/date.c; |
8c411768 BC |
742 | }; |
743 | ||
744 | module = { | |
745 | name = drivemap; | |
746 | ||
747 | i386_pc = commands/i386/pc/drivemap.c; | |
748 | i386_pc = commands/i386/pc/drivemap_int13h.S; | |
911bd640 | 749 | enable = i386_pc; |
8c411768 BC |
750 | }; |
751 | ||
752 | module = { | |
8c411768 | 753 | name = echo; |
8427685f | 754 | common = commands/echo.c; |
8c411768 BC |
755 | }; |
756 | ||
593e430c AB |
757 | module = { |
758 | name = eval; | |
759 | common = commands/eval.c; | |
760 | }; | |
761 | ||
8c411768 | 762 | module = { |
8c411768 | 763 | name = extcmd; |
8427685f BC |
764 | common = commands/extcmd.c; |
765 | common = lib/arg.c; | |
ee74fa48 | 766 | enable = terminfomodule; |
8c411768 BC |
767 | }; |
768 | ||
769 | module = { | |
770 | name = fixvideo; | |
6585de4c VS |
771 | common = commands/efi/fixvideo.c; |
772 | enable = i386_efi; | |
773 | enable = x86_64_efi; | |
8c411768 BC |
774 | }; |
775 | ||
776 | module = { | |
8c411768 | 777 | name = gptsync; |
8427685f | 778 | common = commands/gptsync.c; |
8c411768 BC |
779 | }; |
780 | ||
781 | module = { | |
782 | name = halt; | |
8427685f | 783 | nopc = commands/halt.c; |
8c411768 | 784 | i386_pc = commands/i386/pc/halt.c; |
4df7996d | 785 | i386_pc = commands/acpihalt.c; |
2419f17a VS |
786 | i386_coreboot = commands/acpihalt.c; |
787 | i386_multiboot = commands/acpihalt.c; | |
c18271ed | 788 | i386_efi = commands/acpihalt.c; |
789 | x86_64_efi = commands/acpihalt.c; | |
afba9f98 VS |
790 | i386_multiboot = lib/i386/halt.c; |
791 | i386_coreboot = lib/i386/halt.c; | |
792 | i386_qemu = lib/i386/halt.c; | |
6585de4c | 793 | efi = lib/efi/halt.c; |
afba9f98 VS |
794 | ieee1275 = lib/ieee1275/halt.c; |
795 | emu = lib/emu/halt.c; | |
389b31cd | 796 | uboot = lib/uboot/halt.c; |
8c411768 BC |
797 | }; |
798 | ||
544c2487 VS |
799 | module = { |
800 | name = reboot; | |
801 | i386 = lib/i386/reboot.c; | |
802 | i386 = lib/i386/reboot_trampoline.S; | |
803 | ia64_efi = lib/efi/reboot.c; | |
804 | x86_64_efi = lib/efi/reboot.c; | |
389b31cd | 805 | arm_efi = lib/efi/reboot.c; |
544c2487 VS |
806 | powerpc_ieee1275 = lib/ieee1275/reboot.c; |
807 | sparc64_ieee1275 = lib/ieee1275/reboot.c; | |
808 | mips_arc = lib/mips/arc/reboot.c; | |
809 | mips_loongson = lib/mips/loongson/reboot.c; | |
810 | mips_qemu_mips = lib/mips/qemu_mips/reboot.c; | |
389b31cd | 811 | uboot = lib/uboot/reboot.c; |
544c2487 VS |
812 | common = commands/reboot.c; |
813 | }; | |
814 | ||
8c411768 | 815 | module = { |
8c411768 | 816 | name = hashsum; |
8427685f | 817 | common = commands/hashsum.c; |
8c411768 BC |
818 | }; |
819 | ||
5e3b8dcb VS |
820 | module = { |
821 | name = verify; | |
822 | common = commands/verify.c; | |
823 | cflags = '$(CFLAGS_POSIX)'; | |
824 | cppflags = '-I$(srcdir)/lib/posix_wrap'; | |
825 | }; | |
826 | ||
8c411768 BC |
827 | module = { |
828 | name = hdparm; | |
8427685f BC |
829 | common = commands/hdparm.c; |
830 | common = lib/hexdump.c; | |
eefe8abd | 831 | enable = pci; |
9a79fcf2 | 832 | enable = mips_qemu_mips; |
8c411768 BC |
833 | }; |
834 | ||
835 | module = { | |
8c411768 | 836 | name = help; |
8427685f | 837 | common = commands/help.c; |
8c411768 BC |
838 | }; |
839 | ||
840 | module = { | |
8c411768 | 841 | name = hexdump; |
8427685f BC |
842 | common = commands/hexdump.c; |
843 | common = lib/hexdump.c; | |
8c411768 BC |
844 | }; |
845 | ||
846 | module = { | |
8c411768 | 847 | name = keystatus; |
8427685f | 848 | common = commands/keystatus.c; |
8c411768 BC |
849 | }; |
850 | ||
851 | module = { | |
852 | name = loadbios; | |
6585de4c VS |
853 | common = commands/efi/loadbios.c; |
854 | enable = i386_efi; | |
855 | enable = x86_64_efi; | |
8c411768 BC |
856 | }; |
857 | ||
858 | module = { | |
8c411768 | 859 | name = loadenv; |
8427685f BC |
860 | common = commands/loadenv.c; |
861 | common = lib/envblk.c; | |
8c411768 BC |
862 | }; |
863 | ||
864 | module = { | |
8c411768 | 865 | name = ls; |
8427685f | 866 | common = commands/ls.c; |
8c411768 BC |
867 | }; |
868 | ||
869 | module = { | |
8c411768 | 870 | name = lsmmap; |
8427685f | 871 | common = commands/lsmmap.c; |
8c411768 BC |
872 | }; |
873 | ||
874 | module = { | |
875 | name = lspci; | |
8427685f | 876 | common = commands/lspci.c; |
8c411768 | 877 | |
eefe8abd | 878 | enable = pci; |
8c411768 BC |
879 | }; |
880 | ||
881 | module = { | |
8c411768 | 882 | name = memrw; |
8427685f | 883 | common = commands/memrw.c; |
8c411768 BC |
884 | }; |
885 | ||
886 | module = { | |
8c411768 | 887 | name = minicmd; |
8427685f | 888 | common = commands/minicmd.c; |
8c411768 BC |
889 | }; |
890 | ||
891 | module = { | |
8c411768 | 892 | name = parttool; |
8427685f | 893 | common = commands/parttool.c; |
8c411768 BC |
894 | }; |
895 | ||
896 | module = { | |
8c411768 | 897 | name = password; |
8427685f | 898 | common = commands/password.c; |
8c411768 BC |
899 | }; |
900 | ||
901 | module = { | |
8c411768 | 902 | name = password_pbkdf2; |
8427685f | 903 | common = commands/password_pbkdf2.c; |
8c411768 BC |
904 | }; |
905 | ||
906 | module = { | |
907 | name = play; | |
f7711f5e BC |
908 | x86 = commands/i386/pc/play.c; |
909 | enable = x86; | |
8c411768 BC |
910 | }; |
911 | ||
b78d6c32 VS |
912 | module = { |
913 | name = spkmodem; | |
914 | x86 = term/spkmodem.c; | |
915 | enable = x86; | |
916 | }; | |
917 | ||
918 | module = { | |
919 | name = morse; | |
920 | x86 = term/morse.c; | |
921 | enable = x86; | |
922 | }; | |
923 | ||
8c411768 | 924 | module = { |
8c411768 | 925 | name = probe; |
8427685f | 926 | common = commands/probe.c; |
8c411768 BC |
927 | }; |
928 | ||
8c411768 | 929 | module = { |
8c411768 | 930 | name = read; |
8427685f | 931 | common = commands/read.c; |
8c411768 BC |
932 | }; |
933 | ||
8c411768 | 934 | module = { |
8c411768 | 935 | name = search; |
8427685f | 936 | common = commands/search_wrap.c; |
610c1efd | 937 | extra_dist = commands/search.c; |
8c411768 BC |
938 | }; |
939 | ||
940 | module = { | |
8c411768 | 941 | name = search_fs_file; |
8427685f | 942 | common = commands/search_file.c; |
8c411768 BC |
943 | }; |
944 | ||
945 | module = { | |
8c411768 | 946 | name = search_fs_uuid; |
8427685f | 947 | common = commands/search_uuid.c; |
8c411768 BC |
948 | }; |
949 | ||
950 | module = { | |
8c411768 | 951 | name = search_label; |
8427685f | 952 | common = commands/search_label.c; |
8c411768 BC |
953 | }; |
954 | ||
955 | module = { | |
956 | name = setpci; | |
8427685f | 957 | common = commands/setpci.c; |
30545b85 | 958 | enable = pci; |
8c411768 BC |
959 | }; |
960 | ||
7d462559 VS |
961 | module = { |
962 | name = pcidump; | |
963 | common = commands/pcidump.c; | |
964 | enable = pci; | |
965 | }; | |
966 | ||
8c411768 | 967 | module = { |
8c411768 | 968 | name = sleep; |
8427685f | 969 | common = commands/sleep.c; |
8c411768 BC |
970 | }; |
971 | ||
972 | module = { | |
973 | name = suspend; | |
8427685f | 974 | ieee1275 = commands/ieee1275/suspend.c; |
911bd640 BC |
975 | enable = i386_ieee1275; |
976 | enable = powerpc_ieee1275; | |
8c411768 BC |
977 | }; |
978 | ||
61c42af0 VS |
979 | module = { |
980 | name = escc; | |
981 | ieee1275 = term/ieee1275/escc.c; | |
982 | enable = powerpc_ieee1275; | |
983 | }; | |
984 | ||
8c411768 | 985 | module = { |
8c411768 | 986 | name = terminal; |
8427685f | 987 | common = commands/terminal.c; |
8c411768 BC |
988 | }; |
989 | ||
990 | module = { | |
8c411768 | 991 | name = test; |
8427685f | 992 | common = commands/test.c; |
8c411768 BC |
993 | }; |
994 | ||
995 | module = { | |
8c411768 | 996 | name = true; |
8427685f | 997 | common = commands/true.c; |
8c411768 BC |
998 | }; |
999 | ||
1000 | module = { | |
1001 | name = usbtest; | |
8427685f | 1002 | common = commands/usbtest.c; |
eefe8abd | 1003 | enable = usb; |
8c411768 BC |
1004 | }; |
1005 | ||
1006 | module = { | |
540e2fe1 VS |
1007 | name = videoinfo; |
1008 | common = commands/videoinfo.c; | |
8c411768 BC |
1009 | }; |
1010 | ||
1011 | module = { | |
8c411768 | 1012 | name = videotest; |
8427685f | 1013 | common = commands/videotest.c; |
8c411768 BC |
1014 | }; |
1015 | ||
1016 | module = { | |
8c411768 | 1017 | name = xnu_uuid; |
8427685f | 1018 | common = commands/xnu_uuid.c; |
8c411768 BC |
1019 | }; |
1020 | ||
1021 | module = { | |
8c411768 | 1022 | name = dm_nv; |
8427685f | 1023 | common = disk/dmraid_nvidia.c; |
8c411768 BC |
1024 | }; |
1025 | ||
1026 | module = { | |
8c411768 | 1027 | name = loopback; |
8427685f | 1028 | common = disk/loopback.c; |
8c411768 BC |
1029 | }; |
1030 | ||
8585e54b VS |
1031 | module = { |
1032 | name = cryptodisk; | |
1033 | common = disk/cryptodisk.c; | |
1034 | }; | |
1035 | ||
7217f315 MG |
1036 | module = { |
1037 | name = luks; | |
1038 | common = disk/luks.c; | |
1039 | common = disk/AFSplitter.c; | |
1040 | }; | |
1041 | ||
1a1f408f VS |
1042 | module = { |
1043 | name = geli; | |
1044 | common = disk/geli.c; | |
1045 | }; | |
1046 | ||
8c411768 | 1047 | module = { |
8c411768 | 1048 | name = lvm; |
8427685f | 1049 | common = disk/lvm.c; |
8c411768 BC |
1050 | }; |
1051 | ||
076e7c0f VS |
1052 | module = { |
1053 | name = ldm; | |
1054 | common = disk/ldm.c; | |
1055 | }; | |
1056 | ||
8c411768 | 1057 | module = { |
1e8d555b | 1058 | name = mdraid09; |
8427685f | 1059 | common = disk/mdraid_linux.c; |
8c411768 BC |
1060 | }; |
1061 | ||
22e6a774 VS |
1062 | module = { |
1063 | name = mdraid09_be; | |
1064 | common = disk/mdraid_linux_be.c; | |
1065 | }; | |
1066 | ||
1e8d555b VS |
1067 | module = { |
1068 | name = mdraid1x; | |
1069 | common = disk/mdraid1x_linux.c; | |
1070 | }; | |
1071 | ||
8c411768 | 1072 | module = { |
076e7c0f VS |
1073 | name = diskfilter; |
1074 | common = disk/diskfilter.c; | |
8c411768 BC |
1075 | }; |
1076 | ||
1077 | module = { | |
8c411768 | 1078 | name = raid5rec; |
8427685f | 1079 | common = disk/raid5_recover.c; |
8c411768 BC |
1080 | }; |
1081 | ||
1082 | module = { | |
8c411768 | 1083 | name = raid6rec; |
8427685f | 1084 | common = disk/raid6_recover.c; |
8c411768 BC |
1085 | }; |
1086 | ||
1087 | module = { | |
8c411768 | 1088 | name = scsi; |
8427685f | 1089 | common = disk/scsi.c; |
8c411768 BC |
1090 | }; |
1091 | ||
1092 | module = { | |
8c411768 | 1093 | name = memdisk; |
8427685f | 1094 | common = disk/memdisk.c; |
8c411768 BC |
1095 | }; |
1096 | ||
1097 | module = { | |
1098 | name = ata; | |
8427685f | 1099 | common = disk/ata.c; |
eefe8abd | 1100 | enable = pci; |
a228ec10 | 1101 | enable = mips_qemu_mips; |
8c411768 BC |
1102 | }; |
1103 | ||
1104 | module = { | |
de2690be VS |
1105 | name = ahci; |
1106 | common = disk/ahci.c; | |
eefe8abd | 1107 | enable = pci; |
8c411768 BC |
1108 | }; |
1109 | ||
de2690be VS |
1110 | module = { |
1111 | name = pata; | |
1112 | common = disk/pata.c; | |
eefe8abd | 1113 | enable = pci; |
a228ec10 | 1114 | enable = mips_qemu_mips; |
8c411768 BC |
1115 | }; |
1116 | ||
1117 | module = { | |
1118 | name = biosdisk; | |
1119 | i386_pc = disk/i386/pc/biosdisk.c; | |
911bd640 | 1120 | enable = i386_pc; |
8c411768 BC |
1121 | }; |
1122 | ||
1123 | module = { | |
1124 | name = usbms; | |
8427685f | 1125 | common = disk/usbms.c; |
eefe8abd | 1126 | enable = usb; |
8c411768 BC |
1127 | }; |
1128 | ||
1129 | module = { | |
1130 | name = nand; | |
8427685f | 1131 | ieee1275 = disk/ieee1275/nand.c; |
911bd640 | 1132 | enable = i386_ieee1275; |
8c411768 BC |
1133 | }; |
1134 | ||
1135 | module = { | |
1136 | name = efiemu; | |
16bd6cfa VS |
1137 | common = efiemu/main.c; |
1138 | common = efiemu/i386/loadcore32.c; | |
1139 | common = efiemu/i386/loadcore64.c; | |
8c411768 | 1140 | i386_pc = efiemu/i386/pc/cfgtables.c; |
8218d8b6 VS |
1141 | i386_coreboot = efiemu/i386/pc/cfgtables.c; |
1142 | i386_multiboot = efiemu/i386/pc/cfgtables.c; | |
1143 | i386_ieee1275 = efiemu/i386/nocfgtables.c; | |
6f8157cb | 1144 | i386_qemu = efiemu/i386/nocfgtables.c; |
16bd6cfa VS |
1145 | common = efiemu/mm.c; |
1146 | common = efiemu/loadcore_common.c; | |
1147 | common = efiemu/symbols.c; | |
1148 | common = efiemu/loadcore32.c; | |
1149 | common = efiemu/loadcore64.c; | |
1150 | common = efiemu/prepare32.c; | |
1151 | common = efiemu/prepare64.c; | |
1152 | common = efiemu/pnvram.c; | |
1153 | common = efiemu/i386/coredetect.c; | |
a60f6ee1 BC |
1154 | |
1155 | extra_dist = efiemu/prepare.c; | |
1156 | extra_dist = efiemu/loadcore.c; | |
1157 | extra_dist = efiemu/runtime/efiemu.S; | |
1158 | extra_dist = efiemu/runtime/efiemu.c; | |
911bd640 BC |
1159 | |
1160 | enable = i386_pc; | |
8218d8b6 | 1161 | enable = i386_coreboot; |
16bd6cfa VS |
1162 | enable = i386_ieee1275; |
1163 | enable = i386_multiboot; | |
6f8157cb | 1164 | enable = i386_qemu; |
8c411768 BC |
1165 | }; |
1166 | ||
1167 | module = { | |
1168 | name = font; | |
8427685f BC |
1169 | common = font/font.c; |
1170 | common = font/font_cmd.c; | |
eefe8abd | 1171 | enable = videomodules; |
8c411768 BC |
1172 | }; |
1173 | ||
ce50dbd7 VS |
1174 | module = { |
1175 | name = procfs; | |
1176 | common = fs/proc.c; | |
1177 | }; | |
1178 | ||
8c411768 | 1179 | module = { |
8c411768 | 1180 | name = affs; |
8427685f | 1181 | common = fs/affs.c; |
8c411768 BC |
1182 | }; |
1183 | ||
1184 | module = { | |
8c411768 | 1185 | name = afs; |
8427685f | 1186 | common = fs/afs.c; |
8c411768 BC |
1187 | }; |
1188 | ||
1189 | module = { | |
5825b379 VS |
1190 | name = bfs; |
1191 | common = fs/bfs.c; | |
8c411768 BC |
1192 | }; |
1193 | ||
1194 | module = { | |
4dfbc574 RM |
1195 | name = btrfs; |
1196 | common = fs/btrfs.c; | |
3836e89d | 1197 | common = lib/crc.c; |
095f077e SJ |
1198 | cflags = '$(CFLAGS_POSIX) -Wno-undef'; |
1199 | cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H'; | |
8c411768 BC |
1200 | }; |
1201 | ||
5027af38 VS |
1202 | module = { |
1203 | name = archelp; | |
1204 | common = fs/archelp.c; | |
1205 | }; | |
1206 | ||
1207 | module = { | |
1208 | name = cbfs; | |
1209 | common = fs/cbfs.c; | |
1210 | }; | |
1211 | ||
8c411768 | 1212 | module = { |
8c411768 | 1213 | name = cpio; |
8427685f | 1214 | common = fs/cpio.c; |
8c411768 BC |
1215 | }; |
1216 | ||
4dfbc574 | 1217 | module = { |
a1a8b1b9 VS |
1218 | name = cpio_be; |
1219 | common = fs/cpio_be.c; | |
4dfbc574 RM |
1220 | }; |
1221 | ||
8c411768 | 1222 | module = { |
a1a8b1b9 VS |
1223 | name = newc; |
1224 | common = fs/newc.c; | |
1225 | }; | |
1226 | ||
1227 | module = { | |
1228 | name = odc; | |
1229 | common = fs/odc.c; | |
8c411768 BC |
1230 | }; |
1231 | ||
1232 | module = { | |
8c411768 | 1233 | name = ext2; |
8427685f | 1234 | common = fs/ext2.c; |
8c411768 BC |
1235 | }; |
1236 | ||
1237 | module = { | |
8c411768 | 1238 | name = fat; |
8427685f | 1239 | common = fs/fat.c; |
8c411768 BC |
1240 | }; |
1241 | ||
48fe18dc VS |
1242 | module = { |
1243 | name = exfat; | |
1244 | common = fs/exfat.c; | |
1245 | }; | |
1246 | ||
8c411768 | 1247 | module = { |
8c411768 | 1248 | name = fshelp; |
8427685f | 1249 | common = fs/fshelp.c; |
8c411768 BC |
1250 | }; |
1251 | ||
1252 | module = { | |
8c411768 | 1253 | name = hfs; |
8427685f | 1254 | common = fs/hfs.c; |
8c411768 BC |
1255 | }; |
1256 | ||
1257 | module = { | |
8c411768 | 1258 | name = hfsplus; |
8427685f | 1259 | common = fs/hfsplus.c; |
8c411768 BC |
1260 | }; |
1261 | ||
8098f655 VS |
1262 | module = { |
1263 | name = hfspluscomp; | |
1264 | common = fs/hfspluscomp.c; | |
1265 | }; | |
1266 | ||
8c411768 | 1267 | module = { |
8c411768 | 1268 | name = iso9660; |
8427685f | 1269 | common = fs/iso9660.c; |
8c411768 BC |
1270 | }; |
1271 | ||
1272 | module = { | |
8c411768 | 1273 | name = jfs; |
8427685f | 1274 | common = fs/jfs.c; |
8c411768 BC |
1275 | }; |
1276 | ||
1277 | module = { | |
8c411768 | 1278 | name = minix; |
8427685f | 1279 | common = fs/minix.c; |
8c411768 BC |
1280 | }; |
1281 | ||
b4a0c915 VS |
1282 | module = { |
1283 | name = minix2; | |
1284 | common = fs/minix2.c; | |
1285 | }; | |
1286 | ||
3dd3dd33 FZ |
1287 | module = { |
1288 | name = minix3; | |
1289 | common = fs/minix3.c; | |
1290 | }; | |
1291 | ||
ac66b453 VS |
1292 | module = { |
1293 | name = minix_be; | |
1294 | common = fs/minix_be.c; | |
1295 | }; | |
1296 | ||
1297 | module = { | |
1298 | name = minix2_be; | |
1299 | common = fs/minix2_be.c; | |
1300 | }; | |
1301 | ||
1302 | module = { | |
1303 | name = minix3_be; | |
1304 | common = fs/minix3_be.c; | |
1305 | }; | |
1306 | ||
8c411768 | 1307 | module = { |
8c411768 | 1308 | name = nilfs2; |
8427685f | 1309 | common = fs/nilfs2.c; |
8c411768 BC |
1310 | }; |
1311 | ||
1312 | module = { | |
8c411768 | 1313 | name = ntfs; |
8427685f | 1314 | common = fs/ntfs.c; |
8c411768 BC |
1315 | }; |
1316 | ||
1317 | module = { | |
8c411768 | 1318 | name = ntfscomp; |
8427685f | 1319 | common = fs/ntfscomp.c; |
8c411768 BC |
1320 | }; |
1321 | ||
1322 | module = { | |
8c411768 | 1323 | name = reiserfs; |
8427685f | 1324 | common = fs/reiserfs.c; |
8c411768 BC |
1325 | }; |
1326 | ||
29184e93 VS |
1327 | module = { |
1328 | name = romfs; | |
1329 | common = fs/romfs.c; | |
1330 | }; | |
1331 | ||
8c411768 | 1332 | module = { |
8c411768 | 1333 | name = sfs; |
8427685f | 1334 | common = fs/sfs.c; |
8c411768 BC |
1335 | }; |
1336 | ||
332fa368 VS |
1337 | module = { |
1338 | name = squash4; | |
1339 | common = fs/squash4.c; | |
c029da8a VS |
1340 | cflags = '$(CFLAGS_POSIX) -Wno-undef'; |
1341 | cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H'; | |
332fa368 VS |
1342 | }; |
1343 | ||
8c411768 | 1344 | module = { |
8c411768 | 1345 | name = tar; |
8427685f | 1346 | common = fs/tar.c; |
8c411768 BC |
1347 | }; |
1348 | ||
1349 | module = { | |
8c411768 | 1350 | name = udf; |
8427685f | 1351 | common = fs/udf.c; |
8c411768 BC |
1352 | }; |
1353 | ||
1354 | module = { | |
8c411768 | 1355 | name = ufs1; |
8427685f | 1356 | common = fs/ufs.c; |
8c411768 BC |
1357 | }; |
1358 | ||
d9c48c7b VS |
1359 | module = { |
1360 | name = ufs1_be; | |
1361 | common = fs/ufs_be.c; | |
1362 | }; | |
1363 | ||
8c411768 | 1364 | module = { |
8c411768 | 1365 | name = ufs2; |
8427685f | 1366 | common = fs/ufs2.c; |
8c411768 BC |
1367 | }; |
1368 | ||
1369 | module = { | |
8c411768 | 1370 | name = xfs; |
8427685f | 1371 | common = fs/xfs.c; |
8c411768 BC |
1372 | }; |
1373 | ||
bf78d5b2 RM |
1374 | module = { |
1375 | name = zfs; | |
1376 | common = fs/zfs/zfs.c; | |
1377 | common = fs/zfs/zfs_lzjb.c; | |
038016f4 | 1378 | common = fs/zfs/zfs_lz4.c; |
bf78d5b2 RM |
1379 | common = fs/zfs/zfs_sha256.c; |
1380 | common = fs/zfs/zfs_fletcher.c; | |
1381 | }; | |
1382 | ||
f003a8c5 VS |
1383 | module = { |
1384 | name = zfscrypt; | |
1385 | common = fs/zfs/zfscrypt.c; | |
1386 | }; | |
1387 | ||
bf78d5b2 RM |
1388 | module = { |
1389 | name = zfsinfo; | |
1390 | common = fs/zfs/zfsinfo.c; | |
1391 | }; | |
1392 | ||
8c411768 BC |
1393 | module = { |
1394 | name = pxe; | |
8e60fc8f | 1395 | i386_pc = net/drivers/i386/pc/pxe.c; |
911bd640 | 1396 | enable = i386_pc; |
8c411768 BC |
1397 | }; |
1398 | ||
1399 | module = { | |
1400 | name = gettext; | |
8427685f | 1401 | common = gettext/gettext.c; |
8c411768 BC |
1402 | }; |
1403 | ||
1404 | module = { | |
8c411768 | 1405 | name = gfxmenu; |
8427685f BC |
1406 | common = gfxmenu/gfxmenu.c; |
1407 | common = gfxmenu/model.c; | |
1408 | common = gfxmenu/view.c; | |
1409 | common = gfxmenu/font.c; | |
1410 | common = gfxmenu/icon_manager.c; | |
1411 | common = gfxmenu/theme_loader.c; | |
1412 | common = gfxmenu/widget-box.c; | |
1413 | common = gfxmenu/gui_canvas.c; | |
1414 | common = gfxmenu/gui_circular_progress.c; | |
1415 | common = gfxmenu/gui_box.c; | |
1416 | common = gfxmenu/gui_label.c; | |
1417 | common = gfxmenu/gui_list.c; | |
1418 | common = gfxmenu/gui_image.c; | |
1419 | common = gfxmenu/gui_progress_bar.c; | |
1420 | common = gfxmenu/gui_util.c; | |
1421 | common = gfxmenu/gui_string_util.c; | |
8c411768 BC |
1422 | }; |
1423 | ||
1424 | module = { | |
8c411768 | 1425 | name = hello; |
8427685f | 1426 | common = hello/hello.c; |
8c411768 BC |
1427 | }; |
1428 | ||
1429 | module = { | |
8c411768 | 1430 | name = gzio; |
8427685f | 1431 | common = io/gzio.c; |
8c411768 BC |
1432 | }; |
1433 | ||
1434 | module = { | |
1435 | name = bufio; | |
8427685f | 1436 | common = io/bufio.c; |
eefe8abd | 1437 | enable = videomodules; |
8c411768 BC |
1438 | }; |
1439 | ||
1440 | module = { | |
8c411768 | 1441 | name = elf; |
8427685f | 1442 | common = kern/elf.c; |
18866643 AB |
1443 | |
1444 | extra_dist = kern/elfXX.c; | |
8c411768 BC |
1445 | }; |
1446 | ||
8c411768 | 1447 | module = { |
8c411768 | 1448 | name = crypto; |
8427685f | 1449 | common = lib/crypto.c; |
610c1efd BC |
1450 | |
1451 | extra_dist = lib/libgcrypt-grub/cipher/crypto.lst; | |
8c411768 BC |
1452 | }; |
1453 | ||
8c411768 | 1454 | module = { |
8c411768 | 1455 | name = pbkdf2; |
8427685f | 1456 | common = lib/pbkdf2.c; |
8c411768 BC |
1457 | }; |
1458 | ||
1459 | module = { | |
1460 | name = relocator; | |
16bd6cfa VS |
1461 | common = lib/relocator.c; |
1462 | x86 = lib/i386/relocator16.S; | |
1463 | x86 = lib/i386/relocator32.S; | |
1464 | x86 = lib/i386/relocator64.S; | |
1465 | i386 = lib/i386/relocator_asm.S; | |
1466 | x86_64 = lib/x86_64/relocator_asm.S; | |
8c411768 | 1467 | x86 = lib/i386/relocator.c; |
16bd6cfa | 1468 | ieee1275 = lib/ieee1275/relocator.c; |
6585de4c | 1469 | efi = lib/efi/relocator.c; |
16bd6cfa VS |
1470 | mips = lib/mips/relocator_asm.S; |
1471 | mips = lib/mips/relocator.c; | |
1472 | powerpc = lib/powerpc/relocator_asm.S; | |
1473 | powerpc = lib/powerpc/relocator.c; | |
1474 | ||
6556eba9 BC |
1475 | extra_dist = lib/i386/relocator_common.S; |
1476 | extra_dist = kern/powerpc/cache_flush.S; | |
1477 | ||
911bd640 | 1478 | enable = mips; |
16bd6cfa | 1479 | enable = powerpc; |
911bd640 | 1480 | enable = x86; |
8c411768 BC |
1481 | }; |
1482 | ||
1483 | module = { | |
1484 | name = datetime; | |
eefe8abd | 1485 | cmos = lib/cmos_datetime.c; |
6585de4c | 1486 | efi = lib/efi/datetime.c; |
389b31cd | 1487 | uboot = lib/uboot/datetime.c; |
8c411768 BC |
1488 | sparc64_ieee1275 = lib/ieee1275/datetime.c; |
1489 | powerpc_ieee1275 = lib/ieee1275/datetime.c; | |
a07a81b3 VS |
1490 | sparc64_ieee1275 = lib/ieee1275/cmos.c; |
1491 | powerpc_ieee1275 = lib/ieee1275/cmos.c; | |
1492 | ||
8906c3dd | 1493 | mips_arc = lib/arc/datetime.c; |
eefe8abd | 1494 | enable = noemu; |
8c411768 BC |
1495 | }; |
1496 | ||
1497 | module = { | |
1498 | name = setjmp; | |
8427685f | 1499 | common = lib/setjmp.S; |
2b6c0084 BC |
1500 | extra_dist = lib/i386/setjmp.S; |
1501 | extra_dist = lib/mips/setjmp.S; | |
1502 | extra_dist = lib/x86_64/setjmp.S; | |
1503 | extra_dist = lib/sparc64/setjmp.S; | |
1504 | extra_dist = lib/powerpc/setjmp.S; | |
9a79fcf2 | 1505 | extra_dist = lib/ia64/setjmp.S; |
2702b4e4 | 1506 | extra_dist = lib/ia64/longjmp.S; |
389b31cd | 1507 | extra_dist = lib/arm/setjmp.S; |
8c411768 BC |
1508 | }; |
1509 | ||
1510 | module = { | |
1511 | name = aout; | |
8427685f | 1512 | common = loader/aout.c; |
16bd6cfa | 1513 | enable = x86; |
8c411768 BC |
1514 | }; |
1515 | ||
1516 | module = { | |
1517 | name = bsd; | |
16bd6cfa VS |
1518 | x86 = loader/i386/bsd.c; |
1519 | x86 = loader/i386/bsd32.c; | |
1520 | x86 = loader/i386/bsd64.c; | |
610c1efd BC |
1521 | |
1522 | extra_dist = loader/i386/bsdXX.c; | |
1523 | extra_dist = loader/i386/bsd_pagetable.c; | |
1524 | ||
16bd6cfa | 1525 | enable = x86; |
8c411768 BC |
1526 | }; |
1527 | ||
70e8145a VS |
1528 | module = { |
1529 | name = plan9; | |
1530 | i386_pc = loader/i386/pc/plan9.c; | |
1531 | enable = i386_pc; | |
1532 | }; | |
1533 | ||
1534 | ||
8c411768 BC |
1535 | module = { |
1536 | name = linux16; | |
0789b672 | 1537 | common = loader/i386/pc/linux.c; |
92750e4c | 1538 | common = loader/linux.c; |
0789b672 VS |
1539 | common = lib/cmdline.c; |
1540 | enable = x86; | |
8c411768 BC |
1541 | }; |
1542 | ||
16bd6cfa VS |
1543 | module = { |
1544 | name = ntldr; | |
1545 | i386_pc = loader/i386/pc/ntldr.c; | |
1546 | enable = i386_pc; | |
1547 | }; | |
1548 | ||
b28fd807 VS |
1549 | module = { |
1550 | name = freedos; | |
1551 | i386_pc = loader/i386/pc/freedos.c; | |
1552 | enable = i386_pc; | |
1553 | }; | |
1554 | ||
0a96117d VS |
1555 | module = { |
1556 | name = pxechain; | |
1557 | i386_pc = loader/i386/pc/pxechainloader.c; | |
1558 | enable = i386_pc; | |
1559 | }; | |
1560 | ||
8c411768 BC |
1561 | module = { |
1562 | name = multiboot2; | |
1563 | cppflags = "-DGRUB_USE_MULTIBOOT2"; | |
1564 | ||
8427685f BC |
1565 | common = loader/multiboot.c; |
1566 | common = loader/multiboot_mbi2.c; | |
911bd640 BC |
1567 | enable = x86; |
1568 | enable = mips; | |
8c411768 BC |
1569 | }; |
1570 | ||
1571 | module = { | |
1572 | name = multiboot; | |
8427685f BC |
1573 | common = loader/multiboot.c; |
1574 | x86 = loader/i386/multiboot_mbi.c; | |
a60f6ee1 | 1575 | extra_dist = loader/multiboot_elfxx.c; |
911bd640 | 1576 | enable = x86; |
8c411768 BC |
1577 | }; |
1578 | ||
1579 | module = { | |
1580 | name = linux; | |
16bd6cfa | 1581 | x86 = loader/i386/linux.c; |
e31bb619 | 1582 | i386_pc = lib/i386/pc/vesa_modes_table.c; |
8c411768 BC |
1583 | mips = loader/mips/linux.c; |
1584 | powerpc_ieee1275 = loader/powerpc/ieee1275/linux.c; | |
1585 | sparc64_ieee1275 = loader/sparc64/ieee1275/linux.c; | |
6585de4c | 1586 | ia64_efi = loader/ia64/efi/linux.c; |
389b31cd | 1587 | arm = loader/arm/linux.c; |
c6a8472b | 1588 | arm = lib/fdt.c; |
92750e4c | 1589 | common = loader/linux.c; |
25953e10 | 1590 | common = lib/cmdline.c; |
8427685f | 1591 | enable = noemu; |
8c411768 BC |
1592 | }; |
1593 | ||
1594 | module = { | |
1595 | name = xnu; | |
16bd6cfa VS |
1596 | x86 = loader/xnu_resume.c; |
1597 | x86 = loader/i386/xnu.c; | |
1598 | x86 = loader/macho32.c; | |
1599 | x86 = loader/macho64.c; | |
1600 | x86 = loader/macho.c; | |
1601 | x86 = loader/xnu.c; | |
99ce1597 | 1602 | x86 = loader/lzss.c; |
a60f6ee1 BC |
1603 | |
1604 | extra_dist = loader/machoXX.c; | |
16bd6cfa | 1605 | enable = x86; |
8c411768 BC |
1606 | }; |
1607 | ||
1608 | module = { | |
1609 | name = appleldr; | |
6585de4c VS |
1610 | common = loader/efi/appleloader.c; |
1611 | enable = i386_efi; | |
1612 | enable = x86_64_efi; | |
8c411768 BC |
1613 | }; |
1614 | ||
1615 | module = { | |
1616 | name = chain; | |
6585de4c | 1617 | efi = loader/efi/chainloader.c; |
8c411768 | 1618 | i386_pc = loader/i386/pc/chainloader.c; |
8d5d8444 | 1619 | i386_coreboot = loader/i386/coreboot/chainloader.c; |
911bd640 | 1620 | enable = i386_pc; |
ba7df45e | 1621 | enable = i386_coreboot; |
6585de4c | 1622 | enable = efi; |
8c411768 BC |
1623 | }; |
1624 | ||
1625 | module = { | |
1626 | name = mmap; | |
eefe8abd VS |
1627 | common = mmap/mmap.c; |
1628 | x86 = mmap/i386/uppermem.c; | |
1629 | x86 = mmap/i386/mmap.c; | |
1630 | ||
8c411768 BC |
1631 | i386_pc = mmap/i386/pc/mmap.c; |
1632 | i386_pc = mmap/i386/pc/mmap_helper.S; | |
1633 | ||
6585de4c | 1634 | efi = mmap/efi/mmap.c; |
8c411768 | 1635 | |
8906c3dd | 1636 | mips = mmap/mips/uppermem.c; |
911bd640 BC |
1637 | |
1638 | enable = x86; | |
c18271ed | 1639 | enable = ia64_efi; |
389b31cd | 1640 | enable = arm_efi; |
f440c33f | 1641 | enable = mips; |
8c411768 BC |
1642 | }; |
1643 | ||
1644 | module = { | |
8c411768 | 1645 | name = normal; |
8427685f BC |
1646 | common = normal/main.c; |
1647 | common = normal/cmdline.c; | |
1648 | common = normal/dyncmd.c; | |
1649 | common = normal/auth.c; | |
1650 | common = normal/autofs.c; | |
1651 | common = normal/color.c; | |
1652 | common = normal/completion.c; | |
1653 | common = normal/datetime.c; | |
1654 | common = normal/menu.c; | |
1655 | common = normal/menu_entry.c; | |
1656 | common = normal/menu_text.c; | |
1657 | common = normal/misc.c; | |
1658 | common = normal/crypto.c; | |
1659 | common = normal/term.c; | |
1660 | common = normal/context.c; | |
1661 | common = normal/charset.c; | |
1662 | ||
1663 | common = script/main.c; | |
1664 | common = script/script.c; | |
1665 | common = script/execute.c; | |
1666 | common = script/function.c; | |
1667 | common = script/lexer.c; | |
1668 | common = script/argv.c; | |
1669 | ||
9284756e BC |
1670 | common = commands/menuentry.c; |
1671 | ||
8427685f BC |
1672 | common = unidata.c; |
1673 | common_nodist = grub_script.tab.c; | |
1674 | common_nodist = grub_script.yy.c; | |
1675 | common_nodist = grub_script.tab.h; | |
1676 | common_nodist = grub_script.yy.h; | |
297f0c2b BC |
1677 | |
1678 | extra_dist = script/yylex.l; | |
1679 | extra_dist = script/parser.y; | |
1680 | ||
ebcecdf1 | 1681 | cflags = '$(CFLAGS_POSIX) -Wno-redundant-decls'; |
297f0c2b | 1682 | cppflags = '$(CPPFLAGS_POSIX)'; |
8c411768 BC |
1683 | }; |
1684 | ||
1685 | module = { | |
8c411768 | 1686 | name = part_acorn; |
8427685f | 1687 | common = partmap/acorn.c; |
8c411768 BC |
1688 | }; |
1689 | ||
1690 | module = { | |
8c411768 | 1691 | name = part_amiga; |
8427685f | 1692 | common = partmap/amiga.c; |
8c411768 BC |
1693 | }; |
1694 | ||
1695 | module = { | |
8c411768 | 1696 | name = part_apple; |
8427685f | 1697 | common = partmap/apple.c; |
8c411768 BC |
1698 | }; |
1699 | ||
1700 | module = { | |
8c411768 | 1701 | name = part_gpt; |
8427685f | 1702 | common = partmap/gpt.c; |
8c411768 BC |
1703 | }; |
1704 | ||
1705 | module = { | |
8c411768 | 1706 | name = part_msdos; |
8427685f | 1707 | common = partmap/msdos.c; |
8c411768 BC |
1708 | }; |
1709 | ||
1710 | module = { | |
8c411768 | 1711 | name = part_sun; |
8427685f | 1712 | common = partmap/sun.c; |
8c411768 BC |
1713 | }; |
1714 | ||
ac9ef7ee VS |
1715 | module = { |
1716 | name = part_plan; | |
1717 | common = partmap/plan.c; | |
111c1778 | 1718 | }; |
4e01c8c1 | 1719 | |
8906c3dd VS |
1720 | module = { |
1721 | name = part_dvh; | |
1722 | common = partmap/dvh.c; | |
1723 | }; | |
1724 | ||
8c411768 | 1725 | module = { |
8c411768 | 1726 | name = part_bsd; |
8427685f | 1727 | common = partmap/bsdlabel.c; |
8c411768 BC |
1728 | }; |
1729 | ||
1730 | module = { | |
8c411768 | 1731 | name = part_sunpc; |
8427685f | 1732 | common = partmap/sunpc.c; |
8c411768 BC |
1733 | }; |
1734 | ||
1e908b34 RS |
1735 | module = { |
1736 | name = part_dfly; | |
1737 | common = partmap/dfly.c; | |
1738 | }; | |
1739 | ||
8c411768 | 1740 | module = { |
8c411768 | 1741 | name = msdospart; |
8427685f | 1742 | common = parttool/msdospart.c; |
8c411768 BC |
1743 | }; |
1744 | ||
8c411768 BC |
1745 | module = { |
1746 | name = at_keyboard; | |
8427685f | 1747 | common = term/at_keyboard.c; |
911bd640 | 1748 | enable = x86; |
8c411768 BC |
1749 | }; |
1750 | ||
1751 | module = { | |
1752 | name = gfxterm; | |
8427685f | 1753 | common = term/gfxterm.c; |
eefe8abd | 1754 | enable = videomodules; |
8c411768 BC |
1755 | }; |
1756 | ||
fc4c4fdd VS |
1757 | module = { |
1758 | name = gfxterm_background; | |
1759 | common = term/gfxterm_background.c; | |
1760 | }; | |
1761 | ||
8c411768 BC |
1762 | module = { |
1763 | name = serial; | |
8427685f | 1764 | common = term/serial.c; |
d84666e6 | 1765 | x86 = term/ns8250.c; |
a9c7fd1c | 1766 | ieee1275 = term/ieee1275/serial.c; |
b04b5990 | 1767 | mips_arc = term/arc/serial.c; |
a9c7fd1c | 1768 | efi = term/efi/serial.c; |
d84666e6 | 1769 | |
a9c7fd1c VS |
1770 | enable = terminfomodule; |
1771 | enable = ieee1275; | |
b04b5990 | 1772 | enable = mips_arc; |
d84666e6 BC |
1773 | }; |
1774 | ||
1775 | module = { | |
1776 | name = sendkey; | |
1777 | i386_pc = commands/i386/pc/sendkey.c; | |
1778 | enable = i386_pc; | |
8c411768 BC |
1779 | }; |
1780 | ||
1781 | module = { | |
8c411768 | 1782 | name = terminfo; |
8427685f BC |
1783 | common = term/terminfo.c; |
1784 | common = term/tparm.c; | |
ee74fa48 | 1785 | enable = terminfomodule; |
8c411768 BC |
1786 | }; |
1787 | ||
1788 | module = { | |
1789 | name = usb_keyboard; | |
8427685f | 1790 | common = term/usb_keyboard.c; |
eefe8abd | 1791 | enable = usb; |
8c411768 BC |
1792 | }; |
1793 | ||
1794 | module = { | |
1795 | name = vga; | |
9fc9ce37 | 1796 | common = video/i386/pc/vga.c; |
911bd640 | 1797 | enable = i386_pc; |
8c411768 BC |
1798 | }; |
1799 | ||
1800 | module = { | |
1801 | name = vga_text; | |
16bd6cfa | 1802 | common = term/i386/pc/vga_text.c; |
16bd6cfa | 1803 | enable = i386_pc; |
8c411768 BC |
1804 | }; |
1805 | ||
c35fc5bd VS |
1806 | module = { |
1807 | name = mda_text; | |
1808 | common = term/i386/pc/mda_text.c; | |
1809 | enable = i386_pc; | |
1810 | enable = i386_coreboot_multiboot_qemu; | |
1811 | }; | |
1812 | ||
297f0c2b BC |
1813 | module = { |
1814 | name = video_cirrus; | |
f7711f5e BC |
1815 | x86 = video/cirrus.c; |
1816 | enable = x86; | |
297f0c2b BC |
1817 | }; |
1818 | ||
1819 | module = { | |
1820 | name = video_bochs; | |
f7711f5e BC |
1821 | x86 = video/bochs.c; |
1822 | enable = x86; | |
297f0c2b BC |
1823 | }; |
1824 | ||
8c411768 BC |
1825 | module = { |
1826 | name = functional_test; | |
8427685f BC |
1827 | common = tests/lib/functional_test.c; |
1828 | common = tests/lib/test.c; | |
8cec7bd4 | 1829 | common = tests/checksums.h; |
50361660 VS |
1830 | common = tests/video_checksum.c; |
1831 | common = tests/fake_input.c; | |
1832 | common = video/capture.c; | |
8c411768 BC |
1833 | }; |
1834 | ||
1835 | module = { | |
526ef13d | 1836 | name = exfctest; |
8427685f | 1837 | common = tests/example_functional_test.c; |
8c411768 BC |
1838 | }; |
1839 | ||
011f8ae8 VS |
1840 | module = { |
1841 | name = setjmp_test; | |
1842 | common = tests/setjmp_test.c; | |
1843 | }; | |
1844 | ||
50361660 VS |
1845 | module = { |
1846 | name = videotest_checksum; | |
1847 | common = tests/videotest_checksum.c; | |
1848 | }; | |
1849 | ||
c104b6f9 VS |
1850 | module = { |
1851 | name = gfxterm_menu; | |
1852 | common = tests/gfxterm_menu.c; | |
1853 | }; | |
1854 | ||
0e7b2e32 VS |
1855 | module = { |
1856 | name = cmdline_cat_test; | |
1857 | common = tests/cmdline_cat_test.c; | |
1858 | }; | |
1859 | ||
8c411768 BC |
1860 | module = { |
1861 | name = bitmap; | |
8427685f | 1862 | common = video/bitmap.c; |
8c411768 BC |
1863 | }; |
1864 | ||
1865 | module = { | |
1866 | name = bitmap_scale; | |
8427685f | 1867 | common = video/bitmap_scale.c; |
8c411768 BC |
1868 | }; |
1869 | ||
1870 | module = { | |
1871 | name = efi_gop; | |
6585de4c VS |
1872 | efi = video/efi_gop.c; |
1873 | enable = efi; | |
8c411768 BC |
1874 | }; |
1875 | ||
1876 | module = { | |
1877 | name = efi_uga; | |
6585de4c | 1878 | efi = video/efi_uga.c; |
c18271ed | 1879 | enable = i386_efi; |
1880 | enable = x86_64_efi; | |
8c411768 BC |
1881 | }; |
1882 | ||
1883 | module = { | |
8c411768 | 1884 | name = jpeg; |
8427685f | 1885 | common = video/readers/jpeg.c; |
8c411768 BC |
1886 | }; |
1887 | ||
1888 | module = { | |
8c411768 | 1889 | name = png; |
8427685f | 1890 | common = video/readers/png.c; |
8c411768 BC |
1891 | }; |
1892 | ||
1893 | module = { | |
8c411768 | 1894 | name = tga; |
8427685f | 1895 | common = video/readers/tga.c; |
8c411768 BC |
1896 | }; |
1897 | ||
1898 | module = { | |
1899 | name = vbe; | |
9fc9ce37 | 1900 | common = video/i386/pc/vbe.c; |
911bd640 | 1901 | enable = i386_pc; |
8c411768 BC |
1902 | }; |
1903 | ||
1904 | module = { | |
1905 | name = video_fb; | |
8427685f BC |
1906 | common = video/fb/video_fb.c; |
1907 | common = video/fb/fbblit.c; | |
1908 | common = video/fb/fbfill.c; | |
1909 | common = video/fb/fbutil.c; | |
eefe8abd | 1910 | enable = videomodules; |
8c411768 BC |
1911 | }; |
1912 | ||
1913 | module = { | |
1914 | name = video; | |
8427685f | 1915 | common = video/video.c; |
eefe8abd | 1916 | enable = videomodules; |
8c411768 BC |
1917 | }; |
1918 | ||
1919 | module = { | |
fc4c4fdd VS |
1920 | name = video_colors; |
1921 | common = video/colors.c; | |
8c411768 BC |
1922 | }; |
1923 | ||
d178788e | 1924 | module = { |
fc4c4fdd VS |
1925 | name = ieee1275_fb; |
1926 | ieee1275 = video/ieee1275.c; | |
1927 | enable = powerpc_ieee1275; | |
d178788e VS |
1928 | }; |
1929 | ||
8c411768 BC |
1930 | module = { |
1931 | name = sdl; | |
8427685f | 1932 | emu = video/emu/sdl.c; |
911bd640 | 1933 | enable = emu; |
8427685f | 1934 | condition = COND_GRUB_EMU_SDL; |
8c411768 BC |
1935 | }; |
1936 | ||
1937 | module = { | |
1938 | name = datehook; | |
8427685f | 1939 | common = hook/datehook.c; |
8c411768 | 1940 | }; |
92eb189b | 1941 | |
975cffff VS |
1942 | module = { |
1943 | name = net; | |
c0425677 | 1944 | common = net/net.c; |
038ec56a | 1945 | common = net/dns.c; |
138eeb36 | 1946 | common = net/bootp.c; |
7bb47706 MA |
1947 | common = net/ip.c; |
1948 | common = net/udp.c; | |
3a7af372 | 1949 | common = net/tcp.c; |
1367c143 | 1950 | common = net/icmp.c; |
a53cf653 | 1951 | common = net/icmp6.c; |
7bb47706 MA |
1952 | common = net/ethernet.c; |
1953 | common = net/arp.c; | |
7bb47706 MA |
1954 | common = net/netbuff.c; |
1955 | }; | |
1956 | ||
1957 | module = { | |
1958 | name = tftp; | |
1959 | common = net/tftp.c; | |
1960 | }; | |
1961 | ||
80e72236 VS |
1962 | module = { |
1963 | name = http; | |
1964 | common = net/http.c; | |
1965 | }; | |
1966 | ||
7bb47706 MA |
1967 | module = { |
1968 | name = ofnet; | |
9d22909b | 1969 | common = net/drivers/ieee1275/ofnet.c; |
7bb47706 MA |
1970 | enable = ieee1275; |
1971 | }; | |
90451bb1 | 1972 | |
c86c39ab VS |
1973 | module = { |
1974 | name = ubootnet; | |
1975 | common = net/drivers/uboot/ubootnet.c; | |
1976 | enable = uboot; | |
1977 | }; | |
1978 | ||
9d22909b VS |
1979 | module = { |
1980 | name = efinet; | |
1981 | common = net/drivers/efi/efinet.c; | |
1982 | enable = efi; | |
1983 | }; | |
1984 | ||
90451bb1 VS |
1985 | module = { |
1986 | name = emunet; | |
70671037 | 1987 | emu = net/drivers/emu/emunet.c; |
d8123bfb | 1988 | enable = emu; |
90451bb1 | 1989 | }; |
760a7e5a | 1990 | |
92eb189b VS |
1991 | module = { |
1992 | name = legacycfg; | |
1993 | common = commands/legacycfg.c; | |
fff175c7 | 1994 | common = lib/legacy_parse.c; |
d6d94820 | 1995 | emu = lib/i386/pc/vesa_modes_table.c; |
ec2dd179 VS |
1996 | i386_efi = lib/i386/pc/vesa_modes_table.c; |
1997 | x86_64_efi = lib/i386/pc/vesa_modes_table.c; | |
1998 | ||
92eb189b | 1999 | enable = i386_pc; |
ec2dd179 VS |
2000 | enable = i386_efi; |
2001 | enable = x86_64_efi; | |
abda0cad | 2002 | enable = emu; |
bd960307 | 2003 | }; |
122a9b2c | 2004 | |
928bad47 BC |
2005 | module = { |
2006 | name = test_blockarg; | |
2007 | common = tests/test_blockarg.c; | |
47b4c2c3 | 2008 | }; |
06f70117 | 2009 | |
f0aff67c SJ |
2010 | module = { |
2011 | name = xzio; | |
2012 | common = io/xzio.c; | |
2013 | common = lib/xzembed/xz_dec_bcj.c; | |
2014 | common = lib/xzembed/xz_dec_lzma2.c; | |
2015 | common = lib/xzembed/xz_dec_stream.c; | |
2016 | cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/xzembed'; | |
ebcecdf1 | 2017 | cflags='-Wno-unreachable-code'; |
f0aff67c SJ |
2018 | }; |
2019 | ||
d6beefcf SJ |
2020 | module = { |
2021 | name = lzopio; | |
2022 | common = io/lzopio.c; | |
2023 | common = lib/minilzo/minilzo.c; | |
ebcecdf1 | 2024 | cflags = '$(CFLAGS_POSIX) -Wno-undef -Wno-redundant-decls -Wno-error'; |
d6beefcf SJ |
2025 | cppflags = '-I$(srcdir)/lib/posix_wrap -I$(srcdir)/lib/minilzo -DMINILZO_HAVE_CONFIG_H'; |
2026 | }; | |
2027 | ||
06f70117 VS |
2028 | module = { |
2029 | name = testload; | |
2030 | common = commands/testload.c; | |
fff175c7 | 2031 | }; |
890c9fa5 | 2032 | |
9ad7edd0 VS |
2033 | module = { |
2034 | name = backtrace; | |
1948a3b7 VS |
2035 | x86 = lib/i386/backtrace.c; |
2036 | common = lib/backtrace.c; | |
c1677cfc | 2037 | enable = x86; |
245f4582 VS |
2038 | }; |
2039 | ||
890c9fa5 VS |
2040 | module = { |
2041 | name = lsapm; | |
2042 | common = commands/i386/pc/lsapm.c; | |
2043 | enable = i386_pc; | |
2044 | }; | |
1a9130dd | 2045 | |
5aaf2c18 VS |
2046 | module = { |
2047 | name = keylayouts; | |
2048 | common = commands/keylayouts.c; | |
fc4c4fdd | 2049 | enable = x86; |
5aaf2c18 | 2050 | }; |
c5dc1690 | 2051 | |
4db34616 VS |
2052 | module = { |
2053 | name = priority_queue; | |
2054 | common = lib/priority_queue.c; | |
2055 | }; | |
2056 | ||
5ff1d945 VS |
2057 | module = { |
2058 | name = time; | |
2059 | common = commands/time.c; | |
2060 | }; | |
99cecb4f | 2061 | |
c5dc1690 SJ |
2062 | module = { |
2063 | name = cacheinfo; | |
2064 | common = commands/cacheinfo.c; | |
2065 | condition = COND_ENABLE_CACHE_STATS; | |
2066 | }; | |
9a8d32a2 | 2067 | |
e744219b VS |
2068 | module = { |
2069 | name = boottime; | |
2070 | common = commands/boottime.c; | |
2071 | condition = COND_ENABLE_BOOT_TIME_STATS; | |
2072 | }; | |
2073 | ||
9a8d32a2 SJ |
2074 | module = { |
2075 | name = adler32; | |
2076 | common = lib/adler32.c; | |
2077 | }; | |
158dc1ea VS |
2078 | |
2079 | module = { | |
2080 | name = crc64; | |
2081 | common = lib/crc64.c; | |
2082 | }; | |
22c7ce85 | 2083 | |
5e3b8dcb VS |
2084 | module = { |
2085 | name = mpi; | |
2086 | common = lib/libgcrypt-grub/mpi/mpiutil.c; | |
2087 | common = lib/libgcrypt-grub/mpi/mpi-bit.c; | |
2088 | common = lib/libgcrypt-grub/mpi/mpi-add.c; | |
2089 | common = lib/libgcrypt-grub/mpi/mpi-mul.c; | |
2090 | common = lib/libgcrypt-grub/mpi/mpi-mod.c; | |
2091 | common = lib/libgcrypt-grub/mpi/mpi-gcd.c; | |
2092 | common = lib/libgcrypt-grub/mpi/mpi-div.c; | |
2093 | common = lib/libgcrypt-grub/mpi/mpi-cmp.c; | |
2094 | common = lib/libgcrypt-grub/mpi/mpi-inv.c; | |
2095 | common = lib/libgcrypt-grub/mpi/mpi-pow.c; | |
2096 | common = lib/libgcrypt-grub/mpi/mpi-mpow.c; | |
2097 | common = lib/libgcrypt-grub/mpi/mpih-lshift.c; | |
2098 | common = lib/libgcrypt-grub/mpi/mpih-mul.c; | |
2099 | common = lib/libgcrypt-grub/mpi/mpih-mul1.c; | |
2100 | common = lib/libgcrypt-grub/mpi/mpih-mul2.c; | |
2101 | common = lib/libgcrypt-grub/mpi/mpih-mul3.c; | |
2102 | common = lib/libgcrypt-grub/mpi/mpih-add1.c; | |
2103 | common = lib/libgcrypt-grub/mpi/mpih-sub1.c; | |
2104 | common = lib/libgcrypt-grub/mpi/mpih-div.c; | |
2105 | common = lib/libgcrypt-grub/mpi/mpicoder.c; | |
2106 | common = lib/libgcrypt-grub/mpi/mpih-rshift.c; | |
4a9950ec | 2107 | common = lib/libgcrypt-grub/mpi/mpi-inline.c; |
5e3b8dcb VS |
2108 | common = lib/libgcrypt_wrap/mem.c; |
2109 | ||
2110 | cflags = '$(CFLAGS_GCRY) -Wno-redundant-decls -Wno-sign-compare'; | |
2111 | cppflags = '$(CPPFLAGS_GCRY)'; | |
2112 | }; | |
2113 | ||
22c7ce85 VS |
2114 | module = { |
2115 | name = all_video; | |
2116 | common = lib/fake_module.c; | |
2117 | }; | |
ff27c3dd | 2118 | |
66d6a793 LK |
2119 | module = { |
2120 | name = gdb; | |
2121 | common = gdb/cstub.c; | |
2122 | common = gdb/gdb.c; | |
2123 | i386 = gdb/i386/idt.c; | |
2124 | i386 = gdb/i386/machdep.S; | |
2125 | i386 = gdb/i386/signal.c; | |
2126 | enable = i386; | |
ff27c3dd LK |
2127 | }; |
2128 | ||
fa292343 B |
2129 | module = { |
2130 | name = testspeed; | |
2131 | common = commands/testspeed.c; | |
2132 | }; | |
3d46c22f BC |
2133 | |
2134 | module = { | |
2135 | name = tr; | |
2136 | common = commands/tr.c; | |
2137 | }; |