diff --git a/conf/bblayers.conf.sample b/conf/bblayers.conf.sample new file mode 100644 index 0000000000000000000000000000000000000000..414895c6fc28363672ee57ed816ebf4e63c63c29 --- /dev/null +++ b/conf/bblayers.conf.sample @@ -0,0 +1,19 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# +# SPDX-License-Identifier: Apache-2.0 + +# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf +# changes incompatibly +POKY_BBLAYERS_CONF_VERSION = "2" + +BBPATH = "${TOPDIR}" +BBFILES ?= "" + +BBLAYERS ?= " \ + ##OEROOT##/../oniro/meta-oniro-staging \ + ##OEROOT##/meta \ + ##OEROOT##/../meta-clang \ + ##OEROOT##/../meta-openembedded/meta-oe \ + ##OEROOT##/../meta-openembedded/meta-python \ + ##OEROOT##/../meta-openharmony \ + " diff --git a/conf/conf-notes.txt b/conf/conf-notes.txt new file mode 100644 index 0000000000000000000000000000000000000000..a47c87060505cd97cd4002d990b94dac13788e3b --- /dev/null +++ b/conf/conf-notes.txt @@ -0,0 +1,13 @@ + +### Shell environment set up for builds. ### + +You can now run 'bitbake <target>' + +Common targets are: + oniro-openharmony-toolchain + oniro-openharmony-bundle + +Other commonly useful commands are: + - 'devtool' and 'recipetool' handle common recipe tasks + - 'bitbake-layers' handles common layer tasks + - 'oe-pkgdata-util' handles common target package tasks diff --git a/conf/conf-notes.txt.license b/conf/conf-notes.txt.license new file mode 100644 index 0000000000000000000000000000000000000000..98a0b3f4a5b8db268215a128c7d06e0a10897e73 --- /dev/null +++ b/conf/conf-notes.txt.license @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# +# SPDX-License-Identifier: Apache-2.0 diff --git a/conf/layer.conf b/conf/layer.conf new file mode 100644 index 0000000000000000000000000000000000000000..5ba1db79747148b20cfb832a8cb4b988653a26a7 --- /dev/null +++ b/conf/layer.conf @@ -0,0 +1,22 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# +# SPDX-License-Identifier: Apache-2.0 + +# We have a conf directory, add to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have recipes-* directories, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + +BBFILE_COLLECTIONS += "meta-openharmony" +BBFILE_PATTERN_meta-openharmony = "^${LAYERDIR}/" +BBFILE_PRIORITY_meta-openharmony = "5" + +LAYERDEPENDS_meta-openharmony = "core" +LAYERDEPENDS_meta-openharmony += "openembedded-layer" +LAYERDEPENDS_meta-openharmony += "oniro-staging" +LAYERDEPENDS_meta-openharmony += "meta-python" +LAYERDEPENDS_meta-openharmony += "clang-layer" + +LAYERSERIES_COMPAT_meta-openharmony = "kirkstone" diff --git a/conf/local.conf.sample b/conf/local.conf.sample new file mode 100644 index 0000000000000000000000000000000000000000..3feeaa204df5b3d8c9fb8f3640d48e0029a32a61 --- /dev/null +++ b/conf/local.conf.sample @@ -0,0 +1,64 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# +# SPDX-License-Identifier: Apache-2.0 + +# +# This file is your local configuration file and is where all local user settings +# are placed. The comments in this file give some guide to the options a new user +# to the system might want to change but pretty much any configuration option can +# be set in this file. More adventurous users can look at local.conf.extended +# which contains other examples of configuration which can be placed in this file +# but new users likely won't need any of them initially. +# +# Lines starting with the '#' character are commented out and in some cases the +# default values are provided as comments to show people example syntax. Enabling +# the option is a question of removing the # character and making any change to the +# variable as required. + + +# Machine Selection +# +# You need to select a specific machine to target the build with. There are a selection +# of emulated machines available which can boot and run in the QEMU emulator: +# +#MACHINE ?= "qemuarma7" +# +# This sets the default machine to aries if no other machine is selected: +MACHINE ??= "qemuarma7" + +# SDK architecture +# +SDKMACHINE ?= "x86_64" + +# +# Default policy config +# +DISTRO ?= "oniro-openharmony-linux" + +# +# Parallelism Options +# +# These two options control how much parallelism BitBake should use. The first +# option determines how many tasks bitbake should run in parallel: +# +#BB_NUMBER_THREADS ?= "4" +# +# Default to setting automatically based on cpu count +#BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}" +# +# The second option controls how many processes make should run in parallel when +# running compile tasks: +# +#PARALLEL_MAKE ?= "-j 4" +# +# Default to setting automatically based on cpu count +#PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}" +# +# For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would +# be appropriate for example. + +# +# Removes sources after build to conserve diskspace +# +INHERIT += "rm_work" +RM_WORK_EXCLUDE += "qemu-helper-native"