summaryrefslogtreecommitdiffstats
path: root/package/vboot-utils
diff options
context:
space:
mode:
authorAlex Suykov <alex.suykov@gmail.com>2015-12-25 23:40:10 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-12-27 12:07:12 +0100
commit8432ce7795bfb2ff474a974d91431dec6dfb3602 (patch)
treeeca4dbd222b40491e770c02e251d6fb829014a48 /package/vboot-utils
parent7b4a2bfa579030cf83bb3c003ec77a99627769fe (diff)
downloadbuildroot-8432ce7795bfb2ff474a974d91431dec6dfb3602.tar.gz
buildroot-8432ce7795bfb2ff474a974d91431dec6dfb3602.zip
vboot-utils: new package
Chromium OS verified boot utilities. Needed for signing kernel images and manipulating bootable partitions on media intended for Chromebooks. Signed-off-by: Alex Suykov <alex.suykov@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/vboot-utils')
-rw-r--r--package/vboot-utils/Config.in.host6
-rw-r--r--package/vboot-utils/vboot-utils.hash2
-rw-r--r--package/vboot-utils/vboot-utils.mk38
3 files changed, 46 insertions, 0 deletions
diff --git a/package/vboot-utils/Config.in.host b/package/vboot-utils/Config.in.host
new file mode 100644
index 0000000000..899f6e78b0
--- /dev/null
+++ b/package/vboot-utils/Config.in.host
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HOST_VBOOT_UTILS
+ bool "host vboot utils"
+ help
+ Chromium OS verified boot utilities: futility and cgpt.
+
+ https://www.chromium.org/chromium-os/chromiumos-design-docs/verified-boot
diff --git a/package/vboot-utils/vboot-utils.hash b/package/vboot-utils/vboot-utils.hash
new file mode 100644
index 0000000000..e16142389b
--- /dev/null
+++ b/package/vboot-utils/vboot-utils.hash
@@ -0,0 +1,2 @@
+# Git shapshot
+none xxx bbdd62f9b030db7ad8eef789aaf58a7ff9a25656.tar.gz
diff --git a/package/vboot-utils/vboot-utils.mk b/package/vboot-utils/vboot-utils.mk
new file mode 100644
index 0000000000..75978cba71
--- /dev/null
+++ b/package/vboot-utils/vboot-utils.mk
@@ -0,0 +1,38 @@
+################################################################################
+#
+# vboot-utils
+#
+################################################################################
+
+VBOOT_UTILS_VERSION = bbdd62f9b030db7ad8eef789aaf58a7ff9a25656
+VBOOT_UTILS_SITE = https://chromium.googlesource.com/chromiumos/platform/vboot_reference
+VBOOT_UTILS_SITE_METHOD = git
+VBOOT_UTILS_LICENSE = BSD-3c
+VBOOT_UTILS_LICENSE_FILES = LICENSE
+
+HOST_VBOOT_UTILS_DEPENDENCIES = host-openssl host-pkgconf
+
+# vboot_reference contains code that goes into bootloaders,
+# utilities intended for the target system, and a bunch of scripts
+# for Chromium OS build system. Most of that does not make sense
+# in a buildroot host-package.
+#
+# We only need futility for signing images, the keys, and cgpt for boot
+# media partitioning.
+#
+# make target for futility is "futil".
+
+define HOST_VBOOT_UTILS_BUILD_CMDS
+ $(HOST_MAKE_ENV) $(MAKE) -C $(@D) \
+ CC="$(HOSTCC)" \
+ CFLAGS="$(HOST_CFLAGS) -D_LARGEFILE64_SOURCE -D_GNU_SOURCE" \
+ LDFLAGS="$(HOST_LDFLAGS)" \
+ futil cgpt
+endef
+
+define HOST_VBOOT_UTILS_INSTALL_CMDS
+ $(HOST_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(HOST_DIR)/usr \
+ futil_install cgpt_install devkeys_install
+endef
+
+$(eval $(host-generic-package))
OpenPOWER on IntegriCloud