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 14AB5C54798 for ; Tue, 27 Feb 2024 16:25:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 367918802A; Tue, 27 Feb 2024 17:25:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=salutedevices.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=salutedevices.com header.i=@salutedevices.com header.b="F2Fk028V"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D88B587F37; Tue, 27 Feb 2024 11:05:05 +0100 (CET) Received: from mx1.sberdevices.ru (mx2.sberdevices.ru [45.89.224.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B051887F9B for ; Tue, 27 Feb 2024 11:05:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=salutedevices.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=avromanov@salutedevices.com Received: from p-infra-ksmg-sc-msk02 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id 3BCAD120552; Tue, 27 Feb 2024 13:05:01 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru 3BCAD120552 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1709028301; bh=w7zwe674DWrnc6GdWauXwYB8wamAfe/yvjKq1dynG5M=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=F2Fk028VQJ8PJPgc7uBpp9CnlSVIq0MADBkNkU17HIXQ5BMqLvb/VWpTk/InaI7x7 Vs1ZWT1fBT7iZSe7BX2pw5iNwWX9ieRJgzcocB1x3GDVIvjEIquN4AHfJN5zU+ubl3 8uZFG+dSoTpJGfHEpNY1ICjijLItDvsJe3Ep5sRgaF5Kp9OssWL8DHrUcm5cqwn+GR 2z40BYVSuJxpBdpj2rVsmq/pA3XhnvodXBTrZKgsBT13RRrCGIjnN31ynbvU+T3xIv Pe/36RCmSddyoDM3bQrRbh0wu4AAk6DXx/dW3IP99LtMErC1ir+RX9kRzgdsICHnux QfpM14Lr9JPOA== Received: from smtp.sberdevices.ru (p-i-exch-sc-m01.sberdevices.ru [172.16.192.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Tue, 27 Feb 2024 13:05:01 +0300 (MSK) Received: from user-A520M-DS3H.sigma.sbrf.ru (100.64.160.123) by p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 27 Feb 2024 13:04:59 +0300 From: Alexey Romanov To: , , , , , , , , , , , , , , , CC: , , Alexey Romanov Subject: [PATCH v1 4/4] efi: block: compile only if CONFIG_EFI_PARTITION enabled Date: Tue, 27 Feb 2024 13:04:41 +0300 Message-ID: <20240227100441.1811047-5-avromanov@salutedevices.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240227100441.1811047-1-avromanov@salutedevices.com> References: <20240227100441.1811047-1-avromanov@salutedevices.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [100.64.160.123] X-ClientProxiedBy: p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) To p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 183764 [Feb 27 2024] X-KSMG-AntiSpam-Version: 6.1.0.3 X-KSMG-AntiSpam-Envelope-From: avromanov@salutedevices.com X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 7 0.3.7 6d6bf5bd8eea7373134f756a2fd73e9456bb7d1a, {Tracking_from_domain_doesnt_match_to}, 100.64.160.123:7.1.2; smtp.sberdevices.ru:7.1.1,5.0.1; 127.0.0.199:7.1.2; salutedevices.com:7.1.1; d41d8cd98f00b204e9800998ecf8427e.com:7.1.1, FromAlignment: s, ApMailHostAddress: 100.64.160.123 X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean X-KSMG-LinksScanning: Clean X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2024/02/27 05:19:00 #23841006 X-KSMG-AntiVirus-Status: Clean, skipped X-Mailman-Approved-At: Tue, 27 Feb 2024 17:25:20 +0100 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 have to compile efi_block abstraction only if option EFI_PARTITION is enabled. For example, if the user only enabled MTD_PARTITIONS, we would still compile efi_block. This is incorrect. Signed-off-by: Alexey Romanov --- lib/efi_driver/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_driver/Makefile b/lib/efi_driver/Makefile index f2b6c05cc2..1fc85ce6f9 100644 --- a/lib/efi_driver/Makefile +++ b/lib/efi_driver/Makefile @@ -6,6 +6,6 @@ # object inclusion implicitly depends on it obj-y += efi_uclass.o -ifeq ($(CONFIG_PARTITIONS),y) +ifeq ($(CONFIG_EFI_PARTITION),y) obj-y += efi_block_device.o endif -- 2.34.1