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 9EC6AC636CC for ; Mon, 20 Feb 2023 06:15:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6B8F7857E0; Mon, 20 Feb 2023 07:15:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=sholland.org header.i=@sholland.org header.b="VPj0PTYg"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="BvnZH65Q"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4E4D3857E0; Mon, 20 Feb 2023 07:15:10 +0100 (CET) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9B8F8857E0 for ; Mon, 20 Feb 2023 07:15:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@sholland.org Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 49FB75C0165; Mon, 20 Feb 2023 01:15:00 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 20 Feb 2023 01:15:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1676873700; x=1676960100; bh=GU4Xt8AdgqwMTYcw/Hfbko8VN u4Xx9c8G6KawqnBeso=; b=VPj0PTYgtpMrELmVPtfUxJaVNQ8GMWuynMXGVfVTq RbdQSbFOFhSkimPvCqGGOZ9/jRVsAIP+Cu1ghjaR6SzTQNMssRqrRhIzG9QP3Vg2 vhiB04VUMrFiHOHTtQ/RnpgjGNCn11yUC5N4F2MSBAV/OCCWXWd/7v96A0A7+161 KFSh1ESsqa3CSdcX+mpdXN3UpP2/Ar78Ffs30jYxOBrACTm50SjqzAktcQt5mlEE eRFaS0VznaI/+XtnqiEYhRZ9Mx/30q3v1yK4Ji1iK/lt+ZmeFEHLy1rV1cO094pF P4D7rAorHeIPjxePgHCvg44kQJh2wpvBRybVxQEIarwpQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1676873700; x=1676960100; bh=GU4Xt8AdgqwMTYcw/Hfbko8VNu4Xx9c8G6K awqnBeso=; b=BvnZH65QLGmPvBY2j8ad3HYZmg5AJ3OljVHsnOx2jGwqgpjX5D3 uNo36lr1NmU+m78oPsiJHSLWqWIjMHRwF68wpCJMNO7hEtH3O95OyYCecDMfAj61 G9VKhl3KzhPt0C+3gQX2k5wTUxIxmGL2vb2vAWzP2L/246yiLVcCnT9FKN/FoMtv iEF4qrDwHTWXoVZjRJpFPFie2293FxUoX6DQu/TtbCU0Q8iccYx80U3rj5Yic94i PNuBFDF3BKIh6c81VAOepqXtMroZ131WHSAPFHKBjlFEBPl+FxARFEfmD8WqkARO 0C8Hcj4cSmaJ4KNOk5s5H1bF/BvUnTrSMcg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudejgedgleduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepkeevlefhjeeuleeltedvjedvfeefteegleehueejffehgffffeekhefh hfekkeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Feb 2023 01:14:59 -0500 (EST) From: Samuel Holland To: u-boot@lists.denx.de Cc: Samuel Holland , Mattijs Korpershoek , Patrick Delaunay , Sean Anderson , Simon Glass Subject: [PATCH] fastboot: Only call the bootm command if it is enabled Date: Mon, 20 Feb 2023 00:14:58 -0600 Message-Id: <20230220061458.43549-1-samuel@sholland.org> X-Mailer: git-send-email 2.39.2 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 This fixes an error with trying to link against do_bootm() when CONFIG_CMD_BOOTM is disabled. Signed-off-by: Samuel Holland --- drivers/fastboot/fb_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot/fb_common.c index 57b6182c46a..20aa80838ae 100644 --- a/drivers/fastboot/fb_common.c +++ b/drivers/fastboot/fb_common.c @@ -135,7 +135,7 @@ void fastboot_boot(void) s = env_get("fastboot_bootcmd"); if (s) { run_command(s, CMD_FLAG_ENV); - } else { + } else if (IS_ENABLED(CONFIG_CMD_BOOTM)) { static char boot_addr_start[20]; static char *const bootm_args[] = { "bootm", boot_addr_start, NULL -- 2.39.2