From patchwork Wed Apr 25 04:59:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 134214 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp400855lji; Tue, 24 Apr 2018 21:59:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+oXz1imZJLIt0ZOANRdiSyPhYV+wmZ6LclM4+yrFsFuOwy+VIhsIIjP9EkV194pV43nIiK X-Received: by 2002:a17:902:8b84:: with SMTP id ay4-v6mr27597048plb.57.1524632386815; Tue, 24 Apr 2018 21:59:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524632386; cv=none; d=google.com; s=arc-20160816; b=rSfE2yZHSqfwUyKm9d4JQiUhpEj4YKUsX+mnyEQxxpqCuR/Ayr07kDD5WWojW5P9SS AjAzwPRqrlEX9sDhz5EthE+6eKMBY6UW3NWnk3cRoEgW3DSJiaye3n1L/Xp7Q9j+ehIl fl6BUYZZ1HBBiJzLWwO1i0TFP0CSMbMQ/rpbAb0LifYXLt5VOVb8WSYu3nT/3f9BFy7R ULlAMDGWVRXZ5SZ2tWk9HliBCUOIawcTtOV5VbDsCqlQMjJsv4jA4lD93w0ikN9o8VX9 WA51zRcEBF5/V/uIJr0HgJdWonEVFQe4H9YmjGPK34ollZIVKm14iRKszRz1GbSHC4Iw DhLQ== 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=rTl32hhkrLA2adIh80BpiPUAzlR0aoI+ivmpQzlcfrs=; b=wBrHImNC27NGmXxXcLCvcxqAkv1BeHpQ6I43WYhCznuXAoZy5m78KZ8NGDum80+Z6h C9SHeIFczb/VWRMD60XDUxu2NXaTk0Ivzm9fFIimbijxUN4Mz67hP85nh+SuX0U9Qo+B Pb+thsPY6sAgEd365/jlXql/NnHMcaq+dNDMhDOQXYSHIgM7tSCIPIw8oH39LVG3XvD+ voW1Ny//i+xXo11/ilT7xcBtPzIp0qeB8jJE2H8ilBZ/XQbbQMxr3ZnM3o2ufa5k/ViG 0AjQm5lz7YCVizmcInCpBnStCn2SJ/qXkzc6RiSfC9d1xOW0tBbPj/+SEcKvDu80wlP3 2KoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BmSEsgCF; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id b77si10636001pfc.320.2018.04.24.21.59.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 21:59:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BmSEsgCF; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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 6EB61220E8DEB; Tue, 24 Apr 2018 21:59:46 -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::241; helo=mail-pf0-x241.google.com; envelope-from=haojian.zhuang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) (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 D90C72282E592 for ; Tue, 24 Apr 2018 21:59:44 -0700 (PDT) Received: by mail-pf0-x241.google.com with SMTP id l27so14148931pfk.12 for ; Tue, 24 Apr 2018 21:59:44 -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=9ajAo4MS+d2PnQlQJzY+xHbNpYG7HhGMaPz9cmmNtOg=; b=BmSEsgCFpPaFRck8WpGFnBP/2PURNEwEfBecvSmzrEML8QpaNfFkzioOrP9kuS4EAc OY97LV7Kczpc3MZ+B0RTXFq9wvPLwNf8mStdQC8wXqdF8jsn3CsUfbsJSvFPg653s9EE v9Ybyiv94bveUSqbPfrZMLVf8rp/9YvHoQw7o= 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=9ajAo4MS+d2PnQlQJzY+xHbNpYG7HhGMaPz9cmmNtOg=; b=g5rwT272VuSEIjVMLaJUF0Jj5HZvJPhxTcLWPPIz9b/5LFF3Z8fw3eleZiJLxiDJ1G aLbGbzPqA0wf9KChFXBfF0QoicLmzlGwMco5GdEuHzCle3CNTISPndR3cAVXzR9vA3Zp 3lJyN7wRpQLnscah2NrpQbtgEpBPP5s4z3FA2bVX7CRRPKe43/nAsd2x3E5HhSOZnk/E dZ3VHCSo/EXS0HRYpAhqQWDfWvgS9fugqXWOhpZIlyxjh1A3JfdPJ0mpkqIMjFar+RcZ IoAix6Ufa/HdoQF9jnaseRTkO1i68NuCBRMD3npdxHI8N26TciB6o+02GwA/1mt6b713 X9qA== X-Gm-Message-State: ALQs6tBzlC6OP9rumtzIruApgt0J1AxY4eUNybmazZuIHkQCkKZSKbxB ZlYMYFsP7Kim/dhTdnfzDMUBkrYiz5o= X-Received: by 10.98.213.8 with SMTP id d8mr21556600pfg.234.1524632384208; Tue, 24 Apr 2018 21:59:44 -0700 (PDT) Received: from localhost.localdomain ([64.64.108.65]) by smtp.gmail.com with ESMTPSA id 142sm18061455pgg.86.2018.04.24.21.59.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Apr 2018 21:59:43 -0700 (PDT) From: Haojian Zhuang To: edk2-devel@lists.01.org Date: Wed, 25 Apr 2018 12:59:34 +0800 Message-Id: <1524632376-23501-1-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [edk2] [PATCH edk2-platforms v5 0/2] add platform boot options 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: v5: * Avoid to merge device path and grub's file path in driver. Merge them directly in DSC file. * Avoid duplicated code to create boot options. * Use goto to handle error condition. v4: * Add BootCount parameter in the interface. v3: * Move in initilization of boot entry. * Update the name of interface in platform boot manager protocol. v2: * Update with platform boot manager protocol. Haojian Zhuang (2): Platform/HiKey960: register predefined boot options Platform/HiKey: create 4 boot options Platform/Hisilicon/HiKey/HiKey.dec | 8 +- Platform/Hisilicon/HiKey/HiKey.dsc | 7 + Platform/Hisilicon/HiKey/HiKeyDxe/HiKeyDxe.c | 171 ++++++++++++++++++++ Platform/Hisilicon/HiKey/HiKeyDxe/HiKeyDxe.inf | 11 ++ .../{HiKey/HiKey.dec => HiKey960/HiKey960.dec} | 17 +- Platform/Hisilicon/HiKey960/HiKey960.dsc | 6 + .../Hisilicon/HiKey960/HiKey960Dxe/HiKey960Dxe.c | 172 +++++++++++++++++++++ .../Hisilicon/HiKey960/HiKey960Dxe/HiKey960Dxe.inf | 11 ++ 8 files changed, 391 insertions(+), 12 deletions(-) copy Platform/Hisilicon/{HiKey/HiKey.dec => HiKey960/HiKey960.dec} (56%) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Acked-by: Laszlo Ersek