1# Copyright (c) 2021 Nanjing Xiaoxiongpai Intelligent Technology Co., Ltd. 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 14import("//drivers/hdf_core/adapter/khdf/liteos/hdf.gni") 15 16group("drivers") { 17 deps = [ 18 "adc", 19 "gpio", 20 "i2c", 21 "iwdg", 22 "pwm", 23 "rng", 24 "smp", 25 "spi", 26 "stm32mp1xx_hal", 27 "uart", 28 "wlan:wifi_firmware", 29 ] 30} 31 32config("public") { 33 lib_dirs = [ "//device/soc/st/common/platform/libs/ohos/llvm/stm32mp1xx" ] 34 ldflags = [ "-Wl,--push-state,--whole-archive" ] 35 36 ldflags += [ "-lltdc" ] 37 if (defined(LOSCFG_DRIVERS_MMC)) { 38 ldflags += [ "-lmmc" ] 39 } 40 if (defined(LOSCFG_DRIVERS_HDF_WIFI)) { 41 ldflags += [ "-lhdf_vendor_wifi" ] 42 } 43 if (defined(LOSCFG_DRIVERS_HDF_WIFI) && defined(LOSCFG_DRIVERS_HI3881)) { 44 ldflags += [ "-lhi3881" ] 45 } 46} 47