[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1618230494-6207-2-git-send-email-hejinyang@loongson.cn>
Date: Mon, 12 Apr 2021 20:28:10 +0800
From: Jinyang He <hejinyang@...ngson.cn>
To: Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Paul Burton <paulburton@...nel.org>
Cc: linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH v2 1/5] MIPS: relocate: Only compile relocs when CONFIG_RELOCATABLE is enabled
Relocs is used for create relocate information, only CONFIG_RELOCATABLE
is enabled can it be used.
Signed-off-by: Jinyang He <hejinyang@...ngson.cn>
---
arch/mips/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index e71d587..cb54d86 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -17,7 +17,9 @@ archscripts: scripts_basic
ifeq ($(CONFIG_CPU_LOONGSON3_WORKAROUNDS),y)
$(Q)$(MAKE) $(build)=arch/mips/tools loongson3-llsc-check
endif
+ifeq ($(CONFIG_RELOCATABLE),y)
$(Q)$(MAKE) $(build)=arch/mips/boot/tools relocs
+endif
KBUILD_DEFCONFIG := 32r2el_defconfig
KBUILD_DTBS := dtbs
--
2.1.0
Powered by blists - more mailing lists