1# Copyright (c) 2022 FuZhou Lockzhiner Electronic Co., Ltd. All rights reserved. 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 17executable("liteos.elf") { 18 deps = [ 19 "//base/update/sys_installer_lite/frameworks/source:hota", 20 "//build/lite:ohos", 21 "//build/lite/config/component/cJSON:cjson_static", 22 "//vendor/lockzhiner/lingpi/hals/utils/token:hal_token_static", 23 24 # xts 25 "//device/soc/rockchip/rk2206/adapter/hals/update:hal_update_static", 26 ] 27 28 ldflags = [] 29} 30 31build_ext_component("liteos") { 32 exec_path = rebase_path("//device/soc/rockchip/rk2206/sdk_liteos/image") 33 outdir = rebase_path(root_out_dir) 34 command = "sh $exec_path/build.sh $outdir/unstripped/bin/liteos.elf $outdir" 35 36 deps = [ ":liteos.elf" ] 37} 38 39group("lingpi") { 40} 41