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 84206C19F2A for ; Sun, 7 Aug 2022 15:49:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6DA698487B; Sun, 7 Aug 2022 17:48:09 +0200 (CEST) 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="ilHtQHTi"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DBDCD84878; Sun, 7 Aug 2022 17:47:57 +0200 (CEST) Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) (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 E24388483E for ; Sun, 7 Aug 2022 17:47:54 +0200 (CEST) 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-oi1-x22d.google.com with SMTP id bb16so7847191oib.11 for ; Sun, 07 Aug 2022 08:47:54 -0700 (PDT) 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; bh=oyWNwGZzxN25tDMkrV4QxeFjE1bnKh8urGhT/B/QWIM=; b=ilHtQHTiNHpk/jLW7HuyY1pxwYlc4jFWtGp2Q8iJ8Jwq+YUsUvlceOUROiUAKaRTim +Im5sASwNFuD6yBig2LrqFmBtj1JIeOTeMifV5FAVa3Wvo/iJFto7ZUFGpgjZV3YrAvY U41m7yLIyart6iErXsF5Fr4278d0yD9kHwqmU= 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; bh=oyWNwGZzxN25tDMkrV4QxeFjE1bnKh8urGhT/B/QWIM=; b=Il/ieUgKA7R6HMXuqMYK/egcZAjh59pLmmSyQvfksCejmXC2ZB5D9hRUNy/BjREPct dL/PV6HWRjv12BW0ZZE75HhVK3f2JyZZrEKen0rpeIMQblQmpE26lVUf8Iaf7nfIURZ4 8DYqIZKGEeNFfaKrsOI6WMu7dpoNVLh+jdKoIRhKHdIFXw6bOspxygXNu6GUK9qxixuY yt7bzLP0aFZvsSH5LO4+eN4CrhPQj6QRXmTZuoPbPuns4v02jtQ3YPTdVnvR4urI/rmL dDlS0aLHITb2gkyCVkk4dvBCb6z9S0Tm0spTeZwKhzC75aV7mjIh7HFAU9+NUTcAEcVb Yk7Q== X-Gm-Message-State: ACgBeo0LUq4jwt9hWAzPk48YY514Ro3qf7jjaLV9OX+nvnqy6C2A+NaA xnsHBH8VqTnAGOho0Of6Vim8GSOZzWuKtQ== X-Google-Smtp-Source: AA6agR4tiuGWjnI3Eo9ZpzzshiDgmYjD0ahIt/tNtKyo7/FYc6lZpuJPshHvinHRUw9EMGqW5t838w== X-Received: by 2002:a05:6808:190f:b0:340:b7e:7440 with SMTP id bf15-20020a056808190f00b003400b7e7440mr6215077oib.86.1659887273335; Sun, 07 Aug 2022 08:47:53 -0700 (PDT) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id y18-20020a056808131200b0034290c4ed01sm1553412oiv.41.2022.08.07.08.47.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Aug 2022 08:47:53 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Heinrich Schuchardt , Simon Glass , Artem Lapkin , Ashok Reddy Soma , Chris Morgan , Huang Jianan , Ilias Apalodimas , Kever Yang , Masahisa Kojima , Michal Simek , Ovidiu Panait , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Thomas Huth Subject: [PATCH 08/23] cmd: Drop use of HAVE_BLOCK_DEVICE Date: Sun, 7 Aug 2022 09:46:53 -0600 Message-Id: <20220807154708.1418967-9-sjg@chromium.org> X-Mailer: git-send-email 2.37.1.559.g78731f0fdb-goog In-Reply-To: <20220807154708.1418967-1-sjg@chromium.org> References: <20220807154708.1418967-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 This condition is not needed for these commands, since BLK is enabled for all boards which use block devices and commands are not available in SPL, so even if SPL_BLK is not enabled, it doesn't affect commands. Signed-off-by: Simon Glass --- cmd/Kconfig | 5 ----- cmd/Makefile | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 3625ff2a50b..e616daff43e 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1082,7 +1082,6 @@ config CMD_PWM config CMD_GPT bool "GPT (GUID Partition Table) command" select EFI_PARTITION - select HAVE_BLOCK_DEVICE select PARTITION_UUIDS imply RANDOM_UUID help @@ -1194,7 +1193,6 @@ config CMD_LSBLK config CMD_MBR bool "MBR (Master Boot Record) command" select DOS_PARTITION - select HAVE_BLOCK_DEVICE help Enable the 'mbr' command to ready and write MBR (Master Boot Record) style partition tables. @@ -1326,7 +1324,6 @@ config CMD_OSD config CMD_PART bool "part" depends on PARTITIONS - select HAVE_BLOCK_DEVICE select PARTITION_UUIDS help Read and display information about the partition table on @@ -1457,7 +1454,6 @@ config CMD_UNIVERSE config CMD_USB bool "usb" depends on USB_HOST - select HAVE_BLOCK_DEVICE help USB support. @@ -1497,7 +1493,6 @@ config CMD_PVBLOCK config CMD_VIRTIO bool "virtio" depends on VIRTIO - depends on HAVE_BLOCK_DEVICE default y if VIRTIO help VirtIO block device support diff --git a/cmd/Makefile b/cmd/Makefile index 5e43a1e022e..9314640b674 100644 --- a/cmd/Makefile +++ b/cmd/Makefile @@ -18,7 +18,7 @@ obj-$(CONFIG_CMD_AES) += aes.o obj-$(CONFIG_CMD_AB_SELECT) += ab_select.o obj-$(CONFIG_CMD_ADC) += adc.o obj-$(CONFIG_CMD_ARMFLASH) += armflash.o -obj-$(CONFIG_HAVE_BLOCK_DEVICE) += blk_common.o +obj-$(CONFIG_BLK) += blk_common.o obj-$(CONFIG_CMD_BOOTDEV) += bootdev.o obj-$(CONFIG_CMD_BOOTFLOW) += bootflow.o obj-$(CONFIG_CMD_BOOTMETH) += bootmeth.o -- 2.37.1.559.g78731f0fdb-goog