diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2020-03-25 13:35:31 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2020-03-25 13:36:58 +0200 |
commit | af92a8e70e18656ed4c3d1587e272f7be762caa1 (patch) | |
tree | c00b5eba09f51806ed440c47b50747df537c7739 | |
parent | 7f105b012db07b35f8a3d82089717aa518cec491 (diff) | |
download | linux-dt-af92a8e70e18656ed4c3d1587e272f7be762caa1.tar.gz |
Try to find Linux dir
Find linux dir from:
1. PWD
2. ../linux/
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -12,7 +12,13 @@ else ifeq (${ARCH}, arm64) ARCH_ARM64 = y endif -LINUX ?= ${PWD}/../linux +ifneq ("$(wildcard $(PWD)/MAINTAINERS)","") +LINUX ?= $(PWD) +else +mkfile_path := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) +LINUX ?= ${mkfile_path}../linux +endif + DTC ?= ${LINUX}/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} |