mirror of
https://gitee.com/openharmony/drivers_framework
synced 2024-11-23 13:00:07 +00:00
feat: compatible partname rules
Signed-off-by: yuanbo <yuanbo@huawei.com>
This commit is contained in:
parent
e6122dcd42
commit
1300fc610b
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user