Received: by 10.223.185.116 with SMTP id b49csp3325219wrg; Tue, 13 Feb 2018 00:38:25 -0800 (PST) X-Google-Smtp-Source: AH8x2258RzDt5hOhVgFB0+rDFvaDSu02PcEL149gTDAtwUt/IKZd4tCSxjFAvVZayp93+JV93VI7 X-Received: by 2002:a17:902:24a5:: with SMTP id w34-v6mr408160pla.221.1518511105281; Tue, 13 Feb 2018 00:38:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518511105; cv=none; d=google.com; s=arc-20160816; b=Xss2+PLmAxZA3CRqm9TdqmKMTjAYMBZ4llcBCueplrJCT+NWbvbv8J25wzDpEYop7D bMw631LHcvj7uY4kdk1RMJ5FPYTvfme8yIUEwzPiNqvjbXikwGZS+UccnxnlbwLWHK5u oZaR0ev/YSXVhYpV2PxsAuWNJYHQ1nCE6JcciTas2gSLK9BOKcMAKf0jl5IR9gDSsfMn kDyTqsvCwJW+qEWoG1qycwl4WNnTZR6/el31amy1q5+wDqlmDqd2Ahbmyj6YJ0z0ohkh BQLDRSO8b5zIqZmWOyOi3D6pA9M5xK7qDZZMJuvsPUvMaerkGgmQhHi57vmUZeVd8U4h IONA== 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 :arc-authentication-results; bh=9xugc5sCxkjch6OQTJEbko19I0qMWWL1SSeTOTzCpYE=; b=uVo2gaHQK4rpvOp1NQssj75dqXOnshAxhN++hdc9CvWqRaWiKWcDrMQYRIWyW6EkOg PmbleQpESknrlbhgN5rYArdzePVl8hjuDnVQT/7q/v195Xsr7L29f1/XKnpXWrho2Tkk usUh5ebTgsst8EoCubMTSIQ8yNnf72/vgitWUww81Ra3CqDbOXZs/LRdVfy8Rknxh9cY j9iyNiiWP5zyAURZmW3L5J6CmI6BWlD2l3761Uo9GmaTbT6iiqvL86idPSuX8lUM17lE DXdn4cxVwUonIuLiNud6qdWcJz5ZGtUeroAMPyqaQHhw1Fhoh7dpb0ELyN2uBWTyFuiw ABMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=I2J8kN0y; 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 g24si4818552pfd.140.2018.02.13.00.38.10; Tue, 13 Feb 2018 00:38:25 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=I2J8kN0y; 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 S933807AbeBMIgB (ORCPT + 99 others); Tue, 13 Feb 2018 03:36:01 -0500 Received: from mail-oi0-f65.google.com ([209.85.218.65]:38465 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933631AbeBMIf7 (ORCPT ); Tue, 13 Feb 2018 03:35:59 -0500 Received: by mail-oi0-f65.google.com with SMTP id j15so13305833oii.5; Tue, 13 Feb 2018 00:35:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=9xugc5sCxkjch6OQTJEbko19I0qMWWL1SSeTOTzCpYE=; b=I2J8kN0ywGgHJAezQQolWue4mpfrMlyG/NU83Y+P8yrU0AyMrRXgobEOdA/XxyTlIX z5lDAzVJe1gn6iwYshSiz7tBTqMxBMaX0JxOWxUBzR3tS2Hs2ZTvU47/CXY1P/DL4PZt k8vV5f0OO8/PF2pKz/vT3M8PdYSk9nmxMJCFGrYSVF0eB+d0XdrRC9bbY+vwDGWBuCtV sUO14LtDjpR60azko59y+PLH2mvh1PYzRr+gMsvYa5FAsahabUNq3FjrGPVnj0WkaTLX owK9dCoJuC9OrIsv+GJrmWycBLCGBWgJTmnXHlnLu0fcFBbpGrbwSSzpFWlcg/lc8V1+ taUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=9xugc5sCxkjch6OQTJEbko19I0qMWWL1SSeTOTzCpYE=; b=NuQDhUvBEzjNRgqbA1cRE6qWTs3QtE+3Uq4LBCwzf7Dv+gJxtSyUCap4f5OyE1KfP3 /9Vg/SDb5VuigL3KfG3MhlFVA1qTXHQLVk5AWIEmNgEBidCn3jF0Goz7++rgBbiMpqp5 kGjucrDbCjgYcDuBj5pX5/ro+MQd+ZJJV6dqO2CZIztT8/WGD1UjjIxv9W8Q5L6dY/xz EKs+45UDQVbO2chCXOG7DH/nPfniUXx4dQ3v4NdG89CtT31m1ze3miV+TTdMm4IWYjrH xuE1IMgKaxn8J548Ox7icH+ojil8LqQe28q/ExxdgcVb3a/kfvDWclvxusjZy1o8qLOA FCpg== X-Gm-Message-State: APf1xPDfkm7TUwn+8Rcaux6mbnhKsRa01KIUg3R1Bz6WHhE2ocqmYeD4 6pINoQJTAB7XN9lNop+ZWicYK3rxmZ8MQitkqSU= X-Received: by 10.202.18.3 with SMTP id 3mr263441ois.185.1518510958283; Tue, 13 Feb 2018 00:35:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.168.66.10 with HTTP; Tue, 13 Feb 2018 00:35:57 -0800 (PST) In-Reply-To: References: <20180210054843.z3g7wvcmlccvww3h@huvuddator> <20180210074924.3nhxsza5zdbaahxx@huvuddator> <20180210080556.mycqsjhxbaguwhay@huvuddator> <20180210085519.737ckf4bcl57h4g2@huvuddator> <20180211103432.pf2ot6nd7nbhdhsy@huvuddator> <49c196ec-891d-2030-bd6c-7222feb22059@infradead.org> From: Arnd Bergmann Date: Tue, 13 Feb 2018 09:35:57 +0100 X-Google-Sender-Auth: U9jJDmo8ZQGNy88BTH2S4-DKvhI Message-ID: Subject: Re: [RFC PATCH 4/7] kconfig: support new special property shell= To: Randy Dunlap Cc: Masahiro Yamada , Kees Cook , Ulf Magnusson , Linus Torvalds , Linux Kbuild mailing list , Greg Kroah-Hartman , Andrew Morton , Nicolas Pitre , "Luis R . Rodriguez" , Sam Ravnborg , Michal Marek , Martin Schwidefsky , Pavel Machek , linux-s390 , Jiri Kosina , Linux Kernel Mailing List , Tejun Heo , Ingo Molnar , "Van De Ven, Arjan" 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 On Tue, Feb 13, 2018 at 2:53 AM, Randy Dunlap wrote: > On 02/12/2018 05:41 PM, Masahiro Yamada wrote: >> 2018-02-13 8:48 GMT+09:00 Randy Dunlap : >>> On 02/12/2018 07:24 AM, Kees Cook wrote: >>>> On Mon, Feb 12, 2018 at 6:39 AM, Masahiro Yamada >>>> wrote: >>> >>>>>> (And in thinking about this, does Kconfig know the true $CC in use? >>>>>> i.e. the configured cross compiler, etc?) >>>>> >>>>> I was thinking of removing CONFIG_CROSS_COMPILE. >>>>> >>>>> A user can dynamically change CROSS_COMPILE from >>>>> "make menuconfig". >>>> >>>> Most builds I've seen implement cross compilers as an environment >>>> variable during all "make" invocations. >>> >>> I agree. I think you would break a bunch of build bots if you remove that. >> >> >> For clarification, I suggested to remove CONFIG_CROSS_COMPILE. >> >> The following code: >> https://github.com/torvalds/linux/blob/v4.16-rc1/Makefile#L315 >> https://github.com/torvalds/linux/blob/v4.16-rc1/init/Kconfig#L58 >> >> I hope build bots are not using this. >> >> >> Passing CROSS_COMPILE via the command line, environment >> is still supported. > > OK, I misunderstood. That one can go away IMO. Removing it will break the workflow for some people in a minor way though. Could we have the top-level Makefile try to detect the CROSS_COMPILE? Instead of just using CC=gcc as the default, we could check for ${ARCH}!=`uname -m` and then see if $PATH contains a ${ARCH}-linux-gcc, ${ARCH}-elf-gcc or ${ARCH}-gcc. it will need slightly more complexity to deal with architectures that have different identifiers in linux and gcc, but I think it would be a nice feature anyway. Arnd