From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: AA+uWPyGoUEAB/14wiuseqhp1g0OVEmcC6ybWP5jntQm92IfEbS5qPFvtWq+bg7iC9jS807VAFbRAw== 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 Cc: ard.biesheuvel@linaro.org, michael.d.kinney@intel.com, lersek@redhat.com, guoheyi@huawei.com, wanghuiqiang@huawei.com, huangming23@huawei.com, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, john.garry@huawei.com, xinliang.liu@linaro.org, Ming Huang 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: [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: , X-List-Received-Date: Thu, 16 Aug 2018 12:16:28 -0000 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.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 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