build/patch/kernel/sun50iw2-dev/scripts-dtc-Update-to-version-with-overlays.patch
2017-01-29 20:43:58 -05:00

16 lines
542 B
Diff

diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index ddf83d0..a0fb9e3 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -275,7 +275,11 @@ cmd_gzip = (cat $(filter-out FORCE,$^) | gzip -n -f -9 > $@) || \
# DTC
# ---------------------------------------------------------------------------
+ifeq ($(CONFIG_OF_CONFIGFS),y)
+DTC ?= $(objtree)/scripts/dtc/dtc -@
+else
DTC ?= $(objtree)/scripts/dtc/dtc
+endif
# Generate an assembly file to wrap the output of the device tree compiler
quiet_cmd_dt_S_dtb= DTB $@