1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00

main/efivar: simplify and enable on s390x

Ref https://github.com/rhboot/efivar/pull/198
This commit is contained in:
Sertonix 2025-05-11 18:23:41 +02:00 committed by Patrycja Rosa
parent ed2e7ee648
commit 8bd8b7aa9c
2 changed files with 3 additions and 28 deletions

View file

@ -5,13 +5,11 @@ pkgver=39
pkgrel=0 pkgrel=0
pkgdesc="Tools and library to manipulate EFI variables" pkgdesc="Tools and library to manipulate EFI variables"
url="https://github.com/rhboot/efivar" url="https://github.com/rhboot/efivar"
arch="all !s390x" arch="all"
license="LGPL-2.1-only" license="LGPL-2.1-only"
makedepends="popt-dev linux-headers mandoc" makedepends="popt-dev linux-headers mandoc"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/rhboot/efivar/archive/refs/tags/$pkgver.tar.gz source="$pkgname-$pkgver.tar.gz::https://github.com/rhboot/efivar/archive/refs/tags/$pkgver.tar.gz"
ppc64le-compat.patch
"
prepare() { prepare() {
default_prepare default_prepare
@ -19,7 +17,7 @@ prepare() {
} }
build() { build() {
libdir="/usr/lib" make libdir="/usr/lib" make HOST_MARCH=
} }
package() { package() {
@ -33,5 +31,4 @@ check() {
sha512sums=" sha512sums="
04493c30efbfc2773abac9a3dd93aa13403c05e29e3bfc72877d2054930811fae99119aadcb1729b6ca85abf5a24db786ea0c27c16d5458ef1b19e74696f5ff7 efivar-39.tar.gz 04493c30efbfc2773abac9a3dd93aa13403c05e29e3bfc72877d2054930811fae99119aadcb1729b6ca85abf5a24db786ea0c27c16d5458ef1b19e74696f5ff7 efivar-39.tar.gz
6a1210b51c647fe6b24d05e1e39518531c3ec2cdd781f0627ec878ec11515949c38021c27e8f8b0138e53e9aafb5a4b266b7b8588d5bcdfd57f45d6316d4ccb0 ppc64le-compat.patch
" "

View file

@ -1,22 +0,0 @@
diff --git a/src/include/defaults.mk b/src/include/defaults.mk
index 4da0cde..ccfadf2 100644
--- a/src/include/defaults.mk
+++ b/src/include/defaults.mk
@@ -73,6 +73,7 @@ override SOFLAGS = $(_SOFLAGS) \
HOST_ARCH=$(shell uname -m)
ifneq ($(HOST_ARCH),ia64)
+ifneq ($(HOST_ARCH),ppc64le)
ifneq ($(HOST_ARCH),riscv64)
HOST_MARCH=-march=native
else
@@ -81,6 +82,9 @@ endif
else
HOST_MARCH=
endif
+else
+ HOST_MARCH=
+endif
HOST_CPPFLAGS ?= $(CPPFLAGS)
override _HOST_CPPFLAGS := $(HOST_CPPFLAGS)
override HOST_CPPFLAGS = $(_HOST_CPPFLAGS) \