# Copyright (c) 2021 GOODIX. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/subsystem/lite_subsystem.gni") # Set firmware name fw_img_name = "application" executable("${fw_img_name}.elf") { deps = [ "ble_template:ble_example", "//build/lite:ohos", ] ldflags = [ "-Wl,--whole-archive", "-lble_example", "-Wl,--no-whole-archive", ] } action("image") { script = "//device/soc/$device_company/gr551x/tools/bin_create.py" outputs = [ "$root_build_dir/bin/${fw_img_name}.bin", "$root_build_dir/bin/${fw_img_name}.lst", ] args = [ rebase_path("$root_build_dir/unstripped/bin/${fw_img_name}.elf"), rebase_path(outputs[0]), rebase_path(outputs[1]), ] deps = [ ":${fw_img_name}.elf" ] } group("gr5515_sk_iotlink_demo") { }