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

« back to all changes in this revision

Viewing changes to conf/i386-coreboot.rmk

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Robert Millan, Updated translations
  • Date: 2010-11-22 12:24:56 UTC
  • mfrom: (1.26.4 upstream) (17.3.36 sid)
  • mto: (17.3.43 sid)
  • mto: This revision was merged to the branch mainline in revision 89.
  • Revision ID: james.westby@ubuntu.com-20101122122456-y82z3sfb7k4zfdcc
Tags: 1.99~20101122-1
[ Colin Watson ]
* New Bazaar snapshot.  Too many changes to list in full, but some of the
  more user-visible ones are as follows:
  - GRUB script:
    + Function parameters, "break", "continue", "shift", "setparams",
      "return", and "!".
    + "export" command supports multiple variable names.
    + Multi-line quoted strings support.
    + Wildcard expansion.
  - sendkey support.
  - USB hotunplugging and USB serial support.
  - Rename CD-ROM to cd on BIOS.
  - Add new --boot-directory option to grub-install, grub-reboot, and
    grub-set-default; the old --root-directory option is still accepted
    but was often confusing.
  - Basic btrfs detection/UUID support (but no file reading yet).
  - bash-completion for utilities.
  - If a device is listed in device.map, always assume that it is
    BIOS-visible rather than using extra layers such as LVM or RAID.
  - Add grub-mknetdir script (closes: #550658).
  - Remove deprecated "root" command.
  - Handle RAID devices containing virtio components.
  - GRUB Legacy configuration file support (via grub-menulst2cfg).
  - Keyboard layout support (via grub-mklayout and grub-kbdcomp).
  - Check generated grub.cfg for syntax errors before saving.
  - Pause execution for at most ten seconds if any errors are displayed,
    so that the user has a chance to see them.
  - Support submenus.
  - Write embedding zone using Reed-Solomon, so that it's robust against
    being partially overwritten (closes: #550702, #591416, #593347).
  - GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY merged
    into a single GRUB_DISABLE_RECOVERY variable.
  - Fix loader memory allocation failure (closes: #551627).
  - Don't call savedefault on recovery entries (closes: #589325).
  - Support triple-indirect blocks on ext2 (closes: #543924).
  - Recognise DDF1 fake RAID (closes: #603354).

[ Robert Millan ]
* Use dpkg architecture wildcards.

[ Updated translations ]
* Slovenian (Vanja Cvelbar).  Closes: #604003
* Dzongkha (dawa pemo via Tenzin Dendup).  Closes: #604102

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- makefile -*-
2
 
 
3
 
COMMON_ASFLAGS  = -nostdinc -fno-builtin -m32
4
 
COMMON_CFLAGS = -fno-builtin -mrtd -mregparm=3 -m32
5
 
COMMON_LDFLAGS  = -m32 -nostdlib
6
 
 
7
 
# Used by various components.  These rules need to precede them.
8
 
script/lexer.c_DEPENDENCIES = grub_script.tab.h
9
 
 
10
 
# Images.
11
 
 
12
 
GRUB_KERNEL_MACHINE_LINK_ADDR   = 0x8200
13
 
 
14
 
ifeq ($(platform), coreboot)
15
 
 
16
 
pkglib_PROGRAMS += kernel.img
17
 
kernel_img_SOURCES = kern/i386/coreboot/startup.S \
18
 
        commands/i386/halt_helper.S \
19
 
        kern/i386/coreboot/init.c \
20
 
        kern/i386/multiboot_mmap.c \
21
 
        kern/i386/halt.c \
22
 
        kern/main.c kern/device.c \
23
 
        kern/disk.c kern/dl.c kern/file.c kern/fs.c kern/err.c \
24
 
        kern/misc.c kern/mm.c kern/term.c \
25
 
        kern/rescue_parser.c kern/rescue_reader.c \
26
 
        kern/time.c kern/list.c kern/handler.c kern/command.c kern/corecmd.c \
27
 
        kern/$(target_cpu)/dl.c kern/parser.c kern/partition.c \
28
 
        kern/i386/tsc.c kern/i386/pit.c \
29
 
        kern/generic/rtc_get_time_ms.c \
30
 
        kern/generic/millisleep.c \
31
 
        kern/env.c \
32
 
        term/i386/pc/vga_text.c term/i386/vga_common.c \
33
 
        symlist.c
34
 
kernel_img_HEADERS = boot.h cache.h device.h disk.h dl.h elf.h elfload.h \
35
 
        env.h err.h file.h fs.h kernel.h loader.h misc.h mm.h net.h parser.h \
36
 
        partition.h msdos_partition.h reader.h symbol.h term.h time.h types.h \
37
 
        machine/boot.h machine/console.h machine/init.h \
38
 
        machine/memory.h machine/loader.h list.h handler.h command.h i18n.h \
39
 
        env_private.h
40
 
kernel_img_CFLAGS = $(COMMON_CFLAGS)
41
 
kernel_img_ASFLAGS = $(COMMON_ASFLAGS)
42
 
kernel_img_LDFLAGS = $(COMMON_LDFLAGS) -Wl,-N,-S,-Ttext,$(GRUB_KERNEL_MACHINE_LINK_ADDR),-Bstatic
43
 
 
44
 
endif
45
 
 
46
 
ifeq ($(platform), qemu)
47
 
 
48
 
GRUB_BOOT_MACHINE_LINK_ADDR     = 0xffe00
49
 
 
50
 
pkglib_IMAGES += boot.img
51
 
boot_img_SOURCES = boot/i386/qemu/boot.S
52
 
boot_img_ASFLAGS = $(COMMON_ASFLAGS) -DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)
53
 
boot_img_LDFLAGS = $(COMMON_LDFLAGS) $(TARGET_IMG_LDFLAGS)$(GRUB_BOOT_MACHINE_LINK_ADDR)
54
 
boot_img_FORMAT = binary
55
 
 
56
 
bin_UTILITIES += grub-mkimage
57
 
grub_mkimage_SOURCES = util/grub-mkrawimage.c util/misc.c \
58
 
        util/resolve.c gnulib/progname.c
59
 
grub_mkimage_CFLAGS = -DGRUB_KERNEL_MACHINE_LINK_ADDR=$(GRUB_KERNEL_MACHINE_LINK_ADDR)
60
 
util/grub-mkrawimage.c_DEPENDENCIES = Makefile
61
 
 
62
 
 
63
 
pkglib_IMAGES += kernel.img
64
 
kernel_img_SOURCES = kern/i386/qemu/startup.S \
65
 
        commands/i386/halt_helper.S \
66
 
        kern/i386/coreboot/init.c \
67
 
        kern/i386/qemu/mmap.c \
68
 
        kern/i386/halt.c \
69
 
        kern/main.c kern/device.c \
70
 
        kern/disk.c kern/dl.c kern/file.c kern/fs.c kern/err.c \
71
 
        kern/misc.c kern/mm.c kern/term.c \
72
 
        kern/rescue_parser.c kern/rescue_reader.c \
73
 
        kern/time.c kern/list.c kern/handler.c kern/command.c kern/corecmd.c \
74
 
        kern/$(target_cpu)/dl.c kern/parser.c kern/partition.c \
75
 
        kern/i386/tsc.c kern/i386/pit.c \
76
 
        kern/generic/rtc_get_time_ms.c \
77
 
        kern/generic/millisleep.c \
78
 
        kern/env.c \
79
 
        term/i386/pc/vga_text.c term/i386/vga_common.c \
80
 
        symlist.c
81
 
kernel_img_HEADERS = boot.h cache.h device.h disk.h dl.h elf.h elfload.h \
82
 
        env.h err.h file.h fs.h kernel.h loader.h misc.h mm.h net.h parser.h \
83
 
        partition.h msdos_partition.h reader.h symbol.h term.h time.h types.h \
84
 
        machine/boot.h machine/console.h machine/init.h \
85
 
        machine/memory.h machine/loader.h list.h handler.h command.h i18n.h \
86
 
        env_private.h
87
 
kernel_img_CFLAGS = $(COMMON_CFLAGS) -DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)
88
 
kernel_img_ASFLAGS = $(COMMON_ASFLAGS) -DGRUB_KERNEL_MACHINE_LINK_ADDR=$(GRUB_KERNEL_MACHINE_LINK_ADDR)
89
 
kernel_img_LDFLAGS = $(COMMON_LDFLAGS) $(TARGET_IMG_LDFLAGS)$(GRUB_KERNEL_MACHINE_LINK_ADDR)
90
 
kernel_img_FORMAT = binary
91
 
endif
92
 
 
93
 
MOSTLYCLEANFILES += symlist.c kernel_syms.lst
94
 
DEFSYMFILES += kernel_syms.lst
95
 
 
96
 
symlist.c: $(addprefix include/grub/,$(kernel_img_HEADERS)) config.h gensymlist.sh
97
 
        /bin/sh gensymlist.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1)
98
 
 
99
 
kernel_syms.lst: $(addprefix include/grub/,$(kernel_img_HEADERS)) config.h genkernsyms.sh
100
 
        /bin/sh genkernsyms.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1)
101
 
 
102
 
sbin_SCRIPTS += grub-install
103
 
grub_install_SOURCES = util/grub-install.in
104
 
 
105
 
bin_SCRIPTS += grub-mkrescue
106
 
grub_mkrescue_SOURCES = util/grub-mkrescue.in
107
 
 
108
 
# Modules.
109
 
pkglib_MODULES = linux.mod                              \
110
 
        aout.mod play.mod serial.mod                    \
111
 
        memdisk.mod pci.mod lspci.mod reboot.mod        \
112
 
        halt.mod datetime.mod date.mod datehook.mod     \
113
 
        lsmmap.mod mmap.mod
114
 
 
115
 
# For boot.mod.
116
 
pkglib_MODULES += boot.mod
117
 
boot_mod_SOURCES = commands/boot.c
118
 
boot_mod_CFLAGS = $(COMMON_CFLAGS)
119
 
boot_mod_LDFLAGS = $(COMMON_LDFLAGS)
120
 
 
121
 
# For mmap.mod.
122
 
mmap_mod_SOURCES = mmap/mmap.c mmap/i386/uppermem.c mmap/i386/mmap.c
123
 
mmap_mod_CFLAGS = $(COMMON_CFLAGS)
124
 
mmap_mod_LDFLAGS = $(COMMON_LDFLAGS)
125
 
mmap_mod_ASFLAGS = $(COMMON_ASFLAGS)
126
 
 
127
 
# For linux.mod.
128
 
linux_mod_SOURCES = loader/i386/linux.c
129
 
linux_mod_CFLAGS = $(COMMON_CFLAGS)
130
 
linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
131
 
 
132
 
# For reboot.mod.
133
 
reboot_mod_SOURCES = commands/reboot.c
134
 
reboot_mod_CFLAGS = $(COMMON_CFLAGS)
135
 
reboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
136
 
 
137
 
# For halt.mod.
138
 
halt_mod_SOURCES = commands/halt.c
139
 
halt_mod_CFLAGS = $(COMMON_CFLAGS)
140
 
halt_mod_LDFLAGS = $(COMMON_LDFLAGS)
141
 
 
142
 
# For serial.mod.
143
 
serial_mod_SOURCES = term/serial.c
144
 
serial_mod_CFLAGS = $(COMMON_CFLAGS)
145
 
serial_mod_LDFLAGS = $(COMMON_LDFLAGS)
146
 
 
147
 
# For aout.mod.
148
 
aout_mod_SOURCES = loader/aout.c
149
 
aout_mod_CFLAGS = $(COMMON_CFLAGS)
150
 
aout_mod_LDFLAGS = $(COMMON_LDFLAGS)
151
 
 
152
 
# For bsd.mod
153
 
pkglib_MODULES += bsd.mod
154
 
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
155
 
bsd_mod_CFLAGS = $(COMMON_CFLAGS)
156
 
bsd_mod_LDFLAGS = $(COMMON_LDFLAGS)
157
 
bsd_mod_ASFLAGS = $(COMMON_ASFLAGS)
158
 
 
159
 
# For play.mod.
160
 
play_mod_SOURCES = commands/i386/pc/play.c
161
 
play_mod_CFLAGS = $(COMMON_CFLAGS)
162
 
play_mod_LDFLAGS = $(COMMON_LDFLAGS)
163
 
 
164
 
# For memdisk.mod.
165
 
memdisk_mod_SOURCES = disk/memdisk.c
166
 
memdisk_mod_CFLAGS = $(COMMON_CFLAGS)
167
 
memdisk_mod_LDFLAGS = $(COMMON_LDFLAGS)
168
 
 
169
 
# For pci.mod
170
 
pci_mod_SOURCES = bus/pci.c
171
 
pci_mod_CFLAGS = $(COMMON_CFLAGS)
172
 
pci_mod_LDFLAGS = $(COMMON_LDFLAGS)
173
 
 
174
 
# For lspci.mod
175
 
lspci_mod_SOURCES = commands/lspci.c
176
 
lspci_mod_CFLAGS = $(COMMON_CFLAGS)
177
 
lspci_mod_LDFLAGS = $(COMMON_LDFLAGS)
178
 
 
179
 
# For datetime.mod
180
 
datetime_mod_SOURCES = lib/cmos_datetime.c
181
 
datetime_mod_CFLAGS = $(COMMON_CFLAGS)
182
 
datetime_mod_LDFLAGS = $(COMMON_LDFLAGS)
183
 
 
184
 
# For date.mod
185
 
date_mod_SOURCES = commands/date.c
186
 
date_mod_CFLAGS = $(COMMON_CFLAGS)
187
 
date_mod_LDFLAGS = $(COMMON_LDFLAGS)
188
 
 
189
 
# For datehook.mod
190
 
datehook_mod_SOURCES = hook/datehook.c
191
 
datehook_mod_CFLAGS = $(COMMON_CFLAGS)
192
 
datehook_mod_LDFLAGS = $(COMMON_LDFLAGS)
193
 
 
194
 
# For lsmmap.mod
195
 
lsmmap_mod_SOURCES = commands/lsmmap.c
196
 
lsmmap_mod_CFLAGS = $(COMMON_CFLAGS)
197
 
lsmmap_mod_LDFLAGS = $(COMMON_LDFLAGS)
198
 
 
199
 
include $(srcdir)/conf/i386.mk
200
 
include $(srcdir)/conf/common.mk