summaryrefslogtreecommitdiffstats
path: root/scripts/mod/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mod/Makefile')
-rw-r--r--scripts/mod/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/mod/Makefile b/scripts/mod/Makefile
index c5aa348924..b381877a83 100644
--- a/scripts/mod/Makefile
+++ b/scripts/mod/Makefile
@@ -1,5 +1,7 @@
-hostprogs-y := modpost mk_elfconfig
-always := $(hostprogs-y) empty.o
+# SPDX-License-Identifier: GPL-2.0-only
+
+hostprogs-always-y += modpost mk_elfconfig
+always-y += empty.o
modpost-objs := modpost.o sumversion.o
@@ -8,7 +10,7 @@ modpost-objs := modpost.o sumversion.o
$(obj)/modpost.o $(obj)/file2alias.o $(obj)/sumversion.o: $(obj)/elfconfig.h
quiet_cmd_elfconfig = MKELF $@
- cmd_elfconfig = $(obj)/mk_elfconfig $(ARCH) < $< > $@
+ cmd_elfconfig = $(obj)/mk_elfconfig < $< > $@
$(obj)/elfconfig.h: $(obj)/empty.o $(obj)/mk_elfconfig FORCE
$(call if_changed,elfconfig)