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// /\\ }" eval "${arg// /\\ }"
done 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=( \ extra_opts=( \
CC="${host}-gcc" \ CC="${host}-gcc" \
AR="${host}-ar" \ AR="${host}-ar" \
PREFIX="${prefix}" \ PREFIX="${prefix}" \
PKG_CONFIG=/bin/true \
NO_PYTHON=1 \ NO_PYTHON=1 \
NO_YAML=1 \
BIN=dtc \ BIN=dtc \
) )
if [ -n "${CT_DTC_VERBOSE}" ]; then if [ -n "${CT_DTC_VERBOSE}" ]; then