~hamo/ubuntu/precise/grub2/grub2.hi_res

« back to all changes in this revision

Viewing changes to conf/i386-pc.rmk

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Evan Broder, Mario Limonciello
  • Date: 2010-11-24 13:59:55 UTC
  • mfrom: (1.17.6 upstream) (17.6.15 experimental)
  • Revision ID: james.westby@ubuntu.com-20101124135955-r6ii5sepayr7jt53
Tags: 1.99~20101124-1ubuntu1
[ Colin Watson ]
* Resynchronise with Debian experimental.  Remaining changes:
  - Adjust for default Ubuntu boot options ("quiet splash").
  - Default to hiding the menu; holding down Shift at boot will show it.
  - Set a monochromatic theme for Ubuntu.
  - Apply Ubuntu GRUB Legacy changes to legacy update-grub script: title,
    recovery mode, quiet option, tweak how memtest86+ is displayed, and
    use UUIDs where appropriate.
  - Fix backslash-escaping in merge_debconf_into_conf.
  - Remove "GNU/Linux" from default distributor string.
  - Add crashkernel= options if kdump and makedumpfile are available.
  - If other operating systems are installed, then automatically unhide
    the menu.  Otherwise, if GRUB_HIDDEN_TIMEOUT is 0, then use keystatus
    if available to check whether Shift is pressed.  If it is, show the
    menu, otherwise boot immediately.  If keystatus is not available, then
    fall back to a short delay interruptible with Escape.
  - Allow Shift to interrupt 'sleep --interruptible'.
  - Don't display introductory message about line editing unless we're
    actually offering a shell prompt.  Don't clear the screen just before
    booting if we never drew the menu in the first place.
  - Remove some verbose messages printed before reading the configuration
    file.
  - Suppress progress messages as the kernel and initrd load for
    non-recovery kernel menu entries.
  - Change prepare_grub_to_access_device to handle filesystems
    loop-mounted on file images.
  - Ignore devices loop-mounted from files in 10_linux.
  - Show the boot menu if the previous boot failed, that is if it failed
    to get to the end of one of the normal runlevels.
  - Don't generate /boot/grub/device.map during grub-install or
    grub-mkconfig by default.
  - Adjust upgrade version checks for Ubuntu.
  - Don't display "GRUB loading" unless Shift is held down.
  - Adjust versions of grub-doc and grub-legacy-doc conflicts to tolerate
    our backport of the grub-doc split.
  - Fix LVM/RAID probing in the absence of /boot/grub/device.map.
  - Look for .mo files in /usr/share/locale-langpack as well, in
    preference.
  - Make sure GRUB_TIMEOUT isn't quoted unnecessarily.
  - Probe all devices in 'grub-probe --target=drive' if
    /boot/grub/device.map is missing.
  - Build-depend on qemu-kvm rather than qemu-system for grub-pc tests.
  - Use qemu rather than qemu-system-i386.
  - Program vesafb on BIOS systems rather than efifb.
  - Add a grub-rescue-efi-amd64 package containing a rescue CD-ROM image
    for EFI-AMD64.
  - On Wubi, don't ask for an install device, but just update wubildr
    using the diverted grub-install.
  - When embedding the core image in a post-MBR gap, check for and avoid
    sectors matching any of a list of known signatures.
  - Disable video_bochs and video_cirrus on PC BIOS systems, as probing
    PCI space seems to break on some systems.
* Downgrade "ACPI shutdown failed" error to a debug message, since it can
  cause spurious test failures.

[ Evan Broder ]
* Enable lua from grub-extras.
* Incorporate the bitop library into lua.
* Add enum_pci function to grub module in lua.
* Switch back to gfxpayload=keep by default, unless the video hardware
  is known to not support it.

[ Mario Limonciello ]
* Built part_msdos and vfat into bootx64.efi (LP: #677758)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- makefile -*-
2
 
 
3
 
COMMON_CFLAGS = -mrtd -mregparm=3
4
 
 
5
 
# Images.
6
 
pkglib_IMAGES = boot.img cdboot.img diskboot.img lnxboot.img pxeboot.img
7
 
 
8
 
# For boot.img.
9
 
boot_img_SOURCES = boot/i386/pc/boot.S
10
 
boot_img_ASFLAGS = $(COMMON_ASFLAGS)
11
 
boot_img_LDFLAGS = $(COMMON_LDFLAGS) $(TARGET_IMG_LDFLAGS)0x7C00
12
 
boot_img_FORMAT = binary
13
 
 
14
 
# For pxeboot.img
15
 
pxeboot_img_SOURCES = boot/i386/pc/pxeboot.S
16
 
pxeboot_img_ASFLAGS = $(COMMON_ASFLAGS)
17
 
pxeboot_img_LDFLAGS = $(COMMON_LDFLAGS) $(TARGET_IMG_LDFLAGS)0x7C00
18
 
pxeboot_img_FORMAT = binary
19
 
 
20
 
# For diskboot.img.
21
 
diskboot_img_SOURCES = boot/i386/pc/diskboot.S
22
 
diskboot_img_ASFLAGS = $(COMMON_ASFLAGS)
23
 
diskboot_img_LDFLAGS = $(COMMON_LDFLAGS) $(TARGET_IMG_LDFLAGS)0x8000
24
 
diskboot_img_FORMAT = binary
25
 
 
26
 
# For lnxboot.img.
27
 
lnxboot_img_SOURCES = boot/i386/pc/lnxboot.S
28
 
lnxboot_img_ASFLAGS = $(COMMON_ASFLAGS)
29
 
lnxboot_img_LDFLAGS = $(COMMON_LDFLAGS) $(TARGET_IMG_LDFLAGS)0x6000
30
 
lnxboot_img_FORMAT = binary
31
 
 
32
 
# For cdboot.img.
33
 
cdboot_img_SOURCES = boot/i386/pc/cdboot.S
34
 
cdboot_img_ASFLAGS = $(COMMON_ASFLAGS)
35
 
cdboot_img_LDFLAGS = $(COMMON_LDFLAGS) $(TARGET_IMG_LDFLAGS)0x7C00
36
 
cdboot_img_FORMAT = binary
37
 
 
38
 
# For kernel.img.
39
 
pkglib_PROGRAMS = kernel.img
40
 
kernel_img_SOURCES = kern/i386/pc/startup.S \
41
 
        kern/i386/misc.S \
42
 
        kern/main.c kern/device.c \
43
 
        kern/disk.c kern/dl.c kern/file.c kern/fs.c kern/err.c \
44
 
        kern/misc.c kern/mm.c kern/term.c \
45
 
        kern/rescue_parser.c kern/rescue_reader.c \
46
 
        kern/time.c kern/list.c kern/command.c kern/corecmd.c \
47
 
        kern/$(target_cpu)/dl.c kern/i386/pc/init.c kern/i386/pc/mmap.c \
48
 
        kern/parser.c kern/partition.c \
49
 
        kern/i386/tsc.c kern/i386/pit.c \
50
 
        kern/generic/rtc_get_time_ms.c \
51
 
        kern/generic/millisleep.c \
52
 
        kern/env.c \
53
 
        term/i386/pc/console.c term/i386/vga_common.c \
54
 
        symlist.c
55
 
kernel_img_HEADERS += machine/biosdisk.h machine/vga.h machine/vbe.h \
56
 
        machine/pxe.h i386/pit.h machine/kernel.h
57
 
kernel_img_CFLAGS = $(COMMON_CFLAGS)  $(TARGET_IMG_CFLAGS)
58
 
kernel_img_ASFLAGS = $(COMMON_ASFLAGS)
59
 
kernel_img_LDFLAGS += $(COMMON_LDFLAGS) $(TARGET_IMG_LDFLAGS)0x8200 $(COMMON_CFLAGS)
60
 
 
61
 
# Utilities.
62
 
sbin_UTILITIES = grub-setup
63
 
 
64
 
# For grub-setup.
65
 
util/i386/pc/grub-setup.c_DEPENDENCIES = grub_setup_init.h
66
 
grub_setup_SOURCES = gnulib/progname.c util/i386/pc/grub-setup.c        \
67
 
        util/misc.c kern/emu/misc.c kern/emu/getroot.c                  \
68
 
        kern/emu/hostdisk.c kern/device.c kern/disk.c kern/err.c        \
69
 
        kern/misc.c kern/partition.c kern/file.c                        \
70
 
        kern/emu/mm.c kern/fs.c kern/env.c kern/list.c fs/fshelp.c      \
71
 
                                                                        \
72
 
        fs/affs.c fs/cpio.c fs/ext2.c fs/fat.c fs/hfs.c                 \
73
 
        fs/hfsplus.c fs/iso9660.c fs/udf.c fs/jfs.c fs/minix.c          \
74
 
        fs/nilfs2.c fs/ntfs.c fs/ntfscomp.c fs/reiserfs.c               \
75
 
        fs/sfs.c fs/ufs.c fs/ufs2.c fs/xfs.c fs/afs.c                   \
76
 
        fs/afs_be.c fs/befs.c fs/befs_be.c fs/tar.c                     \
77
 
                                                                        \
78
 
        partmap/msdos.c partmap/bsdlabel.c partmap/sunpc.c              \
79
 
        partmap/gpt.c                                                   \
80
 
                                                                        \
81
 
        disk/raid.c disk/raid5_recover.c disk/raid6_recover.c           \
82
 
        disk/mdraid_linux.c disk/lvm.c                                  \
83
 
        util/raid.c util/lvm.c                                          \
84
 
        grub_setup_init.c
85
 
 
86
 
sbin_SCRIPTS += grub-install
87
 
grub_install_SOURCES = util/grub-install.in
88
 
 
89
 
bin_SCRIPTS += grub-mkrescue
90
 
grub_mkrescue_SOURCES = util/grub-mkrescue.in
91
 
 
92
 
pkglib_MODULES = biosdisk.mod chain.mod                                 \
93
 
        halt.mod                                \
94
 
        vbe.mod vbetest.mod vbeinfo.mod                 \
95
 
        vga.mod                         \
96
 
        aout.mod bsd.mod pxe.mod pxecmd.mod datetime.mod        \
97
 
        ata_pthru.mod hdparm.mod                \
98
 
        usb.mod uhci.mod ohci.mod usbtest.mod usbms.mod usb_keyboard.mod \
99
 
        efiemu.mod mmap.mod acpi.mod drivemap.mod
100
 
 
101
 
# For drivemap.mod.
102
 
drivemap_mod_SOURCES = commands/i386/pc/drivemap.c \
103
 
                       commands/i386/pc/drivemap_int13h.S
104
 
drivemap_mod_ASFLAGS = $(COMMON_ASFLAGS)
105
 
drivemap_mod_CFLAGS = $(COMMON_CFLAGS)
106
 
drivemap_mod_LDFLAGS = $(COMMON_LDFLAGS)
107
 
 
108
 
# For efiemu.mod.
109
 
efiemu_mod_SOURCES = efiemu/main.c efiemu/i386/loadcore32.c \
110
 
                     efiemu/i386/loadcore64.c efiemu/i386/pc/cfgtables.c \
111
 
                     efiemu/mm.c efiemu/loadcore_common.c efiemu/symbols.c \
112
 
                     efiemu/loadcore32.c efiemu/loadcore64.c \
113
 
                     efiemu/prepare32.c efiemu/prepare64.c efiemu/pnvram.c \
114
 
                     efiemu/i386/coredetect.c
115
 
efiemu_mod_CFLAGS = $(COMMON_CFLAGS)
116
 
efiemu_mod_LDFLAGS = $(COMMON_LDFLAGS)
117
 
 
118
 
# For acpi.mod.
119
 
acpi_mod_SOURCES = commands/acpi.c commands/i386/pc/acpi.c
120
 
acpi_mod_CFLAGS = $(COMMON_CFLAGS)
121
 
acpi_mod_LDFLAGS = $(COMMON_LDFLAGS)
122
 
 
123
 
# For mmap.mod.
124
 
mmap_mod_SOURCES = mmap/mmap.c mmap/i386/uppermem.c mmap/i386/mmap.c \
125
 
                   mmap/i386/pc/mmap.c mmap/i386/pc/mmap_helper.S
126
 
mmap_mod_CFLAGS = $(COMMON_CFLAGS)
127
 
mmap_mod_LDFLAGS = $(COMMON_LDFLAGS)
128
 
mmap_mod_ASFLAGS = $(COMMON_ASFLAGS)
129
 
 
130
 
# For biosdisk.mod.
131
 
biosdisk_mod_SOURCES = disk/i386/pc/biosdisk.c
132
 
biosdisk_mod_CFLAGS = $(COMMON_CFLAGS)
133
 
biosdisk_mod_LDFLAGS = $(COMMON_LDFLAGS)
134
 
 
135
 
# For chain.mod.
136
 
chain_mod_SOURCES = loader/i386/pc/chainloader.c
137
 
chain_mod_CFLAGS = $(COMMON_CFLAGS)
138
 
chain_mod_LDFLAGS = $(COMMON_LDFLAGS)
139
 
 
140
 
pkglib_MODULES += linux16.mod
141
 
linux16_mod_SOURCES = loader/i386/pc/linux.c
142
 
linux16_mod_CFLAGS = $(COMMON_CFLAGS)
143
 
linux16_mod_LDFLAGS = $(COMMON_LDFLAGS)
144
 
 
145
 
pkglib_MODULES += linux.mod
146
 
linux_mod_SOURCES = loader/i386/linux.c
147
 
linux_mod_CFLAGS = $(COMMON_CFLAGS)
148
 
linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
149
 
 
150
 
pkglib_MODULES += xnu.mod
151
 
xnu_mod_SOURCES = loader/xnu_resume.c loader/i386/xnu.c \
152
 
         loader/macho32.c loader/macho64.c loader/macho.c loader/xnu.c
153
 
xnu_mod_CFLAGS = $(COMMON_CFLAGS)
154
 
xnu_mod_LDFLAGS = $(COMMON_LDFLAGS)
155
 
xnu_mod_ASFLAGS = $(COMMON_ASFLAGS)
156
 
 
157
 
# For halt.mod.
158
 
halt_mod_SOURCES = commands/i386/pc/halt.c
159
 
halt_mod_CFLAGS = $(COMMON_CFLAGS)
160
 
halt_mod_LDFLAGS = $(COMMON_LDFLAGS)
161
 
 
162
 
# For vbe.mod.
163
 
vbe_mod_SOURCES = video/i386/pc/vbe.c
164
 
vbe_mod_CFLAGS = $(COMMON_CFLAGS)
165
 
vbe_mod_LDFLAGS = $(COMMON_LDFLAGS)
166
 
 
167
 
# For vbeinfo.mod.
168
 
vbeinfo_mod_SOURCES = commands/i386/pc/vbeinfo.c
169
 
vbeinfo_mod_CFLAGS = $(COMMON_CFLAGS)
170
 
vbeinfo_mod_LDFLAGS = $(COMMON_LDFLAGS)
171
 
 
172
 
# For vbetest.mod.
173
 
vbetest_mod_SOURCES = commands/i386/pc/vbetest.c
174
 
vbetest_mod_CFLAGS = $(COMMON_CFLAGS)
175
 
vbetest_mod_LDFLAGS = $(COMMON_LDFLAGS)
176
 
 
177
 
# For vga.mod.
178
 
vga_mod_SOURCES = video/i386/pc/vga.c
179
 
vga_mod_CFLAGS = $(COMMON_CFLAGS)
180
 
vga_mod_LDFLAGS = $(COMMON_LDFLAGS)
181
 
 
182
 
# For aout.mod
183
 
aout_mod_SOURCES = loader/aout.c
184
 
aout_mod_CFLAGS = $(COMMON_CFLAGS)
185
 
aout_mod_LDFLAGS = $(COMMON_LDFLAGS)
186
 
 
187
 
# For bsd.mod
188
 
bsd_mod_SOURCES = loader/i386/bsd.c loader/i386/bsd32.c loader/i386/bsd64.c loader/i386/bsd_helper.S loader/i386/bsd_trampoline.S
189
 
bsd_mod_CFLAGS = $(COMMON_CFLAGS)
190
 
bsd_mod_LDFLAGS = $(COMMON_LDFLAGS)
191
 
bsd_mod_ASFLAGS = $(COMMON_ASFLAGS)
192
 
 
193
 
# For usb.mod
194
 
usb_mod_SOURCES = bus/usb/usb.c bus/usb/usbtrans.c bus/usb/usbhub.c
195
 
usb_mod_CFLAGS = $(COMMON_CFLAGS)
196
 
usb_mod_LDFLAGS = $(COMMON_LDFLAGS)
197
 
 
198
 
# For usbtest.mod
199
 
usbtest_mod_SOURCES = commands/usbtest.c
200
 
usbtest_mod_CFLAGS = $(COMMON_CFLAGS)
201
 
usbtest_mod_LDFLAGS = $(COMMON_LDFLAGS)
202
 
 
203
 
# For uhci.mod
204
 
uhci_mod_SOURCES = bus/usb/uhci.c
205
 
uhci_mod_CFLAGS = $(COMMON_CFLAGS)
206
 
uhci_mod_LDFLAGS = $(COMMON_LDFLAGS)
207
 
 
208
 
# For ohci.mod
209
 
ohci_mod_SOURCES = bus/usb/ohci.c
210
 
ohci_mod_CFLAGS = $(COMMON_CFLAGS)
211
 
ohci_mod_LDFLAGS = $(COMMON_LDFLAGS)
212
 
 
213
 
# For usbms.mod
214
 
usbms_mod_SOURCES = disk/usbms.c
215
 
usbms_mod_CFLAGS = $(COMMON_CFLAGS)
216
 
usbms_mod_LDFLAGS = $(COMMON_LDFLAGS)
217
 
 
218
 
# For usb_keyboard.mod
219
 
usb_keyboard_mod_SOURCES = term/usb_keyboard.c
220
 
usb_keyboard_mod_CFLAGS = $(COMMON_CFLAGS)
221
 
usb_keyboard_mod_LDFLAGS = $(COMMON_LDFLAGS)
222
 
 
223
 
# For pxe.mod
224
 
pxe_mod_SOURCES = fs/i386/pc/pxe.c
225
 
pxe_mod_CFLAGS = $(COMMON_CFLAGS)
226
 
pxe_mod_LDFLAGS = $(COMMON_LDFLAGS)
227
 
 
228
 
# For pxecmd.mod
229
 
pxecmd_mod_SOURCES = commands/i386/pc/pxecmd.c
230
 
pxecmd_mod_CFLAGS = $(COMMON_CFLAGS)
231
 
pxecmd_mod_LDFLAGS = $(COMMON_LDFLAGS)
232
 
 
233
 
# For datetime.mod
234
 
datetime_mod_SOURCES = lib/cmos_datetime.c
235
 
datetime_mod_CFLAGS = $(COMMON_CFLAGS)
236
 
datetime_mod_LDFLAGS = $(COMMON_LDFLAGS)
237
 
 
238
 
# For ata_pthru.mod.
239
 
ata_pthru_mod_SOURCES = disk/ata_pthru.c
240
 
ata_pthru_mod_CFLAGS = $(COMMON_CFLAGS)
241
 
ata_pthru_mod_LDFLAGS = $(COMMON_LDFLAGS)
242
 
 
243
 
# For hdparm.mod.
244
 
hdparm_mod_SOURCES = commands/hdparm.c lib/hexdump.c
245
 
hdparm_mod_CFLAGS = $(COMMON_CFLAGS)
246
 
hdparm_mod_LDFLAGS = $(COMMON_LDFLAGS)
247
 
 
248
 
# For cmostest.mod
249
 
pkglib_MODULES += cmostest.mod
250
 
cmostest_mod_SOURCES = commands/i386/cmostest.c
251
 
cmostest_mod_CFLAGS = $(COMMON_CFLAGS)
252
 
cmostest_mod_LDFLAGS = $(COMMON_LDFLAGS)
253
 
 
254
 
ifeq ($(enable_efiemu), yes)
255
 
 
256
 
efiemu32.o: efiemu/runtime/efiemu.c $(TARGET_OBJ2ELF)
257
 
        -rm -f $@
258
 
ifeq ($(TARGET_APPLE_CC), 1)
259
 
        -rm -f $@.bin
260
 
        $(TARGET_CC) -c -m32 -DELF32 -DAPPLE_CC -o $@.bin -Wall -Werror $< -nostdlib -O2 -I$(srcdir)/efiemu/runtime -I$(srcdir)/include -Iinclude
261
 
        $(OBJCONV) -felf32 -nu -nd $@.bin $@
262
 
        -rm -f $@.bin
263
 
else
264
 
        $(TARGET_CC) -c -m32 -DELF32 -o $@ -Wall -Werror $< -nostdlib -O2 -I$(srcdir)/efiemu/runtime -I$(srcdir)/include -Iinclude
265
 
        if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
266
 
endif
267
 
 
268
 
efiemu64_c.o: efiemu/runtime/efiemu.c
269
 
ifeq ($(TARGET_APPLE_CC), 1)
270
 
        $(TARGET_CC) -c -m64 -DAPPLE_CC=1 -DELF64 -o $@ -Wall -Werror $< -nostdlib -mno-red-zone -O2 -I$(srcdir)/efiemu/runtime -I$(srcdir)/include -Iinclude
271
 
else
272
 
        $(TARGET_CC) -c -m64 -DELF64 -o $@ -Wall -Werror $< -nostdlib  -mcmodel=large -mno-red-zone -O2 -I$(srcdir)/efiemu/runtime -I$(srcdir)/include -Iinclude
273
 
endif
274
 
 
275
 
efiemu64_s.o: efiemu/runtime/efiemu.S
276
 
        -rm -f $@
277
 
ifeq ($(TARGET_APPLE_CC), 1)
278
 
        $(TARGET_CC) -c -m64 -DAPPLE_CC=1 -DELF64 -o $@ -Wall -Werror $< -nostdlib -mno-red-zone -O2 -I$(srcdir)/efiemu/runtime -I$(srcdir)/include -Iinclude
279
 
else
280
 
        $(TARGET_CC) -c -m64 -DELF64 -o $@ -Wall -Werror $< -nostdlib  -mcmodel=large -mno-red-zone -O2 -I$(srcdir)/efiemu/runtime -I$(srcdir)/include -Iinclude
281
 
endif
282
 
 
283
 
efiemu64.o: efiemu64_c.o efiemu64_s.o  $(TARGET_OBJ2ELF)
284
 
        -rm -f $@
285
 
ifeq ($(TARGET_APPLE_CC), 1)
286
 
        -rm -f $@.bin
287
 
        $(TARGET_CC) -m64 -o $@.bin -Wl,-r $^ -nostdlib
288
 
        $(OBJCONV) -felf64 -nu -nd $@.bin $@
289
 
        -rm -f $@.bin
290
 
else
291
 
        $(TARGET_CC) -m64 -o $@ -Wl,-r $^ -nostdlib
292
 
        if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
293
 
endif
294
 
 
295
 
CLEANFILES += efiemu32.o efiemu64.o efiemu64_c.o efiemu64_s.o
296
 
pkglib_DATA += efiemu32.o efiemu64.o
297
 
 
298
 
endif
299
 
 
300
 
include $(srcdir)/conf/i386.mk
301
 
include $(srcdir)/conf/common.mk