aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/intel/sandybridge/Makefile.inc
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-03-21 12:45:12 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-03-23 19:24:22 +0000
commit7f6586ff782e632902ae9a807b95c97659dd6a9a (patch)
tree624e80a86cad0a613a3aff75bec6162f61cce995 /src/northbridge/intel/sandybridge/Makefile.inc
parent0e47ad6d2cd6322324658757cb345c5758449e18 (diff)
nb/intel/sandybridge: Do not define tables in a header
Header files are supposed to not make allocations from .bss. Builds fail if said file is included multiple times. To prevent this from happening, move the definitions to a C file. Also, rename raminit_patterns to raminit_tables. This is because more tables that are not patterns will be added here in subsequent changes. Tested on Asus P8Z77-V LX2, still boots fine. Change-Id: If8e3a285ecdc4df9e978ae156be915ced6e1750b Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39754 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/northbridge/intel/sandybridge/Makefile.inc')
-rw-r--r--src/northbridge/intel/sandybridge/Makefile.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/northbridge/intel/sandybridge/Makefile.inc b/src/northbridge/intel/sandybridge/Makefile.inc
index 7718bf9acd..11f1f15656 100644
--- a/src/northbridge/intel/sandybridge/Makefile.inc
+++ b/src/northbridge/intel/sandybridge/Makefile.inc
@@ -36,6 +36,7 @@ romstage-y += raminit.c
romstage-y += raminit_common.c
romstage-y += raminit_sandy.c
romstage-y += raminit_ivy.c
+romstage-y += raminit_tables.c
romstage-y += ../../../device/dram/ddr3.c
else
romstage-y += raminit_mrc.c