|
|
1.1 root 1: # *****************************************************************************
2: # * Copyright (c) 2004, 2011 IBM Corporation
3: # * All rights reserved.
4: # * This program and the accompanying materials
5: # * are made available under the terms of the BSD License
6: # * which accompanies this distribution, and is available at
7: # * http://www.opensource.org/licenses/bsd-license.php
8: # *
9: # * Contributors:
10: # * IBM Corporation - initial implementation
11: # ****************************************************************************/
12:
13:
14: include ../Makefile.dirs
15:
16: include $(TOPBRDDIR)/config
17: include $(TOPCMNDIR)/make.rules
18:
19:
20: all: Makefile.dep OF.ffs paflof $(SLOFCMNDIR)/xvect.bin
21:
22: CPPFLAGS = -I$(LIBCMNDIR)/libbootmsg -I$(LIBCMNDIR)/libhvcall \
23: -I$(LIBCMNDIR)/libnvram
24: SLOF_LIBS = $(LIBCMNDIR)/libbootmsg.a $(LIBCMNDIR)/libhvcall.a \
25: $(LIBCMNDIR)/libnvram.a
26: BOARD_SLOF_IN = \
27: $(LIBCMNDIR)/libhvcall/hvcall.in \
28: $(LIBCMNDIR)/libbootmsg/bootmsg.in \
29: $(LIBCMNDIR)/libnvram/libnvram.in \
30: $(LIBCMNDIR)/libbases/libbases.in
31: BOARD_SLOF_CODE = $(BOARD_SLOF_IN:%.in=%.code)
32:
33: include $(SLOFCMNDIR)/Makefile.inc
34:
35: FPPINCLUDES = -I. -I$(SLOFCMNDIR)/fs -I$(SLOFCMNDIR)
36:
37: # FCode Evaluator files for the ROM fs:
38: FCODE_FFS_FILES = \
39: $(SLOFCMNDIR)/fs/fcode/core.fs \
40: $(SLOFCMNDIR)/fs/fcode/evaluator.fs \
41: $(SLOFCMNDIR)/fs/fcode/big.fs \
42: $(SLOFCMNDIR)/fs/fcode/tokens.fs \
43: $(SLOFCMNDIR)/fs/fcode/1275.fs
44:
45:
46: USB_FFS_FILES = \
47: $(SLOFCMNDIR)/fs/devices/pci-class_0c.fs \
48: $(SLOFCMNDIR)/fs/usb/usb-ohci.fs \
49: $(SLOFCMNDIR)/fs/usb/usb-support.fs \
50: $(SLOFCMNDIR)/fs/usb/usb-hub.fs \
51: $(SLOFCMNDIR)/fs/usb/usb-enumerate.fs \
52: $(SLOFCMNDIR)/fs/usb/usb-storage.fs \
53: $(SLOFCMNDIR)/fs/usb/usb-storage-support.fs \
54: $(SLOFCMNDIR)/fs/usb/usb-storage-wrapper.fs \
55: $(SLOFCMNDIR)/fs/usb/usb-keyboard.fs \
56: $(SLOFCMNDIR)/fs/usb/usb-kbd-device-support.fs \
57: $(SLOFCMNDIR)/fs/usb/usb-mouse.fs \
58: $(SLOFCMNDIR)/fs/scsi-support.fs
59:
60: VIO_FFS_FILES = \
61: $(SLOFBRDDIR)/vio-hvterm.fs \
62: $(SLOFBRDDIR)/vio-vscsi.fs \
63: $(SLOFBRDDIR)/vio-vscsi-device.fs \
64: $(SLOFBRDDIR)/vio-veth.fs
65:
66: # Files that should go into the ROM fs (and so have to be listed in OF.ffs):
67: OF_FFS_FILES = \
68: $(SLOFCMNDIR)/fs/ide.fs \
69: $(SLOFCMNDIR)/fs/fbuffer.fs \
70: $(SLOFCMNDIR)/fs/generic-disk.fs \
71: $(SLOFCMNDIR)/fs/pci-device.fs \
72: $(SLOFCMNDIR)/fs/pci-bridge.fs \
73: $(SLOFCMNDIR)/fs/pci-properties.fs \
74: $(SLOFCMNDIR)/fs/pci-config-bridge.fs \
75: $(SLOFCMNDIR)/fs/update_flash.fs \
76: $(SLOFCMNDIR)/fs/xmodem.fs \
77: $(SLOFBRDDIR)/default-font.bin \
78: $(FCODE_FFS_FILES)
79:
80: # Uncomment the following line to enable the USB code:
81: OF_FFS_FILES += $(USB_FFS_FILES) $(VIO_FFS_FILES)
82:
83: OF_FFS_FILES := $(OF_FFS_FILES:%.fs=%.fsi)
84:
85: OF.ffs: Makefile $(SLOFCMNDIR)/Makefile.inc $(OF_FFS_FILES)
86: $(MAKE) create_OF_ffs
87:
88: # Rules for cleaning up:
89: .PHONY: clean_here clean distclean
90:
91: clean_here:
92: rm -f *.o OF.fsi OF.ffs
93:
94: clean: clean_here clean_slof
95:
96: distclean: clean_here distclean_slof
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.