From patchwork Tue Aug 14 08:04:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 144107 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4044274ljj; Tue, 14 Aug 2018 01:05:20 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx8xpa8ZBdB+SbJerzhLZBK0sQPXXu6ukagzInlFAk7RNg28iZZuQLsTYOXNl4fEtzcX4pz X-Received: by 2002:a63:ed4f:: with SMTP id m15-v6mr20049634pgk.147.1534233919937; Tue, 14 Aug 2018 01:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534233919; cv=none; d=google.com; s=arc-20160816; b=kaRgy/xWOhs7/VUzkU0ANEhWojCc/FvEmRzFYUDBkf/jd1UlDpUrs557xNK5HGk2PK W/eP8JQBk+r5ybVFsrBR/pVfJhSVdL2neJPGXZGAGzFshj55Mb0pDTc+z/on6YNn+Ulq IDFbEOkdIdHSF5/hO8Lm+VrNyARV0zle84XpllabaqguRrwqy2qP43jjgOq082BmVM59 XxCxzIsHNjQe9KfccHGDJ+pjLRgxSPCiyRbEZMP3Ujm7CTbwx47qRzuOMXLEi943rhIu c+eUa+9BbhOhQB9FlDQvrvXf8veYQKUn3iXYHM8zqvlIt6YvP4sfMwlbVMdUYQ69eLs5 edaA== 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:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=wu4oPRYT/uSu94F4EOYLGwqX24CNW7PNHgOgDLhc77U=; b=BaXUiFZAfTBSFzB3gw0etN4j6NQeOXUjEn4I9kXNXY+AwcewwhbaKN4LFAF+paFFm7 AyAUeY0NnXk+UaY154Bnwj7PQUaAwxrCwYglL7qs9jl9BTSXwXiU4MEmNM0JCB5e10QT Ik/OmfIcUHBWZ2Uimt6BOuFCYpXE8+NxcFtOhr8vbEjtUkdCsegzHaFpTnAU0yWeQip0 VXtv0bvvhdrIqgqSc1wOUZXg2EKSuitnBjbVvvS1IQybaQ5bpxzszBvCfQoAZ+JMCf0Y iTm3yYpf6FBE4y1dgFG5seoGIwZ4/G+XIAHDmKA682T2X8MVkyzPkQpsGj8S6gG+aVGK uOuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="O1XqS/8s"; 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 bg5-v6si16257115plb.368.2018.08.14.01.05.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Aug 2018 01:05:19 -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="O1XqS/8s"; 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 B4104210F1542; Tue, 14 Aug 2018 01:05:18 -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:4864:20::441; helo=mail-pf1-x441.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) (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 DD0D121959CB2 for ; Tue, 14 Aug 2018 01:05:17 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id y10-v6so8919281pfn.8 for ; Tue, 14 Aug 2018 01:05:17 -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:in-reply-to:references; bh=f7rBMAp+rBbOoyx3ZEdbnrX4Iall2bQ+giG1gmuQsg8=; b=O1XqS/8siAaC6vtUNkSACSWKqZcTx3CU2JuE9wJa+iZP2e0vpjn5P4x0cI6lZrGtrX OpemWn6LVRb2syMJj+8Z5pG4l9mry4tYa0nL+YvbyDU2/ZXeygQ60G8U7Mow9OXFYDi8 PR++ZjozGqhxMc0dEOscpKNMXEEiS9oGxFVCg= 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:in-reply-to :references; bh=f7rBMAp+rBbOoyx3ZEdbnrX4Iall2bQ+giG1gmuQsg8=; b=N/bKkAsWBBTsOPnPHP06G9Z6AHUWzqLXjIJoM2u1QN2o7JvipIP2BMx4+yn68QYLzQ gf54081RrK6YTvJ6h/pTi5Ru3op2wd+7sexLdvioyhLH8SB4Km7QFAeXYcurp4wiERhQ wiSKzHVY5fTXgBGDuei6AI6Iq7/DfNgRElLzO3ropQj+mP5SMtjLSTf8xg2NJbS1ghXm kK8wiEuidfn8n+LONmRrcwaD1o+cvoZyv/Oy2zcXSokKiyEpAlYLInWnMhprVK0az/lg CA3CAxtSbACtl+t9/8MFlIEaX7Sta/yYs28Y9Zh2bedNH2vdW7j8ajMvNfqS2/nrdSH5 LBcw== X-Gm-Message-State: AOUpUlEVEFphLqFP7WFi6dLV5Iy7PVjtHE9cWyGfNNlJyCOBJv+5abos qjPjHXe/dbRJjMIBs1B2zVfh4A== X-Received: by 2002:a62:1756:: with SMTP id 83-v6mr22522962pfx.217.1534233917502; Tue, 14 Aug 2018 01:05:17 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id d19-v6sm57835071pfm.48.2018.08.14.01.05.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Aug 2018 01:05:16 -0700 (PDT) From: Ming Huang To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Tue, 14 Aug 2018 16:04:51 +0800 Message-Id: <20180814080451.48845-5-ming.huang@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180814080451.48845-1-ming.huang@linaro.org> References: <20180814080451.48845-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-non-osi v2 4/4] Silicon/Hisilicon/D06: Add Oem Shell libraries X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huangming23@huawei.com, xinliang.liu@linaro.org, john.garry@huawei.com, zhangjinsong2@huawei.com, guoheyi@huawei.com, huangdaode@hisilicon.com, michael.d.kinney@intel.com, lersek@redhat.com, wanghuiqiang@huawei.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Add Hisilicon Oem Shell libraries for some commands,such as biosupdate, getmac, setmac, provision, acpistartos, brdinfo, sfpinfo. biosupdate example: ifconfig -s eth2 static 192.168.2.68 255.255.255.0 192.168.2.1 biosupdate serverIp -u user -p password -f D06.fd -m master acpistartos example: ifconfig -s eth2 static 192.168.2.69 255.255.255.0 192.168.2.1 provision serverIp -u user -p password -f os\Image -a 0x80000 2 provision serverIp -u user -p password -f os\minifs.cpio.gz -a 0x07000000 2 acpistartos Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang --- Silicon/Hisilicon/Hi1620/Library/HisiD06ShellCmdLib/HisiD06ShellCmdLib.inf | 41 ++++++++++++++ Silicon/Hisilicon/Library/HisiShellCmdLib/HisiShellCmdLib.inf | 59 ++++++++++++++++++++ Silicon/Hisilicon/Hi1620/Library/HisiD06ShellCmdLib/HisiD06ShellCmdLib.lib | Bin 0 -> 144880 bytes Silicon/Hisilicon/Library/HisiShellCmdLib/HisiShellCmdLib.lib | Bin 0 -> 1109382 bytes 4 files changed, 100 insertions(+) diff --git a/Silicon/Hisilicon/Hi1620/Library/HisiD06ShellCmdLib/HisiD06ShellCmdLib.lib b/Silicon/Hisilicon/Hi1620/Library/HisiD06ShellCmdLib/HisiD06ShellCmdLib.lib new file mode 100644 index 0000000..9ba14a2 Binary files /dev/null and b/Silicon/Hisilicon/Hi1620/Library/HisiD06ShellCmdLib/HisiD06ShellCmdLib.lib differ diff --git a/Silicon/Hisilicon/Library/HisiShellCmdLib/HisiShellCmdLib.lib b/Silicon/Hisilicon/Library/HisiShellCmdLib/HisiShellCmdLib.lib new file mode 100644 index 0000000..d3ca398 Binary files /dev/null and b/Silicon/Hisilicon/Library/HisiShellCmdLib/HisiShellCmdLib.lib differ -- 2.17.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Silicon/Hisilicon/Hi1620/Library/HisiD06ShellCmdLib/HisiD06ShellCmdLib.inf b/Silicon/Hisilicon/Hi1620/Library/HisiD06ShellCmdLib/HisiD06ShellCmdLib.inf new file mode 100644 index 0000000..3dea3fb --- /dev/null +++ b/Silicon/Hisilicon/Hi1620/Library/HisiD06ShellCmdLib/HisiD06ShellCmdLib.inf @@ -0,0 +1,41 @@ +/** @file +* +* Copyright (c) 2018, Hisilicon Limited. All rights reserved. +* Copyright (c) 2018, Linaro Limited. All rights reserved. +* +* This program and the accompanying materials +* are licensed and made available under the terms and conditions of the BSD License +* which accompanies this distribution. The full text of the license may be found at +* http://opensource.org/licenses/bsd-license.php +* +* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +* +**/ + + + +[Defines] + INF_VERSION = 0x0001001A + BASE_NAME = HisiD06ShellCmdLib + FILE_GUID = 41878264-1668-460f-b0bf-26bdc89d464c + MODULE_TYPE = UEFI_APPLICATION + VERSION_STRING = 1.0 + LIBRARY_CLASS = NULL|UEFI_APPLICATION UEFI_DRIVER + CONSTRUCTOR = HisiD06ShellCmdLibConstructor + DESTRUCTOR = HisiD06ShellCmdLibDestructor + + +[Binaries.AARCH64] + LIB|HisiD06ShellCmdLib.lib|* + +[Packages] + ShellPkg/ShellPkg.dec + Silicon/Hisilicon/HisiPkg.dec + +[LibraryClasses] + I2CLib + ShellLib + +[Guids] + HisiPlatformShellSampleHiiGuid ## CONSUMES ## HII diff --git a/Silicon/Hisilicon/Library/HisiShellCmdLib/HisiShellCmdLib.inf b/Silicon/Hisilicon/Library/HisiShellCmdLib/HisiShellCmdLib.inf new file mode 100644 index 0000000..a81af92 --- /dev/null +++ b/Silicon/Hisilicon/Library/HisiShellCmdLib/HisiShellCmdLib.inf @@ -0,0 +1,59 @@ +/** @file +* +* Copyright (c) 2018, Hisilicon Limited. All rights reserved. +* Copyright (c) 2018, Linaro Limited. All rights reserved. +* +* This program and the accompanying materials +* are licensed and made available under the terms and conditions of the BSD License +* which accompanies this distribution. The full text of the license may be found at +* http://opensource.org/licenses/bsd-license.php +* +* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +* +**/ + + +[Defines] + INF_VERSION = 0x0001001A + BASE_NAME = HisiShellCmdLib + FILE_GUID = 88324505-C49D-4eac-8253-75D324457B88 + MODULE_TYPE = UEFI_APPLICATION + VERSION_STRING = 1.0 + LIBRARY_CLASS = NULL|UEFI_APPLICATION UEFI_DRIVER + CONSTRUCTOR = HisiShellCmdLibConstructor + DESTRUCTOR = HisiShellCmdLibDestructor + +[Binaries.AARCH64] + LIB|HisiShellCmdLib.lib|* + +[Packages] + ArmPkg/ArmPkg.dec + ShellPkg/ShellPkg.dec + Silicon/Hisilicon/HisiPkg.dec + +[LibraryClasses] + ArmSmcLib + IpmiCmdLib + PcdLib + ShellCommandLib + ShellLib + +[Pcd] + gEfiShellPkgTokenSpaceGuid.PcdShellProfileMask ## CONSUMES + gHisiTokenSpaceGuid.PcdMdioSubctrlAddress ## CONSUMES + gHisiTokenSpaceGuid.PcdStartOsParameter ## CONSUMES + +[FixedPcd.common] + gArmTokenSpaceGuid.PcdFdSize ## CONSUMES + gHisiTokenSpaceGuid.PcdBaseBoardProductName ## CONSUMES + gHisiTokenSpaceGuid.PcdTrustedFirmwareEnable ## CONSUMES + +[Protocols] + gHisiSpiFlashProtocolGuid ## CONSUMES + gOemNicProtocolGuid ## CONSUMES + gUniNorFlashProtocolGuid ## CONSUMES + +[Guids] + gVersionInfoHobGuid ## CONSUMES + HisiShellSampleHiiGuid ## CONSUMES ## HII