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