-
Esben Haabendal authored
This will skip the recipe if openharmony is not enabled in DISTRO_FEATURES, if TOOLCHAIN is not clang or if RUNTIME is not llvm. Signed-off-by:
Esben Haabendal <esben.haabendal@huawei.com>
Esben Haabendal authoredThis will skip the recipe if openharmony is not enabled in DISTRO_FEATURES, if TOOLCHAIN is not clang or if RUNTIME is not llvm. Signed-off-by:
Esben Haabendal <esben.haabendal@huawei.com>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
sanity-check.inc 629 B
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
# Skip recipe if openharmony is not in DISTRO_FEATURES
inherit features_check
REQUIRED_DISTRO_FEATURES = "openharmony"
# Skip recipe if TOOLCHAIN != "clang" or RUNTIME != "llvm"
python () {
toolchain = d.getVar('TOOLCHAIN')
runtime = d.getVar('RUNTIME')
tclibc = d.getVar('TCLIBC')
if toolchain != "clang":
raise bb.parse.SkipRecipe("TOOLCHAIN is not clang")
if runtime != "llvm":
raise bb.parse.SkipRecipe("RUNTIME is not llvm")
if tclibc != "musl":
raise bb.parse.SkipRecipe("TCLIBC is not musl")
}