Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package : edk2-shell-202005
@ 2020-07-09 10:19 pandom79
  2020-07-09 11:12 ` pandom79
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pandom79 @ 2020-07-09 10:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 321 bytes --]

There is a new pull request by pandom79 against master on the void-packages repository

https://github.com/pandom79/void-packages edk2-shell
https://github.com/void-linux/void-packages/pull/23493

New package : edk2-shell-202005


A patch file from https://github.com/void-linux/void-packages/pull/23493.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-edk2-shell-23493.patch --]
[-- Type: text/x-diff, Size: 2669 bytes --]

From 9b10807538663025bfae50acf5d728e849214535 Mon Sep 17 00:00:00 2001
From: Domenico Panella <pandom79@gmail.com>
Date: Thu, 9 Jul 2020 12:02:28 +0200
Subject: [PATCH] New package : edk2-shell-202005

---
 srcpkgs/edk2-shell/template | 75 +++++++++++++++++++++++++++++++++++++
 1 file changed, 75 insertions(+)
 create mode 100644 srcpkgs/edk2-shell/template

diff --git a/srcpkgs/edk2-shell/template b/srcpkgs/edk2-shell/template
new file mode 100644
index 00000000000..ecd85710a6d
--- /dev/null
+++ b/srcpkgs/edk2-shell/template
@@ -0,0 +1,75 @@
+# Template file for 'edk2-shell'
+_brotli_ver=1.0.7
+pkgname=edk2-shell
+version=202005
+revision=1
+wrksrc=edk2-edk2-stable202005
+hostmakedepends="nasm"
+makedepends="libuuid-devel python3"
+short_desc="EDK2 UEFI Shell"
+maintainer="Domenico Panella <pandom79@gmail.com>"
+license="BSD-2-Clause-Patent"
+homepage="https://github.com/tianocore/edk2"
+distfiles=" https://github.com/tianocore/edk2/archive/edk2-stable${version}.tar.gz
+			https://github.com/google/brotli/archive/v${_brotli_ver}.tar.gz"
+checksum="373c3eff3497316a48fcf4be8dcee227431cbce86dcd80a004950e992f0297e2
+		  4c61bfb0faca87219ea587326c467b95acb25555b53d1a421ffa3c8a9296ee2c"
+_arch_list=('IA32' 'X64')
+_build_type='RELEASE'
+_build_plugin='GCC5'
+
+
+pre_build() {
+
+	rm -rfv BaseTools/Source/C/BrotliCompress/brotli MdeModulePkg/Library/BrotliCustomDecompressLib/brotli
+	ln -sfv "${XBPS_BUILDDIR}/brotli-${_brotli_ver}" ${wrksrc}/BaseTools/Source/C/BrotliCompress/brotli
+	ln -sfv "${XBPS_BUILDDIR}/brotli-${_brotli_ver}" ${wrksrc}/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli
+
+}
+
+do_build() {
+
+	make -C BaseTools
+	. edksetup.sh
+
+	local _arch
+
+	for _arch in ${_arch_list[@]}; do
+
+		# shell
+		echo "Building shell (${_arch})."
+		BaseTools/BinWrappers/PosixLike/build -p ShellPkg/ShellPkg.dsc \
+											-a "${_arch}" \
+											-b "${_build_type}" \
+											-n "$(nproc)" \
+											-t "${_build_plugin}"
+
+	done
+
+}
+
+do_install() {
+
+	# minimal UEFI shell, as defined in ShellPkg/Application/Shell/ShellPkg.inf
+	local _min='7C04A583-9E3E-4f1c-AD65-E05268D0B4D1'
+	# full UEFI shell, as defined in ShellPkg/ShellPkg.dsc
+	local _full='EA4BB293-2D7F-4456-A681-1F22F42CD0BC'
+
+	local _arch
+
+	for _arch in ${_arch_list[@]}; do
+
+		vinstall "Build/Shell/${_build_type}_${_build_plugin}/${_arch}/Shell_${_min}.efi" 644 \
+			"usr/share/${pkgname}/${_arch,,}/Shell.efi"
+
+		vinstall "Build/Shell/${_build_type}_${_build_plugin}/${_arch}/Shell_${_full}.efi" 644 \
+			"usr/share/${pkgname}/${_arch,,}/Shell_Full.efi"
+
+	done
+
+	vlicense License.txt
+
+	vdoc ReadMe.rst
+	vdoc Maintainers.txt
+
+}

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

* Re: New package : edk2-shell-202005
  2020-07-09 10:19 [PR PATCH] New package : edk2-shell-202005 pandom79
@ 2020-07-09 11:12 ` pandom79
  2020-07-09 15:20 ` [PR REVIEW] " sgn
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pandom79 @ 2020-07-09 11:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 379 bytes --]

New comment by pandom79 on void-packages repository

https://github.com/void-linux/void-packages/pull/23493#issuecomment-656065653

Comment:
Hi, 
I'm porting this package from [here](https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/edk2).
In the pkgbuild as architecture there is "any" but inside it is built with ia32 and x64.
How to proceed?


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

* Re: [PR REVIEW] New package : edk2-shell-202005
  2020-07-09 10:19 [PR PATCH] New package : edk2-shell-202005 pandom79
  2020-07-09 11:12 ` pandom79
@ 2020-07-09 15:20 ` sgn
  2020-07-09 16:48 ` pandom79
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: sgn @ 2020-07-09 15:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 194 bytes --]

New review comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/23493#discussion_r452287181

Comment:
We ships `brotli`. Does it work with system brotli?

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

* Re: [PR REVIEW] New package : edk2-shell-202005
  2020-07-09 10:19 [PR PATCH] New package : edk2-shell-202005 pandom79
  2020-07-09 11:12 ` pandom79
  2020-07-09 15:20 ` [PR REVIEW] " sgn
@ 2020-07-09 16:48 ` pandom79
  2020-07-09 23:52 ` sgn
  2020-07-09 23:52 ` [PR PATCH] [Closed]: " sgn
  4 siblings, 0 replies; 6+ messages in thread
From: pandom79 @ 2020-07-09 16:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

New review comment by pandom79 on void-packages repository

https://github.com/void-linux/void-packages/pull/23493#discussion_r452354663

Comment:
If you see the PKGBUILD, two packages are created (edk2-shell and edk2-ovmf). How do I merge into voidlinux? edk2-shell is not a subpackage of edk2-ovmf.
Another question: I have not seen that a pull request [17225](https://github.com/void-linux/void-packages/pull/17225) already exists that deals with this functionality.
What do we do? it looks old ......

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

* Re: New package : edk2-shell-202005
  2020-07-09 10:19 [PR PATCH] New package : edk2-shell-202005 pandom79
                   ` (2 preceding siblings ...)
  2020-07-09 16:48 ` pandom79
@ 2020-07-09 23:52 ` sgn
  2020-07-09 23:52 ` [PR PATCH] [Closed]: " sgn
  4 siblings, 0 replies; 6+ messages in thread
From: sgn @ 2020-07-09 23:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 195 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/23493#issuecomment-656405513

Comment:
I'm in favour of that one. Closing as duplicate of #17225 

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

* Re: [PR PATCH] [Closed]: New package : edk2-shell-202005
  2020-07-09 10:19 [PR PATCH] New package : edk2-shell-202005 pandom79
                   ` (3 preceding siblings ...)
  2020-07-09 23:52 ` sgn
@ 2020-07-09 23:52 ` sgn
  4 siblings, 0 replies; 6+ messages in thread
From: sgn @ 2020-07-09 23:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 165 bytes --]

There's a closed pull request on the void-packages repository

New package : edk2-shell-202005
https://github.com/void-linux/void-packages/pull/23493

Description:


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

end of thread, other threads:[~2020-07-09 23:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-09 10:19 [PR PATCH] New package : edk2-shell-202005 pandom79
2020-07-09 11:12 ` pandom79
2020-07-09 15:20 ` [PR REVIEW] " sgn
2020-07-09 16:48 ` pandom79
2020-07-09 23:52 ` sgn
2020-07-09 23:52 ` [PR PATCH] [Closed]: " sgn

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).