summaryrefslogtreecommitdiff
path: root/scripts/dtc/Makefile.dtc
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dtc/Makefile.dtc')
-rw-r--r--scripts/dtc/Makefile.dtc4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/dtc/Makefile.dtc b/scripts/dtc/Makefile.dtc
index bece49b35535..d4375630a7f7 100644
--- a/scripts/dtc/Makefile.dtc
+++ b/scripts/dtc/Makefile.dtc
@@ -14,5 +14,9 @@ DTC_SRCS = \
treesource.c \
util.c
+ifneq ($(NO_YAML),1)
+DTC_SRCS += yamltree.c
+endif
+
DTC_GEN_SRCS = dtc-lexer.lex.c dtc-parser.tab.c
DTC_OBJS = $(DTC_SRCS:%.c=%.o) $(DTC_GEN_SRCS:%.c=%.o)