Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / SLOF / board-qemu / slof / Makefile
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 all: version.o Makefile.dep OF.ffs paflof $(SLOFCMNDIR)/xvect.bin
20
21 CPPFLAGS = -I$(LIBCMNDIR)/libbootmsg -I$(LIBCMNDIR)/libhvcall \
22            -I$(LIBCMNDIR)/libvirtio -I$(LIBCMNDIR)/libnvram \
23            -I$(LIBCMNDIR)/libusb -I$(LIBCMNDIR)/libveth \
24            -I$(LIBCMNDIR)/libe1k
25 SLOF_LIBS = \
26         $(LIBCMNDIR)/libbootmsg.a \
27         $(LIBCMNDIR)/libelf.a \
28         $(LIBCMNDIR)/libhvcall.a \
29         $(LIBCMNDIR)/libvirtio.a \
30         $(LIBCMNDIR)/libusb.a \
31         $(LIBCMNDIR)/libnvram.a \
32         $(LIBCMNDIR)/libveth.a \
33         $(LIBCMNDIR)/libe1k.a
34 BOARD_SLOF_IN = \
35         $(LIBCMNDIR)/libhvcall/hvcall.in \
36         $(LIBCMNDIR)/libvirtio/virtio.in \
37         $(LIBCMNDIR)/libusb/usb.in \
38         $(LIBCMNDIR)/libbootmsg/bootmsg.in \
39         $(LIBCMNDIR)/libelf/libelf.in \
40         $(LIBCMNDIR)/libnvram/libnvram.in \
41         $(LIBCMNDIR)/libbases/libbases.in \
42         $(LIBCMNDIR)/libveth/veth.in \
43         $(LIBCMNDIR)/libe1k/e1k.in
44 BOARD_SLOF_CODE = $(BOARD_SLOF_IN:%.in=%.code)
45
46 include $(SLOFCMNDIR)/Makefile.inc
47
48 AS1FLAGS  = $(CPPFLAGS) $(RELEASE) $(FLAG) $(CPUARCHDEF)  -Wa,-mregnames
49
50 %.o: %.S
51         $(CC) $(AS1FLAGS) -o $@ -c $^
52
53 FPPINCLUDES = -I. -I$(SLOFCMNDIR)/fs -I$(SLOFCMNDIR)
54
55 USB_FFS_FILES = \
56         $(SLOFCMNDIR)/fs/devices/pci-class_02.fs \
57         $(SLOFCMNDIR)/fs/devices/pci-class_0c.fs \
58         $(SLOFCMNDIR)/fs/usb/dev-hci.fs \
59         $(SLOFCMNDIR)/fs/usb/slofdev.fs \
60         $(SLOFCMNDIR)/fs/usb/dev-parent-calls.fs \
61         $(SLOFCMNDIR)/fs/usb/dev-keyb.fs \
62         $(SLOFCMNDIR)/fs/usb/dev-mouse.fs \
63         $(SLOFCMNDIR)/fs/usb/dev-storage.fs \
64         $(SLOFCMNDIR)/fs/usb/dev-hub.fs
65
66
67 VIO_FFS_FILES = \
68         $(SLOFBRDDIR)/pci-device_1af4_1000.fs \
69         $(SLOFBRDDIR)/pci-device_1af4_1001.fs \
70         $(SLOFBRDDIR)/pci-device_1af4_1004.fs \
71         $(SLOFBRDDIR)/pci-device_1af4_1009.fs \
72         $(SLOFBRDDIR)/vio-hvterm.fs \
73         $(SLOFBRDDIR)/vio-vscsi.fs \
74         $(SLOFBRDDIR)/vio-veth.fs \
75         $(SLOFBRDDIR)/rtas-nvram.fs \
76         $(SLOFBRDDIR)/virtio-net.fs \
77         $(SLOFBRDDIR)/virtio-block.fs \
78         $(SLOFBRDDIR)/virtio-fs.fs \
79         $(SLOFBRDDIR)/dev-null.fs \
80         $(SLOFBRDDIR)/virtio-scsi.fs
81
82 # Files that should go into the ROM fs (and so have to be listed in OF.ffs):
83 OF_FFS_FILES = \
84         $(SLOFCMNDIR)/fs/ide.fs \
85         $(SLOFCMNDIR)/fs/fbuffer.fs \
86         $(SLOFCMNDIR)/fs/graphics.fs \
87         $(SLOFCMNDIR)/fs/generic-disk.fs \
88         $(SLOFCMNDIR)/fs/dma-function.fs \
89         $(SLOFCMNDIR)/fs/pci-device.fs \
90         $(SLOFCMNDIR)/fs/pci-bridge.fs \
91         $(SLOFCMNDIR)/fs/pci-properties.fs \
92         $(SLOFCMNDIR)/fs/pci-config-bridge.fs \
93         $(SLOFCMNDIR)/fs/update_flash.fs \
94         $(SLOFCMNDIR)/fs/xmodem.fs \
95         $(SLOFCMNDIR)/fs/scsi-disk.fs \
96         $(SLOFCMNDIR)/fs/scsi-host-helpers.fs \
97         $(SLOFCMNDIR)/fs/scsi-probe-helpers.fs \
98         $(SLOFCMNDIR)/fs/scsi-support.fs \
99         $(SLOFBRDDIR)/default-font.bin \
100         $(SLOFBRDDIR)/pci-phb.fs \
101         $(SLOFBRDDIR)/rtas.fs \
102         $(SLOFBRDDIR)/pci-device_1234_1111.fs \
103         $(SLOFBRDDIR)/pci-device_1013_00b8.fs \
104         $(SLOFBRDDIR)/pci-device_8086_100e.fs \
105         $(SLOFBRDDIR)/e1k.fs \
106         $(FCODE_FFS_FILES)
107
108 # Uncomment the following line to enable the USB code:
109 OF_FFS_FILES += $(USB_FFS_FILES)
110
111 OF_FFS_FILES += $(VIO_FFS_FILES)
112
113 OF_FFS_FILES := $(OF_FFS_FILES:%.fs=%.fsi)
114
115 OF.ffs: Makefile $(SLOFCMNDIR)/Makefile.inc $(OF_FFS_FILES)
116         $(MAKE) create_OF_ffs
117
118 # Rules for cleaning up:
119 .PHONY: clean_here clean distclean
120
121 clean_here:
122         rm -f *.o OF.fsi OF.ffs
123
124 clean: clean_here clean_slof
125
126 distclean: clean_here distclean_slof