pylibfdt: compile pylibfdt only when dtoc/binman is necessary
[oweals/u-boot.git] / scripts / dtc / Makefile
index f4a16ed2a5f37db52cd01d60fa7056163fce0233..90ef2db85c5f39b04847095adc61dc945a0f13a0 100644 (file)
@@ -31,4 +31,4 @@ $(obj)/dtc-lexer.lex.o: $(obj)/dtc-parser.tab.h
 clean-files    := dtc-lexer.lex.c dtc-parser.tab.c dtc-parser.tab.h
 
 # Added for U-Boot
-subdir-y += pylibfdt
+subdir-$(CONFIG_PYLIBFDT) += pylibfdt