From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752563AbaIAHQm (ORCPT ); Mon, 1 Sep 2014 03:16:42 -0400 Received: from mail-la0-f51.google.com ([209.85.215.51]:41041 "EHLO mail-la0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752524AbaIAHQk (ORCPT ); Mon, 1 Sep 2014 03:16:40 -0400 Subject: [PATCH v2 0/4] kconfig: store default ARCH in .config From: Konstantin Khlebnikov To: Michal Marek , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Cc: Paul Bolle , Geert Uytterhoeven Date: Mon, 01 Sep 2014 11:16:25 +0400 Message-ID: <20140901065916.28909.35097.stgit@zurg> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is second attempt of fixing target archecture amnesia. v1 patch: http://lkml.kernel.org/r/20140706080234.19520.96704.stgit@zurg First version saved ARCH as CONFIG_DEFAULT_ARCH and used it as defult ARCH. This version changes semantic of Kconfig option env="...", now it acts more like the user input, except that the value comes from the environment. Variable from environment overrides all defaults and value from config file. If environment variable is not defined this option has no effect. So, now ARCH is saved as CONFIG_ARCH. Also this patchset links CONFIG_CROSS_COMPILE and CROSS_COMPILE in the same way. Changing it in command line/environment also updates value in the config file. --- Konstantin Khlebnikov (4): kconfig: save values imported from environment into config file scripts/config: add option for changing output for undefined options kconfig: get target architecture from config file kconfig: link CONFIG_CROSS_COMPILE with environment variable Documentation/kbuild/kconfig-language.txt | 10 ++++------ Documentation/kbuild/makefiles.txt | 3 ++- Makefile | 21 +++++++++++++++------ init/Kconfig | 1 + scripts/config | 15 ++++++++++++--- scripts/kconfig/confdata.c | 26 ++++++++++++++++++++++++++ scripts/kconfig/expr.h | 2 +- scripts/kconfig/symbol.c | 3 --- 8 files changed, 61 insertions(+), 20 deletions(-) -- Signature