2 --------------------------------------------------------------------------
3 -- Copyright (c) 2007-2010, ETH Zurich.
4 -- All rights reserved.
6 -- This file is distributed under the terms in the attached LICENSE file.
7 -- If you do not find this file, copies can be found by writing to:
8 -- ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
10 -- Hakefile for lib/pci
12 --------------------------------------------------------------------------
14 [ build library { target = "pci",
15 cFiles = [ "mem.c", "pci_client.c" ],
16 flounderBindings = [ "pci" ],
17 flounderExtraBindings = [ ("pci", ["rpcclient"]) ],
18 flounderExtraDefs = [ ("monitor_blocking",["rpcclient"]) ],
19 architectures = [ "x86_64", "x86_32" ],
20 addLibraries = libDeps [ "acpi_client" ]
23 -- XXX: This library is a bit weird right now.
24 -- I added this to avoid code duplication in acpi/pci because they both have to
25 -- read/write the PCI configuration space (see acpi_osglue.c).
26 -- It would be best if we can completely avoid doing any PCI stuff in ACPI
27 build library { target = "pciconfspace",
28 flounderExtraDefs = [ ("acpi", ["rpcclient"]) ],
29 cFiles = [ "confspace/pci_confspace.c", "confspace/pcie_confspace.c" ],
30 architectures = [ "x86_64", "x86_32" ]