From c6df8eee57beda7b8a4151005b219bfdb854298b Mon Sep 17 00:00:00 2001 From: Qubot <1445788683@qq.com> Date: Wed, 27 May 2026 00:43:42 +0800 Subject: [PATCH] build: use CURDIR for DTS_PATH to support env-clean builds --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index ece1b565..82921120 100755 --- a/Makefile +++ b/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