From patchwork Sun Oct 15 23:49:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 733897 Delivered-To: patch@linaro.org Received: by 2002:a5d:54d1:0:b0:31d:da82:a3b4 with SMTP id x17csp2466639wrv; Sun, 15 Oct 2023 16:56:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZasvbDuhiqHo2Dq2Cu1se/8JKqHZ6vCmG7qxdnBrZEA8OuuFtrLJev9hGt3QYdk7sjrzS X-Received: by 2002:a05:6000:1f02:b0:32c:d7e6:4054 with SMTP id bv2-20020a0560001f0200b0032cd7e64054mr16090701wrb.53.1697414179148; Sun, 15 Oct 2023 16:56:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697414179; cv=none; d=google.com; s=arc-20160816; b=Pj2/0oU8rFe1gmDGyXxjuLbDpgp8SNS08Vv8bXwlvKDpX+ZOpjFj4AyKsZ24yIkIhb 7yBwi8ZqdNunCiWefz7X7e6CXpI6JrcNrO0RCr9DHSTIimUi1ut7ZymJhJXNbeUkiAuJ YeqpttLG8Y+W1azEmoKY/YVtPeww3tX8kcrY+3HyJVVd0djckeQjg8Iu0XJ323V3aN/X r1EWjpWAJuLbFpepKsvbJ9HY3ik19ZL6k9C63j/9Ssqn8IOIrVky0dzn6k8q+KyRRzGy G0hfWl4QR+DYT4k9jyxI0lxCk1BsyCvFfI4pA58Llb0FJl+sCbV0BFOQEZ8NQ7e5fp5J oaYQ== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1yClAL1OyfbKc6TszWmib6hvyd044g2R3J1uiGAvAPE=; fh=I7E+BwgHMByijVVN/pPHsLSpz7oP4y4e73noHEekrEE=; b=k7anxKb30wdVaRnWFoCvTPqX24uQfe+iZeVBosy4L+8xCNV7k54Hj2M5hj8Y0PR2VT PvyucLZWL1Oqpr0vUWSoZDaluvUsBDXrHdzmdu0Izb8qDPOAF7ef+Q1FLM9efhQef6wu MPMMlqc7Kt/becdHgyGeVaVpUrBFAXHU5nQpEIJk8gZ0yLZiIK8zSlLA1lQCBc9VTdib EvrOesuvSHtIUnHDEo2oGZ0btEsvkiik1a1WyTS1J5uirXW3rf4fTVe3oBca/bBa4j0s OA4YVn9FkVoXD2Fnz9ZMo9wHNqv6VZaIoiqCSSV/1/BsgS66ti63jmiiicL4fxURbyeT pRYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CFIMQoZP; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id x11-20020adfec0b000000b0032daac65e3asi1168675wrn.28.2023.10.15.16.56.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 16:56:19 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CFIMQoZP; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B53E186DBC; Mon, 16 Oct 2023 01:53:03 +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="CFIMQoZP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9D19D869D1; Mon, 16 Oct 2023 01:51:31 +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-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) (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 62F5586C3E for ; Mon, 16 Oct 2023 01:50:51 +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=masahisa.kojima@linaro.org Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-5a9bc2ec556so1526425a12.0 for ; Sun, 15 Oct 2023 16:50:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697413849; x=1698018649; darn=lists.denx.de; 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=1yClAL1OyfbKc6TszWmib6hvyd044g2R3J1uiGAvAPE=; b=CFIMQoZPp4uiYg1GR+JJPzgLPaAFdc+iagiMmJ3Z5ho/xCr8wl3LihPruR0KaVuSrO SdPGK17ymCcZwQfWP8ClKZeQoClZa28haRj41ficNdKSY6xgmbc6Eq+3/vYHn/fdelfd N7J3AMi7t8UxOmne2MnFM6N96ihmpAPZgXZnUfSr652iE+s0izzVkfwpzT67+fe68TfQ WqZOZWXp14kjRoTbe93O31TJpT16AK2WXKam+UDO3O8h+QmeyECTFQnxem1QiJzGDA1p GrD5KTkG7AwRgm3EAmTgcxHOp00FpZLJ9/yAKL5XmQCZvd7Je33nSNX4AFvQvHSwMf5Y gA9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697413849; x=1698018649; 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=1yClAL1OyfbKc6TszWmib6hvyd044g2R3J1uiGAvAPE=; b=kONRyH/mbK/d3wUhREJSVGJVgMZVza4b7cv+DjuWxI7AntYC6I43SVwFJgu9t96KLD 0xff0v7kJCYZjPZ3roiYPuYehbrrLi1pKlSyDnAQMRs1iVTP6defV+pjc7YXynZlzuM8 3jtNTvxcxBxvt18SXTlm3liqxgPi2s453EQhIbgaj8zTv5RaoAr+UGNUiVDtem6TsmZs d4idgOv7GdM226aR1TeAsQkyrogy94QumSkco/zk7N18HUA68Yj1oDDFdms5YDSxqmhZ /2BoW1XHakthXvR50lgZ8WLBfwdGzbMQvke+Z7E58SwHWyD8keA24iDDx/rT5H5WqJ6X tu0w== X-Gm-Message-State: AOJu0YyjGXWG9R8S5/E9C0VwVk7FspNmMU81VkX5OcwoH3Rz1Cifvwik Rub4GEyXM/y+GMgpoYv9ncyC1Hq9d5Ct9t0GzxU= X-Received: by 2002:a17:902:db0e:b0:1ca:20a0:7b14 with SMTP id m14-20020a170902db0e00b001ca20a07b14mr4204117plx.55.1697413849538; Sun, 15 Oct 2023 16:50:49 -0700 (PDT) Received: from localhost ([164.70.16.189]) by smtp.gmail.com with ESMTPSA id ix12-20020a170902f80c00b001bb9bc8d232sm7278363plb.61.2023.10.15.16.50.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 16:50:49 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Michal Simek , Masahisa Kojima Subject: [PATCH v6 6/9] efi_loader: add CDROM short-form device path Date: Mon, 16 Oct 2023 08:49:04 +0900 Message-Id: <20231015234907.2362717-7-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231015234907.2362717-1-masahisa.kojima@linaro.org> References: <20231015234907.2362717-1-masahisa.kojima@linaro.org> 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 UEFI specification does not mandate to support the short-form of the CDROM media device path. Fedora installation ISO image is identified as CDROM media device path, supporting short-form CDROM media device path is required to automatically add the boot option having default file of Fedora installation image. Signed-off-by: Masahisa Kojima --- lib/efi_loader/efi_device_path.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c index ed7214f3a3..ac673ab117 100644 --- a/lib/efi_loader/efi_device_path.c +++ b/lib/efi_loader/efi_device_path.c @@ -110,7 +110,8 @@ struct efi_device_path *efi_dp_shorten(struct efi_device_path *dp) while (dp) { if (EFI_DP_TYPE(dp, MESSAGING_DEVICE, MSG_USB_WWI) || EFI_DP_TYPE(dp, MEDIA_DEVICE, HARD_DRIVE_PATH) || - EFI_DP_TYPE(dp, MEDIA_DEVICE, FILE_PATH)) + EFI_DP_TYPE(dp, MEDIA_DEVICE, FILE_PATH) || + EFI_DP_TYPE(dp, MEDIA_DEVICE, CDROM_PATH)) return dp; dp = efi_dp_next(dp);