From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::444; helo=mail-wr1-x444.google.com; envelope-from=leif.lindholm@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) (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 983F921188C31 for ; Tue, 6 Nov 2018 09:48:30 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id x12-v6so14532750wrw.8 for ; Tue, 06 Nov 2018 09:48:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dw46Y849UKQPN7faT/lSqvWEqVAoQl1/uy4wFlR++qQ=; b=Yo6VRa/8MMlNH7KpmrS5rAJKSwEWid5AoDavwuPsRFjrvAq3g7mfj195ySzcpm6Nly 0QbKdTEiN1z/IpNQPM03UjnD6R/mc6ckXYPMIKvBKDQKGdmZ85yBODYE6snks2L2w51b oMVTtU5MIj3GtulugqAGOgaZ3RKjSlCNlmWog= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=dw46Y849UKQPN7faT/lSqvWEqVAoQl1/uy4wFlR++qQ=; b=YWX1hmtHuar019Iz/b+OUFpyApi759q81y59ThnOEueOTZc3uyP6O2Xn9K4pIX/sp6 ygpHLJYEM71N1cQvl6Ecoy3tRfo+altx/Xd74YmAiTtNHRt0ZuzFX/b8NdvLBmWaEYu9 eWndPtl4h0rkrxJLAF7EjNYGjpFt7AWlFTh/IP2xzGBzCyuTQ5Qb13p5SUGZQ70bKmBT b47DUBixH3ZTUmQPiCnuuL6JvrBw2uY8Npszfk27VE9I6uf9r9/LxCXJfOA+F4odOrqn zh/4kUtjJgHOsmCHmv4zN6vGao55oBnLYJ8o11Xs5XNryRAGnsQ96Xj9bdH52aFggaxf En2g== X-Gm-Message-State: AGRZ1gJ9e7FbrY2j5d/WXAvDqNmJSifRX/lKhecp/whFMxbVJrwKll/W 0K37HSwenGB6YjXiOiTFZmh7TOQK2i8= X-Google-Smtp-Source: AJdET5dezgid5NcubLnl80Dvf6bBNwstA4B6m89yP5q4rEaTQxSs4KAa1AabhEpGVdv/a9gJRxLMaA== X-Received: by 2002:adf:e651:: with SMTP id b17-v6mr24421211wrn.254.1541526508611; Tue, 06 Nov 2018 09:48:28 -0800 (PST) Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id y21-v6sm1555823wma.36.2018.11.06.09.48.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Nov 2018 09:48:27 -0800 (PST) Date: Tue, 6 Nov 2018 17:48:26 +0000 From: Leif Lindholm To: Sakar Arora Cc: edk2-devel@lists.01.org, prasanth.pulla@arm.com, Eric Jin , Supreeth Venkatesh Message-ID: <20181106174826.fiize3l6f2r2y7rp@bivouac.eciton.net> References: <1541494066-16288-1-git-send-email-sakar.arora@arm.com> <1541494066-16288-8-git-send-email-sakar.arora@arm.com> MIME-Version: 1.0 In-Reply-To: <1541494066-16288-8-git-send-email-sakar.arora@arm.com> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [edk2-test][RFC PATCH 08/12] uefi-sct/SctPkg: sbbr: UEFI Version Verification Test X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2018 17:48:31 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Nov 06, 2018 at 02:17:42PM +0530, Sakar Arora wrote: > From: Randy Jones > > Check if EFI Specification Version is 2.5 or greater. > > Change-Id: I7a602e52ac833f18dc791ca992f55e1f1996bc60 > Signed-off-by: Randy Jones > --- > uefi-sct/SctPkg/CommonGenFramework.sh | 3 + > .../BlackBoxTest/EfiSpecVerLvlBBTest.inf | 84 +++++ > .../BlackBoxTest/EfiSpecVerLvlBBTestFunction.c | 130 +++++++ > .../BlackBoxTest/EfiSpecVerLvlBBTestFunction.h | 71 ++++ > .../BlackBoxTest/EfiSpecVerLvlBBTestMain.c | 127 +++++++ > .../BlackBoxTest/EfiSpecVerLvlBBTestMain.h | 84 +++++ > .../Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.c | 61 ++++ > .../Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.h | 66 ++++ > uefi-sct/SctPkg/UEFI/SBBR_SCT.dsc | 402 +++++++++++---------- > 9 files changed, 829 insertions(+), 199 deletions(-) > create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTest.inf > create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestFunction.c > create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestFunction.h > create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestMain.c > create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestMain.h > create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.c > create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.h > > diff --git a/uefi-sct/SctPkg/CommonGenFramework.sh b/uefi-sct/SctPkg/CommonGenFramework.sh > index ab35c5a..7058111 100755 > --- a/uefi-sct/SctPkg/CommonGenFramework.sh > +++ b/uefi-sct/SctPkg/CommonGenFramework.sh > @@ -367,6 +367,9 @@ then > # UEFI Boot Services - SBBR v1.0 3.4 > cp $ProcessorType/SbbrBootServicesBBTest.efi $Framework/Test/ > NUL > > + # Check if EFI Specification Version is 2.5 or greater > + cp $ProcessorType/EfiSpecVerLvlBBTest.efi $Framework/Test/ > NUL > + > # Runtime Services Tests - SBBR v1.0 Appendix B > cp $ProcessorType/VariableServicesBBTest.efi $Framework/Test/ > NUL > cp $ProcessorType/TimeServicesBBTest.efi $Framework/Test/ > NUL > diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTest.inf b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTest.inf > new file mode 100644 > index 0000000..daa4d44 > --- /dev/null > +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTest.inf > @@ -0,0 +1,84 @@ > +# > +# The material contained herein is not a license, either > +# expressly or impliedly, to any intellectual property owned > +# or controlled by any of the authors or developers of this > +# material or to any contribution thereto. The material > +# contained herein is provided on an "AS IS" basis and, to the > +# maximum extent permitted by applicable law, this information > +# is provided AS IS AND WITH ALL FAULTS, and the authors and > +# developers of this material hereby disclaim all other > +# warranties and conditions, either express, implied or > +# statutory, including, but not limited to, any (if any) > +# implied warranties, duties or conditions of merchantability, > +# of fitness for a particular purpose, of accuracy or > +# completeness of responses, of results, of workmanlike > +# effort, of lack of viruses and of lack of negligence, all > +# with regard to this material and any contribution thereto. > +# Designers must not rely on the absence or characteristics of > +# any features or instructions marked "reserved" or > +# "undefined." The Unified EFI Forum, Inc. reserves any > +# features or instructions so marked for future definition and > +# shall have no responsibility whatsoever for conflicts or > +# incompatibilities arising from future changes to them. ALSO, > +# THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, > +# QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR > +# NON-INFRINGEMENT WITH REGARD TO THE TEST SUITE AND ANY > +# CONTRIBUTION THERETO. > +# > +# IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR > +# ANY CONTRIBUTION THERETO BE LIABLE TO ANY OTHER PARTY FOR > +# THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST > +# PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, > +# CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER > +# UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY > +# WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS > +# DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF > +# THE POSSIBILITY OF SUCH DAMAGES. > +# > +# Copyright 2006 - 2016 Unified EFI, Inc. All > +# Rights Reserved, subject to all existing rights in all > +# matters included within this Test Suite, to which United > +# EFI, Inc. makes no claim of right. > +# > +# Copyright (c) 2016, ARM Ltd. All rights reserved.
> +# > +# > +#/*++ > +# > +# Module Name: > +# > +# EfiSpecVerLvlBBTest.inf > +# > +# Abstract: > +# > +# Component description file for SBBR EFI Specification Version Level test. > +# > +#--*/ > + > +[Defines] > + INF_VERSION = 0x00010019 > + BASE_NAME = EfiSpecVerLvlBBTest > + FILE_GUID = f865a18a-9b47-420d-97ae-676d8016a513 > + MODULE_TYPE = UEFI_DRIVER > + VERSION_STRING = 1.0 > + ENTRY_POINT = InitializeBBTestEfiSpecVerLvl > + > +[Sources.common] > + EfiSpecVerLvlBBTestFunction.c > + EfiSpecVerLvlBBTestMain.c > + Guid.c > + > +[Packages] > + ArmPkg/ArmPkg.dec > + MdePkg/MdePkg.dec > + SctPkg/SctPkg.dec > + SctPkg/UEFI/UEFI.dec > + > +[LibraryClasses] > + ArmLib > + EfiTestLib > + SctLib > + UefiDriverEntryPoint > + > +[Protocols] > + gBlackBoxEfiBlockIoProtocolGuid > \ No newline at end of file > diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestFunction.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestFunction.c > new file mode 100644 > index 0000000..3985b4a > --- /dev/null > +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestFunction.c > @@ -0,0 +1,130 @@ > +/*++ > + The material contained herein is not a license, either > + expressly or impliedly, to any intellectual property owned > + or controlled by any of the authors or developers of this > + material or to any contribution thereto. The material > + contained herein is provided on an "AS IS" basis and, to the > + maximum extent permitted by applicable law, this information > + is provided AS IS AND WITH ALL FAULTS, and the authors and > + developers of this material hereby disclaim all other > + warranties and conditions, either express, implied or > + statutory, including, but not limited to, any (if any) > + implied warranties, duties or conditions of merchantability, > + of fitness for a particular purpose, of accuracy or > + completeness of responses, of results, of workmanlike > + effort, of lack of viruses and of lack of negligence, all > + with regard to this material and any contribution thereto. > + Designers must not rely on the absence or characteristics of > + any features or instructions marked "reserved" or > + "undefined." The Unified EFI Forum, Inc. reserves any > + features or instructions so marked for future definition and > + shall have no responsibility whatsoever for conflicts or > + incompatibilities arising from future changes to them. ALSO, > + THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, > + QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR > + NON-INFRINGEMENT WITH REGARD TO THE TEST SUITE AND ANY > + CONTRIBUTION THERETO. > + > + IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR > + ANY CONTRIBUTION THERETO BE LIABLE TO ANY OTHER PARTY FOR > + THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST > + PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, > + CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER > + UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY > + WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS > + DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF > + THE POSSIBILITY OF SUCH DAMAGES. > + > + Copyright 2006 - 2016 Unified EFI, Inc. All > + Rights Reserved, subject to all existing rights in all > + matters included within this Test Suite, to which United > + EFI, Inc. makes no claim of right. > + > + Copyright (c) 2016, ARM Ltd. All rights reserved.
> + > +--*/ > +/*++ > + > +Module Name: > + > + EfiSpecVerLvlBBTestFunction.c > + > +Abstract: > + > + Test case definitions for EfiSpecVerLvl test. > + > +--*/ > + > +#include > + > +#include "EfiSpecVerLvlBBTestMain.h" > +#include "Guid.h" > +#include "SctLib.h" > +#include "EfiSpecVerLvlBBTestFunction.h" > + > +/** Entrypoint for EFI Specification Version Level Test. > + * > + * @param This a pointer of EFI_BB_TEST_PROTOCOL. > + * @param ClientInterface a pointer to the interface to be tested. > + * @param TestLevel test "thoroughness" control. > + * @param SupportHandle a handle containing protocols required. > + * @return EFI_SUCCESS Finish the test successfully. > + */ > + > +// > +// SBBR 3.3.1 > +// > + > +EFI_STATUS > +BBTestEfiSpecVerLvlTest ( > + IN EFI_BB_TEST_PROTOCOL *This, > + IN VOID *ClientInterface, > + IN EFI_TEST_LEVEL TestLevel, > + IN EFI_HANDLE SupportHandle > + ) > +{ > + > + EFI_STANDARD_TEST_LIBRARY_PROTOCOL *StandardLib; > + EFI_STATUS Status; > + UINTN CurHrRev; > + > + // Get the Standard Library Interface > + Status = gtBS->HandleProtocol ( > + SupportHandle, > + &gEfiStandardTestLibraryGuid, > + (VOID **) &StandardLib > + ); > + if (EFI_ERROR (Status)) { > + return Status; > + } > + > + CurHrRev = gtBS->Hdr.Revision; // Reading revision of the EFI Specification. > + > + // Check if EFI Specification version is less than 2.5 > + if (gtBS->Hdr.Revision < EFI_2_50_SYSTEM_TABLE_REVISION){ > + StandardLib->RecordAssertion ( > + StandardLib, > + EFI_TEST_ASSERTION_FAILED, > + gTestGenericFailureGuid, > + L"EFI Specification Version is below 2.5", > + L"%a:%d:Current EFI Header Rev=0x%X", > + __FILE__, > + __LINE__, > + CurHrRev > + ); > + return EFI_INCOMPATIBLE_VERSION; > + } else { > + StandardLib->RecordAssertion ( > + StandardLib, > + EFI_TEST_ASSERTION_PASSED, > + gEfiSpecVerLvlAssertion01Guid, > + L"TestEfiSpecVerLvl", > + L"%a:%d:Current EFI Header Rev=0x%X", > + __FILE__, > + __LINE__, > + CurHrRev > + ); > + > + return EFI_SUCCESS; > + } > +} > diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestFunction.h b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestFunction.h > new file mode 100644 > index 0000000..0ea7aa7 > --- /dev/null > +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestFunction.h > @@ -0,0 +1,71 @@ > +/*++ > + The material contained herein is not a license, either > + expressly or impliedly, to any intellectual property owned > + or controlled by any of the authors or developers of this > + material or to any contribution thereto. The material > + contained herein is provided on an "AS IS" basis and, to the > + maximum extent permitted by applicable law, this information > + is provided AS IS AND WITH ALL FAULTS, and the authors and > + developers of this material hereby disclaim all other > + warranties and conditions, either express, implied or > + statutory, including, but not limited to, any (if any) > + implied warranties, duties or conditions of merchantability, > + of fitness for a particular purpose, of accuracy or > + completeness of responses, of results, of workmanlike > + effort, of lack of viruses and of lack of negligence, all > + with regard to this material and any contribution thereto. > + Designers must not rely on the absence or characteristics of > + any features or instructions marked "reserved" or > + "undefined." The Unified EFI Forum, Inc. reserves any > + features or instructions so marked for future definition and > + shall have no responsibility whatsoever for conflicts or > + incompatibilities arising from future changes to them. ALSO, > + THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, > + QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR > + NON-INFRINGEMENT WITH REGARD TO THE TEST SUITE AND ANY > + CONTRIBUTION THERETO. > + > + IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR > + ANY CONTRIBUTION THERETO BE LIABLE TO ANY OTHER PARTY FOR > + THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST > + PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, > + CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER > + UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY > + WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS > + DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF > + THE POSSIBILITY OF SUCH DAMAGES. > + > + Copyright 2006 - 2016 Unified EFI, Inc. All > + Rights Reserved, subject to all existing rights in all > + matters included within this Test Suite, to which United > + EFI, Inc. makes no claim of right. > + > + Copyright (c) 2016, ARM Ltd. All rights reserved.
> + > +--*/ > +/*++ > + > +Module Name: > + > + EfiSpecVerLvlBBTestFunction.h > + > +Abstract: > + > + Contains definitions and prototypes used in the test functions. > + > +--*/ > + > +#ifndef _EFISPECVERLVL_BB_TEST_FUNCTION_H_ > +#define _EFISPECVERLVL_BB_TEST_FUNCTION_H_ > + > +#include > + > +EFI_STATUS > +BBTestEfiSpecVerLvlTest ( > + IN EFI_BB_TEST_PROTOCOL *This, > + IN VOID *ClientInterface, > + IN EFI_TEST_LEVEL TestLevel, > + IN EFI_HANDLE SupportHandle > + ); > + > +#endif /* _EFISPECVERLVL_BB_TEST_FUNCTION_H_ */ > diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestMain.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestMain.c > new file mode 100644 > index 0000000..754644c > --- /dev/null > +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestMain.c > @@ -0,0 +1,127 @@ > +/*++ > + The material contained herein is not a license, either > + expressly or impliedly, to any intellectual property owned > + or controlled by any of the authors or developers of this > + material or to any contribution thereto. The material > + contained herein is provided on an "AS IS" basis and, to the > + maximum extent permitted by applicable law, this information > + is provided AS IS AND WITH ALL FAULTS, and the authors and > + developers of this material hereby disclaim all other > + warranties and conditions, either express, implied or > + statutory, including, but not limited to, any (if any) > + implied warranties, duties or conditions of merchantability, > + of fitness for a particular purpose, of accuracy or > + completeness of responses, of results, of workmanlike > + effort, of lack of viruses and of lack of negligence, all > + with regard to this material and any contribution thereto. > + Designers must not rely on the absence or characteristics of > + any features or instructions marked "reserved" or > + "undefined." The Unified EFI Forum, Inc. reserves any > + features or instructions so marked for future definition and > + shall have no responsibility whatsoever for conflicts or > + incompatibilities arising from future changes to them. ALSO, > + THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, > + QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR > + NON-INFRINGEMENT WITH REGARD TO THE TEST SUITE AND ANY > + CONTRIBUTION THERETO. > + > + IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR > + ANY CONTRIBUTION THERETO BE LIABLE TO ANY OTHER PARTY FOR > + THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST > + PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, > + CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER > + UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY > + WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS > + DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF > + THE POSSIBILITY OF SUCH DAMAGES. > + > + Copyright 2006 - 2016 Unified EFI, Inc. All > + Rights Reserved, subject to all existing rights in all > + matters included within this Test Suite, to which United > + EFI, Inc. makes no claim of right. > + > + Copyright (c) 2016, ARM Ltd. All rights reserved.
> + > +--*/ > +/*++ > + > +Module Name: > + > + EfiSpecVerLvlBBTestMain.c > + > +Abstract: > + > + Test driver for SBBR system environment configuration tests. > + > +--*/ > + > +#include "SctLib.h" > +#include "EfiSpecVerLvlBBTestFunction.h" > +#include "EfiSpecVerLvlBBTestMain.h" > + > +EFI_BB_TEST_PROTOCOL_FIELD gBBTestProtocolField = { > + EFISPECVERLVL_TEST_REVISION, > + EFISPECVERLVL_TEST_GUID, > + L"SBBR UEFI Specification Version Level Test", > + L"Check the UEFI Specification Version Level to make sure it conforms to ARM SBBR." > +}; > + > +EFI_GUID gSupportProtocolGuid[2] = { > + EFI_STANDARD_TEST_LIBRARY_GUID, > + EFI_NULL_GUID > +}; > + > +EFI_BB_TEST_ENTRY_FIELD gBBTestEntryField[] = { > + { > + EFISPECVERLVL_GUID, > + L"TestEfiSpecVerLvl", > + L"Check the EFI Specification Version Level.", > + EFI_TEST_LEVEL_DEFAULT, > + gSupportProtocolGuid, > + EFI_TEST_CASE_AUTO, > + BBTestEfiSpecVerLvlTest > + }, > + EFI_NULL_GUID > +}; > + > +EFI_BB_TEST_PROTOCOL *gBBTestProtocolInterface; > + > +/** The driver's Unload function. > + * @param ImageHandle The test driver image handle > + * @return EFI_SUCCESS Indicates the interface was uninstalled > +*/ > +EFI_STATUS > +BBTestEfiSpecVerLvlUnload ( > + IN EFI_HANDLE ImageHandle > + ) > +{ > + return EfiUninstallAndFreeBBTestInterface ( > + ImageHandle, > + gBBTestProtocolInterface > + ); > +} > + > +/** Creates/installs the BlackBox Interface and emanating Entry Point node list. > + * @param ImageHandle The test driver image handle > + * @param SystemTable Pointer to System Table > + * @return EFI_SUCCESS Indicates the interface was installed > + * @return EFI_OUT_OF_RESOURCES Indicates space for the new handle could not be allocated > + * @return EFI_INVALID_PARAMETER One of the parameters has an invalid value. > + */ > +EFI_STATUS > +InitializeBBTestEfiSpecVerLvl ( > + IN EFI_HANDLE ImageHandle, > + IN EFI_SYSTEM_TABLE *SystemTable > + ) > +{ > + > + EfiInitializeTestLib (ImageHandle, SystemTable); > + > + return EfiInitAndInstallBBTestInterface ( > + &ImageHandle, > + &gBBTestProtocolField, > + gBBTestEntryField, > + BBTestEfiSpecVerLvlUnload, > + &gBBTestProtocolInterface > + ); > +} > diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestMain.h b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestMain.h > new file mode 100644 > index 0000000..49fd7bb > --- /dev/null > +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTestMain.h > @@ -0,0 +1,84 @@ > +/*++ > + The material contained herein is not a license, either > + expressly or impliedly, to any intellectual property owned > + or controlled by any of the authors or developers of this > + material or to any contribution thereto. The material > + contained herein is provided on an "AS IS" basis and, to the > + maximum extent permitted by applicable law, this information > + is provided AS IS AND WITH ALL FAULTS, and the authors and > + developers of this material hereby disclaim all other > + warranties and conditions, either express, implied or > + statutory, including, but not limited to, any (if any) > + implied warranties, duties or conditions of merchantability, > + of fitness for a particular purpose, of accuracy or > + completeness of responses, of results, of workmanlike > + effort, of lack of viruses and of lack of negligence, all > + with regard to this material and any contribution thereto. > + Designers must not rely on the absence or characteristics of > + any features or instructions marked "reserved" or > + "undefined." The Unified EFI Forum, Inc. reserves any > + features or instructions so marked for future definition and > + shall have no responsibility whatsoever for conflicts or > + incompatibilities arising from future changes to them. ALSO, > + THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, > + QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR > + NON-INFRINGEMENT WITH REGARD TO THE TEST SUITE AND ANY > + CONTRIBUTION THERETO. > + > + IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR > + ANY CONTRIBUTION THERETO BE LIABLE TO ANY OTHER PARTY FOR > + THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST > + PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, > + CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER > + UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY > + WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS > + DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF > + THE POSSIBILITY OF SUCH DAMAGES. > + > + Copyright 2006 - 2016 Unified EFI, Inc. All > + Rights Reserved, subject to all existing rights in all > + matters included within this Test Suite, to which United > + EFI, Inc. makes no claim of right. > + > + Copyright (c) 2016, ARM Ltd. All rights reserved.
> + > +--*/ > +/*++ > + > +Module Name: > + > + EfiSpecVerLvlBBTestMain.h > + > +Abstract: > + > + Contains definitions for test information and test GUIDs. > + > +--*/ > + > +#ifndef _EFISPECVERLVL_TEST_MAIN_H_ > +#define _EFISPECVERLVL_TEST_MAIN_H_ > + > +#include "Efi.h" > +#include > + > + > +#define EFISPECVERLVL_TEST_REVISION 0x00010000 > + > +#define EFISPECVERLVL_TEST_GUID \ > + {0xd6e40d12, 0x7a51, 0x4454, {0xb4, 0xfd, 0x4c, 0x93, 0x88, 0x7e, 0xd6, 0xcf}} > + > +EFI_STATUS > +InitializeBBTestEfiSpecVerLvl ( > + IN EFI_HANDLE ImageHandle, > + IN EFI_SYSTEM_TABLE *SystemTable > + ); > + > +// > +// Entry GUIDs > +// > + > +#define EFISPECVERLVL_GUID \ > + {0x6e46b2e2, 0x2535, 0x4c8e, {0x82, 0x5a, 0x84, 0x5d, 0xc2, 0xbe, 0xed, 0xdf}} > + > + > +#endif /* _EFISPECVERLVL_TEST_MAIN_H_ */ > diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.c > new file mode 100644 > index 0000000..52c6d90 > --- /dev/null > +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.c > @@ -0,0 +1,61 @@ > +/*++ > + The material contained herein is not a license, either > + expressly or impliedly, to any intellectual property owned > + or controlled by any of the authors or developers of this > + material or to any contribution thereto. The material > + contained herein is provided on an "AS IS" basis and, to the > + maximum extent permitted by applicable law, this information > + is provided AS IS AND WITH ALL FAULTS, and the authors and > + developers of this material hereby disclaim all other > + warranties and conditions, either express, implied or > + statutory, including, but not limited to, any (if any) > + implied warranties, duties or conditions of merchantability, > + of fitness for a particular purpose, of accuracy or > + completeness of responses, of results, of workmanlike > + effort, of lack of viruses and of lack of negligence, all > + with regard to this material and any contribution thereto. > + Designers must not rely on the absence or characteristics of > + any features or instructions marked "reserved" or > + "undefined." The Unified EFI Forum, Inc. reserves any > + features or instructions so marked for future definition and > + shall have no responsibility whatsoever for conflicts or > + incompatibilities arising from future changes to them. ALSO, > + THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, > + QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR > + NON-INFRINGEMENT WITH REGARD TO THE TEST SUITE AND ANY > + CONTRIBUTION THERETO. > + > + IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR > + ANY CONTRIBUTION THERETO BE LIABLE TO ANY OTHER PARTY FOR > + THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST > + PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, > + CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER > + UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY > + WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS > + DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF > + THE POSSIBILITY OF SUCH DAMAGES. > + > + Copyright 2006 - 2016 Unified EFI, Inc. All > + Rights Reserved, subject to all existing rights in all > + matters included within this Test Suite, to which United > + EFI, Inc. makes no claim of right. > + > + Copyright (c) 2016, ARM Ltd. All rights reserved.
> + > +--*/ > +/*++ > + > +Module Name: > + > + Guid.c > + > +Abstract: > + > + GUID assignments for test progress assertions. > + > +--*/ > + > +#include "Efi.h" > +#include "Guid.h" > + > +EFI_GUID gEfiSpecVerLvlAssertion01Guid = EFISPECVERLVL_ASSERTION_001_GUID; > diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.h b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.h > new file mode 100644 > index 0000000..b554961 > --- /dev/null > +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/Guid.h > @@ -0,0 +1,66 @@ > +/*++ > + The material contained herein is not a license, either > + expressly or impliedly, to any intellectual property owned > + or controlled by any of the authors or developers of this > + material or to any contribution thereto. The material > + contained herein is provided on an "AS IS" basis and, to the > + maximum extent permitted by applicable law, this information > + is provided AS IS AND WITH ALL FAULTS, and the authors and > + developers of this material hereby disclaim all other > + warranties and conditions, either express, implied or > + statutory, including, but not limited to, any (if any) > + implied warranties, duties or conditions of merchantability, > + of fitness for a particular purpose, of accuracy or > + completeness of responses, of results, of workmanlike > + effort, of lack of viruses and of lack of negligence, all > + with regard to this material and any contribution thereto. > + Designers must not rely on the absence or characteristics of > + any features or instructions marked "reserved" or > + "undefined." The Unified EFI Forum, Inc. reserves any > + features or instructions so marked for future definition and > + shall have no responsibility whatsoever for conflicts or > + incompatibilities arising from future changes to them. ALSO, > + THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, > + QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR > + NON-INFRINGEMENT WITH REGARD TO THE TEST SUITE AND ANY > + CONTRIBUTION THERETO. > + > + IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR > + ANY CONTRIBUTION THERETO BE LIABLE TO ANY OTHER PARTY FOR > + THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST > + PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, > + CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER > + UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY > + WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS > + DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF > + THE POSSIBILITY OF SUCH DAMAGES. > + > + Copyright 2006 - 2016 Unified EFI, Inc. All > + Rights Reserved, subject to all existing rights in all > + matters included within this Test Suite, to which United > + EFI, Inc. makes no claim of right. > + > + Copyright (c) 2016, ARM Ltd. All rights reserved.
> + > +--*/ > +/*++ > + > +Module Name: > + > + Guid.h > + > +Abstract: > + > + Definitions of GUIDs used for test progress assertions. > + > +--*/ > + > +#ifndef _EFISPECVERSION_GUID_H_ > +#define _EFISPECVERSION_GUID_H_ > + > +#define EFISPECVERLVL_ASSERTION_001_GUID \ > +{0x14932290, 0x563b, 0x4d20, {0x95, 0xa7, 0xee, 0xc0, 0x2d, 0xbb, 0x1b, 0x13}} > + > +extern EFI_GUID gEfiSpecVerLvlAssertion01Guid; > + > +#endif /* _EFISPECVERSION_GUID_H_ */ > diff --git a/uefi-sct/SctPkg/UEFI/SBBR_SCT.dsc b/uefi-sct/SctPkg/UEFI/SBBR_SCT.dsc > index d3fafb6..931b8da 100644 > --- a/uefi-sct/SctPkg/UEFI/SBBR_SCT.dsc > +++ b/uefi-sct/SctPkg/UEFI/SBBR_SCT.dsc This patch causes tons of unrelated whitespace changes to a file introduced by this set. Please rework, I can't tell if there are any functional changes to this file. / Leif > @@ -1,190 +1,192 @@ > -# > -# The material contained herein is not a license, either > -# expressly or impliedly, to any intellectual property owned > -# or controlled by any of the authors or developers of this > -# material or to any contribution thereto. The material > -# contained herein is provided on an "AS IS" basis and, to the > -# maximum extent permitted by applicable law, this information > -# is provided AS IS AND WITH ALL FAULTS, and the authors and > -# developers of this material hereby disclaim all other > -# warranties and conditions, either express, implied or > -# statutory, including, but not limited to, any (if any) > -# implied warranties, duties or conditions of merchantability, > -# of fitness for a particular purpose, of accuracy or > -# completeness of responses, of results, of workmanlike > -# effort, of lack of viruses and of lack of negligence, all > -# with regard to this material and any contribution thereto. > -# Designers must not rely on the absence or characteristics of > -# any features or instructions marked "reserved" or > -# "undefined." The Unified EFI Forum, Inc. reserves any > -# features or instructions so marked for future definition and > -# shall have no responsibility whatsoever for conflicts or > -# incompatibilities arising from future changes to them. ALSO, > -# THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, > -# QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR > -# NON-INFRINGEMENT WITH REGARD TO THE TEST SUITE AND ANY > -# CONTRIBUTION THERETO. > -# > -# IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR > -# ANY CONTRIBUTION THERETO BE LIABLE TO ANY OTHER PARTY FOR > -# THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST > -# PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, > -# CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER > -# UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY > -# WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS > -# DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF > -# THE POSSIBILITY OF SUCH DAMAGES. > -# > -# Copyright 2006 - 2016 Unified EFI, Inc. All > -# Rights Reserved, subject to all existing rights in all > -# matters included within this Test Suite, to which United > -# EFI, Inc. makes no claim of right. > -# > -# Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.
> -# > -# > -#/*++ > -# > -# Module Name: > -# > -# SBBR_SCT.dsc > -# > -# Abstract: > -# > -# This is a build description file used to build the test modules of SBBR SCT. > -# > -# Notes: > -# > -# The info in this file is broken down into sections. The start of a section > -# is designated by a "[" in the first column. So the [=====] separater ends > -# a section. > -# > -#--*/ > - > -################################################################################ > -# > -# Defines Section - statements that will be processed to create a Makefile. > -# > -################################################################################ > -[Defines] > - PLATFORM_NAME = SbbrSct > - PLATFORM_GUID = d513138b-9d4a-479c-8058-4a5160018663 > - PLATFORM_VERSION = 0.1 > - DSC_SPECIFICATION = 0x00010005 > - OUTPUT_DIRECTORY = Build/SbbrSct > - SUPPORTED_ARCHITECTURES = AARCH64 > - BUILD_TARGETS = DEBUG|RELEASE > - SKUID_IDENTIFIER = DEFAULT > - > - DEFINE GCC_VER_MACRO = -D EFI_SPECIFICATION_VERSION=0x00020028 -D TIANO_RELEASE_VERSION=0x00080006 > - DEFINE MSFT_VER_MACRO = /D EFI_SPECIFICATION_VERSION=0x00020028 /D TIANO_RELEASE_VERSION=0x00080006 > - > - > -################################################################################ > -# > -# SKU Identification section - list of all SKU IDs supported by this > -# Platform. > -# > -################################################################################ > -[SkuIds] > - 0|DEFAULT # The entry: 0|DEFAULT is reserved and always required. > - > -[BuildOptions] > - *_*_AARCH64_CC_FLAGS = -D EFIAARCH64 -I$(WORKSPACE)/MdePkg/Include/AArch64 $(GCC_VER_MACRO) > - GCC:*_*_AARCH64_CC_FLAGS = -D EFIAARCH64 $(GCC_VER_MACRO) -ffreestanding -nostdinc -nostdlib -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error > - *_*_AARCH64_VFRPP_FLAGS = -D EFIAARCH64 $(GCC_VER_MACRO) > - *_*_AARCH64_APP_FLAGS = -D EFIAARCH64 $(GCC_VER_MACRO) > - *_*_AARCH64_PP_FLAGS = -D EFIAARCH64 $(GCC_VER_MACRO) > - RVCT:*_*_AARCH64_DLINK_FLAGS = --muldefweak > - > - DEBUG_*_*_CC_FLAGS = -DEFI_DEBUG > - RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG > - > -[Libraries] > - SctPkg/Library/SctLib/SctLib.inf > - SctPkg/Library/SctGuidLib/SctGuidLib.inf > - SctPkg/Library/EfiTestLib/EfiTestLib.inf > - > - SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/EntsLib.inf > - > - MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf > - > -[Libraries.ARM] > - ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf > - > -[Libraries.AARCH64] > - ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf > - > -[LibraryClasses.common] > - UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf > - UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf > - UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf > - BaseLib|MdePkg/Library/BaseLib/BaseLib.inf > - BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf > - DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf > - PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf > - MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf > - UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf > - UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf > - HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf > - PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf > - UefiLib|MdePkg/Library/UefiLib/UefiLib.inf > - DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf > - > - SctLib|SctPkg/Library/SctLib/SctLib.inf > - NetLib|SctPkg/Library/NetLib/NetLib.inf > - EntsLib|SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/EntsLib.inf > - EasLib|SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasDispatcher/Eas.inf > - EfiTestLib|SctPkg/Library/EfiTestLib/EfiTestLib.inf > - > -[LibraryClasses.ARM] > - NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf > - > -[LibraryClasses.AARCH64] > - NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf > +# > +# The material contained herein is not a license, either > +# expressly or impliedly, to any intellectual property owned > +# or controlled by any of the authors or developers of this > +# material or to any contribution thereto. The material > +# contained herein is provided on an "AS IS" basis and, to the > +# maximum extent permitted by applicable law, this information > +# is provided AS IS AND WITH ALL FAULTS, and the authors and > +# developers of this material hereby disclaim all other > +# warranties and conditions, either express, implied or > +# statutory, including, but not limited to, any (if any) > +# implied warranties, duties or conditions of merchantability, > +# of fitness for a particular purpose, of accuracy or > +# completeness of responses, of results, of workmanlike > +# effort, of lack of viruses and of lack of negligence, all > +# with regard to this material and any contribution thereto. > +# Designers must not rely on the absence or characteristics of > +# any features or instructions marked "reserved" or > +# "undefined." The Unified EFI Forum, Inc. reserves any > +# features or instructions so marked for future definition and > +# shall have no responsibility whatsoever for conflicts or > +# incompatibilities arising from future changes to them. ALSO, > +# THERE IS NO WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, > +# QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR > +# NON-INFRINGEMENT WITH REGARD TO THE TEST SUITE AND ANY > +# CONTRIBUTION THERETO. > +# > +# IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR > +# ANY CONTRIBUTION THERETO BE LIABLE TO ANY OTHER PARTY FOR > +# THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST > +# PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, > +# CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER > +# UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY > +# WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS > +# DOCUMENT, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF > +# THE POSSIBILITY OF SUCH DAMAGES. > +# > +# Copyright 2006 - 2016 Unified EFI, Inc. All > +# Rights Reserved, subject to all existing rights in all > +# matters included within this Test Suite, to which United > +# EFI, Inc. makes no claim of right. > +# > +# Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.
> +# > +# Copyright (c) 2016, ARM Ltd. All rights reserved.
> +# > +# > +#/*++ > +# > +# Module Name: > +# > +# SBBR_SCT.dsc > +# > +# Abstract: > +# > +# This is a build description file used to build the test modules of SBBR SCT. > +# > +# Notes: > +# > +# The info in this file is broken down into sections. The start of a section > +# is designated by a "[" in the first column. So the [=====] separater ends > +# a section. > +# > +#--*/ > + > +################################################################################ > +# > +# Defines Section - statements that will be processed to create a Makefile. > +# > +################################################################################ > +[Defines] > + PLATFORM_NAME = SbbrSct > + PLATFORM_GUID = d513138b-9d4a-479c-8058-4a5160018663 > + PLATFORM_VERSION = 0.1 > + DSC_SPECIFICATION = 0x00010005 > + OUTPUT_DIRECTORY = Build/SbbrSct > + SUPPORTED_ARCHITECTURES = AARCH64 > + BUILD_TARGETS = DEBUG|RELEASE > + SKUID_IDENTIFIER = DEFAULT > + > + DEFINE GCC_VER_MACRO = -D EFI_SPECIFICATION_VERSION=0x00020028 -D TIANO_RELEASE_VERSION=0x00080006 > + DEFINE MSFT_VER_MACRO = /D EFI_SPECIFICATION_VERSION=0x00020028 /D TIANO_RELEASE_VERSION=0x00080006 > + > + > +################################################################################ > +# > +# SKU Identification section - list of all SKU IDs supported by this > +# Platform. > +# > +################################################################################ > +[SkuIds] > + 0|DEFAULT # The entry: 0|DEFAULT is reserved and always required. > + > +[BuildOptions] > + *_*_AARCH64_CC_FLAGS = -D EFIAARCH64 -I$(WORKSPACE)/MdePkg/Include/AArch64 $(GCC_VER_MACRO) > + GCC:*_*_AARCH64_CC_FLAGS = -D EFIAARCH64 $(GCC_VER_MACRO) -ffreestanding -nostdinc -nostdlib -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error > + *_*_AARCH64_VFRPP_FLAGS = -D EFIAARCH64 $(GCC_VER_MACRO) > + *_*_AARCH64_APP_FLAGS = -D EFIAARCH64 $(GCC_VER_MACRO) > + *_*_AARCH64_PP_FLAGS = -D EFIAARCH64 $(GCC_VER_MACRO) > + RVCT:*_*_AARCH64_DLINK_FLAGS = --muldefweak > + > + DEBUG_*_*_CC_FLAGS = -DEFI_DEBUG > + RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG > + > +[Libraries] > + SctPkg/Library/SctLib/SctLib.inf > + SctPkg/Library/SctGuidLib/SctGuidLib.inf > + SctPkg/Library/EfiTestLib/EfiTestLib.inf > + > + SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/EntsLib.inf > + > + MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf > + > +[Libraries.ARM] > + ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf > + > +[Libraries.AARCH64] > + ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf > + > +[LibraryClasses.common] > + UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf > + UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf > + UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf > + BaseLib|MdePkg/Library/BaseLib/BaseLib.inf > + BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf > + DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf > + PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf > + MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf > + UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf > + UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf > + HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf > + PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf > + UefiLib|MdePkg/Library/UefiLib/UefiLib.inf > + DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf > + > + SctLib|SctPkg/Library/SctLib/SctLib.inf > + NetLib|SctPkg/Library/NetLib/NetLib.inf > + EntsLib|SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasLib/EntsLib.inf > + EasLib|SctPkg/TestInfrastructure/SCT/Framework/ENTS/EasDispatcher/Eas.inf > + EfiTestLib|SctPkg/Library/EfiTestLib/EfiTestLib.inf > + > +[LibraryClasses.ARM] > + NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf > + > +[LibraryClasses.AARCH64] > + NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf > ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf > - > -############################################################################### > -# > -# These are the components that will be built by the master makefile > -# > -############################################################################### > - > -[Components] > - > -# > -# The default package > -# > -DEFINE PACKAGE=Default > - > -# > -# Components > -# > - > -# > -# Following are the SCT suite & related drivers > -# > - > -SctPkg/TestInfrastructure/SCT/Framework/Sct.inf > -SctPkg/TestInfrastructure/SCT/Drivers/StandardTest/StandardTest.inf > -SctPkg/TestInfrastructure/SCT/Drivers/TestProfile/TestProfile.inf > -SctPkg/TestInfrastructure/SCT/Drivers/TestRecovery/TestRecovery.inf > -SctPkg/TestInfrastructure/SCT/Drivers/TestLogging/TestLogging.inf > - > -# > -# Related SCT applications > -# > - > -SctPkg/Application/InstallSct/InstallSct.inf > -SctPkg/Application/StallForKey/StallForKey.inf > - > -SctPkg/SCRT/SCRTApp/SCRTApp.inf > -SctPkg/SCRT/SCRTDriver/SCRTDriver.inf > - > -# > -# Test cases for SBBR SCT > -# > - > + > +############################################################################### > +# > +# These are the components that will be built by the master makefile > +# > +############################################################################### > + > +[Components] > + > +# > +# The default package > +# > +DEFINE PACKAGE=Default > + > +# > +# Components > +# > + > +# > +# Following are the SCT suite & related drivers > +# > + > +SctPkg/TestInfrastructure/SCT/Framework/Sct.inf > +SctPkg/TestInfrastructure/SCT/Drivers/StandardTest/StandardTest.inf > +SctPkg/TestInfrastructure/SCT/Drivers/TestProfile/TestProfile.inf > +SctPkg/TestInfrastructure/SCT/Drivers/TestRecovery/TestRecovery.inf > +SctPkg/TestInfrastructure/SCT/Drivers/TestLogging/TestLogging.inf > + > +# > +# Related SCT applications > +# > + > +SctPkg/Application/InstallSct/InstallSct.inf > +SctPkg/Application/StallForKey/StallForKey.inf > + > +SctPkg/SCRT/SCRTApp/SCRTApp.inf > +SctPkg/SCRT/SCRTDriver/SCRTDriver.inf > + > +# > +# Test cases for SBBR SCT > +# > + > # Boot Services Tests - SBBR v1.0 Appendix A > # > ## 1. EFI_RAISE_TPL > @@ -239,13 +241,15 @@ SctPkg/TestCase/UEFI/EFI/BootServices/MiscBootServices/BlackBoxTest/MiscBootServ > ## 42. EFI_UNINSTALL_MULTIPLE_PROTOCOL_INTERFACES > SctPkg/TestCase/UEFI/EFI/BootServices/ProtocolHandlerServices/BlackBoxTest/ProtocolHandlerBBTest.inf > # End of Boot Services Tests - SBBR v1.0 Appendix A > - > -# > + > +# > # UEFI System Environment and Configuration Tests - SBBR v1.0 3.3 > # > SctPkg/TestCase/UEFI/EFI/Generic/SbbrSysEnvConfig/BlackBoxTest/SysEnvConfigBBTest.inf > #End of UEFI System Environment and Configuration Tests - SBBR v1.0 3.3 > - > +# > +# Check if EFI Specification Version is 2.5 or greater > +SctPkg/TestCase/UEFI/EFI/Generic/SbbrEfiSpecVerLvl/BlackBoxTest/EfiSpecVerLvlBBTest.inf > # > # UEFI Boot Services - SBBR v1.0 3.4 > # > @@ -286,13 +290,13 @@ SctPkg/TestCase/UEFI/EFI/Generic/EfiCompliant/BlackBoxTest/EfiCompliantBBTest_ue > # End of UEFI Required Protocols Tests - SBBR Appendix C > > # > -# Dependency files > -# > - > -# > -# Support Files > -# > -SctPkg/TestInfrastructure/SCT/Framework/ENTS/Eftp/Eftp.inf > -SctPkg/TestInfrastructure/SCT/Framework/ENTS/MonitorServices/SerialMonitor/SerialMonitor.inf > -SctPkg/TestInfrastructure/SCT/Framework/ENTS/MonitorServices/ManagedNetworkMonitor/ManagedNetworkMonitor.inf > -SctPkg/TestInfrastructure/SCT/Framework/ENTS/MonitorServices/IP4NetworkMonitor/IP4NetworkMonitor.inf > +# Dependency files > +# > + > +# > +# Support Files > +# > +SctPkg/TestInfrastructure/SCT/Framework/ENTS/Eftp/Eftp.inf > +SctPkg/TestInfrastructure/SCT/Framework/ENTS/MonitorServices/SerialMonitor/SerialMonitor.inf > +SctPkg/TestInfrastructure/SCT/Framework/ENTS/MonitorServices/ManagedNetworkMonitor/ManagedNetworkMonitor.inf > +SctPkg/TestInfrastructure/SCT/Framework/ENTS/MonitorServices/IP4NetworkMonitor/IP4NetworkMonitor.inf > -- > 2.7.4 > > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel