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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id F2D19C76196 for ; Thu, 6 Apr 2023 13:49:10 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B86F28602D; Thu, 6 Apr 2023 15:49:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (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="m07Nwt3f"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 73F488602D; Thu, 6 Apr 2023 15:49:05 +0200 (CEST) Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) (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 F3D4485E82 for ; Thu, 6 Apr 2023 15:49:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yb1-xb36.google.com with SMTP id p15so46181749ybl.9 for ; Thu, 06 Apr 2023 06:49:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1680788939; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Db1532ZGYHWUiIxha1WL9uh1OWXMtAJxocj9nT9tWFo=; b=m07Nwt3f2fNxycPsS1Gpqq5XDw6Uj2zIQopvHz+Gcw8SKiAL+jos/pUFGFGFCpxZaA 5EMMU4VAdC+0Au65Jy6hTjIubstG+rxFCez8sX1V5RsGPblfIaMzuGqS6S+RBp1xuiSl 9gxA3iXvCwhkmMUVF4VSs9URDt6EbOnYLwGeU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680788939; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Db1532ZGYHWUiIxha1WL9uh1OWXMtAJxocj9nT9tWFo=; b=KrEvJ9QRDHaAZCsPbPRejj++Cb6/LLwprLnuwKoQxWpqg14vN+h/79EsTkjiPT12qd 3zoQS8N0h8fEuuS7RLhzT7bJGoJCl5rlplrDk/4FzGeWDo9Ug9+rzjvUyBbkyQ9gJSWk OA9McqmC+AD6/L6Qbm8NEk380XZOfXrpYURPfxCEHacVDfqeykL0dcseI3H4pWHLCuUe XXmNUQSwwJPNf2/TH7Bhl1iHBPW4w/PvARlh0wSSaR8AtNiLGHfG+HGi67Ze9mb3zGDq YI89Y5KrWcADUnY8zqb99gr2DgZGAwhPMWC3EN//osXC9yXj2kYGA2IlZXYn7B0FZzNg 5gUw== X-Gm-Message-State: AAQBX9fFJ5ekNduGSPG4uhJCkKjf28DWZz0yBWIQwLUNCgs8/izlC4nk He7aOVvlMd1a1EYMm2PmtHDXX6rtvUb7SIjWzQIXlw== X-Google-Smtp-Source: AKy350YB+oaEM6LHINIGpg8b4li/XAcwC0K1P1fw/KtaYTnw8rdLcyDKU3cf29NQbjcTRK+s5+fitA== X-Received: by 2002:a25:51c4:0:b0:b8b:faa4:cdc8 with SMTP id f187-20020a2551c4000000b00b8bfaa4cdc8mr1063494ybb.24.1680788939367; Thu, 06 Apr 2023 06:48:59 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b00-6400-acff-1005-f218-7c24.res6.spectrum.com. [2603:6081:7b00:6400:acff:1005:f218:7c24]) by smtp.gmail.com with ESMTPSA id e78-20020a256951000000b00b7767ca7470sm429916ybc.13.2023.04.06.06.48.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 06:48:59 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Cc: Heinrich Schuchardt Subject: [PATCH] api: Rework menu, and make it depend on CC_IS_GCC Date: Thu, 6 Apr 2023 09:48:58 -0400 Message-Id: <20230406134858.1520697-1-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean We can only use the old U-Boot API for standalone applications when building U-Boot with GCC as it relies upon the "gd is a register" trick that only GCC supports. Further, rework the rest of the options so that they are in the API menu and only visible if API support is enabled. Reported-by: Heinrich Schuchardt Signed-off-by: Tom Rini --- api/Kconfig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api/Kconfig b/api/Kconfig index 6072288f9bc2..b5a7399d7f3c 100644 --- a/api/Kconfig +++ b/api/Kconfig @@ -1,13 +1,14 @@ -menu "API" - config API bool "Enable U-Boot API" + depends on CC_IS_GCC help This option enables the U-Boot API. See api/README for more information. +menu "API" + depends on API + config SYS_MMC_MAX_DEVICE int "Maximum number of MMC devices exposed via the API" - depends on API default 1 config EXAMPLES -- 2.34.1