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") 16 17# Set firmware name 18fw_img_name = "application" 19 20executable("${fw_img_name}.elf") { 21 deps = [ 22 "ble_template:ble_example", 23 "//build/lite:ohos", 24 ] 25 26 ldflags = [ 27 "-Wl,--whole-archive", 28 "-lble_example", 29 "-Wl,--no-whole-archive", 30 ] 31} 32 33action("image") { 34 script = "//device/soc/$device_company/gr551x/tools/bin_create.py" 35 outputs = [ 36 "$root_build_dir/bin/${fw_img_name}.bin", 37 "$root_build_dir/bin/${fw_img_name}.lst", 38 ] 39 args = [ 40 rebase_path("$root_build_dir/unstripped/bin/${fw_img_name}.elf"), 41 rebase_path(outputs[0]), 42 rebase_path(outputs[1]), 43 ] 44 deps = [ ":${fw_img_name}.elf" ] 45} 46 47group("gr5515_sk_iotlink_demo") { 48} 49