Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1471483imm; Sun, 8 Jul 2018 03:44:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeCW1gJy9x2YPYvkAQbsGw1ZB0y+dAuzzvdqAh2aconl3QE72qmuLK67VTLVV0mE7UdbkRx X-Received: by 2002:a62:1089:: with SMTP id 9-v6mr16051996pfq.30.1531046642764; Sun, 08 Jul 2018 03:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531046642; cv=none; d=google.com; s=arc-20160816; b=GThIehb0H+BPCy8Unr3YUDCgbzqc47KzdCANbSlHBMIA3ljXf9gYFXXBk11Jnxm/1S AavlhWYN7TB02fibX5UteguLm0ilTrXIx8Xwbbs3ZhhbrgIBiXJcAXYy3iypE32AjXff zT+AiCosWGBArnAb+HbbnFoMO8gKKuiiWZKBzejjCAasikbnWNSAOxoA7g+WaBjAWYV+ MMc3yB8gP1QT+OAcposy1XjQqB0DNvD7KD0xyY/Nb0vOTTjbxMIlYB7gkiQT88AkmBSw fFosj1DlHX67YZ9eiJ+HwyxyQDl7i/Bfa0/tuU5yZPLZB8P3HatfPXDxNsC4DaeFUu7i LAtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=rhGd301Z6SQGs3Y+WGvz3hl2LcH3HlULkh3DYiVU78Q=; b=owWzv8V/djZR4RsDWck84r7paYNYaRW84OA23dumF/qF2Z2Nh2M6rpqe7YtFGk+qrQ KD+jXPnDuULHYtNP+o67Dxt9a3tEFZsLDOeIifrMQ+xqZ7rDXLdIne4TiJkxByY9UiQl gct0oYsAyWiE7H69MKAaRa/5eZwMS51W6Ar7zTgatwFXCzfX2v8p4Nazfs3X8rCYT5rq 248On+0CfD3jSKpV2XgMu/iglJ8qjRMqAL52GvDrG/SvRVwxHkue/UpMdTgI5XQjl1w5 RpoPxVqFAfdtkHUmUd7Q0h/cU5f1rpv4ZJklpAv8koFCJSQFn1qHIeNffxdkJySMpfiW E8Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=FYy3PW9m; 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 w13-v6si7785501ply.454.2018.07.08.03.43.48; Sun, 08 Jul 2018 03:44:02 -0700 (PDT) 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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=FYy3PW9m; 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 S932910AbeGHKmU (ORCPT + 99 others); Sun, 8 Jul 2018 06:42:20 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:45312 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932690AbeGHKmT (ORCPT ); Sun, 8 Jul 2018 06:42:19 -0400 Received: from mail-ua0-f179.google.com (mail-ua0-f179.google.com [209.85.217.179]) (authenticated) by conssluserg-06.nifty.com with ESMTP id w68AgEja010174; Sun, 8 Jul 2018 19:42:14 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com w68AgEja010174 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1531046535; bh=rhGd301Z6SQGs3Y+WGvz3hl2LcH3HlULkh3DYiVU78Q=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=FYy3PW9mtxsaHuR/8aVWohXTUTJ+ICiSuZASNF46ZzCTdxK0ybu/+f5Pr/LFwvcJ9 CTKIvExaamrhzea4J0snQpZANSxOwS6mjhaX9ME00ToTRSmCQcNaw06zbbFhuBsjxm u2Y0elUQHKmC6iUyUaV+0n49hU3N1t06pIVWgyBKbpAti79CtP3/DCEVULoGH1KBMW zLKoyvJVrfLF7INz7omPSl/H2MuLFw5bBBnJHfWzVpopolEoIrjsaxnM/1jcTU2pvj 3hTBox9sfynoAG0OVxHcG0SHensK9SrFXFlpMitFhZAFXPlVbBsG8mH/+TxV5H0Rcm Re5kyBwc+TyYA== X-Nifty-SrcIP: [209.85.217.179] Received: by mail-ua0-f179.google.com with SMTP id k25-v6so1146819uao.11; Sun, 08 Jul 2018 03:42:14 -0700 (PDT) X-Gm-Message-State: APt69E1Pjstyx1MOL0q8ydPD96gfBpN9kJ4jXbwAKeOZIlowBD8PXadv tDDB8S5i46js6+q/OUF7KieX4jeU1RIfpe2QYWA= X-Received: by 2002:ab0:4c24:: with SMTP id l36-v6mr10135937uaf.199.1531046533489; Sun, 08 Jul 2018 03:42:13 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:3308:0:0:0:0:0 with HTTP; Sun, 8 Jul 2018 03:41:32 -0700 (PDT) In-Reply-To: References: From: Masahiro Yamada Date: Sun, 8 Jul 2018 19:41:32 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Fix the oldconfig target rule To: Bernd Edlinger Cc: "linux-kbuild@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-07-08 17:09 GMT+09:00 Bernd Edlinger : > On 07/08/18 08:31, Bernd Edlinger wrote: >> The next make after an oldconfig reads in the outdated >> include/config/auto.conf which can kill the make before >> it is able to call the syncconfig target. >> >> $ make defconfig >> *** Default configuration is based on 'x86_64_defconfig' >> $ make >> scripts/kconfig/conf --syncconfig Kconfig >> Makefile:936: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, >> please install libelf-dev, libelf-devel or elfutils-libelf-devel". Stop. >> >> $ sed -i s/CONFIG_UNWINDER_ORC=y// .configs >> $ make oldconfig >> Choose kernel unwinder >>> 1. ORC unwinder (UNWINDER_ORC) (NEW) >> 2. Frame pointer unwinder (UNWINDER_FRAME_POINTER) >> choice[1-2?]: 2 >> $ make >> Makefile:936: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, >> please install libelf-dev, libelf-devel or elfutils-libelf-devel". Stop. >> >> With this patch oldconfig and similar targets like >> menuconfig call syncconfig to avoid this failure. >> >> Signed-off-by: Bernd Edlinger >> --- >> scripts/kconfig/Makefile | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile >> index a3ac2c9..ef34275 100644 >> --- a/scripts/kconfig/Makefile >> +++ b/scripts/kconfig/Makefile >> @@ -62,6 +62,7 @@ PHONY += $(simple-targets) >> >> $(simple-targets): $(obj)/conf >> $< $(silent) --$@ $(Kconfig) >> + $(Q)$(MAKE) -f $(srctree)/Makefile syncconfig > > On second thought, removing the auto.conf might be sufficient: > $(Q)rm -f include/config/auto.conf include/config/auto.conf.cmd > > Would you prefer that? No. My suggestion is this: https://patchwork.kernel.org/patch/10513065/ -- Best Regards Masahiro Yamada