13298bea7Sopenharmony_ci# Copyright (C) 2022 Huawei Device Co., Ltd. 23298bea7Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 33298bea7Sopenharmony_ci# you may not use this file except in compliance with the License. 43298bea7Sopenharmony_ci# You may obtain a copy of the License at 53298bea7Sopenharmony_ci# 63298bea7Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 73298bea7Sopenharmony_ci# 83298bea7Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 93298bea7Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 103298bea7Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 113298bea7Sopenharmony_ci# See the License for the specific language governing permissions and 123298bea7Sopenharmony_ci# limitations under the License. 133298bea7Sopenharmony_ciimport("//build/ohos.gni") 143298bea7Sopenharmony_ci 153298bea7Sopenharmony_citemplate("kernel_interface_bin") { 163298bea7Sopenharmony_ci executable(target_name) { 173298bea7Sopenharmony_ci forward_variables_from(invoker, "*") 183298bea7Sopenharmony_ci cflags = [ "-w" ] 193298bea7Sopenharmony_ci defines = [ "HAVE_ATOMIC_MEMORY_MODEL=1" ] 203298bea7Sopenharmony_ci if (!defined(invoker.include_dirs)) { 213298bea7Sopenharmony_ci include_dirs = [] 223298bea7Sopenharmony_ci } 233298bea7Sopenharmony_ci deps = [ "//kernel/linux/build/test/kernel_ltp:kernel_ltp_test" ] 243298bea7Sopenharmony_ci include_dirs += [ 253298bea7Sopenharmony_ci "${root_build_dir}/tests/ltp_testcases/ltp/include", 263298bea7Sopenharmony_ci "${root_build_dir}/tests/ltp_testcases/ltp/include/old", 273298bea7Sopenharmony_ci ] 283298bea7Sopenharmony_ci } 293298bea7Sopenharmony_ci} 30