summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kuhn <stefan.kuhn@foss-group.ch>2012-12-15 20:30:11 +0100
committerStefan Kuhn <stefan.kuhn@foss-group.ch>2012-12-15 20:30:11 +0100
commit40a1a4a609e21bf7087e41658b861fc735392942 (patch)
tree31f3d038219607959daa94c823b2f8806075ce4c
parentys-firmware/edk2*: replaced flag "kvm" by "qemu" (diff)
downloadwuodan-40a1a4a609e21bf7087e41658b861fc735392942.tar.gz
wuodan-40a1a4a609e21bf7087e41658b861fc735392942.tar.bz2
wuodan-40a1a4a609e21bf7087e41658b861fc735392942.zip
sys-firmware/edk2: moved to pentoo overlay
-rw-r--r--sys-firmware/edk2-bin/Manifest3
-rw-r--r--sys-firmware/edk2-bin/edk2-bin-9999-r11337.ebuild53
-rw-r--r--sys-firmware/edk2-bin/metadata.xml18
-rw-r--r--sys-firmware/edk2-efishell-bin/Manifest1
-rw-r--r--sys-firmware/edk2-efishell-bin/edk2-efishell-bin-9999.ebuild26
-rw-r--r--sys-firmware/edk2/Manifest2
-rw-r--r--sys-firmware/edk2/edk2-9999-r11337.ebuild190
-rw-r--r--sys-firmware/edk2/metadata.xml17
8 files changed, 0 insertions, 310 deletions
diff --git a/sys-firmware/edk2-bin/Manifest b/sys-firmware/edk2-bin/Manifest
deleted file mode 100644
index dc32627..0000000
--- a/sys-firmware/edk2-bin/Manifest
+++ /dev/null
@@ -1,3 +0,0 @@
-DIST edk2-bin-9999-r11337.tar.gz 750518 SHA256 053bdb2f0b43a4b9e010f0bbf148889d7440394633e5642f4814bc3f0750c11a SHA512 53734411459ebaf0615ca3a2460d288eb823aaec42159e524dd76bc52903d1d92d5e6d8003f5c6e13cd01f57da831d01224d6b4ce6553d57c5a9b9b3a60c9254 WHIRLPOOL f753baade39d5e5b91cd7baee6a30ed46e3f4a75b96b1c37fe7b45235a10f180b7c8a3c09bee161b999c74ef84250a3907ff6d108d2cf5afab1da519422f84eb
-EBUILD edk2-bin-9999-r11337.ebuild 1423 SHA256 af01388e31e5c465c84b587786a324931a988f0ee8110ce902df98bc5c216a36 SHA512 225bbe2aed4cdbbd17150179323a06ed599678290bc02a30d747e8adb138f9ad55a436d9a0fcc6bac8450e023be16f4dc11b5ebb2718fe98d53ec9ba1af065ef WHIRLPOOL c0551d114c54915de7f344e9e7e4c4688e04d2e89caa571d077268bef36e3111c25a1aff5c2e20f6987a0e6a308ff68fe61bd253cfb815a9ff3cfabb8b73d469
-MISC metadata.xml 672 SHA256 d87feea511e3f877972e2064c6715cb96706e3fdc2ff7389a07ce2497cb96a20 SHA512 dbf559ed1ce54eccbf5200e80fddc810f0bcc2609c791c9d9cd5d7adde1a0d807019f1c74ec20434d3ec193501a7d9ed8535a17f20d2e3a201ae841dcd29e7ad WHIRLPOOL bcc228c1b726913712d0b6402cc0b20f31f1381c376fc2ef456350781236e926bd36c90b18efd88ee593cf4ec0664c12bd1bf4fe5793ff136a293613031862d1
diff --git a/sys-firmware/edk2-bin/edk2-bin-9999-r11337.ebuild b/sys-firmware/edk2-bin/edk2-bin-9999-r11337.ebuild
deleted file mode 100644
index bd36458..0000000
--- a/sys-firmware/edk2-bin/edk2-bin-9999-r11337.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-
-DESCRIPTION="Binaries for the EDK2 plattform (UEFI tools)"
-HOMEPAGE="http://sourceforge.net/apps/mediawiki/tianocore"
-SRC_URI="http://pentoo-uefi.googlecode.com/files/${PF}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="hello-world qemu shell"
-REQUIRED_USE="|| ( hello-world qemu shell )"
-
-DEPEND=""
-RDEPEND="qemu? ( >=app-emulation/qemu-0.9.1 )"
-
-# S="$(dirname ${S})"
-S="${WORKDIR}/${PF}"
-
-src_install(){
- if use hello-world; then
- insinto "/usr/share/${PN}/hello-world"
- doins "HelloWorld.efi"
- doins "startup.nsh"
- fi
-
- if use qemu; then
- insinto "/usr/share/${PN}/qemu"
- newins OVMF.fd uefibios.bin
- newins CirrusLogic5446.rom vgabios-cirrus.bin
- dosym "../${PN}/qemu/uefibios.bin" /usr/share/qemu/uefibios-bin.bin
- fi
-
- if use shell; then
- insinto "/usr/share/${PN}/shell"
- newins Shell.efi Shellx64.efi
- fi
-}
-
-pkg_postinst() {
- use qemu && einfo "To use uefi with qemu, start it with '-bios uefibios.bin'"
- if use hello-world; then
- einfo "A sample HelloWorld.efi was installed in /usr/share/${PN}/hello-world."
- if use qemu; then
- einfo "To test the uefi support in qemu, simply run:"
- einfo " qemu-kvm -hda fat:/usr/share/${PN}/hello-world -bios uefibios-bin.bin"
- einfo "and await the message 'UEFI Hello World!' before the shell prompt appears."
- fi
- fi
-}
diff --git a/sys-firmware/edk2-bin/metadata.xml b/sys-firmware/edk2-bin/metadata.xml
deleted file mode 100644
index 34cfb9b..0000000
--- a/sys-firmware/edk2-bin/metadata.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<maintainer>
-<email>maintainer-wanted@gentoo.org</email>
-</maintainer>
-<longdescription lang="en">
-These are sample binaries - use at own risk!
-EDK II is a modern, feature-rich, cross-platform firmware development
-environment for the UEFI and PI specifications.
-</longdescription>
-<use>
-<flag name="hello-world">Creates a HelloWorld.efi, ready to use with
-<pkg>app-emulation/qemu</pkg>.</flag>
-<flag name="qemu">Creates the uefi-bios for <pkg>app-emulation/qemu</pkg>.</flag>
-<flag name="shell">Creates the uefi-shell.</flag>
-</use>
-</pkgmetadata>
diff --git a/sys-firmware/edk2-efishell-bin/Manifest b/sys-firmware/edk2-efishell-bin/Manifest
deleted file mode 100644
index e4abaea..0000000
--- a/sys-firmware/edk2-efishell-bin/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-EBUILD edk2-efishell-bin-9999.ebuild 685 SHA256 59abf4ec24494428a69a4a1b1b5765b2ea33562df0afa5ff10ed7abb97a744c8 SHA512 5c29adb08683abd8c45101c186bba515e330665f696f25f35157f53ac142d14f763b84d64de393979da54f9a06800ce2dc53c6cf4596c6f773943ed77989ea6a WHIRLPOOL dbc082c5301738228787da60b1e14e7451be21288d566953edfeb19566d57bddd89b533000493ce7af15675476ccf5879e4700cca4b0ddb32cd409e46f825ff2
diff --git a/sys-firmware/edk2-efishell-bin/edk2-efishell-bin-9999.ebuild b/sys-firmware/edk2-efishell-bin/edk2-efishell-bin-9999.ebuild
deleted file mode 100644
index 55afd32..0000000
--- a/sys-firmware/edk2-efishell-bin/edk2-efishell-bin-9999.ebuild
+++ /dev/null
@@ -1,26 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-
-inherit subversion
-
-DESCRIPTION="EFI-Shell - provides native UDK implemenations of a UEFI Shell 2.0."
-HOMEPAGE="http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=UEFI_Shell"
-SRC_URI=""
-# ESVN_REPO_URI="http://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2/ShellBinPkg"
-ESVN_REPO_URI="http://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2/ShellBinPkg/UefiShell/X64"
-
-LICENSE="intel-ucode"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE=""
-
-DEPEND=""
-RDEPEND="${DEPEND}"
-
-src_install() {
- insinto "/usr/share/${PN}/shell"
- newins Shell.efi Shellx64.efi
-}
diff --git a/sys-firmware/edk2/Manifest b/sys-firmware/edk2/Manifest
deleted file mode 100644
index 1e3bdf9..0000000
--- a/sys-firmware/edk2/Manifest
+++ /dev/null
@@ -1,2 +0,0 @@
-EBUILD edk2-9999-r11337.ebuild 6367 SHA256 49fdeabb2b5f1625ba0bc08d8ab40f3613188a32d445afb93f4cb481a40a7ad9 SHA512 3f2c57ced4b2d24c51b47ab04f26d49199fa36647f165f6dac35322a38930fa7df362fdc26426a0732d02d1da1d4bac9eafa875af047a27b6a361a3f31fb2173 WHIRLPOOL ba87031baa9dcb072c8410cea8bc154f08961ca23490a063e18b9933117dd33ff6af9032bcc087cf8f27489c46f9794a1cd283e191c64e1bc8d193c964423358
-MISC metadata.xml 627 SHA256 8a345ed8ab4d2f3e7f53569d2c895bc7b01802c89e75261ff89a55bf410b12ca SHA512 86652e9b36e94196b7a50105b370877f17554a220e121a68533ce792aa6e72b7ae83b8bdb4252399d7f95c84dd42283422baf37292c369a57851bf4a5272d269 WHIRLPOOL dd6768485f5e3e4a02c017c99e10d7eb1a25efccb7a827bb016cf874942b85d8488b98b9504532a4cc8c9ce92c43e99156256d8f05c5e5ca17f47b53d3405066
diff --git a/sys-firmware/edk2/edk2-9999-r11337.ebuild b/sys-firmware/edk2/edk2-9999-r11337.ebuild
deleted file mode 100644
index cc4cdd4..0000000
--- a/sys-firmware/edk2/edk2-9999-r11337.ebuild
+++ /dev/null
@@ -1,190 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-
-PYTHON_DEPEND="2"
-PYTHON_USE_WITH="sqlite"
-inherit python subversion toolchain-funcs flag-o-matic
-
-DESCRIPTION="A modern, feature-rich, cross-platform firmware development env. for the UEFI and PI specifications"
-HOMEPAGE="http://sourceforge.net/apps/mediawiki/tianocore"
-SRC_URI=""
-REPO_REV="@11337"
-# REPO_REV="@13452"
-# REPO_REV="@13692"
-ESVN_REPO_URI="http://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="hello-world qemu shell"
-REQUIRED_USE="|| ( hello-world qemu shell )"
-
-DEPEND="
- app-arch/unzip
- sys-devel/binutils
- sys-libs/glibc
- >=dev-vcs/subversion-1.5
- qemu? (
- >=app-emulation/qemu-0.9.1
- sys-power/iasl
- )"
-RDEPEND="qemu? ( >=app-emulation/qemu-0.9.1 )"
-
-S="$(dirname ${S})"
-
-TAGNAME="GCC$(gcc-major-version)$(gcc-minor-version)"
-# TODO:
-# fix this:
-# In function ‘void* memset(void*, int, size_t)’,
-# inlined from ‘SVfrVarStorageNode::SVfrVarStorageNode(EFI_GUID*, CHAR8*, EFI_VARSTORE_ID, EFI_STRING_ID, UINT32, BOOLEAN)’ at VfrUtilityLib.cpp:1309:41:
-# /usr/include/bits/string3.h:85:70: warning: call to void* __builtin___memset_chk(void*, int, long unsigned int, long unsigned int) will always overflow destination buffer
-# In function ‘void* memset(void*, int, size_t)’,
-# inlined from ‘SVfrVarStorageNode::SVfrVarStorageNode(EFI_GUID*, CHAR8*, EFI_VARSTORE_ID, SVfrDataType*, BOOLEAN)’ at VfrUtilityLib.cpp:1336:41:
-# /usr/include/bits/string3.h:85:70: warning: call to void* __builtin___memset_chk(void*, int, long unsigned int, long unsigned int) will always overflow destination buffer
-
-pkg_setup() {
- python_set_active_version 2
-}
-
-src_unpack(){
- local repo_pkg="
- MdePkg
- MdeModulePkg
- "
- use qemu && repo_pkg+="
- OvmfPkg
- OptionRomPkg
- UefiCpuPkg
- IntelFrameworkModulePkg
- PcAtChipsetPkg
- FatBinPkg
- EdkShellBinPkg
- IntelFrameworkPkg
- "
- ( use qemu || use shell ) && repo_pkg+="
- ShellPkg
- "
- einfo "### Be patient! ###"
- einfo "Downloading individual folders is slow, but really decreases total download size."
- einfo "### Be patient! ###"
-
- mkdir Conf || die "Failed to 'mkdir Conf'"
- ESVN_OPTIONS="--depth files" subversion_fetch "${ESVN_REPO_URI}${REPO_REV}"
- # avoid downloading useless Bin (47MB) folder
- ESVN_OPTIONS="--depth immediates" subversion_fetch "${ESVN_REPO_URI}/BaseTools${REPO_REV}" BaseTools
- local dir
- for dir in `find BaseTools -mindepth 1 -maxdepth 1 -type d | grep -v 'Bin$'`; do
- subversion_fetch "${ESVN_REPO_URI}/${dir}${REPO_REV}" "${dir}"
- done
-
- for dir in ${repo_pkg}; do
- subversion_fetch "${ESVN_REPO_URI}/${dir}${REPO_REV}" "${dir}"
- done
-}
-
-src_prepare(){
- # errors occur with -O -O1 -O2 but not with -O3
- filter-flags -O*
- # TODO AS=gcc ...why I don't know
- # patch compiler flags
- sed -i -r \
- -e "s/^(CC = ).*$/\1`tc-getCC`/" \
- -e "s/^(CXX = ).*$/\1`tc-getCXX`/" \
- -e "s/^(AS = ).*$/\1`tc-getAS`/" \
- -e "s/^(AR = ).*$/\1`tc-getAR`/" \
- -e "s/^(LD = ).*$/\1`tc-getLD`/" \
- -e "s/ -Werror//" \
- -e "s/^(CFLAGS = )/\1`echo "${CFLAGS}"` /" \
- -e "s/^(LFLAGS = )/\1`echo "${LFLAGS}"` /" \
- BaseTools/Source/C/Makefiles/header.makefile || die "Failed to patch compiler flags"
- for file in dlg/makefile antlr/makefile support/genmk/makefile; do
- sed -i -r \
- -e "s/^(CC *= *).*$/\1`tc-getCC`/" \
- -e "s/^(CXX *= *).*$/\1`echo "${CFLAGS}"`/" \
- "BaseTools/Source/C/VfrCompile/Pccts/${file}" || die "Failed to patch compiler flags in ${file}"
- done
- # filter our -march, building for qemu guest!
- filter-flags -march*
- sed -i -r \
- -e "s/gcc[[:space:]]*$/`tc-getCC`/" \
- -e "s/as[[:space:]]*$/`tc-getAS`/" \
- -e "s/ar[[:space:]]*$/`tc-getAR`/" \
- -e "s/ld[[:space:]]*$/`tc-getLD`/" \
- -e "s/^(DEFINE GCC44_ALL_CC_FLAGS *=)(.*) -Werror /\1 `echo "${CFLAGS}"` \2 /" \
- BaseTools/Conf/tools_def.template || die "Failed to patch compiler flags"
-}
-
-src_compile(){
- # $ARCH is used, preserve old value
- # Gentoo uses 'amd64', the package needs 'X64'
- local oldARCH="${ARCH}"
- ARCH='X64'
-
- # build the BaseTools
- MAKEOPTS+="-j1" emake -C BaseTools
-
- export EDK_TOOLS_PATH="${S}"/BaseTools
- # this mainly appends to $PATH
- . edksetup.sh BaseTools
-
- # build using the generated cross-compiler
- # for a list of options, run 'build --help' or look at BaseTools/Source/Python/build/build.py MyOptionParser()
- # TODO: -n X should be number of CPU+1. See no effect of it so far
- if use hello-world; then
- build --arch "${ARCH}" --platform MdeModulePkg/MdeModulePkg.dsc --tagname "${TAGNAME}" \
- --module MdeModulePkg/Application/HelloWorld/HelloWorld.inf \
- --buildtarget RELEASE || die "Failed to build HelloWorld"
- # create startup.nsh for qemu testing
- echo "fs0:\HelloWorld.efi" > Build/MdeModule/RELEASE_GCC45/X64/startup.nsh || die "Failed to
- create startup.nsh"
- fi
-
- if use qemu; then
- build --arch "${ARCH}" --platform OvmfPkg/OvmfPkgX64.dsc --tagname "${TAGNAME}" \
- --buildtarget RELEASE || die "Failed to build UEFI-shell"
- fi
-
- if use shell; then
- build --arch "${ARCH}" --platform ShellPkg/ShellPkg.dsc --tagname "${TAGNAME}" \
- --module ShellPkg/Application/Shell/Shell.inf \
- --buildtarget RELEASE || die "Failed to build UEFI-shell"
- fi
-
- # reset $ARCH
- ARCH="${oldARCH}"
-}
-
-src_install(){
- if use hello-world; then
- insinto "/usr/share/${PN}/hello-world"
- doins "Build/MdeModule/RELEASE_${TAGNAME}/X64/HelloWorld.efi"
- doins "Build/MdeModule/RELEASE_${TAGNAME}/X64/startup.nsh"
- fi
-
- if use qemu; then
- insinto "/usr/share/${PN}/qemu"
- newins Build/OvmfX64/RELEASE_GCC45/FV/OVMF.fd uefibios.bin
- newins Build/OvmfX64/RELEASE_GCC45/FV/CirrusLogic5446.rom vgabios-cirrus.bin
- dosym "../${PN}/qemu/uefibios.bin" /usr/share/qemu/uefibios.bin
- fi
-
- if use shell; then
- insinto "/usr/share/${PN}/shell"
- newins Build/Shell/RELEASE_GCC45/X64/Shell.efi Shellx64.efi
- fi
-}
-
-pkg_postinst() {
- use qemu && einfo "To use uefi with qemu, start it with '-bios uefibios.bin'"
- if use hello-world; then
- einfo "A sample HelloWorld.efi was installed in /usr/share/${PN}/hello-world."
- if use qemu; then
- einfo "To test the uefi support in qemu, simply run:"
- einfo " qemu-kvm -hda fat:/usr/share/${PN}/hello-world -bios uefibios.bin"
- einfo "and await the message 'UEFI Hello World!' before the shell prompt appears."
- fi
- fi
-}
diff --git a/sys-firmware/edk2/metadata.xml b/sys-firmware/edk2/metadata.xml
deleted file mode 100644
index b6cea81..0000000
--- a/sys-firmware/edk2/metadata.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<maintainer>
-<email>maintainer-wanted@gentoo.org</email>
-</maintainer>
-<longdescription lang="en">
-EDK II is a modern, feature-rich, cross-platform firmware development
-environment for the UEFI and PI specifications.
-</longdescription>
-<use>
-<flag name="hello-world">Creates a HelloWorld.efi, ready to use with
-<pkg>app-emulation/qemu</pkg>.</flag>
-<flag name="qemu">Creates the uefi-bios for <pkg>app-emulation/qemu</pkg>.</flag>
-<flag name="shell">Creates the uefi-shell.</flag>
-</use>
-</pkgmetadata>