[Buildroot] [PATCH] vboot-utils: fix ARCH detection
Alex Suykov
alex.suykov at gmail.com
Mon Nov 6 19:06:11 UTC 2017
The package includes some target-specific code that is irrelevant
in a host package but gets built anyway. The target for this code
must be one of the supported ChromeOS targets.
Supplied Makefile apparently relies on the environment to provide
a valid target, with a simple fallback to host arch. This breaks
the build if no value is provided and the host arch is not among
the supported ones.
Should fix
http://autobuild.buildroot.net/results/d118a83b6c4f7f910d0d44c279f36251d7ba29e8/
and similar failures.
Signed-off-by: Alex Suykov <alex.suykov at gmail.com>
---
package/vboot-utils/Config.in.host | 1 +
package/vboot-utils/vboot-utils.mk | 1 +
2 files changed, 2 insertions(+)
diff --git a/package/vboot-utils/Config.in.host b/package/vboot-utils/Config.in.host
index aa0caef2e2..1b23e1c644 100644
--- a/package/vboot-utils/Config.in.host
+++ b/package/vboot-utils/Config.in.host
@@ -1,6 +1,7 @@
config BR2_PACKAGE_HOST_VBOOT_UTILS
bool "host vboot utils"
select BR2_PACKAGE_HOST_UTIL_LINUX
+ depends on BR2_arm || BR2_x86_64 || BR2_i386
help
Chromium OS verified boot utilities: futility and cgpt.
diff --git a/package/vboot-utils/vboot-utils.mk b/package/vboot-utils/vboot-utils.mk
index a6a67ad317..bfbd6d204a 100644
--- a/package/vboot-utils/vboot-utils.mk
+++ b/package/vboot-utils/vboot-utils.mk
@@ -27,6 +27,7 @@ define HOST_VBOOT_UTILS_BUILD_CMDS
CC="$(HOSTCC)" \
CFLAGS="$(HOST_CFLAGS) -D_LARGEFILE64_SOURCE -D_GNU_SOURCE" \
LDFLAGS="$(HOST_LDFLAGS)" \
+ ARCH=$(BR2_ARCH) \
futil cgpt
endef
--
2.14.1
More information about the buildroot
mailing list