configs/bananapro: bump Linux to 4.10.4
[buildroot-gz.git] / package / vboot-utils / vboot-utils.mk
bloba7592d6a4e73bb09ecba02aaf70196ae98818544
1 ################################################################################
3 # vboot-utils
5 ################################################################################
7 VBOOT_UTILS_VERSION = bbdd62f9b030db7ad8eef789aaf58a7ff9a25656
8 VBOOT_UTILS_SITE = https://chromium.googlesource.com/chromiumos/platform/vboot_reference
9 VBOOT_UTILS_SITE_METHOD = git
10 VBOOT_UTILS_LICENSE = BSD-3c
11 VBOOT_UTILS_LICENSE_FILES = LICENSE
13 HOST_VBOOT_UTILS_DEPENDENCIES = host-openssl host-util-linux host-pkgconf
15 # vboot_reference contains code that goes into bootloaders,
16 # utilities intended for the target system, and a bunch of scripts
17 # for Chromium OS build system. Most of that does not make sense
18 # in a buildroot host-package.
20 # We only need futility for signing images, the keys, and cgpt for boot
21 # media partitioning.
23 # make target for futility is "futil".
25 define HOST_VBOOT_UTILS_BUILD_CMDS
26 $(HOST_MAKE_ENV) $(MAKE) -C $(@D) \
27 CC="$(HOSTCC)" \
28 CFLAGS="$(HOST_CFLAGS) -D_LARGEFILE64_SOURCE -D_GNU_SOURCE" \
29 LDFLAGS="$(HOST_LDFLAGS)" \
30 futil cgpt
31 endef
33 define HOST_VBOOT_UTILS_INSTALL_CMDS
34 $(HOST_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(HOST_DIR)/usr \
35 futil_install cgpt_install devkeys_install
36 endef
38 $(eval $(host-generic-package))