2015-12-25 22:40:10 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# vboot-utils
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
VBOOT_UTILS_VERSION = bbdd62f9b030db7ad8eef789aaf58a7ff9a25656
|
|
|
|
VBOOT_UTILS_SITE = https://chromium.googlesource.com/chromiumos/platform/vboot_reference
|
|
|
|
VBOOT_UTILS_SITE_METHOD = git
|
2017-03-30 15:43:38 +02:00
|
|
|
VBOOT_UTILS_LICENSE = BSD-3-Clause
|
2015-12-25 22:40:10 +01:00
|
|
|
VBOOT_UTILS_LICENSE_FILES = LICENSE
|
|
|
|
|
2015-12-27 17:40:56 +01:00
|
|
|
HOST_VBOOT_UTILS_DEPENDENCIES = host-openssl host-util-linux host-pkgconf
|
2015-12-25 22:40:10 +01:00
|
|
|
|
|
|
|
# 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".
|
2017-11-07 11:17:15 +01:00
|
|
|
#
|
|
|
|
# The value of ARCH is only relevant for crossystem (a target tool) and
|
|
|
|
# does not affect futil or cgpt in any way as long as it is one of the
|
|
|
|
# supported targets.
|
2015-12-25 22:40:10 +01:00
|
|
|
|
|
|
|
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)" \
|
2017-11-07 11:17:15 +01:00
|
|
|
ARCH=arm \
|
2015-12-25 22:40:10 +01:00
|
|
|
futil cgpt
|
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_VBOOT_UTILS_INSTALL_CMDS
|
2017-07-05 13:14:24 +02:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(HOST_DIR) \
|
2015-12-25 22:40:10 +01:00
|
|
|
futil_install cgpt_install devkeys_install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(host-generic-package))
|