summaryrefslogtreecommitdiff
path: root/src/lib/Makefile.mk
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2024-02-22 15:01:04 +0100
committerArthur Heymans <arthur@aheymans.xyz>2024-02-26 10:10:07 +0000
commit7fbef1b1121bd1073cdbe4c45f7e544921fb8b42 (patch)
tree3ad8909a10f740fd2c45bb4def11c48f3ae232e3 /src/lib/Makefile.mk
parent259fc2b1190f23af085773a23a9c79209d3394c4 (diff)
lib: Remove heap from rmodules
No rmodule was using heap. Change-Id: I0bc049a5231dabbec1c962a99ef875eddcc4ac6e Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/80733 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/lib/Makefile.mk')
-rw-r--r--src/lib/Makefile.mk9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/Makefile.mk b/src/lib/Makefile.mk
index fe24156dad..e22fd08723 100644
--- a/src/lib/Makefile.mk
+++ b/src/lib/Makefile.mk
@@ -310,14 +310,13 @@ RMODULE_LDFLAGS := -z defs -Bsymbolic
# rmodule_link_rules is a function that should be called with:
# (1) the object name to link
# (2) the dependencies
-# (3) heap size of the relocatable module
-# (4) arch for which the rmodules are to be linked
+# (3) arch for which the rmodules are to be linked
# It will create the necessary Make rules to create a rmodule. The resulting
# rmdoule is named $(1).rmod
define rmodule_link
-$(strip $(1)): $(strip $(2)) $$(COMPILER_RT_rmodules_$(4)) $(call src-to-obj,rmodules_$(4),src/lib/rmodule.ld) | $$(RMODTOOL)
- $$(LD_rmodules_$(4)) $$(LDFLAGS_rmodules_$(4)) $(RMODULE_LDFLAGS) $($(1)-ldflags) -T $(call src-to-obj,rmodules_$(4),src/lib/rmodule.ld) --defsym=__heap_size=$(strip $(3)) -o $$@ --whole-archive --start-group $(filter-out %.ld,$(2)) --end-group
- $$(NM_rmodules_$(4)) -n $$@ > $$(basename $$@).map
+$(strip $(1)): $(strip $(2)) $$(COMPILER_RT_rmodules_$(3)) $(call src-to-obj,rmodules_$(3),src/lib/rmodule.ld) | $$(RMODTOOL)
+ $$(LD_rmodules_$(3)) $$(LDFLAGS_rmodules_$(3)) $(RMODULE_LDFLAGS) $($(1)-ldflags) -T $(call src-to-obj,rmodules_$(3),src/lib/rmodule.ld) -o $$@ --whole-archive --start-group $(filter-out %.ld,$(2)) --end-group
+ $$(NM_rmodules_$(3)) -n $$@ > $$(basename $$@).map
endef
endif