Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Unified Diff: chromeos-base/vboot_reference/vboot_reference-9999.ebuild

Issue 3799003: vboot_reference: refine ebuild and add new dev tools (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/chromiumos-overlay.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos-base/vboot_reference/vboot_reference-9999.ebuild
diff --git a/chromeos-base/vboot_reference/vboot_reference-9999.ebuild b/chromeos-base/vboot_reference/vboot_reference-9999.ebuild
index f766012687aa7163764db7a699601bd6aa54c257..b934d3d222ad8611370ea881a0b6014d56095ece 100644
--- a/chromeos-base/vboot_reference/vboot_reference-9999.ebuild
+++ b/chromeos-base/vboot_reference/vboot_reference-9999.ebuild
@@ -12,22 +12,25 @@ EAPI="2"
DEPEND="app-crypt/trousers
dev-libs/openssl
- sys-apps/util-linux"
+ sys-apps/util-linux"
src_compile() {
tc-export CC AR CXX
local err_msg="${PN} compile failed. "
err_msg+="Try running 'make clean' in the package root directory"
emake || die "${err_msg}"
- if use rbtest; then
- emake rbtest || die "${err_msg}"
- fi
+ if use rbtest; then
+ emake rbtest || die "${err_msg}"
+ fi
}
src_install() {
+ local dst_dir
+
if use minimal ; then
# Installing on the target. Cherry pick programs generated
# by src_compile in the source tree build/ subdirectory
+ einfo "Installing target programs"
local progs='utility/dump_kernel_config'
progs+=' utility/dev_sign_file'
progs+=' utility/tpm_init_temp_fix'
@@ -40,11 +43,25 @@ src_install() {
progs+=' utility/dev_debug_vboot'
progs+=' cgpt/cgpt'
- into "/usr"
+ into /usr
for prog in ${progs}; do
dobin "${S}"/build/"${prog}"
done
+ einfo "Installing dev tools"
+ dst_dir='/usr/share/vboot/bin'
+ local src_dir='scripts/image_signing'
+ dodir "${dst_dir}"
+ exeinto "${dst_dir}"
+ doexe "${src_dir}/common.sh"
+ doexe "${src_dir}/resign_firmwarefd.sh"
+ doexe "${src_dir}/make_dev_firmware.sh"
+ doexe "${src_dir}/make_dev_ssd.sh"
+
+ # TODO(hungte) Since we now install all keyset into
+ # /usr/share/vboot/devkeys, maybe SAFT does not need to install
+ # its own keys anymore.
+ einfo "Installing keys for SAFT"
local keys_to_install='recovery_kernel_data_key.vbprivk'
keys_to_install+=' firmware.keyblock '
keys_to_install+=' firmware_data_key.vbprivk'
@@ -54,29 +71,36 @@ src_install() {
dodir "${dst_dir}"
insinto "${dst_dir}"
for key in ${keys_to_install}; do
- doins "tests/devkeys/${key}"
+ doins "tests/devkeys/${key}"
done
+
else
+ # Installing on host.
emake DESTDIR="${D}/usr/bin" install || \
die "${PN} install failed."
- dodir /usr/share/vboot/devkeys
- insinto /usr/share/vboot/devkeys
- doins tests/devkeys/*
fi
- if use rbtest; then
- emake DESTDIR="${D}/usr/bin" BUILD="${S}"/build -C tests \
- install-rbtest || die "${PN} install failed."
- fi
- if use tpmtests; then
- into "/usr"
- # copy files starting with tpmtest, but skip .d files.
- dobin ${S}/build/tests/tpm_lite/tpmtest*[^.]?
- dobin ${S}/build/utility/tpm_set_readsrkpub
- fi
+ if use rbtest; then
+ emake DESTDIR="${D}/usr/bin" BUILD="${S}"/build -C tests \
+ install-rbtest || die "${PN} install failed."
+ fi
+ if use tpmtests; then
+ into /usr
+ # copy files starting with tpmtest, but skip .d files.
+ dobin "${S}"/build/tests/tpm_lite/tpmtest*[^.]?
+ dobin "${S}"/build/utility/tpm_set_readsrkpub
+ fi
+
+ # Install devkeys to /usr/share/vboot/devkeys
+ # (shared by host and target)
+ dst_dir='/usr/share/vboot/devkeys'
+ dodir "${dst_dir}"
+ insinto "${dst_dir}"
+ doins tests/devkeys/*
# Install firmware/include to /build/${BOARD}/usr/include/vboot
- dodir /usr/include/vboot
- insinto /usr/include/vboot
+ dst_dir='/usr/include/vboot'
+ dodir "${dst_dir}"
+ insinto "${dst_dir}"
anush 2010/10/15 17:15:34 Don't you want to install this just on the host an
Hung-Te 2010/10/15 17:35:44 It is there because "required by uboot for cross c
doins -r firmware/include/*
# Install vboot_fw.a to /build/${BOARD}/usr/lib
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698