summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2022-07-01 10:35:44 -0500
committerBen Kohler <bkohler@gentoo.org>2022-07-01 10:36:15 -0500
commit8408b03ac54f257822ef6a180ec7dd7fe46167f3 (patch)
treec281ab8b214deabeaf485d3f86057e5dd5a98702 /sys-apps/memtest86+
parentmedia-gfx/fotoxx: add 22.20 (diff)
downloadgentoo-8408b03ac54f257822ef6a180ec7dd7fe46167f3.tar.gz
gentoo-8408b03ac54f257822ef6a180ec7dd7fe46167f3.tar.bz2
gentoo-8408b03ac54f257822ef6a180ec7dd7fe46167f3.zip
sys-apps/memtest86+: fix direct objcopy call, re-organize seds
Closes: https://bugs.gentoo.org/855167 Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'sys-apps/memtest86+')
-rw-r--r--sys-apps/memtest86+/memtest86+-6.00_beta2.ebuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys-apps/memtest86+/memtest86+-6.00_beta2.ebuild b/sys-apps/memtest86+/memtest86+-6.00_beta2.ebuild
index add994f6a7ec..9738d6afa80e 100644
--- a/sys-apps/memtest86+/memtest86+-6.00_beta2.ebuild
+++ b/sys-apps/memtest86+/memtest86+-6.00_beta2.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit mount-boot
+inherit mount-boot toolchain-funcs
MY_PV=${PV/_/-}
@@ -29,12 +29,17 @@ BDEPEND="
S=${WORKDIR}/memtest86plus-${MY_PV}
src_prepare() {
- sed -i -e "s#/sbin/mkdosfs#mkfs.vfat#" build{32,64}/Makefile || die
- sed -i -e "s/^AS = as/AS +=/" -e "/^CC/d" build{32,64}/Makefile || die
+ sed -i \
+ -e 's#/sbin/mkdosfs#mkfs.vfat#' \
+ -e 's/^AS = as/AS +=/' \
+ -e '/^CC/d' \
+ -e 's/objcopy/$(OBJCOPY)/' \
+ build{32,64}/Makefile || die
default
}
src_compile() {
+ tc-export OBJCOPY
pushd build32
use bios32 && emake memtest.bin
use efi32 && emake memtest.efi