diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-boot/vboot-utils | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sys-boot/vboot-utils')
-rw-r--r-- | sys-boot/vboot-utils/Manifest | 2 | ||||
-rw-r--r-- | sys-boot/vboot-utils/files/vboot-utils-42_p20150219-cgpt-static.patch | 36 | ||||
-rw-r--r-- | sys-boot/vboot-utils/metadata.xml | 15 | ||||
-rw-r--r-- | sys-boot/vboot-utils/vboot-utils-1.0_p20130222.ebuild | 75 | ||||
-rw-r--r-- | sys-boot/vboot-utils/vboot-utils-42_p20150219.ebuild | 82 |
5 files changed, 210 insertions, 0 deletions
diff --git a/sys-boot/vboot-utils/Manifest b/sys-boot/vboot-utils/Manifest new file mode 100644 index 000000000000..56f89ed4a649 --- /dev/null +++ b/sys-boot/vboot-utils/Manifest @@ -0,0 +1,2 @@ +DIST vboot-utils-20130222gite6cf2c2-3.fc19.src.rpm 2170079 SHA256 f20235e5f708bcbe3b30cb684a5aa9fa3f60d1fdea454375db0e62bebabd0c41 SHA512 ccb5320f01d270ff30465e6ffc234d245220afdb9628f9b5f9e8abc7c91c5e58085b5e8eefe217e85faa18166576d945cad9f757d99927389473cb0a4337a05f WHIRLPOOL 9da1a4f503619c9754e4c0b1c2d52deb4c687e693ba521213e2406cba417f5b8ce5645285ed2e106c0d05f56bd325dc7f929692c5de2ff1be2bb7fe191f74c68 +DIST vboot-utils-42_p20150219.tar.xz 18578108 SHA256 058053fd48afeeb30b48c51eb932ee3f477b1e7fc429b56ed776262010f30226 SHA512 bf1b5579f80bfd3804d74f5fed5ca0f85ff3d66cc4efd1c5e744ab0de50309c7e5168fe9a751579e9fcc0cb7dda72fc98497b2e13437b357b0ad9bb063edd33a WHIRLPOOL 01e5ca949ef417930669783d02b03d103005c6daa395f46bb3eab96a8d7de06875e3017697ed42d6200ca8e649b6b21737c5fc773a25da6da7a61c268dceba90 diff --git a/sys-boot/vboot-utils/files/vboot-utils-42_p20150219-cgpt-static.patch b/sys-boot/vboot-utils/files/vboot-utils-42_p20150219-cgpt-static.patch new file mode 100644 index 000000000000..3f53fc7be769 --- /dev/null +++ b/sys-boot/vboot-utils/files/vboot-utils-42_p20150219-cgpt-static.patch @@ -0,0 +1,36 @@ +From 9d437e9122019568df7fa2d602f911e6a873d78b Mon Sep 17 00:00:00 2001 +From: Anatol Pomazau <anatol@google.com> +Date: Thu, 19 Feb 2015 05:11:51 -0800 +Subject: [PATCH] Remove duplicated linker flag + +We already set '-static' to LDFLAGS above no need to do it again here. + +TEST=build with 'make' and 'make STATIC=1'. Check that 'STATIC=1' adds '-static' linker flag. +BUG=None + +Change-Id: I83e23984753094af203432eb4570930085788398 +Reviewed-on: https://chromium-review.googlesource.com/251151 +Reviewed-by: Mike Frysinger <vapier@chromium.org> +Reviewed-by: Hung-Te Lin <hungte@chromium.org> +Reviewed-by: Anatol Pomazau <anatol@google.com> +Commit-Queue: Anatol Pomazau <anatol@google.com> +Tested-by: Anatol Pomazau <anatol@google.com> +--- + Makefile | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/Makefile b/Makefile +index dfa971c..c0c5f50 100644 +--- a/Makefile ++++ b/Makefile +@@ -960,7 +960,6 @@ ${CGPT_WRAPPER}: ${CGPT_WRAPPER_OBJS} ${UTILLIB} + .PHONY: cgpt + cgpt: ${CGPT} ${CGPT_WRAPPER} + +-${CGPT}: LDFLAGS += -static + ${CGPT}: LDLIBS += -luuid + + ${CGPT}: ${CGPT_OBJS} ${UTILLIB} +-- +2.3.1 + diff --git a/sys-boot/vboot-utils/metadata.xml b/sys-boot/vboot-utils/metadata.xml new file mode 100644 index 000000000000..29458b570571 --- /dev/null +++ b/sys-boot/vboot-utils/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <upstream> + <bugs-to>http://crbug.com</bugs-to> + <changelog>https://chromium.googlesource.com/chromiumos/platform/vboot_reference/+log/master</changelog> + <doc>https://chromium.googlesource.com/chromiumos/platform/vboot_reference/+/master/README</doc> + </upstream> + <maintainer> + <email>zmedico@gentoo.org</email> + </maintainer> + <maintainer> + <email>vapier@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/sys-boot/vboot-utils/vboot-utils-1.0_p20130222.ebuild b/sys-boot/vboot-utils/vboot-utils-1.0_p20130222.ebuild new file mode 100644 index 000000000000..1b05595346e9 --- /dev/null +++ b/sys-boot/vboot-utils/vboot-utils-1.0_p20130222.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils rpm toolchain-funcs + +KEYWORDS="~amd64 ~arm ~x86" +DESCRIPTION="Chrome OS verified boot tools" +HOMEPAGE="http://git.chromium.org/gitweb/?p=chromiumos/platform/vboot_reference.git" +EGIT_COMMIT="e6cf2c21a1cd6fc46b6adcaadc865e2f8bd4874e" +MY_VERSION="${PV##*_p}git${EGIT_COMMIT:0:7}" +MY_PV="${PN}-${MY_VERSION}" +SRC_URI="http://kojipkgs.fedoraproject.org/packages/${PN}/${MY_VERSION}/3.fc19/src/${MY_PV}-3.fc19.src.rpm" +LICENSE="BSD" +SLOT="0" +IUSE="" + +RDEPEND="app-arch/xz-utils:= + dev-libs/libyaml:= + dev-libs/openssl:0= + sys-apps/util-linux:=" + +DEPEND="app-crypt/trousers + ${RDEPEND}" + +S=${WORKDIR} + +src_unpack() { + rpm_unpack ${A} + unpack ./${MY_PV}.tar.xz + mv ./${MY_PV}/* ./ || die +} + +src_prepare() { + epatch *.patch + sed -e 's:-Werror ::g' -e 's:-nostdinc ::g' \ + -i Makefile || die +} + +src_compile() { + mkdir "${S}"/build-main || die + tc-export CC AR CXX PKG_CONFIG + emake \ + -j1 \ + V=1 \ + BUILD="${S}"/build-main \ + ARCH=$(tc-arch) \ + all + unset CC AR CXX PKG_CONFIG +} + +src_test() { + # ARCH and HOST_ARCH must be identical in order + # to avoid calling qemu. + local arch=$(tc-arch) + [[ ${arch} == amd64 ]] && arch=x86_64 + emake \ + V=1 \ + BUILD="${S}"/build-main \ + ARCH=${arch} \ + HOST_ARCH=${arch} \ + runtests +} + +src_install() { + emake \ + V=1 \ + BUILD="${S}"/build-main \ + DESTDIR="${ED}/usr/bin" \ + install + insinto /usr/share/vboot/devkeys + doins tests/devkeys/* + dodoc README +} diff --git a/sys-boot/vboot-utils/vboot-utils-42_p20150219.ebuild b/sys-boot/vboot-utils/vboot-utils-42_p20150219.ebuild new file mode 100644 index 000000000000..4f6f3f5c5b74 --- /dev/null +++ b/sys-boot/vboot-utils/vboot-utils-42_p20150219.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs + +# This is the latest commit in the latest branch. +GIT_SHA1="f44ebbe36b2c1603437edc57b534244e89bfcd9c" + +DESCRIPTION="Chrome OS verified boot tools" +HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform/vboot_reference/ http://dev.chromium.org/chromium-os/chromiumos-design-docs/verified-boot" +# Can't use gitiles directly until b/19710536 is fixed. +#SRC_URI="https://chromium.googlesource.com/chromiumos/platform/vboot_reference/+archive/${GIT_SHA1}.tar.gz -> ${P}.tar.gz" +SRC_URI="mirror://gentoo/${P}.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86" +IUSE="minimal static" + +RDEPEND="dev-libs/openssl:0= + sys-apps/util-linux:= + !minimal? ( + app-arch/xz-utils:= + dev-libs/libyaml:= + )" +DEPEND="${RDEPEND} + app-crypt/trousers" + +S=${WORKDIR} + +src_prepare() { + epatch "${FILESDIR}"/${P}-cgpt-static.patch + sed -i \ + -e 's: -Werror : :g' \ + Makefile || die +} + +_emake() { + local arch=$(tc-arch) + emake \ + V=1 \ + QEMU_ARCH= \ + ARCH=${arch} \ + HOST_ARCH=${arch} \ + LIBDIR="$(get_libdir)" \ + DEBUG_FLAGS= \ + MINIMAL=$(usev minimal) \ + STATIC=$(usev static) \ + "$@" +} + +src_compile() { + tc-export CC AR CXX PKG_CONFIG + _emake TEST_BINS= all +} + +src_test() { + _emake runtests +} + +src_install() { + _emake DESTDIR="${ED}/usr" install + if ! use minimal ; then + rm -r "${ED}"/usr/default || die + fi + + insinto /usr/share/vboot/devkeys + doins tests/devkeys/* + + insinto /usr/include/vboot + doins host/include/* \ + firmware/include/gpt.h \ + firmware/include/tlcl.h \ + firmware/include/tss_constants.h + + dolib.a build/libvboot_host.a + + dodoc README +} |