~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/SLOF/board-js2x/slof/Makefile

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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)/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/fcode/evaluator.fs \
 
93
        $(SLOFCMNDIR)/fs/devices/pci-device_10de_0141.fs \
 
94
        $(SLOFCMNDIR)/fs/devices/pci-class_02.fs \
 
95
        $(SLOFBRDDIR)/default-font.bin
 
96
 
 
97
# Uncomment the following line to enable the USB code:
 
98
OF_FFS_FILES += $(USB_FFS_FILES)
 
99
 
 
100
OF_FFS_FILES := $(OF_FFS_FILES:%.fs=%.fsi)
 
101
 
 
102
OF.ffs: Makefile $(SLOFCMNDIR)/Makefile.inc $(OF_FFS_FILES)
 
103
        $(MAKE) create_OF_ffs
 
104
 
 
105
# Rules for cleaning up:
 
106
.PHONY: clean_here clean distclean
 
107
 
 
108
clean_here:
 
109
        rm -f *.o OF.fsi OF.ffs
 
110
 
 
111
clean: clean_here clean_slof
 
112
 
 
113
distclean: clean_here distclean_slof