Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754403AbdFNH0u (ORCPT ); Wed, 14 Jun 2017 03:26:50 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:34816 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754344AbdFNH0r (ORCPT ); Wed, 14 Jun 2017 03:26:47 -0400 MIME-Version: 1.0 In-Reply-To: <20170613230854.112282-3-mka@chromium.org> References: <20170613230854.112282-1-mka@chromium.org> <20170613230854.112282-3-mka@chromium.org> From: Arnd Bergmann Date: Wed, 14 Jun 2017 09:26:46 +0200 X-Google-Sender-Auth: _m7q_s1PwR38-WnPLIgPi_YdaMI Message-ID: Subject: Re: [PATCH v2 2/4] kbuild: Add hostcc-option macro To: Matthias Kaehlcke Cc: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , "H . J . Lu" , David Woodhouse , Masahiro Yamada , Michal Marek , "the arch/x86 maintainers" , Linux Kbuild mailing list , Linux Kernel Mailing List , Michael Davidson , Greg Hackmann , Nick Desaulniers , Stephen Hines , Kees Cook , =?UTF-8?Q?Bernhard_Rosenkr=C3=A4nzer?= , Peter Foley , Behan Webster , Douglas Anderson Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 741 Lines: 17 On Wed, Jun 14, 2017 at 1:08 AM, Matthias Kaehlcke wrote: > hostcc-option is equivalent to cc-option, but uses the host compiler > and HOSTCFLAGS. Change HOSTCFLAGS to a simple expanded variable to > allow for HOSTCFLAGS += $(call hostcc-option, ...). > > Suggested-by: Arnd Bergmann > Suggested-by: Masahiro Yamada > Signed-off-by: Matthias Kaehlcke Actually, we already have a hostcc-option macro. What I meant with my suggestion was that we could redefine the existing one using cc-option-raw. I checked again now and found that while this was added in 2016 by Emese Revfy, we apparently don't have any users of the helper in the kernel. Arnd