summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2025-01-31 12:03:05 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-02-01 13:42:34 +0000
commitc2da016918d1fda5bf63d94b59863f5013e482f9 (patch)
tree7f1c5dd99c56a405c1ebd86f497461b5c4214752 /meta/classes-recipe
parentc690181cd112ac6eac18c358b970f0ca0c73cd5f (diff)
downloadpoky-c2da016918d1fda5bf63d94b59863f5013e482f9.tar.gz
meta/meta-selftest: Fix variable assignment whitespace
Recipes are much more readable with whitespace around the assignment operators. Fix various assignments in OE-Core to show this is definitely the preferred formatting. (From OE-Core rev: 30ea609d3357fb3de911f2f6a5e6856c151b976a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r--meta/classes-recipe/autotools.bbclass2
-rw-r--r--meta/classes-recipe/cargo.bbclass2
-rw-r--r--meta/classes-recipe/go.bbclass4
-rw-r--r--meta/classes-recipe/gtk-icon-cache.bbclass2
-rw-r--r--meta/classes-recipe/kernel.bbclass2
-rw-r--r--meta/classes-recipe/python3native.bbclass6
-rw-r--r--meta/classes-recipe/python_pyo3.bbclass12
-rw-r--r--meta/classes-recipe/rust.bbclass8
-rw-r--r--meta/classes-recipe/setuptools3.bbclass2
-rw-r--r--meta/classes-recipe/setuptools3_legacy.bbclass2
10 files changed, 21 insertions, 21 deletions
diff --git a/meta/classes-recipe/autotools.bbclass b/meta/classes-recipe/autotools.bbclass
index b1829e83e2..e33eae7d48 100644
--- a/meta/classes-recipe/autotools.bbclass
+++ b/meta/classes-recipe/autotools.bbclass
@@ -52,7 +52,7 @@ export CC_FOR_BUILD = "${BUILD_CC}"
52export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" 52export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
53 53
54export CXX_FOR_BUILD = "${BUILD_CXX}" 54export CXX_FOR_BUILD = "${BUILD_CXX}"
55export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}" 55export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}"
56 56
57export LD_FOR_BUILD = "${BUILD_LD}" 57export LD_FOR_BUILD = "${BUILD_LD}"
58export LDFLAGS_FOR_BUILD = "${BUILD_LDFLAGS}" 58export LDFLAGS_FOR_BUILD = "${BUILD_LDFLAGS}"
diff --git a/meta/classes-recipe/cargo.bbclass b/meta/classes-recipe/cargo.bbclass
index b583f84bdf..76a39668c7 100644
--- a/meta/classes-recipe/cargo.bbclass
+++ b/meta/classes-recipe/cargo.bbclass
@@ -42,7 +42,7 @@ CARGO_BUILD_FLAGS = "-v --frozen --target ${RUST_HOST_SYS} ${BUILD_MODE} --manif
42# This is based on the content of CARGO_BUILD_FLAGS and generally will need to 42# This is based on the content of CARGO_BUILD_FLAGS and generally will need to
43# change if CARGO_BUILD_FLAGS changes. 43# change if CARGO_BUILD_FLAGS changes.
44BUILD_DIR = "${@['release', 'debug'][d.getVar('DEBUG_BUILD') == '1']}" 44BUILD_DIR = "${@['release', 'debug'][d.getVar('DEBUG_BUILD') == '1']}"
45CARGO_TARGET_SUBDIR="${RUST_HOST_SYS}/${BUILD_DIR}" 45CARGO_TARGET_SUBDIR = "${RUST_HOST_SYS}/${BUILD_DIR}"
46oe_cargo_build () { 46oe_cargo_build () {
47 export RUSTFLAGS="${RUSTFLAGS}" 47 export RUSTFLAGS="${RUSTFLAGS}"
48 bbnote "Using rust targets from ${RUST_TARGET_PATH}" 48 bbnote "Using rust targets from ${RUST_TARGET_PATH}"
diff --git a/meta/classes-recipe/go.bbclass b/meta/classes-recipe/go.bbclass
index 9146dd611e..e3e4782025 100644
--- a/meta/classes-recipe/go.bbclass
+++ b/meta/classes-recipe/go.bbclass
@@ -20,8 +20,8 @@ export GOCACHE = "${B}/.cache"
20 20
21export GOARCH = "${TARGET_GOARCH}" 21export GOARCH = "${TARGET_GOARCH}"
22export GOOS = "${TARGET_GOOS}" 22export GOOS = "${TARGET_GOOS}"
23export GOHOSTARCH="${BUILD_GOARCH}" 23export GOHOSTARCH = "${BUILD_GOARCH}"
24export GOHOSTOS="${BUILD_GOOS}" 24export GOHOSTOS = "${BUILD_GOOS}"
25 25
26GOARM[export] = "0" 26GOARM[export] = "0"
27GOARM:arm:class-target = "${TARGET_GOARM}" 27GOARM:arm:class-target = "${TARGET_GOARM}"
diff --git a/meta/classes-recipe/gtk-icon-cache.bbclass b/meta/classes-recipe/gtk-icon-cache.bbclass
index 9ecb49916c..fad8c4c65f 100644
--- a/meta/classes-recipe/gtk-icon-cache.bbclass
+++ b/meta/classes-recipe/gtk-icon-cache.bbclass
@@ -16,7 +16,7 @@ GTKIC_CMD = "${@ 'gtk4-update-icon-cache' if d.getVar('GTKIC_VERSION') == '4' el
16inherit features_check 16inherit features_check
17ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" 17ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
18 18
19DEPENDS +=" ${@ '' if d.getVar('BPN') == 'hicolor-icon-theme' else 'hicolor-icon-theme' } \ 19DEPENDS += "${@ '' if d.getVar('BPN') == 'hicolor-icon-theme' else 'hicolor-icon-theme' } \
20 ${@ '' if d.getVar('BPN') == 'gdk-pixbuf' else 'gdk-pixbuf' } \ 20 ${@ '' if d.getVar('BPN') == 'gdk-pixbuf' else 'gdk-pixbuf' } \
21 ${@ '' if d.getVar('BPN') == d.getVar('GTKPN') else d.getVar('GTKPN') } \ 21 ${@ '' if d.getVar('BPN') == d.getVar('GTKPN') else d.getVar('GTKPN') } \
22 ${GTKPN}-native \ 22 ${GTKPN}-native \
diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass
index 0dd2e1e444..617727a989 100644
--- a/meta/classes-recipe/kernel.bbclass
+++ b/meta/classes-recipe/kernel.bbclass
@@ -661,7 +661,7 @@ KERNEL_LOCALVERSION ??= ""
661# Note: This class saves the value of localversion to a file 661# Note: This class saves the value of localversion to a file
662# so other recipes like make-mod-scripts can restore it via the 662# so other recipes like make-mod-scripts can restore it via the
663# helper function get_kernellocalversion_file 663# helper function get_kernellocalversion_file
664export LOCALVERSION="${KERNEL_LOCALVERSION}" 664export LOCALVERSION = "${KERNEL_LOCALVERSION}"
665 665
666kernel_do_configure() { 666kernel_do_configure() {
667 # fixes extra + in /lib/modules/2.6.37+ 667 # fixes extra + in /lib/modules/2.6.37+
diff --git a/meta/classes-recipe/python3native.bbclass b/meta/classes-recipe/python3native.bbclass
index 654a002fdb..da1283d6b3 100644
--- a/meta/classes-recipe/python3native.bbclass
+++ b/meta/classes-recipe/python3native.bbclass
@@ -6,7 +6,7 @@
6 6
7inherit python3-dir 7inherit python3-dir
8 8
9PYTHON="${STAGING_BINDIR_NATIVE}/python3-native/python3" 9PYTHON = "${STAGING_BINDIR_NATIVE}/python3-native/python3"
10EXTRANATIVEPATH += "python3-native" 10EXTRANATIVEPATH += "python3-native"
11DEPENDS:append = " python3-native " 11DEPENDS:append = " python3-native "
12 12
@@ -20,8 +20,8 @@ export STAGING_LIBDIR
20# find_package(PythonLibs REQUIRED) 20# find_package(PythonLibs REQUIRED)
21# which ends up using libs/includes from build host 21# which ends up using libs/includes from build host
22# Therefore pre-empt that effort 22# Therefore pre-empt that effort
23export PYTHON_LIBRARY="${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so" 23export PYTHON_LIBRARY = "${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so"
24export PYTHON_INCLUDE_DIR="${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}" 24export PYTHON_INCLUDE_DIR = "${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}"
25 25
26# suppress host user's site-packages dirs. 26# suppress host user's site-packages dirs.
27export PYTHONNOUSERSITE = "1" 27export PYTHONNOUSERSITE = "1"
diff --git a/meta/classes-recipe/python_pyo3.bbclass b/meta/classes-recipe/python_pyo3.bbclass
index 9a32eac6fd..7f5a00f584 100644
--- a/meta/classes-recipe/python_pyo3.bbclass
+++ b/meta/classes-recipe/python_pyo3.bbclass
@@ -11,13 +11,13 @@
11 11
12inherit cargo python3-dir siteinfo 12inherit cargo python3-dir siteinfo
13 13
14export PYO3_CROSS="1" 14export PYO3_CROSS = "1"
15export PYO3_CROSS_PYTHON_VERSION="${PYTHON_BASEVERSION}" 15export PYO3_CROSS_PYTHON_VERSION = "${PYTHON_BASEVERSION}"
16export PYO3_CROSS_LIB_DIR="${STAGING_LIBDIR}" 16export PYO3_CROSS_LIB_DIR = "${STAGING_LIBDIR}"
17export CARGO_BUILD_TARGET="${RUST_HOST_SYS}" 17export CARGO_BUILD_TARGET = "${RUST_HOST_SYS}"
18export RUSTFLAGS 18export RUSTFLAGS
19export PYO3_PYTHON="${PYTHON}" 19export PYO3_PYTHON = "${PYTHON}"
20export PYO3_CONFIG_FILE="${WORKDIR}/pyo3.config" 20export PYO3_CONFIG_FILE = "${WORKDIR}/pyo3.config"
21 21
22python_pyo3_do_configure () { 22python_pyo3_do_configure () {
23 cat > ${WORKDIR}/pyo3.config << EOF 23 cat > ${WORKDIR}/pyo3.config << EOF
diff --git a/meta/classes-recipe/rust.bbclass b/meta/classes-recipe/rust.bbclass
index dae25cac2a..e727601679 100644
--- a/meta/classes-recipe/rust.bbclass
+++ b/meta/classes-recipe/rust.bbclass
@@ -43,9 +43,9 @@ HOST_CFLAGS ?= "${CFLAGS}"
43HOST_CXXFLAGS ?= "${CXXFLAGS}" 43HOST_CXXFLAGS ?= "${CXXFLAGS}"
44HOST_CPPFLAGS ?= "${CPPFLAGS}" 44HOST_CPPFLAGS ?= "${CPPFLAGS}"
45 45
46rustlib_suffix="${TUNE_ARCH}${TARGET_VENDOR}-${TARGET_OS}/rustlib/${RUST_HOST_SYS}/lib" 46rustlib_suffix = "${TUNE_ARCH}${TARGET_VENDOR}-${TARGET_OS}/rustlib/${RUST_HOST_SYS}/lib"
47# Native sysroot standard library path 47# Native sysroot standard library path
48rustlib_src="${prefix}/lib/${rustlib_suffix}" 48rustlib_src = "${prefix}/lib/${rustlib_suffix}"
49# Host sysroot standard library path 49# Host sysroot standard library path
50rustlib="${libdir}/${rustlib_suffix}" 50rustlib = "${libdir}/${rustlib_suffix}"
51rustlib:class-native="${libdir}/rustlib/${BUILD_SYS}/lib" 51rustlib:class-native = "${libdir}/rustlib/${BUILD_SYS}/lib"
diff --git a/meta/classes-recipe/setuptools3.bbclass b/meta/classes-recipe/setuptools3.bbclass
index 64a78e9a36..f19899d42e 100644
--- a/meta/classes-recipe/setuptools3.bbclass
+++ b/meta/classes-recipe/setuptools3.bbclass
@@ -49,4 +49,4 @@ setuptools3_do_install() {
49 49
50EXPORT_FUNCTIONS do_configure do_compile do_install 50EXPORT_FUNCTIONS do_configure do_compile do_install
51 51
52export LDSHARED="${CCLD} -shared" 52export LDSHARED = "${CCLD} -shared"
diff --git a/meta/classes-recipe/setuptools3_legacy.bbclass b/meta/classes-recipe/setuptools3_legacy.bbclass
index 264b1f5cfb..030c3d9e0e 100644
--- a/meta/classes-recipe/setuptools3_legacy.bbclass
+++ b/meta/classes-recipe/setuptools3_legacy.bbclass
@@ -79,6 +79,6 @@ setuptools3_legacy_do_install[vardepsexclude] = "MACHINE"
79 79
80EXPORT_FUNCTIONS do_configure do_compile do_install 80EXPORT_FUNCTIONS do_configure do_compile do_install
81 81
82export LDSHARED="${CCLD} -shared" 82export LDSHARED = "${CCLD} -shared"
83DEPENDS += "python3-setuptools-native" 83DEPENDS += "python3-setuptools-native"
84 84