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