From patchwork Mon Apr 23 06:21:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 133960 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp631732lji; Sun, 22 Apr 2018 23:22:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx49QUmFZkPEELLfWWBby1z1MaidOV6n2SkUBJBUfyj8PEq8ueQSLY/5swZGSqBQlWGRHvBFq X-Received: by 10.101.83.197 with SMTP id z5mr6714389pgr.413.1524464526916; Sun, 22 Apr 2018 23:22:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524464526; cv=none; d=google.com; s=arc-20160816; b=VrLSReAB6Hy/7D3Xxr7eNUAcpGRNEtEAOxDTK9z/4ag3bGh2JHn72TsTcWA4pUDTA0 avE7Dl67QAuudl8Bleoedz1FcG3kp+Ytw6apg1/qwn3t527wX+nO40Zja0qOmym4kIcJ ewePilMJWqEafPuRZQJg9mpgGp/X08KRDquEBtNstYJBxLNpytvuic+ZS3Hisby4djgm Ec5egLrSzZpoR5nOVyWJ8nZKSJfh8MnTBtXL8epQq41N3Xhx8bvr8YOvcNQ8pxg9ZP1t pw4KN7TQXIUcIQD3erwc4vWTShy75PSTKBBZV7ADJOqnCf44M3Su46x92EiYhLaqfR1T 2PEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=D0AA0FFLf+oOfPLusc8LKpyqfF3qgGOnKzbH0ljUUGU=; b=umlLzqZzy02/ij2qlAtHUNlxVpY4drtrXyzv3o272oiNS1lxk2ZVjHlG6sijzs650f K42uNRtKM4ourSc+AOCHU28Z5NRJiJQzOImSYV7OyKjBuA1g8BiKZy7yAKh9b6j7rH38 sLlPhjQwsgNboRcVvHlWPFKqfAGkbeFDbPWA7IksurvEKUefatBuLbmDPHMfXwkx6ilF y9C4O1D4fFf0RIziRuaXrq1axHFhZr+a3Tb5Kkj0kwcM8Jp+AhwDCXU0cUHyTL6J27up LbiCLfNdnvl3HEEdRYIxYgSR6Kh9WhTmYS91ietmKKjFdS5gHxiNPKwEO/GtPwYMdkGc 1fLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MmHG3iBd; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id w10si9811478pfi.88.2018.04.22.23.22.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Apr 2018 23:22:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MmHG3iBd; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 3B41C226CD635; Sun, 22 Apr 2018 23:22:06 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:400e:c00::231; helo=mail-pf0-x231.google.com; envelope-from=haojian.zhuang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf0-x231.google.com (mail-pf0-x231.google.com [IPv6:2607:f8b0:400e:c00::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 52ECB226CD60F for ; Sun, 22 Apr 2018 23:22:05 -0700 (PDT) Received: by mail-pf0-x231.google.com with SMTP id f15so8398510pfn.0 for ; Sun, 22 Apr 2018 23:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=si08wRhLBQjVrfv92CwZ20AAoaqRKGvzWPFFiabnJ80=; b=MmHG3iBdTcb/NRNvHHJFCEvHI5HKKGODuzu52lOtTNJCPRnGjwxtBaKWnF+iYUSyw9 /Ql8f4skgkkX1fGkqv/lxLjCQ7vZUHkifc5sIJW0XbrV6we4Yn+968Gz0FRdAgOVgOPb vPMDsxpyojugDmQ9mbgS973Xgxfte9rU1etEU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=si08wRhLBQjVrfv92CwZ20AAoaqRKGvzWPFFiabnJ80=; b=JQ527JKGhMzQ9NnUSdoFIc5W5hpK4fq6g02ZJNNK416SsqeOkt8YblhmPqzySQxveq f+UlcsIwJ4cjTme0uOAc/W9SdzScOI24VjyxDu0x9N7m5d0O1VrHIfnuuQlnO1oIxPeV YcKmTr58fi8b9Us799SO9Mvg8MyNjQo54Z7JDshu5tQp2ckQm9xkbuToZElPUt/wtaWs dxMVsPY9SkCC1C+H0WaiJwG3uzkTw4fcf1iJWZ0ibBj3QDWELvJr7+S2AAjzREdX3WU1 ZlC1/9UJGwOT4YU4t5m9KE+7Whe99lIYFa79gUoffcBCT5G6Z6kfgTFbViGj/1kywV0t r28g== X-Gm-Message-State: ALQs6tAZ29XV+R3ZSOCTxbcI5gds6wilDmI+YXk5YZmQ5VkJs3sM8+H5 lfpB1xPM3bpgcwp6wSdYOWplwMtPQPk= X-Received: by 10.98.161.10 with SMTP id b10mr18814942pff.214.1524464524352; Sun, 22 Apr 2018 23:22:04 -0700 (PDT) Received: from localhost.localdomain ([64.64.108.101]) by smtp.gmail.com with ESMTPSA id u4sm8258771pfn.3.2018.04.22.23.22.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Apr 2018 23:22:03 -0700 (PDT) From: Haojian Zhuang To: edk2-devel@lists.01.org Date: Mon, 23 Apr 2018 14:21:52 +0800 Message-Id: <1524464514-14454-1-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [edk2] [PATCH v4 0/2] add platform boot manager protocol X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Haojian Zhuang MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Changelog: v4: * Add BootCount parameter in the interface. * Clean the logic on boot options according to Laszlo's comment. v3: * Update the name of interface. * Move the initialization into platform driver. * Fix comment style. * Fix minor issues with comments. v2: * Avoid to use hardcoding value. Create boot options by functions. Haojian Zhuang (2): EmbeddedPkg: add platform boot manager protocol ArmPkg/PlatformBootManagerLib: load platform boot options ArmPkg/Library/PlatformBootManagerLib/PlatformBm.c | 103 +++++++++++++++++++++ .../PlatformBootManagerLib.inf | 2 + EmbeddedPkg/EmbeddedPkg.dec | 1 + EmbeddedPkg/Include/Protocol/PlatformBootManager.h | 86 +++++++++++++++++ 4 files changed, 192 insertions(+) create mode 100644 EmbeddedPkg/Include/Protocol/PlatformBootManager.h -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Laszlo Ersek Reviewed-by: Leif Lindholm