aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/Makefile
diff options
context:
space:
mode:
authorGravatar Masahiro Yamada <yamada.masahiro@socionext.com> 2019-08-15 01:06:22 +0900
committerGravatar Masahiro Yamada <yamada.masahiro@socionext.com> 2019-08-21 21:05:21 +0900
commit10df063855822fcea3c0f51dbf534ad643d3cb1b (patch)
tree437f5b671d7ceb1870ffa245fd27e2ef45a4892c /arch/powerpc/Makefile
parentkbuild: move KBUILD_LDS, KBUILD_VMLINUX_{OBJS,LIBS} to makefiles.rst (diff)
downloadlinux-10df063855822fcea3c0f51dbf534ad643d3cb1b.tar.gz
linux-10df063855822fcea3c0f51dbf534ad643d3cb1b.tar.bz2
linux-10df063855822fcea3c0f51dbf534ad643d3cb1b.zip
kbuild: rebuild modules when module linker scripts are updated
Currently, the timestamp of module linker scripts are not checked. Add them to the dependency of modules so they are correctly rebuilt. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/powerpc/Makefile')
-rw-r--r--arch/powerpc/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index c345b79414a9..b2227855de20 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -67,7 +67,7 @@ UTS_MACHINE := $(subst $(space),,$(machine-y))
ifdef CONFIG_PPC32
KBUILD_LDFLAGS_MODULE += arch/powerpc/lib/crtsavres.o
else
-KBUILD_LDFLAGS_MODULE += -T $(srctree)/arch/powerpc/kernel/module.lds
+KBUILD_LDS_MODULE += $(srctree)/arch/powerpc/kernel/module.lds
ifeq ($(call ld-ifversion, -ge, 225000000, y),y)
# Have the linker provide sfpr if possible.
# There is a corresponding test in arch/powerpc/lib/Makefile