~ubuntu-branches/ubuntu/lucid/grub2/lucid

« back to all changes in this revision

Viewing changes to conf/sparc64-ieee1275.rmk

  • Committer: Bazaar Package Importer
  • Author(s): Otavio Salvador
  • Date: 2006-01-05 15:20:40 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060105152040-1ab076d4n3y2o5yf
Tags: 1.92-1
* New upstream release.
  - Add support for GPT partition table format.
  - Add a new command "play" to play an audio file on PC.
  - Add support for Linux/ADFS partition table format.
  - Add support for BASH-like scripting.
  - Add support for Apple HFS+ filesystems.
* 01_fix_grub-install.patch: Added. Fix grub-install to use
  /bin/grub-mkimage instead of /sbin/grub-mkimage. Closes: #338824
* Do not use CDBS tarball mode anymore. Closes: #344272  

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
# -*- makefile -*-
 
3
 
 
4
COMMON_ASFLAGS = -nostdinc
 
5
COMMON_CFLAGS = -ggdb -ffreestanding -m64 -mno-app-regs
 
6
COMMON_LDFLAGS = -melf64_sparc
 
7
 
 
8
# Images.
 
9
 
 
10
MOSTLYCLEANFILES += grubof_symlist.c kernel_syms.lst
 
11
DEFSYMFILES += kernel_syms.lst
 
12
 
 
13
grubof_HEADERS = arg.h boot.h device.h disk.h dl.h elf.h env.h err.h \
 
14
        file.h fs.h kernel.h misc.h mm.h net.h parser.h rescue.h symbol.h \
 
15
        term.h types.h sparc64/libgcc.h loader.h \
 
16
        partition.h pc_partition.h ieee1275/ieee1275.h machine/time.h \
 
17
        machine/kernel.h
 
18
 
 
19
grubof_symlist.c: $(addprefix include/grub/,$(grubof_HEADERS)) gensymlist.sh
 
20
        sh $(srcdir)/gensymlist.sh $(filter %.h,$^) > $@
 
21
 
 
22
# For the parser.
 
23
grub_script.tab.c grub_script.tab.h: normal/parser.y
 
24
        $(YACC) -d -p grub_script_yy -b grub_script $(srcdir)/normal/parser.y
 
25
 
 
26
kernel_syms.lst: $(addprefix include/grub/,$(grubof_HEADERS)) genkernsyms.sh
 
27
        sh $(srcdir)/genkernsyms.sh $(filter %h,$^) > $@
 
28
 
 
29
# Programs
 
30
pkgdata_PROGRAMS = grubof
 
31
 
 
32
# Utilities.
 
33
#bin_UTILITIES = grub-emu grub-mkimage
 
34
noinst_UTILITIES = genmoddep
 
35
 
 
36
# For grub-mkimage.
 
37
grub_mkimage_SOURCES = util/sparc64/ieee1275/grub-mkimage.c util/misc.c \
 
38
        util/resolve.c 
 
39
 
 
40
# For grub-emu
 
41
#grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c       \
 
42
#       commands/configfile.c commands/default.c commands/help.c        \
 
43
#       commands/search.c commands/terminal.c commands/ls.c             \
 
44
#       commands/timeout.c commands/test.c                              \
 
45
#       commands/ieee1275/halt.c commands/ieee1275/reboot.c             \
 
46
#       disk/loopback.c                                                 \
 
47
#       fs/affs.c fs/ext2.c fs/fat.c fs/fshelp.c fs/hfs.c fs/iso9660.c  \
 
48
#       fs/jfs.c fs/minix.c fs/sfs.c fs/ufs.c fs/xfs.c                  \
 
49
#       grub_script.tab.c                                               \
 
50
#       io/gzio.c                                                       \
 
51
#       kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c       \
 
52
#       kern/file.c kern/fs.c kern/loader.c kern/main.c kern/misc.c     \
 
53
#       kern/parser.c kern/partition.c kern/rescue.c kern/term.c        \
 
54
#       normal/arg.c normal/cmdline.c normal/command.c                  \
 
55
#       normal/completion.c normal/context.c normal/execute.c           \
 
56
#       normal/function.c normal/lexer.c                                \
 
57
#       normal/main.c normal/menu.c normal/menu_entry.c normal/misc.c   \
 
58
#       partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c      \
 
59
#       partmap/acorn.c                                                 \
 
60
#       util/console.c util/grub-emu.c util/misc.c                      \
 
61
#       util/i386/pc/biosdisk.c util/i386/pc/getroot.c                  \
 
62
#       util/sparc64/ieee1275/misc.c
 
63
 
 
64
grub_emu_LDFLAGS = $(LIBCURSES)
 
65
 
 
66
grubof_SOURCES = kern/sparc64/ieee1275/init.c kern/ieee1275/ieee1275.c \
 
67
        kern/main.c kern/device.c kern/disk.c kern/dl.c kern/file.c \
 
68
        kern/fs.c kern/err.c kern/misc.c kern/mm.c kern/loader.c \
 
69
        kern/rescue.c kern/term.c term/ieee1275/ofconsole.c \
 
70
        kern/sparc64/ieee1275/openfw.c disk/ieee1275/ofdisk.c \
 
71
        kern/partition.c kern/env.c kern/sparc64/dl.c grubof_symlist.c \
 
72
        kern/sparc64/cache.S kern/parser.c
 
73
grubof_HEADERS = grub/sparc64/ieee1275/ieee1275.h
 
74
grubof_CFLAGS = $(COMMON_CFLAGS)
 
75
grubof_ASFLAGS = $(COMMON_ASFLAGS)
 
76
grubof_LDFLAGS = -mno-app-regs -nostdlib -Wl,-N,-Ttext,0x200000,-Bstatic,-melf64_sparc
 
77
 
 
78
# For genmoddep.
 
79
genmoddep_SOURCES = util/genmoddep.c
 
80
 
 
81
# Modules.
 
82
#_linux.mod linux.mod
 
83
pkgdata_MODULES = fat.mod ufs.mod ext2.mod minix.mod \
 
84
        hfs.mod jfs.mod normal.mod hello.mod font.mod ls.mod \
 
85
        boot.mod cmp.mod cat.mod terminal.mod fshelp.mod amiga.mod apple.mod \
 
86
        pc.mod suspend.mod loopback.mod help.mod reboot.mod halt.mod sun.mod \
 
87
        default.mod timeout.mod configfile.mod search.mod gzio.mod xfs.mod \
 
88
        affs.mod sfs.mod acorn.mod
 
89
 
 
90
# For fshelp.mod.
 
91
fshelp_mod_SOURCES = fs/fshelp.c
 
92
fshelp_mod_CFLAGS = $(COMMON_CFLAGS)
 
93
fshelp_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
94
 
 
95
# For fat.mod.
 
96
fat_mod_SOURCES = fs/fat.c
 
97
fat_mod_CFLAGS = $(COMMON_CFLAGS)
 
98
fat_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
99
 
 
100
# For ext2.mod.
 
101
ext2_mod_SOURCES = fs/ext2.c
 
102
ext2_mod_CFLAGS = $(COMMON_CFLAGS)
 
103
ext2_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
104
 
 
105
# For ufs.mod.
 
106
ufs_mod_SOURCES = fs/ufs.c
 
107
ufs_mod_CFLAGS = $(COMMON_CFLAGS)
 
108
ufs_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
109
 
 
110
# For minix.mod.
 
111
minix_mod_SOURCES = fs/minix.c
 
112
minix_mod_CFLAGS = $(COMMON_CFLAGS)
 
113
minix_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
114
 
 
115
# For hfs.mod.
 
116
hfs_mod_SOURCES = fs/hfs.c
 
117
hfs_mod_CFLAGS = $(COMMON_CFLAGS)
 
118
hfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
119
 
 
120
# For jfs.mod.
 
121
jfs_mod_SOURCES = fs/jfs.c
 
122
jfs_mod_CFLAGS = $(COMMON_CFLAGS)
 
123
jfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
124
 
 
125
# For iso9660.mod.
 
126
iso9660_mod_SOURCES = fs/iso9660.c
 
127
iso9660_mod_CFLAGS = $(COMMON_CFLAGS)
 
128
iso9660_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
129
 
 
130
# For xfs.mod.
 
131
xfs_mod_SOURCES = fs/xfs.c
 
132
xfs_mod_CFLAGS = $(COMMON_CFLAGS)
 
133
xfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
134
 
 
135
# For affs.mod.
 
136
affs_mod_SOURCES = fs/affs.c
 
137
affs_mod_CFLAGS = $(COMMON_CFLAGS)
 
138
affs_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
139
 
 
140
# For sfs.mod.
 
141
sfs_mod_SOURCES = fs/sfs.c
 
142
sfs_mod_CFLAGS = $(COMMON_CFLAGS)
 
143
sfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
144
 
 
145
# For _linux.mod.
 
146
#_linux_mod_SOURCES = loader/sparc64/ieee1275/linux.c
 
147
#_linux_mod_CFLAGS = $(COMMON_CFLAGS)
 
148
#_linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
149
 
 
150
# For linux.mod.
 
151
#linux_mod_SOURCES = loader/sparc64/ieee1275/linux_normal.c
 
152
#linux_mod_CFLAGS = $(COMMON_CFLAGS)
 
153
#linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
154
 
 
155
# For normal.mod.
 
156
normal_mod_SOURCES = normal/arg.c normal/cmdline.c normal/command.c     \
 
157
        normal/completion.c normal/context.c normal/execute.c           \
 
158
        normal/function.c normal/lexer.c normal/main.c normal/menu.c    \
 
159
        normal/menu_entry.c normal/misc.c normal/script.c               \
 
160
        normal/sparc64/setjmp.S                                         \
 
161
        grub_script.tab.c
 
162
normal_mod_CFLAGS = $(COMMON_CFLAGS)
 
163
normal_mod_ASFLAGS = $(COMMON_ASFLAGS)
 
164
normal_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
165
 
 
166
# For hello.mod.
 
167
hello_mod_SOURCES = hello/hello.c
 
168
hello_mod_CFLAGS = $(COMMON_CFLAGS)
 
169
hello_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
170
 
 
171
# For boot.mod.
 
172
boot_mod_SOURCES = commands/boot.c
 
173
boot_mod_CFLAGS = $(COMMON_CFLAGS)
 
174
boot_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
175
 
 
176
# For terminal.mod.
 
177
terminal_mod_SOURCES = commands/terminal.c
 
178
terminal_mod_CFLAGS = $(COMMON_CFLAGS)
 
179
terminal_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
180
 
 
181
# For ls.mod.
 
182
ls_mod_SOURCES = commands/ls.c
 
183
ls_mod_CFLAGS = $(COMMON_CFLAGS)
 
184
ls_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
185
 
 
186
# For cmp.mod.
 
187
cmp_mod_SOURCES = commands/cmp.c
 
188
cmp_mod_CFLAGS = $(COMMON_CFLAGS)
 
189
cmp_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
190
 
 
191
# For cat.mod.
 
192
cat_mod_SOURCES = commands/cat.c
 
193
cat_mod_CFLAGS = $(COMMON_CFLAGS)
 
194
cat_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
195
 
 
196
# For font.mod.
 
197
font_mod_SOURCES = font/manager.c
 
198
font_mod_CFLAGS = $(COMMON_CFLAGS)
 
199
font_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
200
 
 
201
# For amiga.mod
 
202
amiga_mod_SOURCES = partmap/amiga.c
 
203
amiga_mod_CFLAGS = $(COMMON_CFLAGS)
 
204
amiga_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
205
 
 
206
# For apple.mod
 
207
apple_mod_SOURCES = partmap/apple.c
 
208
apple_mod_CFLAGS = $(COMMON_CFLAGS)
 
209
apple_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
210
 
 
211
# For pc.mod
 
212
pc_mod_SOURCES = partmap/pc.c
 
213
pc_mod_CFLAGS = $(COMMON_CFLAGS)
 
214
pc_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
215
 
 
216
# For sun.mod
 
217
sun_mod_SOURCES = partmap/sun.c
 
218
sun_mod_CFLAGS = $(COMMON_CFLAGS)
 
219
sun_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
220
 
 
221
# For acorn.mod
 
222
acorn_mod_SOURCES = partmap/acorn.c
 
223
acorn_mod_CFLAGS = $(COMMON_CFLAGS)
 
224
 
 
225
# For loopback.mod
 
226
loopback_mod_SOURCES = disk/loopback.c
 
227
loopback_mod_CFLAGS = $(COMMON_CFLAGS)
 
228
loopback_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
229
 
 
230
# For suspend.mod
 
231
suspend_mod_SOURCES = commands/ieee1275/suspend.c
 
232
suspend_mod_CFLAGS = $(COMMON_CFLAGS)
 
233
suspend_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
234
 
 
235
# For reboot.mod
 
236
reboot_mod_SOURCES = commands/ieee1275/reboot.c
 
237
reboot_mod_CFLAGS = $(COMMON_CFLAGS)
 
238
reboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
239
 
 
240
# For halt.mod
 
241
halt_mod_SOURCES = commands/ieee1275/halt.c
 
242
halt_mod_CFLAGS = $(COMMON_CFLAGS)
 
243
halt_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
244
 
 
245
# For help.mod.
 
246
help_mod_SOURCES = commands/help.c
 
247
help_mod_CFLAGS = $(COMMON_CFLAGS)
 
248
help_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
249
 
 
250
# For default.mod
 
251
default_mod_SOURCES = commands/default.c
 
252
default_mod_CFLAGS =  $(COMMON_CFLAGS)
 
253
default_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
254
 
 
255
# For timeout.mod
 
256
timeout_mod_SOURCES = commands/timeout.c
 
257
timeout_mod_CFLAGS =  $(COMMON_CFLAGS)
 
258
timeout_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
259
 
 
260
# For configfile.mod
 
261
configfile_mod_SOURCES = commands/configfile.c
 
262
configfile_mod_CFLAGS = $(COMMON_CFLAGS)
 
263
configfile_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
264
 
 
265
# For search.mod.
 
266
search_mod_SOURCES = commands/search.c
 
267
search_mod_CFLAGS = $(COMMON_CFLAGS)
 
268
search_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
269
 
 
270
# For gzio.mod.
 
271
gzio_mod_SOURCES = io/gzio.c
 
272
gzio_mod_CFLAGS = $(COMMON_CFLAGS)
 
273
gzio_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
274
 
 
275
# For test.mod.
 
276
test_mod_SOURCES = commands/test.c
 
277
test_mod_CFLAGS = $(COMMON_CFLAGS)
 
278
test_mod_LDFLAGS = $(COMMON_LDFLAGS)