~ubuntu-branches/debian/sid/grub2/sid-200907171837

« back to all changes in this revision

Viewing changes to conf/i386-linuxbios.rmk

  • Committer: Bazaar Package Importer
  • Author(s): Robert Millan
  • Date: 2009-07-02 13:23:51 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702132351-tanpn0ryyijp93gu
Tags: 1.96+20090702-1
* New SVN snapshot.
* rules: Remove duplicated files in sparc64-ieee1275 port.
* rules: Comment out -DGRUB_ASSUME_LINUX_HAS_FB_SUPPORT=1 setting.  We'll
  re-evaluate using it when it's more mature.  (Closes: #535026).

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