• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
40    # "-lmodule_ActsUtilsFileTest",
41
42    #    "-lmodule_ActsKvStoreTest",
43    #    "-lmodule_ActsParameterTest",
44    "-lmodule_ActsSamgrTest",
45    "-lhuks_test_common",
46    "-lmodule_ActsHuksHalFunctionTest",
47    "-lmodule_ActsDfxFuncTest",
48    "-lmodule_ActsUpdaterFuncTest",
49    "-lmodule_ActsHieventLiteTest",
50    "-Wl,--no-whole-archive",
51  ]
52}
53
54action("image") {
55  script = "//device/soc/$device_company/gr551x/tools/bin_create.py"
56  outputs = [
57    "$root_build_dir/${fw_img_name}.bin",
58    "$root_build_dir/${fw_img_name}.lst",
59  ]
60  args = [
61    rebase_path("$root_build_dir/unstripped/bin/${fw_img_name}.elf"),
62    rebase_path(outputs[0]),
63    rebase_path(outputs[1]),
64  ]
65  deps = [ ":${fw_img_name}.elf" ]
66}
67
68group("gr5515_sk_xts_demo") {
69}
70