uboot-mvebu: backport patch for Turris Omnia to enable LTO
[openwrt/openwrt.git] / include / subdir.mk
index 95009f814e29d4cab4f74c51fd30342484f5f111..b4edbf8b96c784cd8a7ed78996bb1ff715ceb9d0 100644 (file)
@@ -5,6 +5,9 @@
 ifeq ($(MAKECMDGOALS),prereq)
   SUBTARGETS:=prereq
   PREREQ_ONLY:=1
+# For target/linux related target add dtb to selectively compile dtbs
+else ifneq ($(filter target/linux/%,$(MAKECMDGOALS)),)
+  SUBTARGETS:=$(DEFAULT_SUBDIR_TARGETS) dtb
 else
   SUBTARGETS:=$(DEFAULT_SUBDIR_TARGETS)
 endif