10a7ce71fSopenharmony_ci# Copyright (c) 2020 Huawei Device Co., Ltd.
20a7ce71fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
30a7ce71fSopenharmony_ci# you may not use this file except in compliance with the License.
40a7ce71fSopenharmony_ci# You may obtain a copy of the License at
50a7ce71fSopenharmony_ci#
60a7ce71fSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0
70a7ce71fSopenharmony_ci#
80a7ce71fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
90a7ce71fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
100a7ce71fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
110a7ce71fSopenharmony_ci# See the License for the specific language governing permissions and
120a7ce71fSopenharmony_ci# limitations under the License.
130a7ce71fSopenharmony_ci
140a7ce71fSopenharmony_cicopy("init_configs") {
150a7ce71fSopenharmony_ci  if (ohos_build_type == "release") {
160a7ce71fSopenharmony_ci    sources = [ "init_linux_3516dv300_openharmony_release.cfg" ]
170a7ce71fSopenharmony_ci  } else {
180a7ce71fSopenharmony_ci    sources = [ "init_linux_3516dv300_openharmony_debug.cfg" ]
190a7ce71fSopenharmony_ci  }
200a7ce71fSopenharmony_ci  outputs = [ "$root_out_dir/etc/init.cfg" ]
210a7ce71fSopenharmony_ci}
220a7ce71fSopenharmony_ci
230a7ce71fSopenharmony_cicopy("init_initd") {
240a7ce71fSopenharmony_ci  sources = [
250a7ce71fSopenharmony_ci    "etc/init.d/S00devs",
260a7ce71fSopenharmony_ci    "etc/init.d/S01mdev",
270a7ce71fSopenharmony_ci    "etc/init.d/S80network",
280a7ce71fSopenharmony_ci    "etc/init.d/S82ohos",
290a7ce71fSopenharmony_ci    "etc/init.d/rcS",
300a7ce71fSopenharmony_ci  ]
310a7ce71fSopenharmony_ci  outputs = [ "$root_out_dir/etc/init.d/{{source_file_part}}" ]
320a7ce71fSopenharmony_ci}
330a7ce71fSopenharmony_ci
340a7ce71fSopenharmony_cicopy("init_fstab") {
350a7ce71fSopenharmony_ci  sources = [ "etc/fstab" ]
360a7ce71fSopenharmony_ci  outputs = [ "$root_out_dir/etc/{{source_file_part}}" ]
370a7ce71fSopenharmony_ci}
38