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

« back to all changes in this revision

Viewing changes to conf/i386-linuxbios.rmk

  • Committer: Bazaar Package Importer
  • Author(s): Robert Millan
  • Date: 2007-11-01 13:18:51 UTC
  • mto: (17.3.1 squeeze) (1.9.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20071101131851-63uqsb4dax2h1cbm
Tags: upstream-1.95+20071101
ImportĀ upstreamĀ versionĀ 1.95+20071101

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- makefile -*-
 
2
 
 
3
COMMON_ASFLAGS  = -m32 -nostdinc -fno-builtin
 
4
COMMON_CFLAGS   = -ffreestanding -mrtd -mregparm=3
 
5
COMMON_LDFLAGS  = -nostdlib -static -lgcc
 
6
 
 
7
# Images.
 
8
pkgdata_PROGRAMS = kernel.elf
 
9
 
 
10
# For kernel.elf.
 
11
kernel_elf_SOURCES = kern/i386/linuxbios/startup.S kern/i386/linuxbios/init.c \
 
12
        kern/i386/linuxbios/table.c \
 
13
        kern/main.c kern/device.c \
 
14
        kern/disk.c kern/dl.c kern/file.c kern/fs.c kern/err.c \
 
15
        kern/misc.c kern/mm.c kern/loader.c kern/rescue.c kern/term.c \
 
16
        kern/i386/dl.c kern/parser.c kern/partition.c \
 
17
        kern/env.c \
 
18
        term/i386/pc/console.c \
 
19
        term/i386/pc/at_keyboard.c term/i386/pc/vga_text.c \
 
20
        symlist.c
 
21
kernel_elf_HEADERS = arg.h boot.h cache.h device.h disk.h dl.h elf.h elfload.h \
 
22
        env.h err.h file.h fs.h kernel.h loader.h misc.h mm.h net.h parser.h \
 
23
        partition.h pc_partition.h rescue.h symbol.h term.h time.h types.h \
 
24
        machine/boot.h machine/console.h machine/init.h \
 
25
        machine/memory.h machine/loader.h
 
26
kernel_elf_CFLAGS = $(COMMON_CFLAGS)
 
27
kernel_elf_LDFLAGS = $(COMMON_LDFLAGS) -Wl,-N,-S,-Ttext,0x8200,-Bstatic
 
28
 
 
29
MOSTLYCLEANFILES += symlist.c kernel_syms.lst
 
30
DEFSYMFILES += kernel_syms.lst
 
31
 
 
32
symlist.c: $(addprefix include/grub/,$(kernel_elf_HEADERS)) config.h gensymlist.sh
 
33
        /bin/sh gensymlist.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1)
 
34
 
 
35
kernel_syms.lst: $(addprefix include/grub/,$(kernel_elf_HEADERS)) config.h genkernsyms.sh
 
36
        /bin/sh genkernsyms.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1)
 
37
 
 
38
# Utilities.
 
39
bin_UTILITIES = grub-mkimage
 
40
sbin_UTILITIES = grub-mkdevicemap grub-probe
 
41
ifeq ($(enable_grub_emu), yes)
 
42
sbin_UTILITIES += grub-emu
 
43
endif
 
44
 
 
45
# For grub-mkimage.
 
46
grub_mkimage_SOURCES = util/elf/grub-mkimage.c util/misc.c \
 
47
        util/resolve.c
 
48
grub_mkimage_LDFLAGS = $(LIBLZO)
 
49
 
 
50
# For grub-mkdevicemap.
 
51
grub_mkdevicemap_SOURCES = util/grub-mkdevicemap.c util/misc.c          \
 
52
        util/i386/get_disk_name.c
 
53
 
 
54
# For grub-probe.
 
55
util/grub-probe.c_DEPENDENCIES = grub_probe_init.h
 
56
grub_probe_SOURCES = util/grub-probe.c  \
 
57
        util/biosdisk.c util/misc.c util/getroot.c      \
 
58
        kern/device.c kern/disk.c kern/err.c kern/misc.c fs/fat.c       \
 
59
        fs/ext2.c kern/parser.c kern/partition.c                        \
 
60
        partmap/pc.c partmap/apple.c partmap/gpt.c                      \
 
61
        fs/ufs.c fs/minix.c fs/hfs.c fs/jfs.c fs/ntfs.c kern/fs.c       \
 
62
        kern/env.c fs/fshelp.c fs/xfs.c fs/affs.c fs/sfs.c fs/hfsplus.c \
 
63
        disk/lvm.c disk/raid.c grub_probe_init.c
 
64
 
 
65
# For grub-emu.
 
66
grub_emu_DEPENDENCIES = grub_script.tab.c grub_script.tab.h             \
 
67
        grub_emu_init.h
 
68
grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c        \
 
69
        commands/configfile.c commands/echo.c commands/help.c           \
 
70
        commands/terminal.c commands/ls.c commands/test.c               \
 
71
        commands/search.c commands/blocklist.c                          \
 
72
        commands/i386/pc/halt.c commands/i386/pc/reboot.c               \
 
73
        commands/i386/cpuid.c                                           \
 
74
        disk/host.c disk/loopback.c     disk/raid.c disk/lvm.c          \
 
75
        fs/affs.c fs/ext2.c fs/fat.c fs/fshelp.c fs/hfs.c fs/iso9660.c  \
 
76
        fs/jfs.c fs/minix.c fs/sfs.c fs/ufs.c fs/xfs.c fs/hfsplus.c     \
 
77
        fs/ntfs.c                                                       \
 
78
        io/gzio.c                                                       \
 
79
        kern/device.c kern/disk.c kern/dl.c kern/elf.c kern/env.c       \
 
80
        kern/err.c                                                      \
 
81
        normal/execute.c kern/file.c kern/fs.c normal/lexer.c           \
 
82
        kern/loader.c kern/main.c kern/misc.c kern/parser.c             \
 
83
        grub_script.tab.c kern/partition.c kern/rescue.c kern/term.c    \
 
84
        normal/arg.c normal/cmdline.c normal/command.c normal/function.c\
 
85
        normal/completion.c normal/main.c                               \
 
86
        normal/menu.c normal/menu_entry.c normal/misc.c normal/script.c \
 
87
        partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c      \
 
88
        partmap/acorn.c partmap/gpt.c                                   \
 
89
        util/console.c util/hostfs.c util/grub-emu.c util/misc.c        \
 
90
        util/biosdisk.c util/getroot.c                  \
 
91
        util/i386/pc/misc.c grub_emu_init.c
 
92
 
 
93
grub_emu_LDFLAGS = $(LIBCURSES)
 
94
 
 
95
# Modules.
 
96
pkgdata_MODULES = _linux.mod linux.mod normal.mod       \
 
97
        _multiboot.mod multiboot.mod play.mod           \
 
98
        cpuid.mod serial.mod
 
99
 
 
100
# For _linux.mod.
 
101
_linux_mod_SOURCES = loader/i386/pc/linux.c
 
102
_linux_mod_CFLAGS = $(COMMON_CFLAGS)
 
103
_linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
104
 
 
105
# For linux.mod.
 
106
linux_mod_SOURCES = loader/i386/pc/linux_normal.c
 
107
linux_mod_CFLAGS = $(COMMON_CFLAGS)
 
108
linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
109
 
 
110
# For normal.mod.
 
111
normal_mod_DEPENDENCIES = grub_script.tab.c grub_script.tab.h
 
112
normal_mod_SOURCES = normal/arg.c normal/cmdline.c normal/command.c     \
 
113
        normal/completion.c normal/execute.c                            \
 
114
        normal/function.c normal/lexer.c normal/main.c normal/menu.c    \
 
115
        normal/menu_entry.c normal/misc.c grub_script.tab.c             \
 
116
        normal/script.c normal/i386/setjmp.S
 
117
normal_mod_CFLAGS = $(COMMON_CFLAGS)
 
118
normal_mod_ASFLAGS = $(COMMON_ASFLAGS)
 
119
normal_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
120
 
 
121
# For serial.mod.
 
122
serial_mod_SOURCES = term/i386/pc/serial.c
 
123
serial_mod_CFLAGS = $(COMMON_CFLAGS)
 
124
serial_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
125
 
 
126
# For _multiboot.mod.
 
127
_multiboot_mod_SOURCES = loader/i386/pc/multiboot.c \
 
128
                         loader/i386/pc/multiboot2.c \
 
129
                         loader/multiboot2.c \
 
130
                         loader/multiboot_loader.c
 
131
_multiboot_mod_CFLAGS = $(COMMON_CFLAGS)
 
132
_multiboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
133
 
 
134
# For multiboot.mod.
 
135
multiboot_mod_SOURCES = loader/multiboot_loader_normal.c 
 
136
multiboot_mod_CFLAGS = $(COMMON_CFLAGS)
 
137
multiboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
138
 
 
139
# For play.mod.
 
140
play_mod_SOURCES = commands/i386/pc/play.c
 
141
play_mod_CFLAGS = $(COMMON_CFLAGS)
 
142
play_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
143
 
 
144
# For cpuid.mod.
 
145
cpuid_mod_SOURCES = commands/i386/cpuid.c
 
146
cpuid_mod_CFLAGS = $(COMMON_CFLAGS)
 
147
cpuid_mod_LDFLAGS = $(COMMON_LDFLAGS)
 
148
 
 
149
include $(srcdir)/conf/common.mk