From patchwork Thu Aug 16 12:16:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 144389 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2002908ljj; Thu, 16 Aug 2018 05:16:30 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy9Sj5t4bVUnGXtMOcofCt86xAsnJMmMpqbH2sb9MEL55ivZKM4eeGODTMxWZlGYFekDdfF X-Received: by 2002:a17:902:b28b:: with SMTP id u11-v6mr28615636plr.2.1534421789885; Thu, 16 Aug 2018 05:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534421789; cv=none; d=google.com; s=arc-20160816; b=hdaesvU2Ij7TA8oFmtc8jR97yYIthDJz+X8jcSAWJU4tIVXbkxlzLZSLMUJ4FvYEJD W2PkxgetvLY+iohmpZ95rmFEptpKpL6UrbQVHX8dkXU31RSlTAoXjSGGduuwlxE+F+HB X8bT2tLg4Yu36H6yZQjoBPaiT9AHPkemnM+bqAe9i9ZjtoONIacbIT5vrA5HDMOAunpW Jkt33NWP5cDcZGIh8yU3FNVTCK7YKiuQWkcLWW+UWybmclJMzGJCSaWpMSSndzyTxkaV nnBhL4YD3RX3i0FNc096C5mD34zqlObYlA0sZdOwXmzWgTPc5Pojkc1Vo4Hda5zH0DsH ISHw== 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=aN8KFI4WdF5zJe0Rx2fjHquEECR2vkX4WZzHBfJmR2NrJSLvNGmHnxswAE1yB9SqVZ c8Gs4e7lhMhLQltQvinkAcvRIE+Mycy5z7172jUHyKcWFszWlRySqpdmNjxQ/DqJjCdq f9jRpVFZZ6Vd2HOXrjDnqdgcU0DNoigWZtLz9+OzGOBQUe0nEdwDH5cZ3xVBUPT1beRb UL0c9Dh933ci9s5Wh8F+JJx3+cRWawFkxbdMHXak259LUqhyeKorqaLyes+xle7w9xDR AoQh7oQzdrd+t6IB0I3t32S1dKcMv+EZs6So/CPH57LgrG9vwtIxCBo1ol1zg6s/bDjy 7r4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YgFunzua; 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 r3-v6si25237888pgo.606.2018.08.16.05.16.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Aug 2018 05:16:29 -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=YgFunzua; 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 7B8A2210F3D94; Thu, 16 Aug 2018 05:16:29 -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:c01::243; helo=mail-pl0-x243.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pl0-x243.google.com (mail-pl0-x243.google.com [IPv6:2607:f8b0:400e:c01::243]) (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 C8791210F3761 for ; Thu, 16 Aug 2018 05:16:27 -0700 (PDT) Received: by mail-pl0-x243.google.com with SMTP id j8-v6so2008158pll.12 for ; Thu, 16 Aug 2018 05:16:27 -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=YgFunzuarIeXwiR+MnSK9KU0NXicG14N1Ao7z5vgM5EngSWXOfw3OUn7uuLlmco1sA ss3iO2w5GjDlbPF8VrVoFzW2IgALLBVXYTW1nfKA1iddLnTKpnXw8QXQeS2G0z3VVUHU 6KjsqGE1mG6bhWXbkF7XTr0szT8Bei4g2T+Tg= 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=XDf5tDzNIcBA5wRROHxTTJim+QCijHy9ZY69RWY1jmZztcLwLI/aWv/Pu19Y9Kz5tp e0euqZ68L41zSbuX6GcjwJazMOrQhCoUPj5gyG3+pftgOUACaYPJqwNStsYkymLPlbil qI/OweTKnw9dRY++NAvy4egUzwfM12V0mCvgknbTJHmXe2xuOUBJ2Ofo8nfYUa2VqU5z 8R9f300NsogXa/Houx/T5LQ7uKcqSL0L9bDQUMcgZN8XdXXMEvmAifcUikUUvpceJ7qO 2Tp7f/w0KeYkb5gmLjcHKqAAsh9d2MuKrIQcR0LAlpCJUR5ovIbxpm70VyNIgDoYgqgt votQ== X-Gm-Message-State: AOUpUlHImu7Tq0iTHpQD5Y/xExYDjGHeojf3zFcCWi7k8R95udUKg/wX DTvBaoIhRfTHvfEwtAKwtoNVvg== X-Received: by 2002:a17:902:2ac3:: with SMTP id j61-v6mr28283029plb.172.1534421787458; Thu, 16 Aug 2018 05:16:27 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id i192-v6sm37277289pfe.188.2018.08.16.05.16.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Aug 2018 05:16:26 -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: Thu, 16 Aug 2018 20:16:14 +0800 Message-Id: <20180816121614.48850-3-ming.huang@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180816121614.48850-1-ming.huang@linaro.org> References: <20180816121614.48850-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-non-osi v3 2/2] 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