Skip to content
Commit 067c650c authored by Pavel Modilaynen's avatar Pavel Modilaynen Committed by Rob Herring
Browse files

dtc: Use pkg-config to locate libyaml



Using Makefile's wildcard with absolute path to detect
the presence of libyaml results in false-positive
detection when cross-compiling e.g. in yocto environment.
The latter results in build error:
| scripts/dtc/yamltree.o: In function `yaml_propval_int':
| yamltree.c: undefined reference to `yaml_sequence_start_event_initialize'
| yamltree.c: undefined reference to `yaml_emitter_emit'
| yamltree.c: undefined reference to `yaml_scalar_event_initialize'
...
Use pkg-config to locate libyaml to address this scenario.

Signed-off-by: default avatarPavel Modilaynen <pavel.modilaynen@axis.com>
[robh: silence stderr]
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 1ee1ffe1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment