[PATCH 1/1] Skip building dtc if a prebuilt binary is specified via DTC=

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jes Sorensen <jes@xxxxxxxxxxxxxxxxxx>

For Android it is common to use a prebuilt dtc, speficied via DTC=. In
this case building dtc as part of the kernel is not necessary, and even
unwanted to avoid mix and match between two different versions of dtc.

Signed-off-by: Jes Sorensen <jes@xxxxxxxxxxxxxxxxxx>
---
 scripts/dtc/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/dtc/Makefile b/scripts/dtc/Makefile
index b47f4daa4515..3b683dc7e582 100644
--- a/scripts/dtc/Makefile
+++ b/scripts/dtc/Makefile
@@ -2,8 +2,11 @@
 # scripts/dtc makefile
 
 # *** Also keep .gitignore in sync when changing ***
+# If a prebuilt dtc binary is specificed, don't build dtc
+ifeq ($(DTC),)
 hostprogs-always-$(CONFIG_DTC)		+= dtc fdtoverlay
 hostprogs-always-$(CHECK_DTBS)		+= dtc
+endif
 
 dtc-objs	:= dtc.o flattree.o fstree.o data.o livetree.o treesource.o \
 		   srcpos.o checks.o util.o
-- 
2.46.1





[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux