From patchwork Mon Jul 22 17:55:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 813741 Delivered-To: patch@linaro.org Received: by 2002:adf:f288:0:b0:367:895a:4699 with SMTP id k8csp1984244wro; Mon, 22 Jul 2024 10:55:42 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXt6D0M37dNSxy4L3eBPYFnvqsqDeVGvkKMneag2G4FeXMqvumw9CIScDXQYq2arJcKhk4vWbe95xf57hwqApyT X-Google-Smtp-Source: AGHT+IHOlGeEFI62WufuY0y20E0w3EpccO1XFvxJ7zTo0BSV2U7rHsJ7Ql+iyn5v2d4UX0cUX9wF X-Received: by 2002:a50:9fc5:0:b0:5a2:6142:24c1 with SMTP id 4fb4d7f45d1cf-5a478b65faamr6111441a12.5.1721670942001; Mon, 22 Jul 2024 10:55:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721670941; cv=none; d=google.com; s=arc-20160816; b=sF9R+o1nHbzuz+b+S4t86rlE8puzQLYuLz0SPUyGG8J7GX8HPG4pvFK1sNuTJIHh5u TgpPAVX5AR5rwoPIZ1qsBXjlG+X6N6wMeK41Kum0YWRQpDIgyKMeScUf8cpvnsQSaM2E GK7PojQhR8KVk6C0psLrVpygJGrSPnA1eEJKsNSGQwvPvwrJghx0L+WuSzO6T+Z2JIaC X3xP/43VTM1husoDbMKNbUId6TqVfweqtisBlsE72NOdFBlRGRZ2Z2v0a1MgYqXKA45l Fj4LxJTP/Pr+n7Bk0Kj0jm8vw9NV2a0l3jPk5cqdpyaEmh4kZF9X2RvdZPUwuO/+K2ti VpgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=gbxiNAe9ge9vMpxvRzNb2XHKnB94hP5RvzTnLVeCG74=; fh=ETZAaYwFYw/ozhMAbX6HhS9HxQUC0RUJGT7MuxzZH+M=; b=HpcuMmON5GsF/CGbRwI5SFNKrDRiM7b6JKLTIraAqABzdCdvIO8S71HYCKQC3E/XJ6 Xq7ovY6R/KUlu7ktDQg+FXdDJ9BnmxZgDhDxJ6bwlwECdL3jeLLD7aS/7CY+9CEi1xaw oxhUklyc0Z4dcBTNYxB0PQvtk99YvHwYX1m2BjeJkWjnIzmjN1y6q5+1/R8muTIp5E8a 0pwSe9b/SDDgVAFLPSvcCjKfE42D7KueeV0RTSfbcSLa5jcA2og4fdJjLFN83uda0rGZ 4Xxf4pZc1o2+dcUphmayCA0VBAm9FxQawpa109rSmX9atMoA9CRCFHrCTDYuHgxzMvfK sV4w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K4HTNL4Y; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5a30cd9f640si4830293a12.639.2024.07.22.10.55.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jul 2024 10:55:41 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K4HTNL4Y; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C54D688005; Mon, 22 Jul 2024 19:55:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="K4HTNL4Y"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EA30C88214; Mon, 22 Jul 2024 19:55:39 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (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 E261E87919 for ; Mon, 22 Jul 2024 19:55:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-52efdf02d13so2749203e87.2 for ; Mon, 22 Jul 2024 10:55:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721670937; x=1722275737; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gbxiNAe9ge9vMpxvRzNb2XHKnB94hP5RvzTnLVeCG74=; b=K4HTNL4YGTfbpCTt6btNMGnbfGJcsJ8TfDE+iMMvRP/nqEnwn8C9mGe+vBuBcTWjcA uIfexO5aD/FSMXwrTbHcgjy73cnSqnl0atk7QhSZR1wXl0aLe1XDqJ4Tqh26D6K8GKaq E932IfOTlIYMOtiUDMQ1uKz9H7DoFoSun5/ivfVQvVOYL3ybuawbNgEch9UnLRIRcyjh dQ5y5dNbzNorhe6HH0b/Bge8973Ex7n+ONBZ0X2AbjA+aiVZdPRx6Y+js5VloL2qTxU4 1AqmvLktsUwUOqCskU7rtfNJ5fSEXMWrUzkYQqYqGM8h5bux4BLGCe0rajADouqnlUVy K+Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721670937; x=1722275737; 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=gbxiNAe9ge9vMpxvRzNb2XHKnB94hP5RvzTnLVeCG74=; b=ClBlXjrdGMQ+wxmo8vjq/Tx4BgIGPYbXFD4rEas4lOBVV2hsT0P0sssQkCi8irRIBJ zHVxREZc7806MBTOPhswIiG3SgXKhqcR4NV/kr2RECRQ8/tzvHJUPyiE8pzWpIUHaIW1 HtjGfUzHW45tICq2+SGgmHT4lCYJa8WSwbiZzi0rwkWarVB2l8VnK+Of2yllJNSKwAgw 32LTdlEongBmlCQ1D0QcK34w9Zxgx2CYg11o3wgKRM7dubRCCU2yI9R5E9/9y4aSvyQb yyEeVa9oFyt+kGbfwl/EH+pHwTCkCN/WEkquNsycx0dbtjiM11OT6yvpSWZQ2PzqPBQg WJPA== X-Gm-Message-State: AOJu0YxpwH6bIoJ5MKS1Klm/Njnqp6UwzQq2iTxmnjoeQEcFDirYhq6K +rCRc8Er7m3VBU+8NklMQXKb4V9CYPELOjiGnq/YS8AE/En8zJKisqT7zkOsMaA= X-Received: by 2002:a05:6512:32c5:b0:52e:936e:a237 with SMTP id 2adb3069b0e04-52efb53bd95mr6206465e87.16.1721670937135; Mon, 22 Jul 2024 10:55:37 -0700 (PDT) Received: from cymric.caleb.rex.connolly.tech ([90.187.152.45]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7a3c91db91sm449880466b.152.2024.07.22.10.55.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jul 2024 10:55:36 -0700 (PDT) From: Caleb Connolly To: Caleb Connolly , Heinrich Schuchardt , Ilias Apalodimas , Tom Rini Cc: u-boot@lists.denx.de Subject: [PATCH] efi_loader: add /dtbs search path Date: Mon, 22 Jul 2024 19:55:23 +0200 Message-ID: <20240722175532.184842-1-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 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 Add an additional search path /dtbs, this is where dtbs are installed on postmarketOS and potentially other distros. Signed-off-by: Caleb Connolly Reviewed-by: Heinrich Schuchardt Reviewed-by: Ilias Apalodimas --- lib/efi_loader/efi_fdt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/efi_loader/efi_fdt.c b/lib/efi_loader/efi_fdt.c index 86ba00c2bdd9..4777943b80df 100644 --- a/lib/efi_loader/efi_fdt.c +++ b/lib/efi_loader/efi_fdt.c @@ -42,8 +42,11 @@ int efi_get_distro_fdt_name(char *fname, int size, int seq) break; case 2: prefix = "/dtb/current"; break; + case 3: + prefix = "/dtbs"; + break; default: return log_msg_ret("pref", -EINVAL); }