aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2020-03-26 14:42:51 -0500
committerDan Murphy <dmurphy@ti.com>2020-03-26 14:42:51 -0500
commite939e4cf1760a9c9b69f7a9dab66992ac43b5d6c (patch)
tree5f4341376bb3b9c2ced52e5f55cb04600f620dbc
parent6a65ba2db6cd6fe3239b888fcf66636792a980f6 (diff)
downloadlinux-dt-e939e4cf1760a9c9b69f7a9dab66992ac43b5d6c.tar.gz
overlays: Makefile: Fix dtc when kernel build is not in kernel
Fix the dtc path when the kernel build is built with the O= make arguement. Signed-off-by: Dan Murphy <dmurphy@ti.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5974d53..d3b207e 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ mkfile_path := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
LINUX ?= ${mkfile_path}../linux
endif
-DTC ?= ${LINUX}/scripts/dtc/dtc
+DTC ?= ${O}/scripts/dtc/dtc
DTC_WARN_FLAGS := -Wno-unit_address_vs_reg -Wno-unit_address_format -Wno-avoid_unnecessary_addr_size -Wno-alias_paths -Wno-graph_child_address -Wno-simple_bus_reg -Wno-unique_unit_address -Wno-pci_device_reg
DTC_FLAGS := -O dtb -@ -b 0 -i${LINUX}/include ${DTC_WARN_FLAGS}
CPP_FLAGS := -E -nostdinc -I${LINUX}/scripts/dtc/include-prefixes -undef -D__DTS__ -x assembler-with-cpp