vboot-utils.mk 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ################################################################################
  2. #
  3. # vboot-utils
  4. #
  5. ################################################################################
  6. VBOOT_UTILS_VERSION = bbdd62f9b030db7ad8eef789aaf58a7ff9a25656
  7. VBOOT_UTILS_SITE = https://chromium.googlesource.com/chromiumos/platform/vboot_reference
  8. VBOOT_UTILS_SITE_METHOD = git
  9. VBOOT_UTILS_LICENSE = BSD-3-Clause
  10. VBOOT_UTILS_LICENSE_FILES = LICENSE
  11. HOST_VBOOT_UTILS_DEPENDENCIES = host-openssl host-util-linux host-pkgconf
  12. # vboot_reference contains code that goes into bootloaders,
  13. # utilities intended for the target system, and a bunch of scripts
  14. # for Chromium OS build system. Most of that does not make sense
  15. # in a buildroot host-package.
  16. #
  17. # We only need futility for signing images, the keys, and cgpt for boot
  18. # media partitioning.
  19. #
  20. # make target for futility is "futil".
  21. #
  22. # The value of ARCH is only relevant for crossystem (a target tool) and
  23. # does not affect futil or cgpt in any way as long as it is one of the
  24. # supported targets.
  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. ARCH=arm \
  31. futil cgpt
  32. endef
  33. define HOST_VBOOT_UTILS_INSTALL_CMDS
  34. $(HOST_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(HOST_DIR) \
  35. futil_install cgpt_install devkeys_install
  36. endef
  37. $(eval $(host-generic-package))