summaryrefslogtreecommitdiff
path: root/src/arch/arm/libgcc/Makefile.mk
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2024-01-18 10:38:15 -0700
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-01-24 08:32:11 +0000
commit94de3255e5b828a855bbeb93eb46042c95e234e6 (patch)
treebf05327ffde5ef655cbb01906768f86b64b9c9e9 /src/arch/arm/libgcc/Makefile.mk
parente3df18451c518c0019f35b9b4d5d06ff6bd3d5f2 (diff)
acpi,arch,commonlib: 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: Ice5dadd3eaadfa9962225520a3a75b05b44518ca Reviewed-on: https://review.coreboot.org/c/coreboot/+/80066 Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Diffstat (limited to 'src/arch/arm/libgcc/Makefile.mk')
-rw-r--r--src/arch/arm/libgcc/Makefile.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/arch/arm/libgcc/Makefile.mk b/src/arch/arm/libgcc/Makefile.mk
new file mode 100644
index 0000000000..c6ca45e24c
--- /dev/null
+++ b/src/arch/arm/libgcc/Makefile.mk
@@ -0,0 +1,21 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
+libgcc_files = ashldi3.S lib1funcs.S lshrdi3.S muldi3.S ucmpdi2.S uldivmod.S ldivmod.S
+libgcc_files += udivmoddi4.c umoddi3.c
+
+ifeq ($(CONFIG_ARCH_BOOTBLOCK_ARM),y)
+decompressor-y += $(libgcc_files)
+bootblock-y += $(libgcc_files)
+endif
+
+ifeq ($(CONFIG_ARCH_VERSTAGE_ARM),y)
+verstage-y += $(libgcc_files)
+endif
+
+ifeq ($(CONFIG_ARCH_ROMSTAGE_ARM),y)
+romstage-y += $(libgcc_files)
+endif
+
+ifeq ($(CONFIG_ARCH_RAMSTAGE_ARM),y)
+ramstage-y += $(libgcc_files)
+endif