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 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 60B92C64EC4 for ; Wed, 22 Feb 2023 16:41:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 18ACD85B3F; Wed, 22 Feb 2023 17:36:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="TTkNA3Uf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EA9C585B22; Wed, 22 Feb 2023 17:35:51 +0100 (CET) Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) (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 3950985B14 for ; Wed, 22 Feb 2023 17:34:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd34.google.com with SMTP id m13so1851914ioq.13 for ; Wed, 22 Feb 2023 08:34:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zlYk9n9tiZQp+sf/HjC+f2+VfkReTSNDBOLbFgRH5vg=; b=TTkNA3Ufbz/WdoQ4Fc1UzDXPdKpNO4chg54L9jyvQ+cf1AdESpl+CpSL+TqUAI88IC P8OJioFm8G+B/oqcG6Nj274vr9HHKFhqBdDF6F0LbnHd6xGSz2SOPwyWcMEVpsyZsVvE bA993dnxPiB93YTF+8B/0MAljWtUnD8/ceB1Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zlYk9n9tiZQp+sf/HjC+f2+VfkReTSNDBOLbFgRH5vg=; b=227qLXUUAWRLCE0x+opq9GrORSM/Kg1Lz4agBhOcjL1pyjlgLb/ygtm2Am35GHxIAY et1/uKbVnDcu6QAS8w4Jr3tD7s4KDLlV+P6/vNMn7ZT8Mcm9aMIEA5DgGxnOBkFDXV0f Y7MRFEkIxu77BUQ8IPhzIH2PBlCBFeg+46BsVtkt0miiKwIPzjCjv2isqMWOPgPvlL5B TFbc1u2+d96yup0/WvMfodjoL6DfVB8C72g9xyeXdY4R6BZxcSjUWSswvT9ls2gxYYWP hJ7bih2LhqY+z+KYMUo+fLInfNW5v9aYZ4E5Yw4666gS9FIlMIl1g+xrPkFKDp4gpaIi +ZwA== X-Gm-Message-State: AO0yUKXfQMFyAHXD3ZseaWhwbaOF2qnCVt6IKtTuj45FxGMYKSD81lLI W/lWQ/qwGqeegVx4rWglbtJoCwQkEZdOm9zS X-Google-Smtp-Source: AK7set9rciwFxBkBIgYrx9GevKfkIYWW/Ije6kK4Hn/xAZ2taNLu48mzupXPdCh9LO9PJ/thMi30Rw== X-Received: by 2002:a5e:d50a:0:b0:734:6b18:3ee3 with SMTP id e10-20020a5ed50a000000b007346b183ee3mr1369927iom.13.1677083694848; Wed, 22 Feb 2023 08:34:54 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id z26-20020a056602005a00b00716eb44b97esm2164541ioz.27.2023.02.22.08.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 08:34:54 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Stefan Roese Subject: [PATCH v5 16/44] event: Add Kconfig options for SPL Date: Wed, 22 Feb 2023 09:33:57 -0700 Message-Id: <20230222163425.2043934-17-sjg@chromium.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog In-Reply-To: <20230222163425.2043934-1-sjg@chromium.org> References: <20230222163425.2043934-1-sjg@chromium.org> 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.6 at phobos.denx.de X-Virus-Status: Clean Add options to enable events in SPL. This is mostly so the code can be excluded from SPL builds. Signed-off-by: Simon Glass --- (no changes since v4) Changes in v4: - Modify to get rid of def_bool - Adjust Kconfig ordering common/Kconfig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/common/Kconfig b/common/Kconfig index e3a5e1be1e9..33c3b1dbf0f 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -631,6 +631,26 @@ config EVENT_DEBUG events, such as event-type names. This adds to the code size of U-Boot so can be turned off for production builds. +config SPL_EVENT + bool # General-purpose event-handling mechanism in SPL + depends on SPL + help + This adds a framework for general purpose sending and processing of + events, to allow interested parties to be alerted when something + happens. This is an attempt to stem the flow of weak functions, + hooks, functions in board_f.c and board_r.c and the Kconfig options + below. + + See doc/develop/event.rst for more information. + +config SPL_EVENT_DYNAMIC + bool + depends on SPL_EVENT && EVENT_DYNAMIC + help + Enable this to support adding an event spy at runtime, without adding + it to the EVENT_SPY() linker list. This increases code size slightly + but provides more flexibility for boards and subsystems that need it. + endif # EVENT config ARCH_EARLY_INIT_R -- 2.39.2.637.g21b0678d19-goog