1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# 3# HDF is dual licensed: you can use it either under the terms of 4# the GPL, or the BSD license, at your option. 5# See the LICENSE file in the root of this repository for complete details. 6 7import("//drivers/adapter/khdf/liteos/hdf.gni") 8 9module_switch = defined(LOSCFG_DRIVERS_HDF_PLATFORM_UART_SAMPLE) 10module_name = "hdf_uart_sample" 11hdf_driver(module_name) { 12 FRAMEWORK_UART_ROOT = "//drivers/framework/sample/platform/uart/src" 13 sources = [ 14 "$FRAMEWORK_UART_ROOT/buf_fifo.c", 15 "$FRAMEWORK_UART_ROOT/uart_dev_sample.c", 16 "$FRAMEWORK_UART_ROOT/uart_dispatch_sample.c", 17 "$FRAMEWORK_UART_ROOT/uart_pl011_sample.c", 18 "$FRAMEWORK_UART_ROOT/uart_sample.c", 19 ] 20 21 include_dirs = [ "//drivers/framework/sample/platform/uart/include/" ] 22} 23