diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2017-05-24 14:47:45 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2017-05-24 14:54:56 +0200 |
commit | 0c7cb03a390fda7e4132169cd40fddf3a97b6df0 (patch) | |
tree | b0d0e465926d99e6101607239a9b2856682a0bc9 /sys-apps/fwupdate | |
parent | dev-db/mariadb: Version bump for 10.0.31 (diff) | |
download | gentoo-0c7cb03a390fda7e4132169cd40fddf3a97b6df0.tar.gz gentoo-0c7cb03a390fda7e4132169cd40fddf3a97b6df0.tar.bz2 gentoo-0c7cb03a390fda7e4132169cd40fddf3a97b6df0.zip |
sys-apps/fwupdate: Initial commit.
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'sys-apps/fwupdate')
-rw-r--r-- | sys-apps/fwupdate/Manifest | 2 | ||||
-rw-r--r-- | sys-apps/fwupdate/files/fwupdate-9-objcopy_detection.patch | 45 | ||||
-rw-r--r-- | sys-apps/fwupdate/fwupdate-8.ebuild | 40 | ||||
-rw-r--r-- | sys-apps/fwupdate/fwupdate-9.ebuild | 51 | ||||
-rw-r--r-- | sys-apps/fwupdate/metadata.xml | 11 |
5 files changed, 149 insertions, 0 deletions
diff --git a/sys-apps/fwupdate/Manifest b/sys-apps/fwupdate/Manifest new file mode 100644 index 000000000000..76c4f1635a27 --- /dev/null +++ b/sys-apps/fwupdate/Manifest @@ -0,0 +1,2 @@ +DIST fwupdate-8.tar.gz 41062 SHA256 3e4dbcb97a2d549c4f7e735f582192594acfe50b0efeaf3bcb500cf45ad5082c SHA512 3b9b2693d7d792f0a6c7107325612cba35c891259d870152ca9ebcbd397edc307601e414f6f0fefbcb1aff422badac651ce00867c4dba38dac347ff75e1267b7 WHIRLPOOL a71b3d054237f70916727735bdc535bb8cdc8b408f7a25e8df185bad5b0fe54a887dffb1555f9ec67e5c57264ddade3946ea27933b0a2ad824b31f4ce772d9ed +DIST fwupdate-9.tar.gz 41698 SHA256 032ffee82300dc4f6ada1b1516c82354969e20caa891e796d03b2283165d1755 SHA512 bcb7783944aa007450a28f71cb4e3c8b06220b3ad04dd90a9505273224ba192369fb63ac0d72bd1efc06c78a5f6f38f2eea2c4affe915eff5f2b7c04db0847c8 WHIRLPOOL 951cca34064ef47eebdfe10d79affee11aca8b645be5188eac1dee6db47596843396e6bf2adf340aefee656c22d5a614daccea34fbbe6bfd6cde7b3a0d56d52d diff --git a/sys-apps/fwupdate/files/fwupdate-9-objcopy_detection.patch b/sys-apps/fwupdate/files/fwupdate-9-objcopy_detection.patch new file mode 100644 index 000000000000..d41462397ff2 --- /dev/null +++ b/sys-apps/fwupdate/files/fwupdate-9-objcopy_detection.patch @@ -0,0 +1,45 @@ +From affc219a5bac93cb6e774879c874c203f755ba11 Mon Sep 17 00:00:00 2001 +From: Raymund Will <rw@suse.com> +Date: Mon, 13 Mar 2017 12:57:07 +0100 +Subject: [PATCH] Fix regression in "objcopy version check" (AKA `expr: syntax + error`) + +While commit 8418fee4 may have fixed the check for "some distributions" +it broke the same check for others, like + +`GNU objcopy (WinAVR 20090313) 2.19` +`GNU objcopy (AVR_8_bit_GNU_Toolchain_3.4.3_1072) 2.23.2` +`GNU objcopy (Codescape GNU Tools 2016.05-03 for MIPS MTI Bare Metal) 2.24.90` +`GNU objcopy (GNU Binutils; openSUSE Leap 42.2) 2.26.1` +`GNU objcopy (GNU Binutils; SUSE Linux Enterprise 12) 2.26.1` + +(some more, some less relevant... ;) + +This version is meant to cover them all (or at least be easily extensible). + +Signed-off-by: Raymund Will <rw@suse.com> +--- + efi/Makefile | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +diff --git a/efi/Makefile b/efi/Makefile +index 920c096..faf8ee2 100644 +--- a/efi/Makefile ++++ b/efi/Makefile +@@ -15,7 +15,15 @@ CCLDFLAGS ?= -nostdlib -Wl,--warn-common \ + -Wl,-shared -Wl,-Bsymbolic -L$(LIBDIR) -L$(GNUEFIDIR) \ + -Wl,--build-id=sha1 -Wl,--hash-style=sysv \ + $(GNUEFIDIR)/crt0-efi-$(ARCH).o +-OBJCOPY_GTE224 = $(shell expr `$(OBJCOPY) --version |grep ^"GNU objcopy" | sed 's/^[^0-9]*//g' | cut -f1-2 -d.` \>= 2.24) ++ ++define objcopy_version = ++ $(OBJCOPY) --version | ++ sed -e '/^GNU objcopy/! d; ++ : loop1; s/([^)(]*)//g; t loop1; ++ : loop2; s/\[[^][]*\]//g; t loop2; ++ s/.* \([0-9][0-9]*\.[0-9][0-9]*\).*/\1/;' ++endef ++OBJCOPY_GTE224 := $(shell expr `$(objcopy_version)` \>= 2.24) + + FWUP = fwupdate + diff --git a/sys-apps/fwupdate/fwupdate-8.ebuild b/sys-apps/fwupdate/fwupdate-8.ebuild new file mode 100644 index 000000000000..bd9f9fc1fd01 --- /dev/null +++ b/sys-apps/fwupdate/fwupdate-8.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit mount-boot + +DESCRIPTION="Tools for using the ESRT and UpdateCapsule() to apply firmware updates" +HOMEPAGE="https://github.com/rhinstaller/fwupdate" +SRC_URI="https://github.com/rhinstaller/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-libs/popt + sys-libs/efivar + >=sys-libs/libsmbios-2.3.2 +" +DEPEND=" + ${RDEPEND} + sys-boot/gnu-efi +" + +do_make() { + emake \ + EFIDIR="gentoo" \ + GNUEFIDIR="/usr/$(get_libdir)" \ + "${@}" +} + +src_compile() { + do_make +} + +src_install() { + do_make DESTDIR="${D}" install +} diff --git a/sys-apps/fwupdate/fwupdate-9.ebuild b/sys-apps/fwupdate/fwupdate-9.ebuild new file mode 100644 index 000000000000..0a68fa746ce7 --- /dev/null +++ b/sys-apps/fwupdate/fwupdate-9.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit mount-boot + +DESCRIPTION="Tools for using the ESRT and UpdateCapsule() to apply firmware updates" +HOMEPAGE="https://github.com/rhinstaller/fwupdate" +SRC_URI="https://github.com/rhinstaller/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-libs/popt + sys-libs/efivar + >=sys-libs/libsmbios-2.3.2 +" +DEPEND=" + ${RDEPEND} + sys-boot/gnu-efi +" + +PATCHES=( + "${FILESDIR}/${P}-objcopy_detection.patch" +) + +do_make() { + emake \ + EFIDIR="gentoo" \ + GNUEFIDIR="/usr/$(get_libdir)" \ + "${@}" +} + +src_prepare() { + default + + # Remove -Werror + sed 's@ -Werror\([[:space:]]\|\n\)@\1@' -i linux/Makefile || die +} + +src_compile() { + do_make +} + +src_install() { + do_make DESTDIR="${D}" install +} diff --git a/sys-apps/fwupdate/metadata.xml b/sys-apps/fwupdate/metadata.xml new file mode 100644 index 000000000000..ce6167e42309 --- /dev/null +++ b/sys-apps/fwupdate/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>polynomial-c@gentoo.org</email> + <name>Lars Wendler</name> + </maintainer> + <upstream> + <remote-id type="github">rhinstaller/fwupdate</remote-id> + </upstream> +</pkgmetadata> |