sun60iw2: make DTS_PATH robust under env -i

This commit is contained in:
Qubot 2026-05-26 11:14:06 +08:00
parent 8a57f4efd7
commit 9472dd6633

View File

@ -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