In the case of platforms where a bios or firmware has not already assigned all the resources, do so. Requires the platform supply one or more ranges of physical address space and IO that can be mapped into BARs. Handles iterating through bridges, computing the sizes of all the peripherals downstream and rolling that up as well.
24 lines
643 B
Makefile
24 lines
643 B
Makefile
LOCAL_DIR := $(GET_LOCAL_DIR)
|
|
|
|
MODULE := $(LOCAL_DIR)
|
|
|
|
MODULE_SRCS += $(LOCAL_DIR)/debug.cpp
|
|
MODULE_SRCS += $(LOCAL_DIR)/pci.cpp
|
|
|
|
MODULE_SRCS += $(LOCAL_DIR)/bus_mgr/bridge.cpp
|
|
MODULE_SRCS += $(LOCAL_DIR)/bus_mgr/bus.cpp
|
|
MODULE_SRCS += $(LOCAL_DIR)/bus_mgr/bus_mgr.cpp
|
|
MODULE_SRCS += $(LOCAL_DIR)/bus_mgr/device.cpp
|
|
MODULE_SRCS += $(LOCAL_DIR)/bus_mgr/resource.cpp
|
|
|
|
MODULE_SRCS += $(LOCAL_DIR)/backend/ecam.cpp
|
|
MODULE_SRCS += $(LOCAL_DIR)/backend/bios32.cpp
|
|
MODULE_SRCS += $(LOCAL_DIR)/backend/type1.cpp
|
|
|
|
MODULE_DEPS += lib/libcpp
|
|
|
|
MODULE_CPPFLAGS += -Wno-invalid-offsetof
|
|
MODULE_COMPILEFLAGS += -Wmissing-declarations
|
|
|
|
include make/module.mk
|