summaryrefslogtreecommitdiff
path: root/src/mainboard/emulation/qemu-sbsa/Makefile.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/emulation/qemu-sbsa/Makefile.mk')
-rw-r--r--src/mainboard/emulation/qemu-sbsa/Makefile.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/mainboard/emulation/qemu-sbsa/Makefile.mk b/src/mainboard/emulation/qemu-sbsa/Makefile.mk
new file mode 100644
index 0000000000..e3855bae03
--- /dev/null
+++ b/src/mainboard/emulation/qemu-sbsa/Makefile.mk
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+bootblock-y += bootblock.c
+
+romstage-y += cbmem.c
+
+bootblock-y += media.c
+romstage-y += media.c
+ramstage-y += media.c
+
+bootblock-y += mmio.c
+romstage-y += mmio.c
+ramstage-y += mmio.c
+
+ramstage-y += acpi.c
+
+bootblock-y += bootblock_custom.S
+
+CPPFLAGS_common += -mcmodel=large -I$(src)/mainboard/$(MAINBOARDDIR)/include
+
+build_complete::
+ @printf "Truncating coreboot.rom to 256M\n"
+ truncate -s 256M $(obj)/coreboot.rom