Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1881914ybz; Thu, 30 Apr 2020 07:09:41 -0700 (PDT) X-Google-Smtp-Source: APiQypJht05qnNzLTtcjupyT9F8AJhTWsSycTmVPF2D4U17yyMECcyuTVvcUk+RQf2M1QD9TwOeX X-Received: by 2002:aa7:d1d6:: with SMTP id g22mr2957898edp.36.1588255781324; Thu, 30 Apr 2020 07:09:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588255781; cv=none; d=google.com; s=arc-20160816; b=KhXLLWctti2GcIztb2oALBdGoXwTEVn3o1gukADVcwDO7fYqXgJltL5pqhCUpRhu4d 5PiS+wkIPHl8qCRfbXu/XSID9xnsurkKpyHr8NPOqeBtEsWlAJRMrILVAI2jaF5kW4bD Fx9PM3Gp/O+YV38h8n/VnX51tp6q8pRroE1dlk4G4GMx0cWNnyVHbS1Yr+9DDTnobyUo lzF1OXjB7TyTFf9FstkNpoOSPhMzZCZhHXd92FXGwzLtIoDtMCuNih6TNn1VVpbzEWL1 1FLuSgEKcm5WpTAF5GN0Yqiol4ncrJHw2nOo5OUSt3pqnPp3S4qYvrerM5Ljk1qiN/2X bUGQ== 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 :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=9ltjNZ8e4vrC7cBbZIWrYc76JCI/RhItJRQkfkK98AE=; b=KgJJkUN3y7KWJLwb0LSmrjQuFhadDSja+h5l7FWPepsHY7DvZ0D4xi2FSBCDR8snAD rnbfgw3xnHRxf+NlilzL3EIHHEUbq5P4A8RPm2Q4XXovVb58idEIzcpV+fHhqbuZS4QP wHpR79VjJQPs3l8yJaEiWIev7jYq1mo7lm4A+F2LHCxBLnhNyGanS9ZabDMe/slr24it JxdfLoKls+mco2Bfil2oPQbPI9f6lbZUL1wlE9wfc+BjeLdJcc1+CfuPC8MoALvIvpJA 0BtC796kJjZ02fQ4PUva6rkYY8gVpghmrNRaGllmfP2I2BhtOUGUzatC55lvzk7EQpwT ysSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=R86dw4zv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w21si5697720edt.595.2020.04.30.07.09.16; Thu, 30 Apr 2020 07:09:41 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=R86dw4zv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728680AbgD3NxS (ORCPT + 99 others); Thu, 30 Apr 2020 09:53:18 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:26111 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728361AbgD3Nwo (ORCPT ); Thu, 30 Apr 2020 09:52:44 -0400 Received: from mail-vs1-f41.google.com (mail-vs1-f41.google.com [209.85.217.41]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 03UDqPGZ032676; Thu, 30 Apr 2020 22:52:25 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 03UDqPGZ032676 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1588254745; bh=9ltjNZ8e4vrC7cBbZIWrYc76JCI/RhItJRQkfkK98AE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=R86dw4zvy/H/eesDgAJVTUk+Cc3K8OruRnFRIPPbqkF2uwBuu/wY+B+V4UjIWmLhN BQFyZu3SzNgetMRDO4PIKfSKHbINrQWqRo3hNRs2MLPN3rFP519zMJ87heGncNA4o1 2BZbh2kq+XE44vTGGI1CD1F6ahvvJCL6kUuMqp+Jv8kSWC8WhxEr2FbhhY0x1eiR1y Y6U1XLNZterOCcl9k5ZEgrBhTS8u/6Jq5QwrOkH8xwVn6qglGcc/Q1r25LRylvhKTB z7HetM64+oxIMuFXv+euF7Q++/ouE4u8b274o+t26rFsiXltG005+jS/GUfObL905B ywdYixoSH1poA== X-Nifty-SrcIP: [209.85.217.41] Received: by mail-vs1-f41.google.com with SMTP id e10so1273031vsp.12; Thu, 30 Apr 2020 06:52:25 -0700 (PDT) X-Gm-Message-State: AGi0PuYjcm1oxK+UPt+X8xsEf1IA2SyrBwikPi9VuZyICQ5e/0Tj+Jul GA8SSD4zn6GoyHT40duoD+pdBPPjESdRfGYrbLE= X-Received: by 2002:a05:6102:240f:: with SMTP id j15mr3325751vsi.155.1588254744247; Thu, 30 Apr 2020 06:52:24 -0700 (PDT) MIME-Version: 1.0 References: <20200430131715.32c1a1f6@coco.lan> In-Reply-To: <20200430131715.32c1a1f6@coco.lan> From: Masahiro Yamada Date: Thu, 30 Apr 2020 22:51:48 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug: Kbuild seems to require "make prepare-objtool" in order to use (some) new config vars To: Mauro Carvalho Chehab Cc: Linux Kbuild mailing list , Linux Kernel Mailing List , Linux Media Mailing List 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 Hi Mauro, On Thu, Apr 30, 2020 at 8:17 PM Mauro Carvalho Chehab wrote: > > Hi Masahiro, > > Not sure if this was already reported (or eventually fixed) upstream. > > While doing a Kconfig reorg on media, I noticed a few weird things, > requiring me to call, on a few situations, "make modules_prepare" > manually after some changes. > > I'm now working on a patchset to yet to be merged upstream aiming to > resurrect a driver from staging. It is currently on this tree > (with is based at the media development tree, on the top of 5.7-rc1): > > https://git.linuxtv.org/mchehab/experimental.git/log/?h=atomisp_v2 > > There, I was able to identify a misbehavior that it is probably > what forced me to need calling "make modules_prepare". > > The atomisp driver is on a very bad shape. Among its problems, it has a > set of header definitions that should be different for two different > variants of the supported devices. In order to be able to compile for > either one of the variants, I added a new config var: > CONFIG_VIDEO_ATOMISP_ISP2401. > > The problem is that calling just > > ./scripts/config -e CONFIG_VIDEO_ATOMISP_ISP2401 > > or > ./scripts/config -d CONFIG_VIDEO_ATOMISP_ISP2401 scripts/config does not take the dependency into consideration at all. You need to enable/disable other options that it depends on. ./scripts/config -e STAGING -e STAGING_MEDIA -e MEDIA_SUPPORT -e MEDIA_CONTROLLER -e INTEL_ATOMISP -e VIDEOBUF_VMALLOC -e VIDEO_ATOMISP -d MEDIA_SUPPORT_FILTER -e VIDEO_DEV -e VIDEO_V4L2 -e VIDEO_ATOMISP_ISP2401 allows me to enable VIDEO_ATOMISP_ISP2401. It is painful to debug such complicated dependency graph, though. > > is not enough anymore for the build to actually use the new config value. > > It just keeps silently using the old config value. > > I double-checked it by adding this macro at the Makefile: > > $(info ************ ISP2401: $(CONFIG_VIDEO_ATOMISP_ISP2401) ************) > > The Makefile doesn't see the change, except if I explicitly call > "make modules_prepare" or "make prepare-objtool". > > Even calling "make oldconfig" doesn't make it use the new CONFIG_* I do not know. I cannot look into it without detailed steps to reproduce it. -- Best Regards Masahiro Yamada