Received: by 10.223.185.116 with SMTP id b49csp1779094wrg; Sun, 11 Feb 2018 21:14:12 -0800 (PST) X-Google-Smtp-Source: AH8x224fR6hTgDPJQurZVKmqjvllBV/j++DZWs266xC3jdG46kaBxYWoloCae38J9xvxcAyA3NdO X-Received: by 2002:a17:902:44a4:: with SMTP id l33-v6mr9650411pld.115.1518412452137; Sun, 11 Feb 2018 21:14:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518412452; cv=none; d=google.com; s=arc-20160816; b=ibf0CksRtPFfW6oWhuBNAue7g8MwPnVnlfKCLbrvY6QHb6l/myeP0yRXebFWZEAkL1 /2PFIx9+XYQGoD1LV2U1m0jxjUEZB10nbAv5gPEHOqjNlpfJZDGkB42jNGGuXE94MDzB ULW5Z8j80nWLv4btGHaX1sTYFOMs135rK/HkGNTn7XuBNaWpvgwJ0yXDJ+vcXi+VP63L 1e03wyWxtNDC41zbLDvqeMV9gJ985J3gdO/YwymuUh4k31toLP6z92s1dHvtKGN6SLqr 2etQm+RUXIEfLBQ5hlsbBcOYRSQKb3IsvJbmzX4i03xv1vrmWeOHIntrRlY1O/d9U/nU I6IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:cc:subject :from:to:arc-authentication-results; bh=1wWuGB3DCP+kNYzx0ySdef8gH9mc/PgJT7H+Skkg9Jw=; b=IAuPFqr4Sak81k/CfS62TTLn736B+CM8ZSEt6Aj5rJyymdnnTRUS28miVev9x8Wf2Q dwBbzhwaTX54Fsc84cMlU2XyChQW3nOSpIDiS0LMgHsTzx8mq2qwbznY2PqzlwZvgZsK AXqQ4OWJVvAkV+URnXMB9bxgixfjV77kfq8JoUg4QCGJQYMsqN4dRYwWpPTzP/3HLqUn rIuFp715Z4Q9+1V5ly3jkFgg4cTU6E3onQqyHLcC4nfxXI3vmVLv8N6DIO/IiJucmrYv ECXhM6onuaY+ggTUpY+qPyWQOBGjYSaiB/3p8wGZ3q6tZnkborb9mY9th9W/YZPKOoOf DiBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y69si5829389pfa.171.2018.02.11.21.13.57; Sun, 11 Feb 2018 21:14:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932777AbeBLEWv (ORCPT + 99 others); Sun, 11 Feb 2018 23:22:51 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:28609 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932237AbeBLEWt (ORCPT ); Sun, 11 Feb 2018 23:22:49 -0500 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="36995210" Received: from bogon (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 12 Feb 2018 12:22:47 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id 999D848AE761; Mon, 12 Feb 2018 12:22:46 +0800 (CST) Received: from [10.167.226.60] (10.167.226.60) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 12 Feb 2018 12:22:47 +0800 To: Masahiro Yamada From: Cao jin Subject: why scripts/link-vmlinux.sh has a final build of init/ CC: Michal Marek , Linux Kbuild mailing list , "linux-kernel@vger.kernel.org" Message-ID: Date: Mon, 12 Feb 2018 12:22:14 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.167.226.60] X-yoursite-MailScanner-ID: 999D848AE761.A9646 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: caoj.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro-san,   As I remember, init/ is already built during recursive make, and I did a clean build(make mrproper, make localmodconfig) with all plugins included on x86_64 with following patch, the kernel can boot without any obvious problem. So, I don't figure out why we need this final build? diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index e6818b8e7141..086b2efd4d53 100755 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh @@ -247,9 +247,6 @@ else expr 0$(cat .old_version) + 1 >.version; fi; -# final build of init/ -${MAKE} -f "${srctree}/scripts/Makefile.build" obj=init GCC_PLUGINS_CFLAGS="${GCC_PLUGINS_CFLAGS}" - archive_builtin #link vmlinux.o -- Sincerely, Cao jin