From 1300fc610b9be632a92aeea12186a86b99944876 Mon Sep 17 00:00:00 2001 From: yuanbo Date: Mon, 20 Jun 2022 10:48:07 +0800 Subject: [PATCH] feat: compatible partname rules Signed-off-by: yuanbo --- adapter/uhdf2/hdi.gni | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/adapter/uhdf2/hdi.gni b/adapter/uhdf2/hdi.gni index 761fcc4e..9e811268 100644 --- a/adapter/uhdf2/hdi.gni +++ b/adapter/uhdf2/hdi.gni @@ -154,7 +154,12 @@ template("hdi") { install_images = [ system_base_dir ] subsystem_name = invoker.subsystem_name - part_name = invoker.part_name + "_interface" + partname_list = string_split(invoker.part_name, "_") + if (partname_list[0] == "drivers") { + part_name = invoker.part_name + } else { + part_name = invoker.part_name + "_interface" + } } } @@ -204,7 +209,14 @@ template("hdi") { install_images = [ chipset_base_dir ] subsystem_name = invoker.subsystem_name - part_name = invoker.part_name + partname_list = string_split(invoker.part_name, "_") + if (partname_list[0] == "drivers") { + part_name = string_replace(invoker.part_name, + "drivers_interface", + "drivers_peripheral") + } else { + part_name = invoker.part_name + } } }