Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / SLOF / board-js2x / slof / Makefile
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
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)/libnvram \
23            -I$(LIBCMNDIR)/libusb -I$(LIBCMNDIR)/libbcm
24 SLOF_LIBS = \
25         $(LIBCMNDIR)/libbootmsg.a \
26         $(LIBCMNDIR)/libelf.a \
27         $(LIBCMNDIR)/libusb.a \
28         $(LIBCMNDIR)/libnvram.a \
29         $(LIBCMNDIR)/libbcm.a
30 BOARD_SLOF_IN = \
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)
39
40 include $(SLOFCMNDIR)/Makefile.inc
41
42 FPPINCLUDES = -I. -I$(SLOFCMNDIR)/fs -I$(SLOFCMNDIR)
43
44 USB_FFS_FILES = \
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
53
54 # Files that should go into the ROM fs (and so have to be listed in OF.ffs):
55 OF_FFS_FILES = \
56         $(SLOFBRDDIR)/u4-mem.fs \
57         $(SLOFBRDDIR)/attu.fs \
58         $(SLOFBRDDIR)/cpu.fs \
59         $(SLOFBRDDIR)/ioapic.fs \
60         $(SLOFBRDDIR)/pci-bridge_1022_7460.fs \
61         $(SLOFBRDDIR)/pci-device_1014_028c.fs \
62         $(SLOFBRDDIR)/pci-device_1014_02bd.fs \
63         $(SLOFBRDDIR)/pci-device_1022_7468.fs \
64         $(SLOFBRDDIR)/pci-device_1022_7469.fs \
65         $(SLOFBRDDIR)/pci-device_1022_7451.fs \
66         $(SLOFBRDDIR)/pci-device_14e4_16a8.fs \
67         $(SLOFBRDDIR)/bcm57xx.fs \
68         $(SLOFBRDDIR)/pci-class_03.fs \
69         $(SLOFBRDDIR)/vga-display.fs \
70         $(SLOFBRDDIR)/freq.fs \
71         $(SLOFBRDDIR)/pci-device_1002_515e.fs \
72         $(SLOFBRDDIR)/citrine.fs \
73         $(SLOFBRDDIR)/citrine-disk.fs \
74         $(SLOFBRDDIR)/sio.fs \
75         $(SLOFBRDDIR)/tpm.fs \
76         $(SLOFBRDDIR)/ipmi-kcs.fs \
77         $(SLOFCMNDIR)/fs/ide.fs \
78         $(SLOFCMNDIR)/fs/fbuffer.fs \
79         $(SLOFCMNDIR)/fs/graphics.fs \
80         $(SLOFCMNDIR)/fs/generic-disk.fs \
81         $(SLOFCMNDIR)/fs/scsi-disk.fs \
82         $(SLOFCMNDIR)/fs/scsi-host-helpers.fs \
83         $(SLOFCMNDIR)/fs/scsi-probe-helpers.fs \
84         $(SLOFCMNDIR)/fs/scsi-support.fs \
85         $(SLOFCMNDIR)/fs/pci-device.fs \
86         $(SLOFCMNDIR)/fs/pci-bridge.fs \
87         $(SLOFCMNDIR)/fs/pci-properties.fs \
88         $(SLOFCMNDIR)/fs/pci-config-bridge.fs \
89         $(SLOFCMNDIR)/fs/update_flash.fs \
90         $(SLOFCMNDIR)/fs/xmodem.fs \
91         $(SLOFCMNDIR)/fs/devices/pci-device_10de_0141.fs \
92         $(SLOFCMNDIR)/fs/devices/pci-class_02.fs \
93         $(SLOFBRDDIR)/default-font.bin
94
95 # Uncomment the following line to enable the USB code:
96 OF_FFS_FILES += $(USB_FFS_FILES)
97
98 OF_FFS_FILES := $(OF_FFS_FILES:%.fs=%.fsi)
99
100 OF.ffs: Makefile $(SLOFCMNDIR)/Makefile.inc $(OF_FFS_FILES)
101         $(MAKE) create_OF_ffs
102
103 # Rules for cleaning up:
104 .PHONY: clean_here clean distclean
105
106 clean_here:
107         rm -f *.o OF.fsi OF.ffs
108
109 clean: clean_here clean_slof
110
111 distclean: clean_here distclean_slof