Use coreboot build system for libpayload, too.
[coreboot.git] / payloads / libpayload / drivers / Makefile.inc
1 ##
2 ## This file is part of the libpayload project.
3 ##
4 ## Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
5 ## Copyright (C) 2008 Advanced Micro Devices, Inc.
6 ## Copyright (C) 2008 coresystems GmbH
7 ##
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted provided that the following conditions
10 ## are met:
11 ## 1. Redistributions of source code must retain the above copyright
12 ##    notice, this list of conditions and the following disclaimer.
13 ## 2. Redistributions in binary form must reproduce the above copyright
14 ##    notice, this list of conditions and the following disclaimer in the
15 ##    documentation and/or other materials provided with the distribution.
16 ## 3. The name of the author may not be used to endorse or promote products
17 ##    derived from this software without specific prior written permission.
18 ##
19 ## THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
20 ## ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 ## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 ## ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
23 ## FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 ## DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 ## OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 ## HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 ## LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 ## OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 ## SUCH DAMAGE.
30 ##
31
32 libc-$(CONFIG_PCI) += pci.c
33
34 libc-$(CONFIG_SPEAKER) += speaker.c
35
36 libc-$(CONFIG_SERIAL_CONSOLE) += serial.c
37
38 libc-$(CONFIG_PC_KEYBOARD) += keyboard.c
39
40 libc-$(CONFIG_NVRAM) += nvram.c
41 libc-$(CONFIG_NVRAM) += options.c
42
43 # Video console drivers
44 libc-$(CONFIG_VIDEO_CONSOLE) += video/video.c
45 libc-$(CONFIG_VGA_VIDEO_CONSOLE) += video/vga.c
46
47 # Geode LX console drivers
48 libc-$(CONFIG_GEODELX_VIDEO_CONSOLE) += video/geodelx.c
49 libc-$(CONFIG_GEODELX_VIDEO_CONSOLE) += video/font8x16.c
50
51 # coreboot generic framebuffer driver
52 libc-$(CONFIG_COREBOOT_VIDEO_CONSOLE) += video/corebootfb.c
53 libc-$(CONFIG_COREBOOT_VIDEO_CONSOLE) += video/font8x16.c
54
55 # USB stack
56 libc-$(CONFIG_USB) += usb/usbinit.c
57 libc-$(CONFIG_USB) += usb/usb.c
58 libc-$(CONFIG_USB) += usb/usb_dev.c
59 libc-$(CONFIG_USB) += usb/quirks.c
60 libc-$(CONFIG_USB_HUB) += usb/usbhub.c
61 libc-$(CONFIG_USB_UHCI) += usb/uhci.c
62 libc-$(CONFIG_USB_UHCI) += usb/uhci_rh.c
63 libc-$(CONFIG_USB_OHCI) += usb/ohci.c
64 libc-$(CONFIG_USB_OHCI) += usb/ohci_rh.c
65 libc-$(CONFIG_USB_EHCI) += usb/ehci.c
66 libc-$(CONFIG_USB_EHCI) += usb/ehci_rh.c
67 libc-$(CONFIG_USB_XHCI) += usb/xhci.c
68 libc-$(CONFIG_USB_XHCI) += usb/xhci_rh.c
69 libc-$(CONFIG_USB_HID) += usb/usbhid.c
70 libc-$(CONFIG_USB_MSC) += usb/usbmsc.c
71
72 # used by both USB HID and keyboard
73 libc-y += hid.c