diff --git a/scripts/dtc/Makefile b/scripts/dtc/Makefile index ef85f8b7d4a76ebcd0bed42be4f8105eae42a15f..0b44917f981c7506b3870cc3b52cae8c57fa8579 100644 --- a/scripts/dtc/Makefile +++ b/scripts/dtc/Makefile @@ -20,6 +20,9 @@ endif HOST_EXTRACFLAGS += -DNO_YAML else dtc-objs += yamltree.o +# To include <yaml.h> installed in a non-default path +HOSTCFLAGS_yamltree.o := $(shell pkg-config --cflags yaml-0.1) +# To link libyaml installed in a non-default path HOSTLDLIBS_dtc := $(shell pkg-config yaml-0.1 --libs) endif