From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0051BC433EF for ; Sat, 9 Oct 2021 01:41:24 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7E48260FE8 for ; Sat, 9 Oct 2021 01:41:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7E48260FE8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AD39483679; Sat, 9 Oct 2021 03:40:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="ue2oWA8Z"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5635983633; Sat, 9 Oct 2021 03:39:40 +0200 (CEST) Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 55E758362B for ; Sat, 9 Oct 2021 03:39:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82d.google.com with SMTP id z24so6536871qtv.9 for ; Fri, 08 Oct 2021 18:39:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=T08t/bb8fyIoGAIp2AD7EqKxEjO0SwWLxTSokaP3HVE=; b=ue2oWA8ZC7OmHj3nNkYkJJvW8XlxS6zoCgy2H8NrcfIhyYDM6Ej0JjxrGLcl20oYog J3hTs6bNuwzweALBduqduNxcB+7eXVBuNh5DDV1Vq2j7vU+EmQ5sf26+g2+mbiynxzRw /HwZhGCya2xItGL7ku/S6DOkrkodQgphxslh8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=T08t/bb8fyIoGAIp2AD7EqKxEjO0SwWLxTSokaP3HVE=; b=WE0LGgofvHfF2//WQliGFwHUCErFz1rAxT/9eVYMVr0E6pV+ya6Cb17Ysp6EOirSni 5F0hiJpNHEOWJN2BfgJ2PFLY7u2mThyZkbGkJ9be8jJTD0ReKF4hGqDFHFd9C+tE457a byfR2C85BvwLSfYy+IuX+3K0ssorJ96XCuevue7NbpFj35drRyCu7hyen7g40Bt9BP6t 8/6ZebDSRsuT3Y2YJFX/fYlQeggKi6TtZPzWf9tMNAfb1JDz8GCL5kfSNRBcCbwbYEqn tjLo1ru/yKi8JADAsKdpoY/GTo+qGstExZRDurUXSccNM3eBr7WIQ36Wpp2RG0RrlvUF 0A+g== X-Gm-Message-State: AOAM531NyO78CmxFcUCn9vTh9dfUAXjivwAjaIqZAb21tTlxZdIXBLzd RXMlCkSPcxSNlV/upPT0AFRjrQ== X-Google-Smtp-Source: ABdhPJyxO4nNfPDNS3UJr3Ap4S51PxSdKJIGsdt7vPp1rJL+7+ZvvNLdohqTuew5vCoHkUbc3WREhA== X-Received: by 2002:aed:27c1:: with SMTP id m1mr1839967qtg.22.1633743569250; Fri, 08 Oct 2021 18:39:29 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-1c00-ef41-79c3-ef5b.res6.spectrum.com. [2603:6081:7b01:cbda:1c00:ef41:79c3:ef5b]) by smtp.gmail.com with ESMTPSA id a2sm687775qtw.25.2021.10.08.18.39.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Oct 2021 18:39:28 -0700 (PDT) Date: Fri, 8 Oct 2021 21:39:26 -0400 From: Tom Rini To: Simon Glass Cc: U-Boot Mailing List , Alexandru Gagniuc , Andre Przywara , Rasmus Villemoes , Robert Marko , Masahiro Yamada , Masahiro Yamada Subject: Re: [PATCH v5 02/29] kconfig: Add tools support to CONFIG_IS_ENABLED() Message-ID: <20211009013926.GQ7964@bill-the-cat> References: <20210926014342.127913-1-sjg@chromium.org> <20210926014342.127913-3-sjg@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tk6xM/wkRlnXD2NA" Content-Disposition: inline In-Reply-To: <20210926014342.127913-3-sjg@chromium.org> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean --tk6xM/wkRlnXD2NA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Sep 25, 2021 at 07:43:15PM -0600, Simon Glass wrote: > At present we must separately test for the host build for many options, > since we force them to be enabled. For example, CONFIG_FIT is always > enabled in the host tools, even if CONFIG_FIT is not enabled by the > board itself. >=20 > It would be more convenient if we could use, for example, > CONFIG_IS_ENABLED(FIT) and get CONFIG_HOST_FIT, when building for the > host. Add support for this. >=20 > With this and the tools_build() function, we should be able to remove all > the #ifdefs currently needed in code that is build by tools and targets. >=20 > This will be even nicer when we move to using CONFIG(xxx) everywhere, > since all the #ifdef and IS_ENABLED/CONFIG_IS_ENABLED stuff will go away. >=20 > Signed-off-by: Simon Glass > Suggested-by: Rasmus Villemoes # b4f73886 > Reviewed-by: Alexandru Gagniuc Applied to u-boot/master, thanks! --=20 Tom --tk6xM/wkRlnXD2NA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmFg8s4ACgkQFHw5/5Y0 tyxTRQv/ZZVTbEDRwEmCo1+iCUz0zZ4kEyYzRB9kOxG1+uW0m+TNUfqK6CMaEFDy WkJV1X+Gx5w5YL1EtRT66qvYYSFFqBtcC2gbJzwkG87EDLcRo1SJRlMN/SWb3KOo afL6PclAw1lg2QrNl+Qvb86dpMM/Ou7p9ptU6/5L8BoOnRDb7FTJWJ0oa+rc45Ku zSMvKQMfMZIbsJZW3KOgfaQY8ZhIh+c3ZG61Eu+ZTGOdky5SKsR4RgfPagiZAsw5 UaVbMiWczocQ0DaKhAjhG0fXHuJGw5UzFLT0ICyHbUKgEzxEAm/Y6lXzAWqbwEVJ ruPZlisjlUNahJn8+OEge6KieJMCBrJOxSye7Qk+k0x9HmllyWWte/MK5a4fsrSZ NX7HYvRXOV9zwKG7BFXNV8n1u8ibgLbOllZA73+A9LZKkqRtYGWMxIYr/2Zj8Tll VOtZ/H5b5fQqPxLU3VrV76TEaf+2NJriw9cIUplJpwebDV089kSlDcREe31LfCYp UfN+tEcf =T7qg -----END PGP SIGNATURE----- --tk6xM/wkRlnXD2NA--