Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2 v4] vboot-utils: new package
@ 2015-12-24 18:43 Alex Suykov
  2015-12-24 18:55 ` Mike Frysinger
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Suykov @ 2015-12-24 18:43 UTC (permalink / raw)
  To: buildroot

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>
---
 package/Config.in.host               |  1 +
 package/vboot-utils/Config.in.host   |  6 ++++++
 package/vboot-utils/vboot-utils.hash |  2 ++
 package/vboot-utils/vboot-utils.mk   | 39 ++++++++++++++++++++++++++++++++++++
 4 files changed, 48 insertions(+)
 create mode 100644 package/vboot-utils/Config.in.host
 create mode 100644 package/vboot-utils/vboot-utils.hash
 create mode 100644 package/vboot-utils/vboot-utils.mk

diff --git a/package/Config.in.host b/package/Config.in.host
index d757316..8e6b870 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -30,5 +30,6 @@ menu "Host utilities"
 	source "package/sunxi-tools/Config.in.host"
 	source "package/uboot-tools/Config.in.host"
 	source "package/util-linux/Config.in.host"
+	source "package/vboot-utils/Config.in.host"
 
 endmenu
diff --git a/package/vboot-utils/Config.in.host b/package/vboot-utils/Config.in.host
new file mode 100644
index 0000000..5cecef0
--- /dev/null
+++ b/package/vboot-utils/Config.in.host
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HOST_VBOOT_UTILS
+	bool "host vboot utils"
+	help
+	  ChromiumOS 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 0000000..e161423
--- /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 0000000..c595250
--- /dev/null
+++ b/package/vboot-utils/vboot-utils.mk
@@ -0,0 +1,39 @@
+################################################################################
+#
+# vboot-utils
+#
+################################################################################
+
+VBOOT_UTILS_VERSION = bbdd62f9b030db7ad8eef789aaf58a7ff9a25656
+VBOOT_UTILS_SOURCE = $(VBOOT_UTILS_VERSION).tar.gz
+VBOOT_UTILS_SITE = https://chromium.googlesource.com/chromiumos/platform/vboot_reference/+archive
+VBOOT_UTILS_STRIP_COMPONENTS = 0
+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))
-- 
2.6.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/2 v4] vboot-utils: new package
  2015-12-24 18:43 [Buildroot] [PATCH 1/2 v4] vboot-utils: new package Alex Suykov
@ 2015-12-24 18:55 ` Mike Frysinger
  2015-12-24 19:26   ` Alex Suykov
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2015-12-24 18:55 UTC (permalink / raw)
  To: buildroot

this seems to have the same errors i pointed out in the ealier versions
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20151224/9438937e/attachment.asc>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/2 v4] vboot-utils: new package
  2015-12-24 18:55 ` Mike Frysinger
@ 2015-12-24 19:26   ` Alex Suykov
  2016-01-02  6:16     ` Mike Frysinger
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Suykov @ 2015-12-24 19:26 UTC (permalink / raw)
  To: buildroot

Thu, Dec 24, 2015 at 01:55:16PM -0500, Mike Frysinger wrote:

> this seems to have the same errors i pointed out in the ealier versions

(this message I think:
http://lists.busybox.net/pipermail/buildroot/2015-December/146493.html )

"ChromiumOS" instead of "Chromium OS" in Config.host.in, overlooked that.
This is going into v5 patch then.

As for the tarball issue, I don't think there are any better options.
It's either that, or a git checkout.
Do you mean it would be better to use git instead?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/2 v4] vboot-utils: new package
  2015-12-24 19:26   ` Alex Suykov
@ 2016-01-02  6:16     ` Mike Frysinger
  0 siblings, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2016-01-02  6:16 UTC (permalink / raw)
  To: buildroot

On 24 Dec 2015 21:26, Alex Suykov wrote:
> Thu, Dec 24, 2015 at 01:55:16PM -0500, Mike Frysinger wrote:
> 
> > this seems to have the same errors i pointed out in the ealier versions
> 
> (this message I think:
> http://lists.busybox.net/pipermail/buildroot/2015-December/146493.html )
> 
> "ChromiumOS" instead of "Chromium OS" in Config.host.in, overlooked that.
> This is going into v5 patch then.
> 
> As for the tarball issue, I don't think there are any better options.
> It's either that, or a git checkout.
> Do you mean it would be better to use git instead?

i mean git is the only option.  any hash you commit will be invalid for
any other user.  unless you download that tarball and host it on your own
site and list that as the source, but i think that's frowned upon.

run `wget` multiple times on the archive URI and you should get different
results every time.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160102/5f7442eb/attachment.asc>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-01-02  6:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-24 18:43 [Buildroot] [PATCH 1/2 v4] vboot-utils: new package Alex Suykov
2015-12-24 18:55 ` Mike Frysinger
2015-12-24 19:26   ` Alex Suykov
2016-01-02  6:16     ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox