build: use CURDIR for DTS_PATH to support env-clean builds
This commit is contained in:
parent
a9ba31fe7f
commit
c6df8eee57
10
Makefile
10
Makefile
@ -297,23 +297,23 @@ endif
|
||||
ifeq (x$(CONFIG_RISCV), xy)
|
||||
ifeq (x$(CONFIG_CPU_E90X), xy)
|
||||
CROSS_COMPILE=$(srctree)/../tools/toolchain/$(RISCV_PATH)/bin/riscv64-unknown-linux-gnu-
|
||||
DTS_PATH := $(PWD)/arch/riscv/dts
|
||||
DTS_PATH := $(CURDIR)/arch/riscv/dts
|
||||
else ifeq (x$(CONFIG_ARCH_RV32I), xy)
|
||||
CROSS_COMPILE := $(srctree)/../tools/toolchain/$(RISCV_PATH)/bin/riscv32-unknown-linux-
|
||||
DTS_PATH := $(PWD)/arch/riscv/dts
|
||||
DTS_PATH := $(CURDIR)/arch/riscv/dts
|
||||
else
|
||||
CROSS_COMPILE := $(srctree)/../tools/toolchain/$(RISCV_PATH)/bin/riscv64-unknown-linux-gnu-
|
||||
DTS_PATH := $(PWD)/arch/riscv/dts
|
||||
DTS_PATH := $(CURDIR)/arch/riscv/dts
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq (x$(CONFIG_ARM), xy)
|
||||
CROSS_COMPILE := $(srctree)/../tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-
|
||||
DTS_PATH := $(PWD)/arch/arm/dts
|
||||
DTS_PATH := $(CURDIR)/arch/arm/dts
|
||||
endif
|
||||
|
||||
CROSS_COMPILE ?= $(srctree)/../tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-
|
||||
DTS_PATH ?= $(PWD)/arch/arm/dts
|
||||
DTS_PATH ?= $(CURDIR)/arch/arm/dts
|
||||
|
||||
#######################################################################
|
||||
# set default to nothing for native builds
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user