mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-29 17:41:05 +02:00
sys-firmware/sgabios: Sync with Gentoo
It's from Gentoo commit 9f513abc819807681cf5f7eb7a673fb5a40741cf.
This commit is contained in:
parent
b757f51710
commit
c5cdc2c6c7
@ -1,4 +1,2 @@
|
||||
DIST sgabios-0.1_pre10-bin.tar.xz 2652 BLAKE2B 6dff0152f8553c245796badfd291e0e79f2a6a935a9908d9825dbac760746c05265b7f12a29a2d1fa1b95d16291ca5723fbf2f53b5bb04ff416e64b9c66b0c7d SHA512 6dd43858e91bee57bc0bc6d721eb26abb30bbe8b9c30733b39f3612cdf0dddd9ad8876518a4457a68a48d8a4b911225635c0e8eef1a7e78cfe65c8fcf0af2bab
|
||||
DIST sgabios-0.1_pre10.tar.gz 31086 BLAKE2B f9577d0009d90c46aa5963e6dea50be4b7ec4b5c597194b33256748adbc4d60b3ac50646ce80befbd6d810ba80e93048fd6234b4d320d15f3506087435ec346c SHA512 cf12a8b8579658c99a3ad8c325637dba1569d364fc5440caf33c85a4f0403d83cf755df61d068151191c75588d568da629329a93d731f49b0b9131c983141fe6
|
||||
DIST sgabios-0.1_pre8-bins.tar.xz 2704 BLAKE2B 8efcf613a4857467cc3cfbc3f6402bca091892f0b2137ff65caf2b444610c86c1db0e61505bfe48ed8d6ccc9e8928190c2a38693aeddd523e27d22a29e777044 SHA512 46fc02200b3fa2e45c954a2b6e4cd40f10d6969fd05ef4d441402c7390b4e83390250972ef0ea891635400cad22a4d8fd2b66b56afa91d03e1e0b99132e09c0d
|
||||
DIST sgabios-0.1_pre8.tar.xz 27200 BLAKE2B 8ea535f2fcc8f7105a278202648e06722e7463e66ff3ccf824cd3a672a7908e7223f27678ebd4ca73eb19abaff75e082ea7b9bc222332436f31a8840443d7b44 SHA512 68e2a894eb5b99cda2b0e96ade891e24397ac962a777a97dbb526f4570e5734d36a88fde1ef64ed7a887cd8bfc500c91c48849d2c26aca6ce7e36dd80aaf361e
|
||||
|
@ -1,23 +0,0 @@
|
||||
https://bugs.gentoo.org/552280
|
||||
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -20,6 +20,9 @@
|
||||
BUILD_USER = \"$(shell whoami)\"
|
||||
|
||||
CFLAGS := -Wall -Os -m32 -nostdlib
|
||||
+BUILD_CFLAGS := -Wall -O2
|
||||
+BUILD_CC ?= $(CC)
|
||||
+BUILD_LD ?= $(BUILD_CC)
|
||||
|
||||
ASFLAGS := $(CFLAGS)
|
||||
ASFLAGS += -DBUILD_DATE="$(BUILD_DATE)"
|
||||
@@ -55,7 +56,7 @@
|
||||
$(LD) $(LDFLAGS) $(OBJS) -o $@
|
||||
|
||||
csum8: csum8.c
|
||||
- $(CC) -Wall -O2 -o $@ $<
|
||||
+ $(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) -o $@ $<
|
||||
|
||||
sgabios.o: buildinfo
|
||||
|
@ -1,12 +0,0 @@
|
||||
diff -u sgabios-0.1_pre8/Makefile sgabios-0.1_pre8-fix//Makefile
|
||||
--- sgabios-0.1_pre8/Makefile 2012-07-21 17:16:41.903363117 -0500
|
||||
+++ sgabios-0.1_pre8-fix//Makefile 2012-07-23 11:11:08.438162997 -0500
|
||||
@@ -71,8 +71,4 @@
|
||||
|
||||
ifeq (.depend, $(wildcard .depend))
|
||||
include .depend
|
||||
-else
|
||||
-# if no .depend file existed, add a make clean to the end of building .depend
|
||||
-.depend::
|
||||
- $(MAKE) clean
|
||||
endif
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
@ -16,7 +16,7 @@ S="${WORKDIR}/sgabios-a85446a"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 ~sparc x86"
|
||||
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 ~riscv ~s390 ~sparc x86"
|
||||
IUSE="+binary"
|
||||
REQUIRED_USE="!amd64? ( !x86? ( binary ) )"
|
||||
|
||||
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="serial graphics adapter bios option rom for x86"
|
||||
HOMEPAGE="https://code.google.com/p/sgabios/"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.xz
|
||||
!binary? ( https://dev.gentoo.org/~cardoe/distfiles/${P}.tar.xz )
|
||||
binary? ( https://dev.gentoo.org/~cardoe/distfiles/${P}-bins.tar.xz )"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 ~sparc x86"
|
||||
IUSE="+binary"
|
||||
|
||||
REQUIRED_USE="!amd64? ( !x86? ( binary ) )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-makefile.patch
|
||||
"${FILESDIR}"/${P}-build-cc.patch #552280
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
if use binary; then
|
||||
eapply_user
|
||||
return
|
||||
fi
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use binary && return
|
||||
|
||||
tc-ld-disable-gold
|
||||
tc-export_build_env BUILD_CC
|
||||
emake \
|
||||
BUILD_CC="${BUILD_CC}" \
|
||||
BUILD_CFLAGS="${BUILD_CFLAGS}" \
|
||||
BUILD_LDFLAGS="${BUILD_LDFLAGS}" \
|
||||
BUILD_CPPFLAGS="${BUILD_CPPFLAGS}" \
|
||||
CC="$(tc-getCC)" \
|
||||
LD="$(tc-getLD)" \
|
||||
AR="$(tc-getAR)" \
|
||||
OBJCOPY="$(tc-getOBJCOPY)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/sgabios
|
||||
|
||||
if use binary ; then
|
||||
doins bins/sgabios.bin
|
||||
else
|
||||
doins sgabios.bin
|
||||
fi
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user