1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 17:39:31 +00:00

icecc.bbclass: fix typos

(From OE-Core rev: 7fd33565df5dfaa962bcafd842162a2f504c59e7)

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ulrich Ölmann
2022-09-07 12:57:50 +02:00
committed by Richard Purdie
parent ae485d73ad
commit 35b3d0037f
+23 -23
View File
@@ -4,35 +4,35 @@
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
# #
# IceCream distributed compiling support # Icecream distributed compiling support
# #
# Stages directories with symlinks from gcc/g++ to icecc, for both # Stages directories with symlinks from gcc/g++ to icecc, for both
# native and cross compilers. Depending on each configure or compile, # native and cross compilers. Depending on each configure or compile,
# the directories are added at the head of the PATH list and ICECC_CXX # the directories are added at the head of the PATH list and ICECC_CXX
# and ICEC_CC are set. # and ICECC_CC are set.
# #
# For the cross compiler, creates a tar.gz of our toolchain and sets # For the cross compiler, creates a tar.gz of our toolchain and sets
# ICECC_VERSION accordingly. # ICECC_VERSION accordingly.
# #
# The class now handles all 3 different compile 'stages' (i.e native ,cross-kernel and target) creating the # The class now handles all 3 different compile 'stages' (i.e native ,cross-kernel and target) creating the
# necessary environment tar.gz file to be used by the remote machines. # necessary environment tar.gz file to be used by the remote machines.
# It also supports meta-toolchain generation # It also supports meta-toolchain generation.
# #
# If ICECC_PATH is not set in local.conf then the class will try to locate it using 'bb.utils.which' # If ICECC_PATH is not set in local.conf then the class will try to locate it using 'bb.utils.which'
# but nothing is sure ;) # but nothing is sure. ;)
# #
# If ICECC_ENV_EXEC is set in local.conf, then it should point to the icecc-create-env script provided by the user # If ICECC_ENV_EXEC is set in local.conf, then it should point to the icecc-create-env script provided by the user
# or the default one provided by icecc-create-env.bb will be used # or the default one provided by icecc-create-env_%.bb will be used.
# (NOTE that this is a modified version of the script need it and *not the one that comes with icecc* # (NOTE that this is a modified version of the needed script and *not the one that comes with icecream*).
# #
# User can specify if specific recipes or recipes belonging to class should not use icecc to distribute # User can specify if specific recipes or recipes inheriting specific classes should not use icecc to distribute
# compile jobs to remote machines, but handled locally, by defining ICECC_CLASS_DISABLE and ICECC_RECIPE_DISABLE # compile jobs to remote machines, but handle them locally by defining ICECC_CLASS_DISABLE and ICECC_RECIPE_DISABLE
# with the appropriate values in local.conf. In addition the user can force to enable icecc for recipes # with the appropriate values in local.conf. In addition the user can force to enable icecc for recipes
# which set an empty PARALLEL_MAKE variable by defining ICECC_RECIPE_ENABLE. # which set an empty PARALLEL_MAKE variable by defining ICECC_RECIPE_ENABLE.
# #
######################################################################################### #########################################################################################
#Error checking is kept to minimum so double check any parameters you pass to the class # Error checking is kept to minimum so double check any parameters you pass to the class
########################################################################################### #########################################################################################
BB_BASEHASH_IGNORE_VARS += "ICECC_PARALLEL_MAKE ICECC_DISABLED ICECC_RECIPE_DISABLE \ BB_BASEHASH_IGNORE_VARS += "ICECC_PARALLEL_MAKE ICECC_DISABLED ICECC_RECIPE_DISABLE \
ICECC_CLASS_DISABLE ICECC_RECIPE_ENABLE ICECC_PATH ICECC_ENV_EXEC \ ICECC_CLASS_DISABLE ICECC_RECIPE_ENABLE ICECC_PATH ICECC_ENV_EXEC \
@@ -50,7 +50,7 @@ HOSTTOOLS_NONFATAL += "icecc patchelf"
# invalidate the version on the compile nodes. Changing it will cause a new # invalidate the version on the compile nodes. Changing it will cause a new
# environment to be created. # environment to be created.
# #
# A useful thing to do for testing Icecream changes locally is to add a # A useful thing to do for testing icecream changes locally is to add a
# subversion in local.conf: # subversion in local.conf:
# ICECC_ENV_VERSION:append = "-my-ver-1" # ICECC_ENV_VERSION:append = "-my-ver-1"
ICECC_ENV_VERSION = "2" ICECC_ENV_VERSION = "2"
@@ -72,16 +72,16 @@ CXXFLAGS += "${ICECC_CFLAGS}"
ICECC_ENV_DEBUG ??= "" ICECC_ENV_DEBUG ??= ""
# Disable recipe list contains a list of recipes that can not distribute # Disable recipe list contains a list of recipes that can not distribute
# compile tasks for one reason or the other. When adding new entry, please # compile tasks for one reason or the other. When adding a new entry, please
# document why (how it failed) so that we can re-evaluate it later e.g. when # document why (how it failed) so that we can re-evaluate it later e.g. when
# there is new version # there is a new version.
# #
# libgcc-initial - fails with CPP sanity check error if host sysroot contains # libgcc-initial - fails with CPP sanity check error if host sysroot contains
# cross gcc built for another target tune/variant # cross gcc built for another target tune/variant.
# pixman - prng_state: TLS reference mismatches non-TLS reference, possibly due to # pixman - prng_state: TLS reference mismatches non-TLS reference, possibly due to
# pragma omp threadprivate(prng_state) # pragma omp threadprivate(prng_state).
# systemtap - _HelperSDT.c undefs macros and uses the identifiers in macros emitting # systemtap - _HelperSDT.c undefs macros and uses the identifiers in macros emitting
# inline assembly # inline assembly.
# target-sdk-provides-dummy - ${HOST_PREFIX} is empty which triggers the "NULL # target-sdk-provides-dummy - ${HOST_PREFIX} is empty which triggers the "NULL
# prefix" error. # prefix" error.
ICECC_RECIPE_DISABLE += "\ ICECC_RECIPE_DISABLE += "\
@@ -91,10 +91,10 @@ ICECC_RECIPE_DISABLE += "\
target-sdk-provides-dummy \ target-sdk-provides-dummy \
" "
# Classes that should not use icecc. When adding new entry, please # Classes that should not use icecc. When adding a new entry, please
# document why (how it failed) so that we can re-evaluate it later # document why (how it failed) so that we can re-evaluate it later.
# #
# image - Image aren't compiling, but the testing framework for images captures # image - images aren't compiling, but the testing framework for images captures
# PARALLEL_MAKE as part of the test environment. Many tests won't use # PARALLEL_MAKE as part of the test environment. Many tests won't use
# icecream, but leaving the high level of parallelism can cause them to # icecream, but leaving the high level of parallelism can cause them to
# consume an unnecessary amount of resources. # consume an unnecessary amount of resources.
@@ -103,7 +103,7 @@ ICECC_CLASS_DISABLE += "\
" "
def get_icecc_dep(d): def get_icecc_dep(d):
# INHIBIT_DEFAULT_DEPS doesn't apply to the patch command. Whether or not # INHIBIT_DEFAULT_DEPS doesn't apply to the patch command. Whether or not
# we need that built is the responsibility of the patch function / class, not # we need that built is the responsibility of the patch function / class, not
# the application. # the application.
if not d.getVar('INHIBIT_DEFAULT_DEPS'): if not d.getVar('INHIBIT_DEFAULT_DEPS'):
@@ -259,7 +259,7 @@ def icecc_get_tool_link(tool, d):
def icecc_get_path_tool(tool, d): def icecc_get_path_tool(tool, d):
# This is a little ugly, but we want to make sure we add an actual # This is a little ugly, but we want to make sure we add an actual
# compiler to the toolchain, not ccache. Some distros (e.g. Fedora) # compiler to the toolchain, not ccache. Some distros (e.g. Fedora)
# have ccache enabled by default using symlinks PATH, meaning ccache # have ccache enabled by default using symlinks in PATH, meaning ccache
# would be found first when looking for the compiler. # would be found first when looking for the compiler.
paths = os.getenv("PATH").split(':') paths = os.getenv("PATH").split(':')
while True: while True:
@@ -449,11 +449,11 @@ do_install:prepend() {
set_icecc_env set_icecc_env
} }
# IceCream is not (currently) supported in the extensible SDK # Icecream is not (currently) supported in the extensible SDK
ICECC_SDK_HOST_TASK = "nativesdk-icecc-toolchain" ICECC_SDK_HOST_TASK = "nativesdk-icecc-toolchain"
ICECC_SDK_HOST_TASK:task-populate-sdk-ext = "" ICECC_SDK_HOST_TASK:task-populate-sdk-ext = ""
# Don't include IceCream in uninative tarball # Don't include icecream in uninative tarball
ICECC_SDK_HOST_TASK:pn-uninative-tarball = "" ICECC_SDK_HOST_TASK:pn-uninative-tarball = ""
# Add the toolchain scripts to the SDK # Add the toolchain scripts to the SDK