Updated PCI IDs to latest snapshot.
[tangerine.git] / arch / common / boot / grub2 / conf / i386-ieee1275.rmk
blobbbd856640cde4322a414c11e333a6cf9bfb89180
1 # -*- makefile -*-
3 COMMON_ASFLAGS  = -m32 -nostdinc -fno-builtin
4 COMMON_CFLAGS   = -ffreestanding -mrtd -mregparm=3
5 COMMON_LDFLAGS  = -nostdlib -static -lgcc
7 # Used by various components.  These rules need to precede them.
8 normal/lexer.c_DEPENDENCIES = grub_script.tab.h
10 # Images.
11 pkglib_PROGRAMS = kernel.elf
13 # For kernel.elf.
14 kernel_elf_SOURCES = kern/i386/ieee1275/startup.S kern/i386/ieee1275/init.c \
15         kern/ieee1275/init.c \
16         kern/ieee1275/cmain.c kern/ieee1275/openfw.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         kern/time.c \
23         kern/generic/millisleep.c \
24         kern/ieee1275/ieee1275.c \
25         term/ieee1275/ofconsole.c \
26         disk/ieee1275/ofdisk.c \
27         symlist.c
28 kernel_elf_HEADERS = arg.h cache.h device.h disk.h dl.h elf.h elfload.h \
29         env.h err.h file.h fs.h kernel.h loader.h misc.h mm.h net.h parser.h \
30         partition.h pc_partition.h rescue.h symbol.h term.h time.h types.h \
31         ieee1275/ieee1275.h machine/kernel.h machine/loader.h machine/memory.h
32 kernel_elf_CFLAGS = $(COMMON_CFLAGS)
33 kernel_elf_LDFLAGS = $(COMMON_LDFLAGS) -Wl,-N,-S,-Ttext,0x10000,-Bstatic
35 MOSTLYCLEANFILES += symlist.c kernel_syms.lst
36 DEFSYMFILES += kernel_syms.lst
38 symlist.c: $(addprefix include/grub/,$(kernel_elf_HEADERS)) config.h gensymlist.sh
39         /bin/sh gensymlist.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1)
41 kernel_syms.lst: $(addprefix include/grub/,$(kernel_elf_HEADERS)) config.h genkernsyms.sh
42         /bin/sh genkernsyms.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1)
44 # Utilities.
45 sbin_UTILITIES = grub-mkdevicemap
46 ifeq ($(enable_grub_emu), yes)
47 sbin_UTILITIES += grub-emu
48 endif
50 # For grub-mkdevicemap.
51 grub_mkdevicemap_SOURCES = util/grub-mkdevicemap.c util/misc.c
53 # For grub-emu.
54 util/grub-emu.c_DEPENDENCIES = grub_emu_init.h
55 grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c        \
56         commands/configfile.c commands/echo.c commands/help.c           \
57         commands/terminal.c commands/ls.c commands/test.c               \
58         commands/search.c commands/blocklist.c commands/hexdump.c       \
59         lib/hexdump.c commands/halt.c commands/reboot.c                 \
60         commands/i386/cpuid.c                                           \
61         disk/host.c disk/loopback.c                                     \
62         \
63         fs/affs.c fs/cpio.c fs/ext2.c fs/fat.c fs/hfs.c                 \
64         fs/hfsplus.c fs/iso9660.c fs/udf.c fs/jfs.c fs/minix.c          \
65         fs/ntfs.c fs/ntfscomp.c fs/reiserfs.c fs/sfs.c                  \
66         fs/ufs.c fs/xfs.c fs/afs.c                                      \
67         \
68         fs/fshelp.c                                                     \
69         io/gzio.c                                                       \
70         kern/device.c kern/disk.c kern/dl.c kern/elf.c kern/env.c       \
71         kern/err.c                                                      \
72         normal/execute.c kern/file.c kern/fs.c normal/lexer.c           \
73         kern/loader.c kern/main.c kern/misc.c kern/parser.c             \
74         grub_script.tab.c kern/partition.c kern/rescue.c kern/term.c    \
75         normal/arg.c normal/cmdline.c normal/command.c normal/function.c\
76         normal/completion.c normal/main.c                               \
77         normal/menu.c normal/menu_entry.c normal/misc.c normal/script.c \
78         normal/color.c                                                  \
79         partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c      \
80         partmap/acorn.c partmap/gpt.c                                   \
81         util/console.c util/hostfs.c util/grub-emu.c util/misc.c        \
82         util/hostdisk.c util/getroot.c                                  \
83         util/i386/pc/misc.c                                             \
84         \
85         disk/raid.c disk/raid5_recover.c disk/raid6_recover.c           \
86         disk/mdraid_linux.c disk/dmraid_nvidia.c disk/lvm.c             \
87         grub_emu_init.c
89 grub_emu_LDFLAGS = $(LIBCURSES)
91 # Scripts.
92 sbin_SCRIPTS = grub-install
94 # For grub-install.
95 grub_install_SOURCES = util/ieee1275/grub-install.in
97 # Modules.
98 pkglib_MODULES = normal.mod halt.mod reboot.mod suspend.mod             \
99         multiboot.mod _multiboot.mod aout.mod serial.mod linux.mod      \
100         _linux.mod nand.mod memdisk.mod pci.mod lspci.mod datetime.mod  \
101         date.mod datehook.mod
103 # For normal.mod.
104 normal_mod_SOURCES = normal/arg.c normal/cmdline.c normal/command.c     \
105         normal/completion.c normal/execute.c                            \
106         normal/function.c normal/lexer.c normal/main.c normal/menu.c    \
107         normal/menu_entry.c normal/misc.c grub_script.tab.c             \
108         normal/script.c normal/i386/setjmp.S normal/color.c
109 normal_mod_CFLAGS = $(COMMON_CFLAGS)
110 normal_mod_ASFLAGS = $(COMMON_ASFLAGS)
111 normal_mod_LDFLAGS = $(COMMON_LDFLAGS)
113 # For _multiboot.mod.
114 _multiboot_mod_SOURCES = loader/ieee1275/multiboot2.c \
115                          loader/multiboot2.c \
116                          loader/multiboot_loader.c
117 _multiboot_mod_CFLAGS = $(COMMON_CFLAGS)
118 _multiboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
120 # For multiboot.mod.
121 multiboot_mod_SOURCES = loader/multiboot_loader_normal.c 
122 multiboot_mod_CFLAGS = $(COMMON_CFLAGS)
123 multiboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
125 # For aout.mod.
126 aout_mod_SOURCES = loader/aout.c
127 aout_mod_CFLAGS = $(COMMON_CFLAGS)
128 aout_mod_LDFLAGS = $(COMMON_LDFLAGS)
130 # For suspend.mod
131 suspend_mod_SOURCES = commands/ieee1275/suspend.c
132 suspend_mod_CFLAGS = $(COMMON_CFLAGS)
133 suspend_mod_LDFLAGS = $(COMMON_LDFLAGS)
135 # For reboot.mod
136 reboot_mod_SOURCES = commands/reboot.c
137 reboot_mod_CFLAGS = $(COMMON_CFLAGS)
138 reboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
140 # For halt.mod
141 halt_mod_SOURCES = commands/halt.c
142 halt_mod_CFLAGS = $(COMMON_CFLAGS)
143 halt_mod_LDFLAGS = $(COMMON_LDFLAGS)
145 # For serial.mod.
146 serial_mod_SOURCES = term/i386/pc/serial.c
147 serial_mod_CFLAGS = $(COMMON_CFLAGS)
148 serial_mod_LDFLAGS = $(COMMON_LDFLAGS)
150 # For _linux.mod.
151 _linux_mod_SOURCES = loader/i386/ieee1275/linux.c
152 _linux_mod_CFLAGS = $(COMMON_CFLAGS)
153 _linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
155 # For linux.mod.
156 linux_mod_SOURCES = loader/linux_normal.c
157 linux_mod_CFLAGS = $(COMMON_CFLAGS)
158 linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
160 # For nand.mod.
161 nand_mod_SOURCES = disk/ieee1275/nand.c
162 nand_mod_CFLAGS = $(COMMON_CFLAGS)
163 nand_mod_LDFLAGS = $(COMMON_LDFLAGS)
165 # For memdisk.mod.
166 memdisk_mod_SOURCES = disk/memdisk.c
167 memdisk_mod_CFLAGS = $(COMMON_CFLAGS)
168 memdisk_mod_LDFLAGS = $(COMMON_LDFLAGS)
170 # For pci.mod
171 pci_mod_SOURCES = bus/pci.c
172 pci_mod_CFLAGS = $(COMMON_CFLAGS)
173 pci_mod_LDFLAGS = $(COMMON_LDFLAGS)
175 # For lspci.mod
176 lspci_mod_SOURCES = commands/lspci.c
177 lspci_mod_CFLAGS = $(COMMON_CFLAGS)
178 lspci_mod_LDFLAGS = $(COMMON_LDFLAGS)
180 # For datetime.mod
181 datetime_mod_SOURCES = lib/datetime.c lib/i386/datetime.c
182 datetime_mod_CFLAGS = $(COMMON_CFLAGS)
183 datetime_mod_LDFLAGS = $(COMMON_LDFLAGS)
185 # For date.mod
186 date_mod_SOURCES = commands/date.c
187 date_mod_CFLAGS = $(COMMON_CFLAGS)
188 date_mod_LDFLAGS = $(COMMON_LDFLAGS)
190 # For datehook.mod
191 datehook_mod_SOURCES = hook/datehook.c
192 datehook_mod_CFLAGS = $(COMMON_CFLAGS)
193 datehook_mod_LDFLAGS = $(COMMON_LDFLAGS)
195 include $(srcdir)/conf/i386.mk
196 include $(srcdir)/conf/common.mk