Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1728882pxb; Mon, 12 Apr 2021 05:29:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDn0+EDfrcita/LOKRzS15o6w+anAtGEZjDSphq2QVC7++xDMIEKSfh/FwvpTaUvQLh/Ph X-Received: by 2002:a17:90a:352:: with SMTP id 18mr540293pjf.223.1618230564549; Mon, 12 Apr 2021 05:29:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618230564; cv=none; d=google.com; s=arc-20160816; b=EDJspPRg9x4dQHmDgTUSPARxxd+PWdtae0e+7L8Z0SB0l6q8Jj6zL6YwrR1rTwqdFI koGb20XoJZQ1+nAlSFKEdRB9nTMM9ihP4fHZ42Bl5BqC0GnnrFqxWJ/37vZPJW4jJuAk sZtIRL1JAIul+7k0fRMS2j3z1iory0/sz14dOwFmJGD7g90Rf+PWZGFzlNiGN7bNoYdy 1pTvY6iS6ZYB0I+xUpenBULq3gpNCxq5VjQAJGdDAO3tMYYC/GzXsGn6wp/8a0jjs6c4 BcXTPkrhBOtmnDQkp0wGq5uiIrdmYVDHpe/OkLNhrer+4RJMLSbnm2hwUILdMzZYFExv BeCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=1Seuc5G8UaWs2rt/bZNcuO1moILhjRBVEKrwYjHcelE=; b=aG3DUUOI5NHNHFdH7Mp2L8Qfo1ZGeNF5VVmj+yak7ypJI4/UP83Z6R5NlGI+fzTMLU MTHMVJnXVKTCTSdZP8cwV5X+l3oBYahLWpCw28q7AJmB/SyiB+mhOet4K+1DdaCe1lZp 1luEPhxc8Z/ub9L4OgNYpq2AdZkVMxU0EBLMbi3nqNAaFuYtCSm24j03m4EOUeEkmbvD hVCEmlR1Y4wY5GUEFPO6Jw+vy5/WH5DBoetNPx8mpbNekiqIavZD3vCHqgJH99qQ9u4+ UxbLfMcoQX0WTeZyUKiKBoTuIAcZOh0rYHOmqex+ZfICYngnoDAMZbSBnm8Kz4nzbT+8 2NQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si13610279pll.329.2021.04.12.05.29.12; Mon, 12 Apr 2021 05:29:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240912AbhDLM24 (ORCPT + 99 others); Mon, 12 Apr 2021 08:28:56 -0400 Received: from mail.loongson.cn ([114.242.206.163]:59220 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239082AbhDLM2w (ORCPT ); Mon, 12 Apr 2021 08:28:52 -0400 Received: from loongson.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9AxzcjsPHRgCyoHAA--.9793S3; Mon, 12 Apr 2021 20:28:28 +0800 (CST) From: Jinyang He To: Thomas Bogendoerfer , Paul Burton Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/5] MIPS: relocate: Only compile relocs when CONFIG_RELOCATABLE is enabled Date: Mon, 12 Apr 2021 20:28:10 +0800 Message-Id: <1618230494-6207-2-git-send-email-hejinyang@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1618230494-6207-1-git-send-email-hejinyang@loongson.cn> References: <1618230494-6207-1-git-send-email-hejinyang@loongson.cn> X-CM-TRANSID: AQAAf9Axzcjs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xhVjvjDU0xZFpf9x07jziihUUUUU= X-CM-SenderInfo: pkhmx0p1dqwqxorr0wxvrqhubq/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Relocs is used for create relocate information, only CONFIG_RELOCATABLE is enabled can it be used. Signed-off-by: Jinyang He --- 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