meta-arm.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm/sbsa-acs: add SBSA Architecture Compliance Suite
@ 2021-04-01  9:29 Ross Burton
  2021-04-02 15:26 ` [meta-arm] " Jon Mason
  0 siblings, 1 reply; 3+ messages in thread
From: Ross Burton @ 2021-04-01  9:29 UTC (permalink / raw)
  To: meta-arm

Add a recipe for SBSA Architecture Compliance Suite, a test suite for
SBSA.

As this is implemented as a module for the EDK2 Shell application, this
can include the edk2-firmware recipe to do the heavy lifting.

Change-Id: I890ea41d7d1068d74a541c06411aad894728f44d
Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 .../sbsa-acs/sbsa-acs/shell.patch             | 26 +++++++++++++++++++
 .../recipes-test/sbsa-acs/sbsa-acs_3.0.bb     | 25 ++++++++++++++++++
 2 files changed, 51 insertions(+)
 create mode 100644 meta-arm/recipes-test/sbsa-acs/sbsa-acs/shell.patch
 create mode 100644 meta-arm/recipes-test/sbsa-acs/sbsa-acs_3.0.bb

diff --git a/meta-arm/recipes-test/sbsa-acs/sbsa-acs/shell.patch b/meta-arm/recipes-test/sbsa-acs/sbsa-acs/shell.patch
new file mode 100644
index 0000000..0cbbb47
--- /dev/null
+++ b/meta-arm/recipes-test/sbsa-acs/sbsa-acs/shell.patch
@@ -0,0 +1,26 @@
+Patch in the paths to the SBSA test suite
+
+Upstream-Status: Inappropriate (required action)
+Signed-off-by: Ross Burton <ross.burton@arm.com>
+
+diff --git a/ShellPkg/ShellPkg.dsc b/ShellPkg/ShellPkg.dsc
+index c42bc9464a..ea21f07a31 100644
+--- a/ShellPkg/ShellPkg.dsc
++++ b/ShellPkg/ShellPkg.dsc
+@@ -20,6 +20,8 @@
+   SKUID_IDENTIFIER               = DEFAULT
+ 
+ [LibraryClasses.common]
++  SbsaValLib|ShellPkg/Application/sbsa-acs/val/SbsaValLib.inf
++  SbsaPalLib|ShellPkg/Application/sbsa-acs/platform/pal_uefi/SbsaPalLib.inf
+   UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
+   UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
+   UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
+@@ -83,6 +85,7 @@
+   # Build all the libraries when building this package.
+   # This helps developers test changes and how they affect the package.
+   #
++  ShellPkg/Application/sbsa-acs/uefi_app/SbsaAvs.inf 
+   ShellPkg/Library/UefiShellLib/UefiShellLib.inf
+   ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
+   ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
diff --git a/meta-arm/recipes-test/sbsa-acs/sbsa-acs_3.0.bb b/meta-arm/recipes-test/sbsa-acs/sbsa-acs_3.0.bb
new file mode 100644
index 0000000..9601f24
--- /dev/null
+++ b/meta-arm/recipes-test/sbsa-acs/sbsa-acs_3.0.bb
@@ -0,0 +1,25 @@
+require recipes-bsp/uefi/edk2-firmware_202011.bb
+
+PROVIDES_remove = "virtual/uefi-firmware"
+
+LICENSE += "& Apache-2.0"
+LIC_FILES_CHKSUM += "file://ShellPkg/Application/sbsa-acs/LICENSE.md;md5=2a944942e1496af1886903d274dedb13"
+
+SRC_URI += "git://github.com/ARM-software/sbsa-acs;destsuffix=edk2/ShellPkg/Application/sbsa-acs;protocol=https;branch=release;name=acs \
+            git://github.com/tianocore/edk2-libc;destsuffix=edk2/edk2-libc;protocol=https;branch=master;name=libc \
+            file://shell.patch"
+
+SRCREV_acs = "1b3a37214fe6809e07e471f79d1ef856461bc803"
+SRCREV_libc = "61687168fe02ac4d933a36c9145fdd242ac424d1"
+
+EDK2_ARCH = "AARCH64"
+EDK2_PLATFORM = "Shell"
+EDK2_PLATFORM_DSC = "ShellPkg/ShellPkg.dsc"
+EDK2_EXTRA_BUILD = "--module ShellPkg/Application/sbsa-acs/uefi_app/SbsaAvs.inf"
+
+PACKAGES_PATH .= ":${S}/edk2-libc"
+
+do_install() {
+    install -d ${D}/firmware
+    install ${B}/Build/${EDK2_PLATFORM}/${EDK2_BUILD_MODE}_${EDK_COMPILER}/*/Sbsa.efi ${D}/firmware/
+}
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [meta-arm] [PATCH] arm/sbsa-acs: add SBSA Architecture Compliance Suite
  2021-04-01  9:29 [PATCH] arm/sbsa-acs: add SBSA Architecture Compliance Suite Ross Burton
@ 2021-04-02 15:26 ` Jon Mason
  2021-04-02 16:02   ` Ross Burton
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Mason @ 2021-04-02 15:26 UTC (permalink / raw)
  To: Ross Burton; +Cc: meta-arm

On Thu, Apr 01, 2021 at 10:29:22AM +0100, Ross Burton wrote:
> Add a recipe for SBSA Architecture Compliance Suite, a test suite for
> SBSA.
> 
> As this is implemented as a module for the EDK2 Shell application, this
> can include the edk2-firmware recipe to do the heavy lifting.
> 
> Change-Id: I890ea41d7d1068d74a541c06411aad894728f44d
> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---

Applied to master with slight fix for reference to recently updated
(by you) EDK recipe.

Thanks,
Jon

>  .../sbsa-acs/sbsa-acs/shell.patch             | 26 +++++++++++++++++++
>  .../recipes-test/sbsa-acs/sbsa-acs_3.0.bb     | 25 ++++++++++++++++++
>  2 files changed, 51 insertions(+)
>  create mode 100644 meta-arm/recipes-test/sbsa-acs/sbsa-acs/shell.patch
>  create mode 100644 meta-arm/recipes-test/sbsa-acs/sbsa-acs_3.0.bb
> 
> diff --git a/meta-arm/recipes-test/sbsa-acs/sbsa-acs/shell.patch b/meta-arm/recipes-test/sbsa-acs/sbsa-acs/shell.patch
> new file mode 100644
> index 0000000..0cbbb47
> --- /dev/null
> +++ b/meta-arm/recipes-test/sbsa-acs/sbsa-acs/shell.patch
> @@ -0,0 +1,26 @@
> +Patch in the paths to the SBSA test suite
> +
> +Upstream-Status: Inappropriate (required action)
> +Signed-off-by: Ross Burton <ross.burton@arm.com>
> +
> +diff --git a/ShellPkg/ShellPkg.dsc b/ShellPkg/ShellPkg.dsc
> +index c42bc9464a..ea21f07a31 100644
> +--- a/ShellPkg/ShellPkg.dsc
> ++++ b/ShellPkg/ShellPkg.dsc
> +@@ -20,6 +20,8 @@
> +   SKUID_IDENTIFIER               = DEFAULT
> + 
> + [LibraryClasses.common]
> ++  SbsaValLib|ShellPkg/Application/sbsa-acs/val/SbsaValLib.inf
> ++  SbsaPalLib|ShellPkg/Application/sbsa-acs/platform/pal_uefi/SbsaPalLib.inf
> +   UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
> +   UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
> +   UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
> +@@ -83,6 +85,7 @@
> +   # Build all the libraries when building this package.
> +   # This helps developers test changes and how they affect the package.
> +   #
> ++  ShellPkg/Application/sbsa-acs/uefi_app/SbsaAvs.inf 
> +   ShellPkg/Library/UefiShellLib/UefiShellLib.inf
> +   ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
> +   ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
> diff --git a/meta-arm/recipes-test/sbsa-acs/sbsa-acs_3.0.bb b/meta-arm/recipes-test/sbsa-acs/sbsa-acs_3.0.bb
> new file mode 100644
> index 0000000..9601f24
> --- /dev/null
> +++ b/meta-arm/recipes-test/sbsa-acs/sbsa-acs_3.0.bb
> @@ -0,0 +1,25 @@
> +require recipes-bsp/uefi/edk2-firmware_202011.bb
> +
> +PROVIDES_remove = "virtual/uefi-firmware"
> +
> +LICENSE += "& Apache-2.0"
> +LIC_FILES_CHKSUM += "file://ShellPkg/Application/sbsa-acs/LICENSE.md;md5=2a944942e1496af1886903d274dedb13"
> +
> +SRC_URI += "git://github.com/ARM-software/sbsa-acs;destsuffix=edk2/ShellPkg/Application/sbsa-acs;protocol=https;branch=release;name=acs \
> +            git://github.com/tianocore/edk2-libc;destsuffix=edk2/edk2-libc;protocol=https;branch=master;name=libc \
> +            file://shell.patch"
> +
> +SRCREV_acs = "1b3a37214fe6809e07e471f79d1ef856461bc803"
> +SRCREV_libc = "61687168fe02ac4d933a36c9145fdd242ac424d1"
> +
> +EDK2_ARCH = "AARCH64"
> +EDK2_PLATFORM = "Shell"
> +EDK2_PLATFORM_DSC = "ShellPkg/ShellPkg.dsc"
> +EDK2_EXTRA_BUILD = "--module ShellPkg/Application/sbsa-acs/uefi_app/SbsaAvs.inf"
> +
> +PACKAGES_PATH .= ":${S}/edk2-libc"
> +
> +do_install() {
> +    install -d ${D}/firmware
> +    install ${B}/Build/${EDK2_PLATFORM}/${EDK2_BUILD_MODE}_${EDK_COMPILER}/*/Sbsa.efi ${D}/firmware/
> +}
> -- 
> 2.25.1
> 

> 
> 
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [meta-arm] [PATCH] arm/sbsa-acs: add SBSA Architecture Compliance Suite
  2021-04-02 15:26 ` [meta-arm] " Jon Mason
@ 2021-04-02 16:02   ` Ross Burton
  0 siblings, 0 replies; 3+ messages in thread
From: Ross Burton @ 2021-04-02 16:02 UTC (permalink / raw)
  To: Jon Mason; +Cc: meta-arm

On Fri, 2 Apr 2021 at 16:26, Jon Mason <jdmason@kudzu.us> wrote:
> Applied to master with slight fix for reference to recently updated
> (by you) EDK recipe.

Whoops. Thanks!

Ross

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-02 16:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-01  9:29 [PATCH] arm/sbsa-acs: add SBSA Architecture Compliance Suite Ross Burton
2021-04-02 15:26 ` [meta-arm] " Jon Mason
2021-04-02 16:02   ` Ross Burton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).