classes: Add copyright statements to files without one

Where there isn't a copyright statement, add one to make it explicit.
Also drop editor config lines where they were present.

(From OE-Core rev: 880c1ea3edc8edef974e65b2d424fc36809ea034)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2022-08-10 18:21:38 +01:00
parent 7bd328f9d2
commit 971d5f7b81
188 changed files with 739 additions and 6 deletions

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
#
# This class is used for architecture independent recipes/data files (usually scripts)
#

View File

@ -1,5 +1,7 @@
# 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"

View File

@ -1,3 +1,7 @@
#
# 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.

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
def get_autotools_dep(d):
if d.getVar('INHIBIT_AUTOTOOLS_DEPS'):
return ''

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
# Baremetal image class
#
# This class is meant to be inherited by recipes for baremetal/RTOS applications

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
BB_DEFAULT_TASK ?= "build"
CLASSOVERRIDE ?= "class-target"

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
DEPENDS:append:class-target = " bash-completion"
PACKAGES += "${PN}-bash-completion"

View File

@ -1,7 +1,7 @@
#
# 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

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
#
# Class to disable binconfig files instead of installing them
#

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
FILES:${PN}-dev += "${bindir}/*-config"
# The namespaces can clash here hence the two step replace

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
# Summarize sstate usage at the end of the build
python buildstats_summary () {
import collections

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
BUILDSTATS_BASE = "${TMPDIR}/buildstats/"
################################################################################

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
##
## Purpose:
## This class is used by any recipes that are built using

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
##
## Purpose:
## This class is to support building with cargo. It

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
#
# Usage:
# - Enable ccache

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
inherit terminal
python do_ccmake() {

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
CHRPATH_BIN ?= "chrpath"
PREPROCESS_RELOCATE_DIRS ?= ""

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
# Path to the CMake file to process.
OECMAKE_SOURCEPATH ??= "${S}"

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
# returns all the elements from the src uri that are .cfg files
def find_cfgs(d):
sources=src_patches(d, True)

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
# Compress man pages in ${mandir} and info pages in ${infodir}
#
# 1. The doc will be compressed to gz format by default.

View File

@ -1,3 +1,7 @@
#
# 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).

View File

@ -1,10 +1,12 @@
#
# 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'

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
#
# cpan-base providers various perl related information needed for building
# cpan modules

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
#
# This is for perl modules that use the old Makefile.PL build system
#

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
#
# This is for perl modules that use the new Build.PL build system
#

View File

@ -1,4 +1,6 @@
#
# Copyright OpenEmbedded Contributors
#
# SPDX-License-Identifier: GPL-2.0-only
#

View File

@ -1,4 +1,6 @@
#
# 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

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
inherit relocatable
# Cross packages are built indirectly via dependency,

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
inherit cross
CLASSOVERRIDE = "class-crosssdk"

View File

@ -1,3 +1,7 @@
#
# 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

View File

@ -1,3 +1,7 @@
#
# 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

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
DEPLOYDIR = "${WORKDIR}/deploy-${PN}"
SSTATETASKS += "do_deploy"
do_deploy[sstate-inputdirs] = "${DEPLOYDIR}"

View File

@ -1,3 +1,7 @@
#
# 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

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
inherit terminal
DEVSHELL = "${SHELL}"

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
# Development tool - source extraction helper class
#
# NOTE: this class is intended for use by devtool and should not be

View File

@ -1,3 +1,7 @@
#
# 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.

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
# Temporarily provide fallback to the old name of the class
python __anonymous() {

View File

@ -1,3 +1,7 @@
#
# 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

View File

@ -1,3 +1,7 @@
#
# 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

View File

@ -1,3 +1,7 @@
#
# 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.

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
#
# This class will generate the proper postinst/postrm scriptlets for font
# packages.

View File

@ -1,3 +1,7 @@
#
# 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.

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
DEPENDS += "gconf"
PACKAGE_WRITE_DEPS += "gconf-native"

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
def gettext_dependencies(d):
if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d, 'cross-canadian'):
return ""

View File

@ -1,3 +1,7 @@
#
# 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

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
PACKAGE_WRITE_DEPS += "qemu-native"
inherit qemu

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
# Handle Glide Vendor Package Management use
#
# Copyright 2018 (C) O.S. Systems Software LTDA.

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
def gnome_verdir(v):
return ".".join(v.split(".")[:-1])

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
# Handle Go Modules support
#
# When using Go Modules, the the current working directory MUST be at or below

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
inherit go ptest
do_compile_ptest_base() {

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
inherit goarch
inherit linuxloader

View File

@ -1,3 +1,7 @@
#
# 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}"

View File

@ -1,3 +1,7 @@
#
# 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.
#

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
# Inherit this class in recipes to enable building their introspection files
# python3native is inherited to prevent introspection tools being run with

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
inherit grub-efi-cfg
require conf/image-uefi.conf

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
# A bbclass to handle installed GSettings (glib) schemas, updated the compiled
# form on package install and remove.
#

View File

@ -1,3 +1,7 @@
#
# 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).

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
FILES:${PN} += "${datadir}/icons/hicolor"
GTKIC_VERSION ??= '3'

View File

@ -1,3 +1,7 @@
#
# 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

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
# IceCream distributed compiling support
#
# Stages directories with symlinks from gcc/g++ to icecc, for both

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
##################################################################
# Specific image creation and rootfs population info.
##################################################################

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
IMAGE_PREPROCESS_COMMAND:append = " combine_dbg_image; "
combine_dbg_image () {

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
ROOTFS_BOOTSTRAP_INSTALL = ""
IMAGE_TYPES_MASKED += "container"
IMAGE_TYPEDEP:container = "tar.bz2"

View File

@ -1,3 +1,7 @@
#
# 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}"

View File

@ -1,3 +1,6 @@
#
# Copyright OpenEmbedded Contributors
#
IMAGE_CLASSES ??= ""

View File

@ -1,3 +1,7 @@
#
# 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).

View File

@ -1,3 +1,7 @@
#
# 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 ?= "\

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
# BB Class inspired by ebuild.sh
#
# This class will test files after installation for certain

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
#
# set the ARCH environment variable for kernel compilation (including
# modules). return value must match one of the architecture directories

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
##################################################################
# Specific kernel creation info
# for recipes/bbclasses which need to reuse some of the kernel

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
# Support for device tree generation
python () {
if not bb.data.inherits_class('nopackages', d):

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
inherit kernel-uboot kernel-artifact-names uboot-sign
def get_fit_replacement_type(d):

View File

@ -1,3 +1,7 @@
#
# 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

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
pkg_postinst:modules () {
if [ -z "$D" ]; then
depmod -a ${KERNEL_VERSION}

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
# fitImage kernel compression algorithm
FIT_KERNEL_COMP_ALG ?= "gzip"
FIT_KERNEL_COMP_ALG_EXTENSION ?= ".gz"

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
inherit kernel-uboot
python __anonymous () {

View File

@ -1,3 +1,7 @@
#
# 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"

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
inherit linux-kernel-base kernel-module-split
COMPATIBLE_HOST = ".*-linux"

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
S = "${STAGING_KERNEL_DIR}"
deltask do_fetch
deltask do_unpack

View File

@ -1,4 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
#
# ${PN}-bin is defined in bitbake.conf
#
# We need to allow the other packages to be greedy with what they

View File

@ -1,3 +1,7 @@
#
# 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.

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
# Populates LICENSE_DIRECTORY as set in distro config with the license files as set by
# LIC_FILES_CHKSUM.
# TODO:

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
ROOTFS_LICENSE_DIR = "${IMAGE_ROOTFS}/usr/share/common-licenses"
# This requires LICENSE_CREATE_PACKAGE=1 to work too

View File

@ -1,3 +1,6 @@
#
# Copyright OpenEmbedded Contributors
#
python __anonymous () {
if d.getVar('PREFERRED_PROVIDER_virtual/kernel') == 'linux-dummy':

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
# parse kernel ABI version out of <linux/version.h>
def get_kernelversion_headers(p):
import re

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
def get_musl_loader_arch(d):
import re
ldso_arch = "NotSupported"

View File

@ -1,3 +1,7 @@
#
# 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):

View File

@ -1,3 +1,7 @@
#
# 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(),

View File

@ -1,3 +1,7 @@
#
# 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

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
python mcextend_virtclass_handler () {
cls = e.data.getVar("BBEXTENDCURR")
variant = e.data.getVar("BBEXTENDVARIANT")

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
inherit siteinfo
def meson_array(var, d):

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
inherit python3native meson-routines qemu
DEPENDS:append = " meson-native ninja-native"

View File

@ -1,3 +1,6 @@
#
# Copyright OpenEmbedded Contributors
#
METADATA_BRANCH := "${@oe.buildcfg.detect_branch(d)}"
METADATA_BRANCH[vardepvalue] = "${METADATA_BRANCH}"

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
PRSERV_DUMPDIR ??= "${LOG_DIR}/db"
LOCALCOUNT_DUMPFILE ??= "${PRSERV_DUMPDIR}/prserv-localcount-exports.inc"

View File

@ -1,4 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
#
# This class creates mime <-> application associations based on entry
# 'MimeType' in *.desktop files
#

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
#
# This class is used by recipes installing mime types
#

View File

@ -1,3 +1,7 @@
#
# 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 \

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
inherit kernel-arch
# We do the dependency this way because the output is not preserved

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
inherit module-base kernel-module-split pkgconfig
EXTRA_OEMAKE += "KERNEL_SRC=${STAGING_KERNEL_DIR}"

View File

@ -1,3 +1,7 @@
#
# Copyright OpenEmbedded Contributors
#
python multilib_virtclass_handler () {
cls = e.data.getVar("BBEXTENDCURR")
variant = e.data.getVar("BBEXTENDVARIANT")

Some files were not shown because too many files have changed in this diff Show More