gummiboot update

This commit is contained in:
microcai 2014-07-06 22:52:05 +08:00
parent ed104169cd
commit a2076c10d8

View File

@ -7,17 +7,18 @@ EAPI=5
DESCRIPTION="Simple UEFI Boot Manager" DESCRIPTION="Simple UEFI Boot Manager"
HOMEPAGE="http://freedesktop.org/wiki/Software/gummiboot" HOMEPAGE="http://freedesktop.org/wiki/Software/gummiboot"
EGIT_REPO_URI="git://anongit.freedesktop.org/gummiboot" EGIT_REPO_URI="git://anongit.freedesktop.org/gummiboot"
inherit toolchain-funcs autotools git-2 inherit toolchain-funcs autotools
#git-r3
SRC_URI="http://cgit.freedesktop.org/gummiboot/snapshot/${PN}-${PV}.tar.gz"
LICENSE="LGPL" LICENSE="LGPL"
SLOT="0" SLOT="0"
KEYWORDS="~amd64" KEYWORDS="~amd64"
IUSE="" IUSE=""
RDEPEND=">=sys-boot/gnu-efi-3.0u"
RDEPEND=">=sys-boot/gnu-efi-3.0s" DEPEND=">=sys-boot/gnu-efi-3.0u"
DEPEND=">=sys-boot/gnu-efi-3.0s"
pkg_setup(){ pkg_setup(){
local iarch local iarch
@ -27,22 +28,12 @@ pkg_setup(){
amd64) iarch=x86_64 ;; amd64) iarch=x86_64 ;;
*) die "unknown architecture: $ARCH" ;; *) die "unknown architecture: $ARCH" ;;
esac esac
} }
src_prepare(){ src_prepare(){
eautoreconf eautoreconf
} }
src_compile(){
make || \
ld -T /usr/lib64/elf_x86_64_efi.lds -shared -Bsymbolic \
-nostdlib -znocombreloc -L /usr/lib64 /usr/lib64/crt0-efi-x86_64.o \
./src/efi/gummiboot.o -o src/efi/gummiboot.so -lefi -lgnuefi \
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/libgcc.a
MAKEOPTS=-j1 emake -j1
}
pkg_postinst(){ pkg_postinst(){
einfo "To use ${PN}, excute" einfo "To use ${PN}, excute"
einfo "gummiboot --path \"path to ESP(Efi system partition)\" install " einfo "gummiboot --path \"path to ESP(Efi system partition)\" install "