From 3099b0c2ee01fe393ca7e8083ee844020d3062f0 Mon Sep 17 00:00:00 2001 From: yulong li Date: Sun, 30 Mar 2025 14:14:48 +0800 Subject: [PATCH] synx-devicetree: fix synx devicetree compile can not find sun_le.mk add sun_le.mk to compile synx-devicetree Change-Id: Id2d90d45b1efed41ad6e44598d469c5fbc34f5a2 --- Makefile | 7 +++---- config/sun_le.mk | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 config/sun_le.mk diff --git a/Makefile b/Makefile index 37f193f9..e3ef2242 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,8 @@ - -SYNX_DEVICETREE_ROOT=$(KERNEL_SRC)/$(M) +SYNX_DEVICETREE_ROOT=$(shell pwd) SYNX_KERNEL_ROOT=$(SYNX_DEVICETREE_ROOT)/../../opensource/synx-kernel -KBUILD_OPTIONS += SYNX_DEVICETREE_ROOT=$(KERNEL_SRC)/$(M) -KBUILD_OPTIONS += KBUILD_DTC_INCLUDE=$(SYNX_KERNEL_ROOT) +KBUILD_OPTIONS += SYNX_DEVICETREE_ROOT=$(shell pwd) +KBUILD_OPTIONS += KBUILD_DTC_INCLUDE+=$(SYNX_KERNEL_ROOT) KBUILD_OPTIONS += KBUILD_EXTMOD_DTS=. KBUILD_OPTIONS += KERNEL_ROOT=$(ROOT_DIR)/$(KERNEL_DIR) KBUILD_OPTIONS += MODNAME=synx-devicetree diff --git a/config/sun_le.mk b/config/sun_le.mk new file mode 100644 index 00000000..e42c1d08 --- /dev/null +++ b/config/sun_le.mk @@ -0,0 +1,4 @@ +dtbo-y := synx/sun-synx.dtbo +ifneq (, $(filter y, $(CONFIG_ARCH_TUNA) $(CONFIG_ARCH_KERA))) + dtbo-y += synx/tuna-synx.dtbo +endif