Suppress YAML support in DTC

... which fails to build if pkg-config is not installed.

Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
Alexey Neyman 2020-02-03 16:10:59 -08:00
parent d35d267278
commit c317f57b40

View File

@ -48,11 +48,17 @@ do_dtc_backend()
eval "${arg// /\\ }"
done
# Override PKG_CONFIG: if pkg-config is not installed, DTC's makefile
# misinterprets the error code and tries to enable YAML support while
# not linking against libyaml. NO_YAML=1 is sufficient to make the build
# pass; PKG_CONFIG=/bin/true just suppresses some scary error messages.
extra_opts=( \
CC="${host}-gcc" \
AR="${host}-ar" \
PREFIX="${prefix}" \
PKG_CONFIG=/bin/true \
NO_PYTHON=1 \
NO_YAML=1 \
BIN=dtc \
)
if [ -n "${CT_DTC_VERBOSE}" ]; then