1 # *****************************************************************************
2 # * Copyright (c) 2004, 2008 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
10 # * IBM Corporation - initial implementation
11 # ****************************************************************************/
14 include ../Makefile.dirs
16 include $(TOPBRDDIR)/config
17 include $(TOPCMNDIR)/make.rules
20 all: Makefile.dep OF.ffs paflof $(SLOFCMNDIR)/xvect.bin
22 CPPFLAGS = -I$(LIBCMNDIR)/libbootmsg -I$(LIBCMNDIR)/libnvram \
23 -I$(LIBCMNDIR)/libusb -I$(LIBCMNDIR)/libbcm
25 $(LIBCMNDIR)/libbootmsg.a \
26 $(LIBCMNDIR)/libelf.a \
27 $(LIBCMNDIR)/libusb.a \
28 $(LIBCMNDIR)/libnvram.a \
31 $(LIBCMNDIR)/libbootmsg/bootmsg.in \
32 $(LIBCMNDIR)/libelf/libelf.in \
33 $(LIBCMNDIR)/libusb/usb.in \
34 $(LIBCMNDIR)/libbases/libbases.in \
35 $(LIBCMNDIR)/libnvram/libnvram.in \
36 $(LIBCMNDIR)/libnativeio/nativeio.in \
37 $(LIBCMNDIR)/libbcm/bcm.in
38 BOARD_SLOF_CODE = $(BOARD_SLOF_IN:%.in=%.code)
40 include $(SLOFCMNDIR)/Makefile.inc
42 FPPINCLUDES = -I. -I$(SLOFCMNDIR)/fs -I$(SLOFCMNDIR)
45 $(SLOFCMNDIR)/fs/devices/pci-class_0c.fs \
46 $(SLOFCMNDIR)/fs/usb/dev-hci.fs \
47 $(SLOFCMNDIR)/fs/usb/slofdev.fs \
48 $(SLOFCMNDIR)/fs/usb/dev-parent-calls.fs \
49 $(SLOFCMNDIR)/fs/usb/dev-keyb.fs \
50 $(SLOFCMNDIR)/fs/usb/dev-mouse.fs \
51 $(SLOFCMNDIR)/fs/usb/dev-storage.fs \
52 $(SLOFCMNDIR)/fs/usb/dev-hub.fs
54 # Files that should go into the ROM fs (and so have to be listed in OF.ffs):
56 $(SLOFBRDDIR)/u4-mem.fs \
57 $(SLOFBRDDIR)/attu.fs \
58 $(SLOFBRDDIR)/cpu.fs \
59 $(SLOFBRDDIR)/ioapic.fs \
60 $(SLOFBRDDIR)/dma-function.fs \
61 $(SLOFBRDDIR)/pci-bridge_1022_7460.fs \
62 $(SLOFBRDDIR)/pci-device_1014_028c.fs \
63 $(SLOFBRDDIR)/pci-device_1014_02bd.fs \
64 $(SLOFBRDDIR)/pci-device_1022_7468.fs \
65 $(SLOFBRDDIR)/pci-device_1022_7469.fs \
66 $(SLOFBRDDIR)/pci-device_1022_7451.fs \
67 $(SLOFBRDDIR)/pci-device_14e4_16a8.fs \
68 $(SLOFBRDDIR)/bcm57xx.fs \
69 $(SLOFBRDDIR)/pci-class_03.fs \
70 $(SLOFBRDDIR)/vga-display.fs \
71 $(SLOFBRDDIR)/freq.fs \
72 $(SLOFBRDDIR)/pci-device_1002_515e.fs \
73 $(SLOFBRDDIR)/citrine.fs \
74 $(SLOFBRDDIR)/citrine-disk.fs \
75 $(SLOFBRDDIR)/sio.fs \
76 $(SLOFBRDDIR)/tpm.fs \
77 $(SLOFBRDDIR)/ipmi-kcs.fs \
78 $(SLOFCMNDIR)/fs/ide.fs \
79 $(SLOFCMNDIR)/fs/fbuffer.fs \
80 $(SLOFCMNDIR)/fs/graphics.fs \
81 $(SLOFCMNDIR)/fs/generic-disk.fs \
82 $(SLOFCMNDIR)/fs/scsi-disk.fs \
83 $(SLOFCMNDIR)/fs/scsi-host-helpers.fs \
84 $(SLOFCMNDIR)/fs/scsi-probe-helpers.fs \
85 $(SLOFCMNDIR)/fs/scsi-support.fs \
86 $(SLOFCMNDIR)/fs/pci-device.fs \
87 $(SLOFCMNDIR)/fs/pci-bridge.fs \
88 $(SLOFCMNDIR)/fs/pci-properties.fs \
89 $(SLOFCMNDIR)/fs/pci-config-bridge.fs \
90 $(SLOFCMNDIR)/fs/update_flash.fs \
91 $(SLOFCMNDIR)/fs/xmodem.fs \
92 $(SLOFCMNDIR)/fs/devices/pci-device_10de_0141.fs \
93 $(SLOFCMNDIR)/fs/devices/pci-class_02.fs \
94 $(SLOFBRDDIR)/default-font.bin
96 # Uncomment the following line to enable the USB code:
97 OF_FFS_FILES += $(USB_FFS_FILES)
99 OF_FFS_FILES := $(OF_FFS_FILES:%.fs=%.fsi)
101 OF.ffs: Makefile $(SLOFCMNDIR)/Makefile.inc $(OF_FFS_FILES)
102 $(MAKE) create_OF_ffs
104 # Rules for cleaning up:
105 .PHONY: clean_here clean distclean
108 rm -f *.o OF.fsi OF.ffs
110 clean: clean_here clean_slof
112 distclean: clean_here distclean_slof