# # Copyright (c) 2021-2022 Huawei Device Co., Ltd. # # This file is dual licensed: you can use it either under the terms of # the GPL, or the BSD license, at your option. # See the LICENSE file in the root of this repository for complete details. # import("//drivers/adapter/khdf/liteos_m/hdf.gni") module_switch = defined(LOSCFG_DRIVERS_HDF_PLATFORM_UART) module_name = get_path_info(rebase_path("."), "name") hdf_driver(module_name) { sources = [] if (defined(LOSCFG_SOC_COMPANY_BESTECHNIC)) { sources += [ "uart_bes.c" ] } if (defined(LOSCFG_SOC_COMPANY_GOODIX)) { sources += [ "uart_gr5xx.c" ] } include_dirs = [ "." ] }