1# Copyright (c) 2021 GOODIX. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14# This BUILD.gn is used to compile the SDK source code of Goodix GR551x SOC. 15# In this script, optionally add source code compilation. If the SDK is upgraded, 16# you can directly replace components, drivers, and toolchain folders. 17 18import("//kernel/liteos_m/liteos.gni") 19 20config("public") { 21 22 include_dirs = [ 23 "components/app_drivers/inc", 24 "components/boards", 25 "components/drivers_ext/gr551x", 26 "components/libraries/app_lfs", 27 "components/libraries/app_assert", 28 "components/libraries/app_error", 29 "components/libraries/app_log", 30 "components/libraries/app_timer", 31 "components/libraries/hal_flash", 32 "components/libraries/pmu_calibration", 33 "components/libraries/ring_buffer", 34 "components/libraries/utility", 35 "components/patch/ind", 36 "components/sdk/", 37 "drivers/inc", 38 "toolchain/gr551x/include", 39 ] 40} 41 42kernel_module("gr551x_sdk") { 43 sources = [ 44 "components/app_drivers/src/app_dma.c", 45 "components/app_drivers/src/app_gpiote.c", 46 "components/app_drivers/src/app_i2c.c", 47 "components/app_drivers/src/app_io.c", 48 "components/app_drivers/src/app_pwm.c", 49 "components/app_drivers/src/app_pwr_mgmt.c", 50 "components/app_drivers/src/app_rng.c", 51 "components/app_drivers/src/app_systick.c", 52 "components/app_drivers/src/app_uart.c", 53 "components/libraries/app_assert/app_assert.c", 54 "components/libraries/app_error/app_error.c", 55 "components/libraries/app_log/app_log.c", 56 "components/libraries/app_timer/app_timer.c", 57 "components/libraries/ring_buffer/ring_buffer.c", 58 "components/libraries/utility/utility.c", 59 "drivers/src/gr55xx_hal.c", 60 "drivers/src/gr55xx_hal_adc.c", 61 "drivers/src/gr55xx_hal_aon_gpio.c", 62 "drivers/src/gr55xx_hal_aon_wdt.c", 63 "drivers/src/gr55xx_hal_calendar.c", 64 "drivers/src/gr55xx_hal_exflash.c", 65 "drivers/src/gr55xx_hal_gpio.c", 66 "drivers/src/gr55xx_hal_i2c.c", 67 "drivers/src/gr55xx_hal_pwm.c", 68 "drivers/src/gr55xx_hal_pwr.c", 69 "drivers/src/gr55xx_hal_rng.c", 70 "drivers/src/gr55xx_hal_uart.c", 71 "toolchain/gr551x/source/interrupt_gr55xx.c", 72 "toolchain/gr551x/source/platform_gr55xx.c", 73 "toolchain/gr551x/source/system_gr55xx.c", 74 ] 75 76} 77