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 14import("//build/lite/config/component/lite_component.gni") 15import("//build/lite/config/subsystem/lite_subsystem.gni") 16import("//kernel/liteos_m/liteos.gni") 17 18copy("link-script") { 19 sources = [ "sdk_liteos/platform/startup/gr551x.ld" ] 20 outputs = [ "$root_build_dir/bin/link.ld" ] 21} 22 23copy("sdk_lib") { 24 sources = 25 [ "sdk_liteos/gr551x_sdk/components/sdk/linker/lib_gcc/libble_sdk.a" ] 26 outputs = [ "$root_build_dir/libs/libble_sdk.a" ] 27} 28 29copy("rom_symbol") { 30 sources = [ 31 "sdk_liteos/gr551x_sdk/components/patch/symbol_table/rom_symbol_gcc.txt", 32 ] 33 outputs = [ "$root_build_dir/libs/rom_symbol_gcc.txt" ] 34} 35 36module_name = get_path_info(rebase_path("."), "name") 37module_group(module_name) { 38 deps = [ 39 ":link-script", 40 ":rom_symbol", 41 ":sdk_lib", 42 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_static", 43 "//build/lite/config/component/cJSON:cjson_static", 44 ] 45 modules = [ 46 "sdk_liteos", 47 "components", 48 ] 49} 50