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 "tests:drivers", 23 "tests:fs_test", 24 "tests:ohosdemo", 25 "tests:shell_test", 26 "//build/lite:ohos", 27 ] 28 29 ldflags = [ 30 "-Wl,--whole-archive", 31 32 # "-lfs_test", 33 # "-ldrivers_test", 34 # "-lapp_hello", 35 "-lshell_test", 36 "-lhctest", 37 "-lmodule_ActsBootstrapTest", 38 "-lmodule_ActsWifiIotTest", 39 "-lmodule_ActsUtilsFileTest", 40 41 # "-lmodule_ActsKvStoreTest", 42 # "-lmodule_ActsParameterTest", 43 "-lmodule_ActsSamgrTest", 44 "-lhuks_test_common", 45 "-lmodule_ActsHuksHalFunctionTest", 46 "-lmodule_ActsDfxFuncTest", 47 "-lmodule_ActsUpdaterFuncTest", 48 "-lmodule_ActsHieventLiteTest", 49 "-Wl,--no-whole-archive", 50 ] 51} 52 53action("image") { 54 script = "//device/soc/$device_company/gr551x/tools/bin_create.py" 55 outputs = [ 56 "$root_build_dir/${fw_img_name}.bin", 57 "$root_build_dir/${fw_img_name}.lst", 58 ] 59 args = [ 60 rebase_path("$root_build_dir/unstripped/bin/${fw_img_name}.elf"), 61 rebase_path(outputs[0]), 62 rebase_path(outputs[1]), 63 ] 64 deps = [ ":${fw_img_name}.elf" ] 65} 66 67group("gr5515_sk_xts_demo") { 68} 69