Skip to content
Snippets Groups Projects
Commit eaa4d771 authored by Esben Haabendal's avatar Esben Haabendal
Browse files

prebuilts: Skip recipes if distro configuration is not proper


Signed-off-by: default avatarEsben Haabendal <esben.haabendal@huawei.com>
parent c9b7344b
No related branches found
No related tags found
1 merge request!36Prepare for integration into meta-oniro-core
Pipeline #6100 passed
...@@ -6,6 +6,8 @@ SUMMARY = "Target specific integration of Oniro toolchain into OpenHarmony" ...@@ -6,6 +6,8 @@ SUMMARY = "Target specific integration of Oniro toolchain into OpenHarmony"
LICENSE = "Apache-2.0" LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM += "file://BUILD_target.gn;beginline=1;endline=3;md5=a1537856660cf2c8e36079c007b35bec" LIC_FILES_CHKSUM += "file://BUILD_target.gn;beginline=1;endline=3;md5=a1537856660cf2c8e36079c007b35bec"
require sanity-check.inc
S = "${WORKDIR}" S = "${WORKDIR}"
B = "${WORKDIR}/build" B = "${WORKDIR}/build"
......
...@@ -6,6 +6,8 @@ SUMMARY = "Integration of Oniro 3rd party components into OpenHarmony" ...@@ -6,6 +6,8 @@ SUMMARY = "Integration of Oniro 3rd party components into OpenHarmony"
LICENSE = "Apache-2.0" LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://overlay/third_party/openssl/BUILD.gn;beginline=1;endline=3;md5=a1537856660cf2c8e36079c007b35bec" LIC_FILES_CHKSUM = "file://overlay/third_party/openssl/BUILD.gn;beginline=1;endline=3;md5=a1537856660cf2c8e36079c007b35bec"
require sanity-check.inc
BBCLASSEXTEND = "native nativesdk" BBCLASSEXTEND = "native nativesdk"
INHIBIT_DEFAULT_DEPS = "1" INHIBIT_DEFAULT_DEPS = "1"
...@@ -21,7 +23,8 @@ SRC_URI += "file://patches/build_third_party.patch;apply=no;subdir=src" ...@@ -21,7 +23,8 @@ SRC_URI += "file://patches/build_third_party.patch;apply=no;subdir=src"
SRC_URI += "file://third_party/openssl/BUILD.gn;subdir=src/overlay" SRC_URI += "file://third_party/openssl/BUILD.gn;subdir=src/overlay"
require oniro-openharmony-thirdparty-integration-${OPENHARMONY_VERSION}.inc # Note: Using include instead of require to avoid parser error skipping recipe
include oniro-openharmony-thirdparty-integration-${OPENHARMONY_VERSION}.inc
do_install() { do_install() {
mkdir -p ${D}${datadir}/oniro-openharmony mkdir -p ${D}${datadir}/oniro-openharmony
......
...@@ -6,6 +6,8 @@ SUMMARY = "Integration of Oniro toolchain into OpenHarmony" ...@@ -6,6 +6,8 @@ SUMMARY = "Integration of Oniro toolchain into OpenHarmony"
LICENSE = "Apache-2.0" LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://setup.sh;beginline=3;endline=15;md5=306e15e328d14d4055327f82b55064a0" LIC_FILES_CHKSUM = "file://setup.sh;beginline=3;endline=15;md5=306e15e328d14d4055327f82b55064a0"
require sanity-check.inc
BBCLASSEXTEND = "native nativesdk" BBCLASSEXTEND = "native nativesdk"
INHIBIT_DEFAULT_DEPS = "1" INHIBIT_DEFAULT_DEPS = "1"
...@@ -43,7 +45,8 @@ SRC_URI += "file://build/common/musl/BUILD.gn;subdir=src/overlay" ...@@ -43,7 +45,8 @@ SRC_URI += "file://build/common/musl/BUILD.gn;subdir=src/overlay"
SRC_URI += "file://BUILD_host.gn" SRC_URI += "file://BUILD_host.gn"
require oniro-openharmony-toolchain-integration-${OPENHARMONY_VERSION}.inc # Note: Using include instead of require to avoid parser error skipping recipe
include oniro-openharmony-toolchain-integration-${OPENHARMONY_VERSION}.inc
SDK_DYNAMIC_LINKER:x86-64 = "ld-linux-x86-64.so.2" SDK_DYNAMIC_LINKER:x86-64 = "ld-linux-x86-64.so.2"
SDK_DYNAMIC_LINKER:x86 = "ld-linux.so.2" SDK_DYNAMIC_LINKER:x86 = "ld-linux.so.2"
......
...@@ -13,6 +13,8 @@ with bitbake. Recipes building OpenHarmony with bitbake should depend on this \ ...@@ -13,6 +13,8 @@ with bitbake. Recipes building OpenHarmony with bitbake should depend on this \
recipe, and will need to hook in the recipe-sysroot and recipe-sysroot-native \ recipe, and will need to hook in the recipe-sysroot and recipe-sysroot-native \
folders before building." folders before building."
require sanity-check.inc
inherit populate_sdk inherit populate_sdk
TOOLCHAIN_OUTPUTNAME = "${PN}-${OPENHARMONY_VERSION}-${TUNE_PKGARCH}-${SDK_VERSION}" TOOLCHAIN_OUTPUTNAME = "${PN}-${OPENHARMONY_VERSION}-${TUNE_PKGARCH}-${SDK_VERSION}"
......
# 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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment