mirror of
https://github.com/openharmony/drivers_adapter.git
synced 2026-07-20 21:59:19 -04:00
feat: update usb gadget for product to surpport acm and ecm
Signed-off-by: wu-chengwen <wuchengwen4@huawei.com>
This commit is contained in:
+7
-7
@@ -18,17 +18,17 @@ import("$hdf_framework_path/tools/hc-gen/hc_gen.gni")
|
||||
hc_gen("build_hcs") {
|
||||
gadget = "ecm_acm"
|
||||
hcs_source = "/hdf.hcs"
|
||||
if (gadget == "acm") {
|
||||
hcs_source = "/hdf.hcs"
|
||||
} else if (gadget == "ecm") {
|
||||
hcs_source = "/hdf_ecm.hcs"
|
||||
} else if (gadget == "ecm_acm") {
|
||||
hcs_source = "/hdf_ecm_acm.hcs"
|
||||
}
|
||||
|
||||
if (product_company == "openharmony") {
|
||||
hcs_config_path = "default"
|
||||
} else {
|
||||
if (gadget == "acm") {
|
||||
hcs_source = "/hdf.hcs"
|
||||
} else if (gadget == "ecm") {
|
||||
hcs_source = "/hdf_ecm.hcs"
|
||||
} else if (gadget == "ecm_acm") {
|
||||
hcs_source = "/hdf_ecm_acm.hcs"
|
||||
}
|
||||
hcs_config_path = "//vendor/$product_company/$product_name/hdf_config/uhdf/"
|
||||
}
|
||||
sources = [ rebase_path(hcs_config_path + hcs_source) ]
|
||||
|
||||
Reference in New Issue
Block a user