mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
vboot-utils: fix ARCH detection
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@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
d127d1159c
commit
bbb25c3ad7
@ -21,12 +21,17 @@ HOST_VBOOT_UTILS_DEPENDENCIES = host-openssl host-util-linux host-pkgconf
|
|||||||
# media partitioning.
|
# media partitioning.
|
||||||
#
|
#
|
||||||
# make target for futility is "futil".
|
# make target for futility is "futil".
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
|
||||||
define HOST_VBOOT_UTILS_BUILD_CMDS
|
define HOST_VBOOT_UTILS_BUILD_CMDS
|
||||||
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) \
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) \
|
||||||
CC="$(HOSTCC)" \
|
CC="$(HOSTCC)" \
|
||||||
CFLAGS="$(HOST_CFLAGS) -D_LARGEFILE64_SOURCE -D_GNU_SOURCE" \
|
CFLAGS="$(HOST_CFLAGS) -D_LARGEFILE64_SOURCE -D_GNU_SOURCE" \
|
||||||
LDFLAGS="$(HOST_LDFLAGS)" \
|
LDFLAGS="$(HOST_LDFLAGS)" \
|
||||||
|
ARCH=arm \
|
||||||
futil cgpt
|
futil cgpt
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user