Where there isn't a copyright statement, add one to make it explicit.
Also drop editor config lines where they were present.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# This class is used for architecture independent recipes/data files (usually scripts)
#
-# ex:ts=4:sw=4:sts=4:et
-# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# This bbclass is used for creating archive for:
# 1) original (or unpacked) source: ARCHIVER_MODE[src] = "original"
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Autotools class for recipes where separate build dir doesn't work
# Ideally we should fix software so it does work. Standard autotools supports
# this.
+#
+# Copyright OpenEmbedded Contributors
+#
+
def get_autotools_dep(d):
if d.getVar('INHIBIT_AUTOTOOLS_DEPS'):
return ''
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Baremetal image class
#
# This class is meant to be inherited by recipes for baremetal/RTOS applications
+#
+# Copyright OpenEmbedded Contributors
+#
+
BB_DEFAULT_TASK ?= "build"
CLASSOVERRIDE ?= "class-target"
+#
+# Copyright OpenEmbedded Contributors
+#
+
DEPENDS:append:class-target = " bash-completion"
PACKAGES += "${PN}-bash-completion"
#
-# ex:ts=4:sw=4:sts=4:et
-# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
+# Copyright OpenEmbedded Contributors
#
+
# Common variable and task for the binary package recipe.
# Basic principle:
# * The files have been unpacked to ${S} by base.bbclass
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# Class to disable binconfig files instead of installing them
#
+#
+# Copyright OpenEmbedded Contributors
+#
+
FILES:${PN}-dev += "${bindir}/*-config"
# The namespaces can clash here hence the two step replace
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Summarize sstate usage at the end of the build
python buildstats_summary () {
import collections
+#
+# Copyright OpenEmbedded Contributors
+#
+
BUILDSTATS_BASE = "${TMPDIR}/buildstats/"
################################################################################
+#
+# Copyright OpenEmbedded Contributors
+#
+
##
## Purpose:
## This class is used by any recipes that are built using
+#
+# Copyright OpenEmbedded Contributors
+#
+
##
## Purpose:
## This class is to support building with cargo. It
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# Usage:
# - Enable ccache
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit terminal
python do_ccmake() {
+#
+# Copyright OpenEmbedded Contributors
+#
+
CHRPATH_BIN ?= "chrpath"
PREPROCESS_RELOCATE_DIRS ?= ""
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Path to the CMake file to process.
OECMAKE_SOURCEPATH ??= "${S}"
+#
+# Copyright OpenEmbedded Contributors
+#
+
# returns all the elements from the src uri that are .cfg files
def find_cfgs(d):
sources=src_patches(d, True)
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Compress man pages in ${mandir} and info pages in ${infodir}
#
# 1. The doc will be compressed to gz format by default.
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Deploy sources for recipes for compliance with copyleft-style licenses
# Defaults to using symlinks, as it's a quick operation, and one can easily
# follow the links when making use of the files (e.g. tar with the -h arg).
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Filter the license, the copyleft_should_include returns True for the
# COPYLEFT_LICENSE_INCLUDE recipe, and False for the
# COPYLEFT_LICENSE_EXCLUDE.
#
# By default, includes all GPL and LGPL, and excludes CLOSED and Proprietary.
-#
-# vi:sts=4:sw=4:et
COPYLEFT_LICENSE_INCLUDE ?= 'GPL* LGPL* AGPL*'
COPYLEFT_LICENSE_INCLUDE[type] = 'list'
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# cpan-base providers various perl related information needed for building
# cpan modules
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# This is for perl modules that use the old Makefile.PL build system
#
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# This is for perl modules that use the new Build.PL build system
#
#
+# Copyright OpenEmbedded Contributors
+#
# SPDX-License-Identifier: GPL-2.0-only
#
#
+# Copyright OpenEmbedded Contributors
+#
# NOTE - When using this class the user is responsible for ensuring that
# TRANSLATED_TARGET_ARCH is added into PN. This ensures that if the TARGET_ARCH
# is changed, another nativesdk xxx-canadian-cross can be installed
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit relocatable
# Cross packages are built indirectly via dependency,
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit cross
CLASSOVERRIDE = "class-crosssdk"
+#
+# Copyright OpenEmbedded Contributors
+#
+
# This class is used to check recipes against public CVEs.
#
# In order to use this class just inherit the class in the
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Debian package renaming only occurs when a package is built
# We therefore have to make sure we build all runtime packages
# before building the current package to make the packages runtime
+#
+# Copyright OpenEmbedded Contributors
+#
+
DEPLOYDIR = "${WORKDIR}/deploy-${PN}"
SSTATETASKS += "do_deploy"
do_deploy[sstate-inputdirs] = "${DEPLOYDIR}"
+#
+# Copyright OpenEmbedded Contributors
+#
+
# This bbclass implements device tree compliation for user provided device tree
# sources. The compilation of the device tree sources is the same as the kernel
# device tree compilation process, this includes being able to include sources
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit terminal
DEVSHELL = "${SHELL}"
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Development tool - source extraction helper class
#
# NOTE: this class is intended for use by devtool and should not be
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Class for use in BBCLASSEXTEND to make it easier to have a single recipe that
# can build both stable tarballs and snapshots from upstream source
# repositories.
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Temporarily provide fallback to the old name of the class
python __anonymous() {
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Turns certain DISTRO_FEATURES into overrides with the same
# name plus a df- prefix. Ensures that these special
# distro features remain set also for native and nativesdk
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Class for use to convert all CRLF line terminators to LF
# provided that some projects are being developed/maintained
# on Windows so they have different line terminators(CRLF) vs
+#
+# Copyright OpenEmbedded Contributors
+#
+
# This bbclass is used for image level user/group configuration.
# Inherit this class if you want to make EXTRA_USERS_PARAMS effective.
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# This class will generate the proper postinst/postrm scriptlets for font
# packages.
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Extract UUID from ${ROOTFS}, which must have been built
# by the time that this function gets called. Only works
# on ext file systems and depends on tune2fs.
+#
+# Copyright OpenEmbedded Contributors
+#
+
DEPENDS += "gconf"
PACKAGE_WRITE_DEPS += "gconf-native"
+#
+# Copyright OpenEmbedded Contributors
+#
+
def gettext_dependencies(d):
if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d, 'cross-canadian'):
return ""
+#
+# Copyright OpenEmbedded Contributors
+#
+
# gi-docgen is a new gnome documentation generator, which
# seems to be a successor to gtk-doc:
# https://gitlab.gnome.org/GNOME/gi-docgen
+#
+# Copyright OpenEmbedded Contributors
+#
+
PACKAGE_WRITE_DEPS += "qemu-native"
inherit qemu
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Handle Glide Vendor Package Management use
#
# Copyright 2018 (C) O.S. Systems Software LTDA.
+#
+# Copyright OpenEmbedded Contributors
+#
+
def gnome_verdir(v):
return ".".join(v.split(".")[:-1])
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Handle Go Modules support
#
# When using Go Modules, the the current working directory MUST be at or below
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit go ptest
do_compile_ptest_base() {
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit goarch
inherit linuxloader
+#
+# Copyright OpenEmbedded Contributors
+#
+
BUILD_GOOS = "${@go_map_os(d.getVar('BUILD_OS'), d)}"
BUILD_GOARCH = "${@go_map_arch(d.getVar('BUILD_ARCH'), d)}"
BUILD_GOTUPLE = "${BUILD_GOOS}_${BUILD_GOARCH}"
+#
+# Copyright OpenEmbedded Contributors
+#
+
# This variable is set to True if gobject-introspection-data is in
# DISTRO_FEATURES and qemu-usermode is in MACHINE_FEATURES, and False otherwise.
#
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Inherit this class in recipes to enable building their introspection files
# python3native is inherited to prevent introspection tools being run with
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit grub-efi-cfg
require conf/image-uefi.conf
+#
+# Copyright OpenEmbedded Contributors
+#
+
# A bbclass to handle installed GSettings (glib) schemas, updated the compiled
# form on package install and remove.
#
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Helper class to pull in the right gtk-doc dependencies and configure
# gtk-doc to enable or disable documentation building (which requries the
# use of usermode qemu).
+#
+# Copyright OpenEmbedded Contributors
+#
+
FILES:${PN} += "${datadir}/icons/hicolor"
GTKIC_VERSION ??= '3'
+#
+# Copyright OpenEmbedded Contributors
+#
+
# This class will update the inputmethod module cache for virtual keyboards
#
# Usage: Set GTKIMMODULES_PACKAGES to the packages that needs to update the inputmethod modules
+#
+# Copyright OpenEmbedded Contributors
+#
+
# IceCream distributed compiling support
#
# Stages directories with symlinks from gcc/g++ to icecc, for both
+#
+# Copyright OpenEmbedded Contributors
+#
+
##################################################################
# Specific image creation and rootfs population info.
##################################################################
+#
+# Copyright OpenEmbedded Contributors
+#
+
IMAGE_PREPROCESS_COMMAND:append = " combine_dbg_image; "
combine_dbg_image () {
+#
+# Copyright OpenEmbedded Contributors
+#
+
ROOTFS_BOOTSTRAP_INSTALL = ""
IMAGE_TYPES_MASKED += "container"
IMAGE_TYPEDEP:container = "tar.bz2"
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Gather existing and candidate postinst intercepts from BBPATH
POSTINST_INTERCEPTS_DIR ?= "${COREBASE}/scripts/postinst-intercepts"
POSTINST_INTERCEPTS_PATHS ?= "${@':'.join('%s/postinst-intercepts' % p for p in '${BBPATH}'.split(':'))}:${POSTINST_INTERCEPTS_DIR}"
+#
+# Copyright OpenEmbedded Contributors
+#
IMAGE_CLASSES ??= ""
+#
+# Copyright OpenEmbedded Contributors
+#
+
# The default aligment of the size of the rootfs is set to 1KiB. In case
# you're using the SD card emulation of a QEMU system simulator you may
# set this value to 2048 (2MiB alignment).
+#
+# Copyright OpenEmbedded Contributors
+#
+
# The WICVARS variable is used to define list of bitbake variables used in wic code
# variables from this list is written to <image>.env file
WICVARS ?= "\
+#
+# Copyright OpenEmbedded Contributors
+#
+
# BB Class inspired by ebuild.sh
#
# This class will test files after installation for certain
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# set the ARCH environment variable for kernel compilation (including
# modules). return value must match one of the architecture directories
+#
+# Copyright OpenEmbedded Contributors
+#
+
##################################################################
# Specific kernel creation info
# for recipes/bbclasses which need to reuse some of the kernel
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Support for device tree generation
python () {
if not bb.data.inherits_class('nopackages', d):
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit kernel-uboot kernel-artifact-names uboot-sign
def get_fit_replacement_type(d):
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# While installing a rpm to update kernel on a deployed target, it will update
# the boot area and the boot menu with the kernel as the priority but allow
+#
+# Copyright OpenEmbedded Contributors
+#
+
pkg_postinst:modules () {
if [ -z "$D" ]; then
depmod -a ${KERNEL_VERSION}
+#
+# Copyright OpenEmbedded Contributors
+#
+
# fitImage kernel compression algorithm
FIT_KERNEL_COMP_ALG ?= "gzip"
FIT_KERNEL_COMP_ALG_EXTENSION ?= ".gz"
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit kernel-uboot
python __anonymous () {
+#
+# Copyright OpenEmbedded Contributors
+#
+
# remove tasks that modify the source tree in case externalsrc is inherited
SRCTREECOVEREDTASKS += "do_validate_branches do_kernel_configcheck do_kernel_checkout do_fetch do_unpack do_patch"
PATCH_GIT_USER_EMAIL ?= "kernel-yocto@oe"
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit linux-kernel-base kernel-module-split
COMPATIBLE_HOST = ".*-linux"
+#
+# Copyright OpenEmbedded Contributors
+#
+
S = "${STAGING_KERNEL_DIR}"
deltask do_fetch
deltask do_unpack
#
+# Copyright OpenEmbedded Contributors
+#
+#
# ${PN}-bin is defined in bitbake.conf
#
# We need to allow the other packages to be greedy with what they
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# This class knows how to package up [e]glibc. Its shared since prebuild binary toolchains
# may need packaging and its pointless to duplicate this code.
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Populates LICENSE_DIRECTORY as set in distro config with the license files as set by
# LIC_FILES_CHKSUM.
# TODO:
+#
+# Copyright OpenEmbedded Contributors
+#
+
ROOTFS_LICENSE_DIR = "${IMAGE_ROOTFS}/usr/share/common-licenses"
# This requires LICENSE_CREATE_PACKAGE=1 to work too
+#
+# Copyright OpenEmbedded Contributors
+#
python __anonymous () {
if d.getVar('PREFERRED_PROVIDER_virtual/kernel') == 'linux-dummy':
+#
+# Copyright OpenEmbedded Contributors
+#
+
# parse kernel ABI version out of <linux/version.h>
def get_kernelversion_headers(p):
import re
+#
+# Copyright OpenEmbedded Contributors
+#
+
def get_musl_loader_arch(d):
import re
ldso_arch = "NotSupported"
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Some of the vars for vm and live image are conflicted, this function
# is used for fixing the problem.
def set_live_vm_vars(d, suffix):
+#
+# Copyright OpenEmbedded Contributors
+#
+
# The following logging mechanisms are to be used in bash functions of recipes.
# They are intended to map one to one in intention and output format with the
# python recipe logging functions of a similar naming convention: bb.plain(),
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Inherit this class to enable or disable building and installation of manpages
# depending on whether 'api-documentation' is in DISTRO_FEATURES. Such building
# tends to pull in the entire XML stack and other tools, so it's not enabled
+#
+# Copyright OpenEmbedded Contributors
+#
+
python mcextend_virtclass_handler () {
cls = e.data.getVar("BBEXTENDCURR")
variant = e.data.getVar("BBEXTENDVARIANT")
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit siteinfo
def meson_array(var, d):
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit python3native meson-routines qemu
DEPENDS:append = " meson-native ninja-native"
+#
+# Copyright OpenEmbedded Contributors
+#
METADATA_BRANCH := "${@oe.buildcfg.detect_branch(d)}"
METADATA_BRANCH[vardepvalue] = "${METADATA_BRANCH}"
+#
+# Copyright OpenEmbedded Contributors
+#
+
PRSERV_DUMPDIR ??= "${LOG_DIR}/db"
LOCALCOUNT_DUMPFILE ??= "${PRSERV_DUMPDIR}/prserv-localcount-exports.inc"
#
+# Copyright OpenEmbedded Contributors
+#
+#
# This class creates mime <-> application associations based on entry
# 'MimeType' in *.desktop files
#
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# This class is used by recipes installing mime types
#
+#
+# Copyright OpenEmbedded Contributors
+#
+
MIRRORS += "\
${DEBIAN_MIRROR} http://snapshot.debian.org/archive/debian/20180310T215105Z/pool \
${DEBIAN_MIRROR} http://snapshot.debian.org/archive/debian-archive/20120328T092752Z/debian/pool \
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit kernel-arch
# We do the dependency this way because the output is not preserved
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit module-base kernel-module-split pkgconfig
EXTRA_OEMAKE += "KERNEL_SRC=${STAGING_KERNEL_DIR}"
+#
+# Copyright OpenEmbedded Contributors
+#
+
python multilib_virtclass_handler () {
cls = e.data.getVar("BBEXTENDCURR")
variant = e.data.getVar("BBEXTENDVARIANT")
+#
+# Copyright OpenEmbedded Contributors
+#
+
def preferred_ml_updates(d):
# If any of PREFERRED_PROVIDER, PREFERRED_RPROVIDER, REQUIRED_VERSION
# or PREFERRED_VERSION are set, we need to mirror these variables in
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit siteinfo
# If applicable on the architecture, this routine will rename the header and
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# Recipe needs to set MULTILIB_SCRIPTS in the form <pkgname>:<scriptname>, e.g.
# MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/file1 ${PN}:${base_bindir}/file2"
+#
+# Copyright OpenEmbedded Contributors
+#
+
# We want native packages to be relocatable
inherit relocatable
+#
+# Copyright OpenEmbedded Contributors
+#
+
# SDK packages are built either explicitly by the user,
# or indirectly via dependency. No need to be in 'world'.
EXCLUDE_FROM_WORLD = "1"
+#
+# Copyright OpenEmbedded Contributors
+#
+
deltask do_package
deltask do_package_write_rpm
deltask do_package_write_ipk
+#
+# Copyright OpenEmbedded Contributors
+#
+
addtask lint before do_build
do_lint[nostamp] = "1"
python do_lint() {
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Class for setting up /etc in overlayfs
#
# In order to have /etc directory in overlayfs a special handling at early boot stage is required
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Class for generation of overlayfs mount units
#
# It's often desired in Embedded System design to have a read-only rootfs.
+#
+# Copyright OpenEmbedded Contributors
+#
+
PREMIRRORS:prepend = " \
cvs://.*/.* ${SOURCE_MIRROR_URL} \
svn://.*/.* ${SOURCE_MIRROR_URL} \
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# Packaging process
#
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit package
IMAGE_PKGTYPE ?= "ipk"
+#
+# Copyright OpenEmbedded Contributors
+#
+
WORKDIR_PKGDATA = "${WORKDIR}/pkgdata-sysroot"
def package_populate_pkgdata_dir(pkgdatadir, d):
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit package
IMAGE_PKGTYPE ?= "rpm"
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit package
IMAGE_PKGTYPE ?= "tar"
+#
+# Copyright OpenEmbedded Contributors
+#
+
python read_subpackage_metadata () {
import oe.packagedata
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Class for packagegroup (package group) recipes
# By default, only the packagegroup package itself is in PACKAGES.
+#
+# Copyright OpenEmbedded Contributors
+#
+
PERL_OWN_DIR = ""
# Determine the staged version of perl from the perl configuration file
+#
+# Copyright OpenEmbedded Contributors
+#
+
EXTRANATIVEPATH += "perl-native"
DEPENDS += "perl-native"
OECMAKE_PERLNATIVE_DIR = "${STAGING_BINDIR_NATIVE}/perl-native"
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# This class will generate the proper postinst/postrm scriptlets for pixbuf
# packages.
+#
+# Copyright OpenEmbedded Contributors
+#
+
DEPENDS:prepend = "pkgconfig-native "
+#
+# Copyright OpenEmbedded Contributors
+#
+
# The majority of populate_sdk is located in populate_sdk_base
# This chunk simply facilitates compatibility with SDK only recipes.
+#
+# Copyright OpenEmbedded Contributors
+#
+
PACKAGES = ""
inherit image-postinst-intercepts image-artifact-names
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Extensible SDK
inherit populate_sdk_base
+#
+# Copyright OpenEmbedded Contributors
+#
+
PRSERV_DUMPOPT_VERSION = "${PRAUTOINX}"
PRSERV_DUMPOPT_PKGARCH = ""
PRSERV_DUMPOPT_CHECKSUM = ""
+#
+# Copyright OpenEmbedded Contributors
+#
+
python primport_handler () {
import bb.event
if not e.data:
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit ptest
EXTRA_OECONF:append = " ${@bb.utils.contains('PTEST_ENABLED', '1', '--enable-installed-tests', '--disable-installed-tests', d)}"
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit ptest
FILESEXTRAPATHS:prepend := "${COREBASE}/meta/files:"
+#
+# Copyright OpenEmbedded Contributors
+#
+
SUMMARY:${PN}-ptest ?= "${SUMMARY} - Package test files"
DESCRIPTION:${PN}-ptest ?= "${DESCRIPTION} \
This package contains a test directory ${PTEST_PATH} for package test purposes."
+#
+# Copyright OpenEmbedded Contributors
+#
+
def pypi_package(d):
bpn = d.getVar('BPN')
if bpn.startswith('python-'):
+#
+# Copyright OpenEmbedded Contributors
+#
+
PYTHON_BASEVERSION = "3.10"
PYTHON_ABI = ""
PYTHON_DIR = "python${PYTHON_BASEVERSION}"
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit python3-dir
PYTHON="${STAGING_BINDIR_NATIVE}/python3-native/python3"
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit python3native
EXTRA_PYTHON_DEPENDS ?= ""
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit python_pep517 python3native python3-dir setuptools3-base
DEPENDS += "python3 python3-flit-core-native"
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit python_pep517 python3native python3-dir setuptools3-base
DEPENDS += "python3-hatchling-native"
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Common infrastructure for Python packages that use PEP-517 compliant packaging.
# https://www.python.org/dev/peps/pep-0517/
#
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit python_pep517 python3native setuptools3-base
DEPENDS += "python3-poetry-core-native"
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# This class helps make sure that Python extensions built with PyO3
# and setuptools_rust properly set up the environment for cross compilation
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit python_pyo3 setuptools3
DEPENDS += "python3-setuptools-rust-native"
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit setuptools3-base python_pep517
DEPENDS += "python3-setuptools-native python3-wheel-native"
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# This class contains functions for recipes that need QEMU or test for its
# existence.
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Help runqemu boot target board, "QB" means Qemu Boot, the following
# vars can be set in conf files, such as <bsp.conf> to make it can be
# boot by runqemu:
+#
+# Copyright OpenEmbedded Contributors
+#
+
def __note(msg, d):
bb.note("%s: recipe_sanity: %s" % (d.getVar("P"), msg))
+#
+# Copyright OpenEmbedded Contributors
+#
+
do_install[postfuncs] += "install_relative_symlinks"
python install_relative_symlinks () {
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit chrpath
SYSROOT_PREPROCESS_FUNCS += "relocatable_binaries_preprocess relocatable_native_pcfiles"
+#
+# Copyright OpenEmbedded Contributors
+#
+
# This class removes libtool .la files after do_install
REMOVE_LIBTOOL_LA ?= "1"
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# Removes source after build
#
+#
+# Copyright OpenEmbedded Contributors
+#
# Zap the root password if debug-tweaks and empty-root-password features are not enabled
ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'empty-root-password' ], "", "zap_empty_root_password; ",d)}'
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# Creates a root filesystem out of IPKs
#
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# Creates a root filesystem out of rpm packages
#
+#
+# Copyright OpenEmbedded Contributors
+#
+
# This class installs additional files found on the build host
# directly into the rootfs.
#
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit rust
RDEPENDS:${PN}:append:class-target = " ${RUSTLIB_DEP}"
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit python3native
inherit rust-target-config
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Right now this is focused on arm-specific tune features.
# We get away with this for now as one can only use x86-64 as the build host
# (not arm).
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit rust-common
RUSTC = "rustc"
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# Sanity check the users setup for common misconfigurations
#
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit python3native
DEPENDS += "python3-scons-native"
+#
+# Copyright OpenEmbedded Contributors
+#
+
DEPENDS:append:class-target = " ${PYTHON_PN}-native ${PYTHON_PN}"
DEPENDS:append:class-nativesdk = " ${PYTHON_PN}-native ${PYTHON_PN}"
RDEPENDS:${PN}:append:class-target = " ${PYTHON_PN}-core"
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit setuptools3-base python_pep517
DEPENDS += "python3-setuptools-native python3-wheel-native"
+#
+# Copyright OpenEmbedded Contributors
+#
+
# This class is for packages which use the deprecated setuptools behaviour,
# specifically custom install tasks which don't work correctly with bdist_wheel.
# This behaviour is deprecated in setuptools[1] and won't work in the future, so
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Class for generating signed IPK packages.
#
# Configuration variables used by this class:
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Class for signing package feeds
#
# Related configuration variables that will be used after this class is
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Class for generating signed RPM packages.
#
# Configuration variables used by this class:
+#
+# Copyright OpenEmbedded Contributors
+#
+
python siteconfig_do_siteconfig () {
shared_state = sstate_state_fromvars(d)
if shared_state['task'] != 'populate_sysroot':
+#
+# Copyright OpenEmbedded Contributors
+#
+
# This class exists to provide information about the targets that
# may be needed by other classes and/or recipes. If you add a new
# target this will probably need to be updated.
+#
+# Copyright OpenEmbedded Contributors
+#
+
SSTATE_VERSION = "10"
SSTATE_ZSTD_CLEVEL ??= "8"
+#
+# Copyright OpenEmbedded Contributors
+#
+
# These directories will be staged in the sysroot
SYSROOT_DIRS = " \
${includedir} \
+#
+# Copyright OpenEmbedded Contributors
+#
+
SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
SYSTEMD_BOOT_ENTRIES ?= ""
SYSTEMD_BOOT_TIMEOUT ?= "10"
+#
+# Copyright OpenEmbedded Contributors
+#
+
# The list of packages that should have systemd packaging scripts added. For
# each entry, optionally have a SYSTEMD_SERVICE:[package] that lists the service
# files in this package. If this variable isn't set, [package].service is used.
+#
+# Copyright OpenEmbedded Contributors
+#
+
OE_TERMINAL ?= 'auto'
OE_TERMINAL[type] = 'choice'
OE_TERMINAL[choices] = 'auto none \
+#
+# Copyright OpenEmbedded Contributors
+#
+
# This class is inherited by recipes whose upstream packages invoke the
# texinfo utilities at build-time. Native and cross recipes are made to use the
# dummy scripts provided by texinfo-dummy-native, for improved performance.
+#
+# Copyright OpenEmbedded Contributors
+#
+
#This function create a version information file
toolchain_create_sdk_version () {
local versionfile=$1
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit toolchain-scripts-base siteinfo kernel-arch
# We want to be able to change the value of MULTIMACH_TARGET_SYS, because it
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Check types of bitbake configuration variables
#
# See oe.types for details.
+#
+# Copyright OpenEmbedded Contributors
+#
+
# This file is part of U-Boot verified boot support and is intended to be
# inherited from u-boot recipe and from kernel-fitimage.bbclass.
#
+#
+# Copyright OpenEmbedded Contributors
+#
+
UNINATIVE_LOADER ?= "${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux/lib/${@bb.utils.contains('BUILD_ARCH', 'x86_64', 'ld-linux-x86-64.so.2', '', d)}${@bb.utils.contains('BUILD_ARCH', 'i686', 'ld-linux.so.2', '', d)}${@bb.utils.contains('BUILD_ARCH', 'aarch64', 'ld-linux-aarch64.so.1', '', d)}${@bb.utils.contains('BUILD_ARCH', 'ppc64le', 'ld64.so.2', '', d)}"
UNINATIVE_STAGING_DIR ?= "${STAGING_DIR}"
+#
+# Copyright OpenEmbedded Contributors
+#
+
# This class is used to help the alternatives system which is useful when
# multiple sources provide same command. You can use update-alternatives
# command directly in your recipe, but in most cases this class simplifies
+#
+# Copyright OpenEmbedded Contributors
+#
+
UPDATERCPN ?= "${PN}"
DEPENDS:append:class-target = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', ' update-rc.d initscripts', '', d)}"
+#
+# Copyright OpenEmbedded Contributors
+#
+
# This class ensures that the upstream version check only
# accepts even minor versions (i.e. 3.0.x, 3.2.x, 3.4.x, etc.)
# This scheme is used by Gnome and a number of other projects
+#
+# Copyright OpenEmbedded Contributors
+#
+
# In order to support a deterministic set of 'dynamic' users/groups,
# we need a function to reformat the params based on a static file
def update_useradd_static_config(d):
+#
+# Copyright OpenEmbedded Contributors
+#
+
inherit useradd_base
# base-passwd-cross provides the default passwd and group files in the
+#
+# Copyright OpenEmbedded Contributors
+#
+
# This bbclass provides basic functionality for user/group settings.
# This bbclass is intended to be inherited by useradd.bbclass and
# extrausers.bbclass.
+#
+# Copyright OpenEmbedded Contributors
+#
+
addtask listtasks
do_listtasks[nostamp] = "1"
python do_listtasks() {
+#
+# Copyright OpenEmbedded Contributors
+#
oe_soinstall() {
# Purpose: Install shared library file and
+#
+# Copyright OpenEmbedded Contributors
+#
+
# Everyone needs vala-native and targets need vala, too,
# because that is where target builds look for .vapi files.
#
+#
+# Copyright OpenEmbedded Contributors
+#
+
# avoids build breaks when using no-static-libs.inc
DISABLE_STATIC = ""
+#
+# Copyright OpenEmbedded Contributors
+#
+
DEPENDS = "libxml2-native"
# A whitespace-separated list of XML catalogs to be registered, for example
+#
+# Copyright OpenEmbedded Contributors
+#
+
#
# This class is used by yocto-check-layer script for additional per-recipe tests
# The first test ensures that the layer has no recipes skipping 'installed-vs-shipped' QA checks