blob: 09695a7c5bebef3eb11b65b7b9d1bca0bd62e8c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# *****************************************************************************
# * Copyright (c) 2004, 2008 IBM Corporation
# * All rights reserved.
# * This program and the accompanying materials
# * are made available under the terms of the BSD License
# * which accompanies this distribution, and is available at
# * http://www.opensource.org/licenses/bsd-license.php
# *
# * Contributors:
# * IBM Corporation - initial implementation
# ****************************************************************************/
include ../Makefile.dirs
include $(TOPBRDDIR)/config
include $(TOPCMNDIR)/make.rules
all: Makefile.dep OF.ffs paflof $(SLOFCMNDIR)/xvect.bin
CPPFLAGS = -I$(LIBCMNDIR)/libbootmsg -I$(LIBCMNDIR)/libnvram
SLOF_LIBS = \
$(LIBCMNDIR)/libbootmsg.a \
$(LIBCMNDIR)/libelf.a \
$(LIBCMNDIR)/libnvram.a
BOARD_SLOF_IN = \
$(LIBCMNDIR)/libbootmsg/bootmsg.in \
$(LIBCMNDIR)/libelf/libelf.in \
$(LIBCMNDIR)/libbases/libbases.in \
$(LIBCMNDIR)/libnvram/libnvram.in
BOARD_SLOF_CODE = $(BOARD_SLOF_IN:%.in=%.code)
include $(SLOFCMNDIR)/Makefile.inc
FPPINCLUDES = -I. -I$(SLOFCMNDIR)/fs -I$(SLOFCMNDIR)
# FCode Evaluator files for the ROM fs:
FCODE_FFS_FILES = \
$(SLOFCMNDIR)/fs/fcode/core.fs \
$(SLOFCMNDIR)/fs/fcode/evaluator.fs \
$(SLOFCMNDIR)/fs/fcode/big.fs \
$(SLOFCMNDIR)/fs/fcode/tokens.fs \
$(SLOFCMNDIR)/fs/fcode/1275.fs
USB_FFS_FILES = \
$(SLOFCMNDIR)/fs/devices/pci-class_0c.fs \
$(SLOFCMNDIR)/fs/usb/usb-ohci.fs \
$(SLOFCMNDIR)/fs/usb/usb-support.fs \
$(SLOFCMNDIR)/fs/usb/usb-hub.fs \
$(SLOFCMNDIR)/fs/usb/usb-enumerate.fs \
$(SLOFCMNDIR)/fs/usb/usb-storage.fs \
$(SLOFCMNDIR)/fs/usb/usb-storage-support.fs \
$(SLOFCMNDIR)/fs/usb/usb-storage-wrapper.fs \
$(SLOFCMNDIR)/fs/usb/usb-keyboard.fs \
$(SLOFCMNDIR)/fs/usb/usb-kbd-device-support.fs \
$(SLOFCMNDIR)/fs/usb/usb-mouse.fs \
$(SLOFCMNDIR)/fs/scsi-support.fs
# Files that should go into the ROM fs (and so have to be listed in OF.ffs):
OF_FFS_FILES = \
$(SLOFBRDDIR)/u4-mem.fs \
$(SLOFBRDDIR)/attu.fs \
$(SLOFBRDDIR)/cpu.fs \
$(SLOFBRDDIR)/ioapic.fs \
$(SLOFBRDDIR)/pci-bridge_1022_7460.fs \
$(SLOFBRDDIR)/pci-device_1014_028c.fs \
$(SLOFBRDDIR)/pci-device_1014_02bd.fs \
$(SLOFBRDDIR)/pci-device_1022_7468.fs \
$(SLOFBRDDIR)/pci-device_1022_7469.fs \
$(SLOFBRDDIR)/pci-device_1022_7451.fs \
$(SLOFBRDDIR)/pci-class_03.fs \
$(SLOFBRDDIR)/vga-display.fs \
$(SLOFBRDDIR)/freq.fs \
$(SLOFBRDDIR)/pci-device_1002_515e.fs \
$(SLOFBRDDIR)/citrine.fs \
$(SLOFBRDDIR)/citrine-disk.fs \
$(SLOFBRDDIR)/sio.fs \
$(SLOFBRDDIR)/tpm.fs \
$(SLOFBRDDIR)/ipmi-kcs.fs \
$(SLOFCMNDIR)/fs/ide.fs \
$(SLOFCMNDIR)/fs/fbuffer.fs \
$(SLOFCMNDIR)/fs/generic-disk.fs \
$(SLOFCMNDIR)/fs/pci-device.fs \
$(SLOFCMNDIR)/fs/pci-bridge.fs \
$(SLOFCMNDIR)/fs/pci-properties.fs \
$(SLOFCMNDIR)/fs/pci-config-bridge.fs \
$(SLOFCMNDIR)/fs/update_flash.fs \
$(SLOFCMNDIR)/fs/xmodem.fs \
$(SLOFCMNDIR)/fs/devices/pci-device_10de_0141.fs \
$(SLOFCMNDIR)/fs/devices/pci-class_02.fs \
$(SLOFBRDDIR)/default-font.bin \
$(FCODE_FFS_FILES)
# Uncomment the following line to enable the USB code:
OF_FFS_FILES += $(USB_FFS_FILES)
OF_FFS_FILES := $(OF_FFS_FILES:%.fs=%.fsi)
OF.ffs: Makefile $(SLOFCMNDIR)/Makefile.inc $(OF_FFS_FILES)
$(MAKE) create_OF_ffs
# Rules for cleaning up:
.PHONY: clean_here clean distclean
clean_here:
rm -f *.o OF.fsi OF.ffs
clean: clean_here clean_slof
distclean: clean_here distclean_slof
|