Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp692603pxf; Thu, 1 Apr 2021 11:03:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxSdKCYZTwl9t8uXhsFNZzEdRC7BlqgjdBqoeGXmba21qzjMRq67imDjTlQcHjqFAigrHh X-Received: by 2002:a17:906:f210:: with SMTP id gt16mr10406133ejb.206.1617300204178; Thu, 01 Apr 2021 11:03:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617300204; cv=none; d=google.com; s=arc-20160816; b=gL5dvT79yzxzP74v3suKGk948wSap7855wa2gmYlSlfG1kkQaNf+6UaaNXsqMrHe+A aimwXbqGuisTJGz3rSfyIi+wVJT66bLFgC9lhwpQFZ+/PXRKl0VR3J1tWLFQI/Ggdrh5 if8bLWSvWPCWZxoLnn/ynWdsUfCfPfedH5z07Z50vBCSuSoKe1Vh2B9h+S94CaxqOaxJ PKLHNWsg5PrjNj9UIrmBFKggtNbO1mh04hQxSc4/ei/Ih0/GYKjo4DCR1TrDO76tlqYy uexOxx4zLKODC11D7oBGILI3JH5ARen8njtexptt4T7qoTqpsFqhyg9euT6y39NuDkbZ oHlA== 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=LvWoGFagAD8QsN+YLmMsGlnrOaFE44ONdFceSTtnpY3M2CjLnJlfzr30BfoSvSkJ2d 8ndU24TWl+D1kkF71wFelD6lwFOr7GVPbPHJV50CnNDodNlXs1svvbsKWEjDhkDBm9Te 7HGSUMT0ZyHtgRBwhgCiAu8uYMa7HvBKk6MhcF0FD207q/DscxS7LD9+NGs9tgsQnePQ txiOJxPHO5xB5UhQJmuDkaqxERE9TB7ntqjTu1VCiwIbTas7g3cbkqq1tRFAmyeZe//E W47PEJBTBdyWIyEj8ViqilalkS/26QTMKxiZfwtSlVQqn4nVfCE7+XsQDaoMgap+Uo4K 0xzw== 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 t15si5039006ejx.751.2021.04.01.11.03.00; Thu, 01 Apr 2021 11:03: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 S234404AbhDASBe (ORCPT + 99 others); Thu, 1 Apr 2021 14:01:34 -0400 Received: from mail.loongson.cn ([114.242.206.163]:43916 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235018AbhDARq4 (ORCPT ); Thu, 1 Apr 2021 13:46:56 -0400 Received: from loongson.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxX8s0ymVgtFkDAA--.7389S3; Thu, 01 Apr 2021 21:27:17 +0800 (CST) From: Jinyang He To: Thomas Bogendoerfer , Paul Burton Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RFC 1/3] MIPS: relocate: Only compile relocs when CONFIG_RELOCATABLE is enabled Date: Thu, 1 Apr 2021 21:27:11 +0800 Message-Id: <1617283633-18598-2-git-send-email-hejinyang@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1617283633-18598-1-git-send-email-hejinyang@loongson.cn> References: <1617283633-18598-1-git-send-email-hejinyang@loongson.cn> X-CM-TRANSID: AQAAf9DxX8s0ymVgtFkDAA--.7389S3 X-Coremail-Antispam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-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