summaryrefslogtreecommitdiff
path: root/src/console/Makefile.mk
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2024-01-18 12:34:16 -0700
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-01-24 10:12:57 +0000
commitf845adc2448c56096f4ba64f676937d9fbdd061b (patch)
tree5d6145dd84a33161409293fca4d2b00781914ca1 /src/console/Makefile.mk
parent367fff56faaff6fca27240f481c6c0a40113d68b (diff)
lib,console,sbom: Rename Makefiles from .inc to .mk
The .inc suffix is confusing to various tools as it's not specific to Makefiles. This means that editors don't recognize the files, and don't open them with highlighting and any other specific editor functionality. This issue is also seen in the release notes generation script where Makefiles get renamed before running cloc. Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: I9eabe84d55fd9f434e4128866810c0e4970f2ae7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80081 Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Diffstat (limited to 'src/console/Makefile.mk')
-rw-r--r--src/console/Makefile.mk44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/console/Makefile.mk b/src/console/Makefile.mk
new file mode 100644
index 0000000000..fd98cf7354
--- /dev/null
+++ b/src/console/Makefile.mk
@@ -0,0 +1,44 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
+ramstage-y += vtxprintf.c printk.c vsprintf.c
+ramstage-y += init.c console.c
+ramstage-y += post.c
+ramstage-y += die.c
+ifeq ($(CONFIG_HWBASE_DEBUG_CB),y)
+ramstage-$(CONFIG_RAMSTAGE_LIBHWBASE) += hw-debug_sink.ads
+ramstage-$(CONFIG_RAMSTAGE_LIBHWBASE) += hw-debug_sink.adb
+romstage-$(CONFIG_ROMSTAGE_LIBHWBASE) += hw-debug_sink.ads
+romstage-$(CONFIG_ROMSTAGE_LIBHWBASE) += hw-debug_sink.adb
+endif
+
+smm-$(CONFIG_DEBUG_SMI) += init.c console.c vtxprintf.c printk.c
+smm-y += die.c
+smm-y += post.c
+
+ifneq ($(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK),y)
+verstage-y += printk.c
+verstage-y += console.c
+endif
+verstage-y += post.c
+verstage-y += die.c
+verstage-y += init.c
+verstage-y += vtxprintf.c vsprintf.c
+
+romstage-y += vtxprintf.c printk.c vsprintf.c
+romstage-y += init.c console.c
+romstage-y += post.c
+romstage-y += die.c
+
+postcar-y += vtxprintf.c vsprintf.c
+postcar-$(CONFIG_POSTCAR_CONSOLE) += printk.c
+postcar-$(CONFIG_POSTCAR_CONSOLE) += init.c console.c
+postcar-y += post.c
+postcar-y += die.c
+
+bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += printk.c
+bootblock-y += vtxprintf.c vsprintf.c
+bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += init.c console.c
+bootblock-y += post.c
+bootblock-y += die.c
+
+decompressor-y += die.c