mirror of
https://github.com/Dasharo/coreboot.git
synced 2026-06-13 10:16:48 -07:00
kbuild: automatically include southbridges
This change switches all southbridge vendors and southbridges to be autoincluded by Makefile.inc, rather than having to be mentioned explicitly in southbridge/Makefile.inc or in southbridge/<vendor>/Makefile.inc. In order to be able to drop southbridge/amd/Makefile.inc, some scattered source files had to be moved to a southbridge/amd/common directory, in accordance to what we are doing on other architectures already. This means, vendor and southbridge directories are now "drop in", e.g. be placed in the coreboot directory hierarchy without having to modify any higher level coreboot files. The long term plan is to enable out of tree components to be built with a given coreboot version (given that the API did not change). Change-Id: I79bd644a0a3c4e8320c80f8cc7a7f8ffd65d32f2 Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/9796 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
+2
-3
@@ -52,11 +52,10 @@ PHONY+= clean-abuild coreboot lint lint-stable build-dirs
|
||||
|
||||
#######################################################################
|
||||
# root source directories of coreboot
|
||||
subdirs-y := src/lib src/console src/device src/ec src/southbridge src/soc
|
||||
subdirs-y := src/lib src/console src/device src/ec $(wildcard src/southbridge/*/*) src/soc
|
||||
subdirs-y += src/northbridge src/superio src/drivers src/cpu src/vendorcode
|
||||
subdirs-y += util/cbfstool util/sconfig util/nvramtool util/broadcom
|
||||
subdirs-y += src/arch/arm src/arch/arm64 src/arch/mips src/arch/riscv
|
||||
subdirs-y += src/arch/x86
|
||||
subdirs-y += $(wildcard src/arch/*)
|
||||
subdirs-y += src/mainboard/$(MAINBOARDDIR)
|
||||
|
||||
subdirs-y += site-local
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include <southbridge/amd/pi/hudson/amd_pci_int_defs.h>
|
||||
#include <southbridge/amd/pi/hudson/hudson.h>
|
||||
#include <southbridge/amd/pi/hudson/pci_devs.h>
|
||||
#include <southbridge/amd/amd_pci_util.h>
|
||||
#include <southbridge/amd/common/amd_pci_util.h>
|
||||
|
||||
/***********************************************************
|
||||
* These arrays set up the FCH PCI_INTR registers 0xC00/0xC01.
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <cpu/amd/amdfam15.h>
|
||||
#include <arch/cpu.h>
|
||||
#include <cpu/x86/lapic.h>
|
||||
#include <southbridge/amd/amd_pci_util.h>
|
||||
#include <southbridge/amd/common/amd_pci_util.h>
|
||||
#include <drivers/generic/ioapic/chip.h>
|
||||
#include <arch/ioapic.h>
|
||||
#include <southbridge/amd/pi/hudson/amd_pci_int_defs.h>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <arch/io.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <device/pci_def.h>
|
||||
#include <southbridge/amd/amd_pci_util.h>
|
||||
#include <southbridge/amd/common/amd_pci_util.h>
|
||||
#include <southbridge/amd/cimx/cimx_util.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <stdint.h>
|
||||
#include <cpu/amd/amdfam14.h>
|
||||
#include <SBPLATFORM.h>
|
||||
#include <southbridge/amd/amd_pci_util.h>
|
||||
#include <southbridge/amd/common/amd_pci_util.h>
|
||||
#include <drivers/generic/ioapic/chip.h>
|
||||
#include <arch/ioapic.h>
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include <northbridge/amd/agesa/agesawrapper.h>
|
||||
#include <southbridge/amd/agesa/hudson/pci_devs.h>
|
||||
#include <southbridge/amd/agesa/hudson/amd_pci_int_defs.h>
|
||||
#include <southbridge/amd/amd_pci_util.h>
|
||||
#include <southbridge/amd/common/amd_pci_util.h>
|
||||
#include <northbridge/amd/agesa/family16kb/pci_devs.h>
|
||||
|
||||
const u8 mainboard_picr_data[FCH_INT_TABLE_SIZE] = {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <cpu/amd/amdfam16.h>
|
||||
#include <arch/cpu.h>
|
||||
#include <cpu/x86/lapic.h>
|
||||
#include <southbridge/amd/amd_pci_util.h>
|
||||
#include <southbridge/amd/common/amd_pci_util.h>
|
||||
#include <drivers/generic/ioapic/chip.h>
|
||||
|
||||
static void *smp_write_config_table(void *v)
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <arch/acpi.h>
|
||||
#include <southbridge/amd/agesa/hudson/pci_devs.h>
|
||||
#include <southbridge/amd/agesa/hudson/amd_pci_int_defs.h>
|
||||
#include <southbridge/amd/amd_pci_util.h>
|
||||
#include <southbridge/amd/common/amd_pci_util.h>
|
||||
#include <northbridge/amd/agesa/family16kb/pci_devs.h>
|
||||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
#include <cpu/amd/agesa/s3_resume.h>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <cpu/amd/amdfam16.h>
|
||||
#include <arch/cpu.h>
|
||||
#include <cpu/x86/lapic.h>
|
||||
#include <southbridge/amd/amd_pci_util.h>
|
||||
#include <southbridge/amd/common/amd_pci_util.h>
|
||||
#include <drivers/generic/ioapic/chip.h>
|
||||
|
||||
static void *smp_write_config_table(void *v)
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
#include <cpu/amd/agesa/s3_resume.h>
|
||||
#include <northbridge/amd/agesa/agesawrapper.h>
|
||||
#include <southbridge/amd/amd_pci_util.h>
|
||||
#include <southbridge/amd/common/amd_pci_util.h>
|
||||
#include <southbridge/amd/agesa/hudson/pci_devs.h>
|
||||
#include <northbridge/amd/agesa/family16kb/pci_devs.h>
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <device/pci.h>
|
||||
#include <device/pci_def.h>
|
||||
|
||||
#include <southbridge/amd/amd_pci_util.h>
|
||||
#include <southbridge/amd/common/amd_pci_util.h>
|
||||
#include <southbridge/amd/cimx/sb800/SBPLATFORM.h>
|
||||
#include <southbridge/amd/cimx/sb800/pci_devs.h>
|
||||
#include <southbridge/amd/cimx/cimx_util.h>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <southbridge/amd/amd_pci_util.h>
|
||||
#include <southbridge/amd/common/amd_pci_util.h>
|
||||
#include <southbridge/amd/cimx/sb800/SBPLATFORM.h>
|
||||
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <arch/io.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <device/pci_def.h>
|
||||
#include <southbridge/amd/amd_pci_util.h>
|
||||
#include <southbridge/amd/common/amd_pci_util.h>
|
||||
#include <southbridge/amd/cimx/cimx_util.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <northbridge/amd/agesa/BiosCallOuts.h>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <stdint.h>
|
||||
#include <cpu/amd/amdfam14.h>
|
||||
#include <SBPLATFORM.h>
|
||||
#include <southbridge/amd/amd_pci_util.h>
|
||||
#include <southbridge/amd/common/amd_pci_util.h>
|
||||
#include <drivers/generic/ioapic/chip.h>
|
||||
#include <arch/ioapic.h>
|
||||
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
subdirs-y += amd
|
||||
subdirs-y += broadcom
|
||||
subdirs-y += dmp
|
||||
subdirs-y += intel
|
||||
subdirs-y += nvidia
|
||||
subdirs-y += rdc
|
||||
subdirs-y += ricoh
|
||||
subdirs-y += sis
|
||||
subdirs-y += ti
|
||||
subdirs-y += via
|
||||
@@ -1,27 +0,0 @@
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_AMD8111) += amd8111
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_AMD8131) += amd8131
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_AMD8132) += amd8132
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_AMD8151) += amd8151
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_RS690) += rs690
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_SB600) += sb600
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_RS780) += rs780
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_SB700) += sb700
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_SB800) += sb800
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_SR5650) += sr5650
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_CS5535) += cs5535
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_CS5536) += cs5536
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_CIMX_SB700) += cimx
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_CIMX_SB800) += cimx
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_CIMX_SB900) += cimx
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_AGESA_HUDSON) += agesa
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_AGESA_YANGTZE) += agesa
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_PI_AVALON) += pi
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_PI_BOLTON) += pi
|
||||
|
||||
ramstage-$(CONFIG_SOUTHBRIDGE_AMD_CIMX_SB700) += amd_pci_util.c
|
||||
ramstage-$(CONFIG_SOUTHBRIDGE_AMD_CIMX_SB800) += amd_pci_util.c
|
||||
ramstage-$(CONFIG_SOUTHBRIDGE_AMD_CIMX_SB900) += amd_pci_util.c
|
||||
ramstage-$(CONFIG_SOUTHBRIDGE_AMD_AGESA_HUDSON) += amd_pci_util.c
|
||||
ramstage-$(CONFIG_SOUTHBRIDGE_AMD_AGESA_YANGTZE) += amd_pci_util.c
|
||||
ramstage-$(CONFIG_SOUTHBRIDGE_AMD_PI_AVALON) += amd_pci_util.c
|
||||
ramstage-$(CONFIG_SOUTHBRIDGE_AMD_PI_BOLTON) += amd_pci_util.c
|
||||
@@ -16,5 +16,6 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_AGESA_HUDSON) += hudson
|
||||
subdirs-$(CONFIG_SOUTHBRIDGE_AMD_AGESA_YANGTZE) += hudson
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <device/pci_ids.h>
|
||||
#include <device/pci_ops.h>
|
||||
#include "hudson.h"
|
||||
#include <southbridge/amd/amd_pci_util.h>
|
||||
#include <southbridge/amd/common/amd_pci_util.h>
|
||||
#include <bootstate.h>
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
ifeq ($(CONFIG_SOUTHBRIDGE_AMD_AMD8111),y)
|
||||
|
||||
ramstage-y += amd8111.c
|
||||
ramstage-y += usb.c
|
||||
ramstage-y += lpc.c
|
||||
@@ -9,3 +11,5 @@ ramstage-y += nic.c
|
||||
ramstage-y += pci.c
|
||||
ramstage-y += smbus.c
|
||||
ramstage-y += reset.c
|
||||
|
||||
endif
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
ifeq ($(CONFIG_SOUTHBRIDGE_AMD_AMD8131),y)
|
||||
|
||||
ramstage-y += bridge.c
|
||||
|
||||
endif
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user