Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6383103imm; Wed, 27 Jun 2018 06:56:44 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfkBbsbQ+ZWFfFqfPCOO8fLVOnwkbS4emupXkqvDbQdAWhQgt5JFYtwd1pC75v7Rv9fNkY7 X-Received: by 2002:a65:5004:: with SMTP id f4-v6mr5285605pgo.54.1530107804218; Wed, 27 Jun 2018 06:56:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530107804; cv=none; d=google.com; s=arc-20160816; b=ObXxG9Z6Efgyb55iv1gSjYEKO8X4xBBf1DzFBOWHvh0GXEpd/NOaZ9B8M16SjktibQ k4wCoV1mWZj8P6iZ/k1cfAMLjpzD/CuURTxsw/+uIl/GW/XrV6HM6qqUT6qKqWa1DRaC 2zR1Id5IE0un+cuoTnbpF497LYH9xpgOhC2zdFUkUGVOfZUa7+yQ3n/6aAzgS1MznDf8 h5fuaScRMsbSJZqcqHGCQB5quLCx6fpdn1vvOxp64SpeQFMIR6KgLn3auzqnENbsBGxJ mCFXrQru7o+raJ5RdLZKgYk5fV+j20XzhZkWOLZ70USw8dC3wk0Y4SbexHxauBadH1Dv KnYw== 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:mime-version :organization:message-id:subject:cc:to:from:date :arc-authentication-results; bh=Pqror5fzn/naeOx3fhqJC6+rwPJeUZ4k4hmJP+6ojEM=; b=LPUJBzf2RGhilhJzVd2JCBNeTy5hdCbVJyBm9McHYNzObqGW8S1PBqEWAaf2et5h3I +tQ49y0FHYuF74Glk47ABGcBLdtSwYe26yRoDKcsfEJFZv4FXChNNGWxtGIQNPnRZIYu 41o+9mVvhkXrU9PETtc8a91ogIMjrq7o+06eou4e999jPEMxAF8XX3fGjit+gvOcpDQN BywKGlfPacO7CwLxslVwUgEnxcsQ3x6nDVgSO4oLbVjxyxexlO2z01JbKMweIrQK+I36 ADLMcwq3BSMB7AqD8gCEGSmVdmpLvraDS/vtCqRgEZPwfQXvjWZZoQDcCJR8CnjUYnL1 dCuQ== 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 t25-v6si4110750pfl.344.2018.06.27.06.56.29; Wed, 27 Jun 2018 06:56:44 -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; 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 S934364AbeF0MhO (ORCPT + 99 others); Wed, 27 Jun 2018 08:37:14 -0400 Received: from mx2.suse.de ([195.135.220.15]:52940 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933884AbeF0MhK (ORCPT ); Wed, 27 Jun 2018 08:37:10 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 10C1DAF75; Wed, 27 Jun 2018 12:37:08 +0000 (UTC) Date: Wed, 27 Jun 2018 14:37:05 +0200 From: Michal =?UTF-8?B?U3VjaMOhbmVr?= To: linux-kernel@vger.kernel.org Cc: Takashi Iwai , Andreas Schwab , Michal Kubecek , Masahiro Yamada , Michal Marek , Jonathan Corbet , Yoshinori Sato , Rich Felker , "David S. Miller" , Jeff Dike , Richard Weinberger , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Kees Cook , Philippe Ombredanne , Greg Kroah-Hartman , Ulf Magnusson , Jeff Mahoney , "Peter Zijlstra," , Mathieu Desnoyers , Frederic Weisbecker , Randy Dunlap , Dominik Brodowski , Nicholas Piggin , linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, Michal =?UTF-8?B?U3VjaMOhbmVr?= Subject: due to kconfig changes kernel config file is no longer sufficient for configuring the kernel Message-ID: <20180627143705.5a1fed1c@kitsune.suse.cz> Organization: SUSE Linux X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, in the x86 Kconfig we have this: # Select 32 or 64 bit config 64BIT bool "64-bit kernel" if "$(ARCH)" = "x86" default "$(ARCH)" != "i386" ---help--- Say yes to build a 64-bit kernel - formerly known as x86_64 Say no to build a 32-bit kernel - formerly known as i386 Since commit 104daea149c4 ("kconfig: reference environment variables directly and remove 'option env='") the value of ARCH is not saved in the kernel config. Since commit f467c5640c29 ("kconfig: only write '# CONFIG_FOO is not set' for visible symbols") the value of 64BIT is not saved if the ARCH is set i386 or x86_64 because the symbol is not visible. There is a number of ways to hack this particular case to work. However, there is a more general problem with this. Some config options may depend on the environment, may not be saved, and the environment is not saved either. So in the end all the infrastructure with symlinks from module directory pointing to the kernel source and object directory is useless. To interpret the config stored there you need the environment and that is not saved anywhere. So if you try to build out-of-tree module it might end up reconfiguring your kernel and producing useless modules. Is there any plan to fix this? Thanks Michal