# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_I3C)		+= i3c.o

ifeq ($(CONFIG_RUST_DRIVERS),y)
# Rust 模式：仅链接 Rust 驱动对象，不编译 I3C C 实现
RUST_DRV := i3c
include $(srctree)/drivers/rust/templates/kbuild-rust-driver.mk
i3c-y := $(RUST_DRV_OBJ)
else
i3c-y := device.o master.o
obj-$(CONFIG_I3C) += master/
endif
