1# Copyright (c) 2020 Huawei Device Co., Ltd. 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 14copy("init_configs") { 15 if (ohos_build_type == "release") { 16 sources = [ "init_linux_3516dv300_openharmony_release.cfg" ] 17 } else { 18 sources = [ "init_linux_3516dv300_openharmony_debug.cfg" ] 19 } 20 outputs = [ "$root_out_dir/etc/init.cfg" ] 21} 22 23copy("init_initd") { 24 sources = [ 25 "etc/init.d/rcS", 26 "etc/init.d/S00devs", 27 "etc/init.d/S01mdev", 28 "etc/init.d/S80network", 29 "etc/init.d/S82ohos", 30 "etc/init.d/S84pstore", 31 ] 32 outputs = [ "$root_out_dir/etc/init.d/{{source_file_part}}" ] 33} 34 35copy("init_fstab") { 36 sources = [ 37 "etc/fstab", 38 ] 39 outputs = [ "$root_out_dir/etc/{{source_file_part}}" ] 40}