summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes-recipe/image.bbclass2
-rw-r--r--meta/classes-recipe/license_image.bbclass2
-rw-r--r--meta/classes-recipe/rust-target-config.bbclass2
-rw-r--r--meta/lib/oe/package_manager/deb/__init__.py8
-rw-r--r--meta/recipes-devtools/go/go_1.19.4.bb4
-rw-r--r--meta/recipes-devtools/rust/rust.inc22
-rwxr-xr-xscripts/contrib/image-manifest2
-rw-r--r--scripts/lib/devtool/menuconfig.py2
8 files changed, 22 insertions, 22 deletions
diff --git a/meta/classes-recipe/image.bbclass b/meta/classes-recipe/image.bbclass
index d4bf02784a..e5e5274924 100644
--- a/meta/classes-recipe/image.bbclass
+++ b/meta/classes-recipe/image.bbclass
@@ -445,7 +445,7 @@ python () {
445 localdata.delVar('DATE') 445 localdata.delVar('DATE')
446 localdata.delVar('TMPDIR') 446 localdata.delVar('TMPDIR')
447 localdata.delVar('IMAGE_VERSION_SUFFIX') 447 localdata.delVar('IMAGE_VERSION_SUFFIX')
448 vardepsexclude = (d.getVarFlag('IMAGE_CMD:' + realt, 'vardepsexclude', True) or '').split() 448 vardepsexclude = (d.getVarFlag('IMAGE_CMD:' + realt, 'vardepsexclude') or '').split()
449 for dep in vardepsexclude: 449 for dep in vardepsexclude:
450 localdata.delVar(dep) 450 localdata.delVar(dep)
451 451
diff --git a/meta/classes-recipe/license_image.bbclass b/meta/classes-recipe/license_image.bbclass
index b60d6e44f4..8560c27e93 100644
--- a/meta/classes-recipe/license_image.bbclass
+++ b/meta/classes-recipe/license_image.bbclass
@@ -235,7 +235,7 @@ def get_deployed_dependencies(d):
235 deploy = {} 235 deploy = {}
236 # Get all the dependencies for the current task (rootfs). 236 # Get all the dependencies for the current task (rootfs).
237 taskdata = d.getVar("BB_TASKDEPDATA", False) 237 taskdata = d.getVar("BB_TASKDEPDATA", False)
238 pn = d.getVar("PN", True) 238 pn = d.getVar("PN")
239 depends = list(set([dep[0] for dep 239 depends = list(set([dep[0] for dep
240 in list(taskdata.values()) 240 in list(taskdata.values())
241 if not dep[0].endswith("-native") and not dep[0] == pn])) 241 if not dep[0].endswith("-native") and not dep[0] == pn]))
diff --git a/meta/classes-recipe/rust-target-config.bbclass b/meta/classes-recipe/rust-target-config.bbclass
index 9158b1918e..876fe8fd9b 100644
--- a/meta/classes-recipe/rust-target-config.bbclass
+++ b/meta/classes-recipe/rust-target-config.bbclass
@@ -114,7 +114,7 @@ def llvm_features_from_target_fpu(d):
114 # TARGET_FPU can be hard or soft. +soft-float tell llvm to use soft float 114 # TARGET_FPU can be hard or soft. +soft-float tell llvm to use soft float
115 # ABI. There is no option for hard. 115 # ABI. There is no option for hard.
116 116
117 fpu = d.getVar('TARGET_FPU', True) 117 fpu = d.getVar('TARGET_FPU')
118 return ["+soft-float"] if fpu == "soft" else [] 118 return ["+soft-float"] if fpu == "soft" else []
119 119
120def llvm_features(d): 120def llvm_features(d):
diff --git a/meta/lib/oe/package_manager/deb/__init__.py b/meta/lib/oe/package_manager/deb/__init__.py
index c672454072..0c23c884c1 100644
--- a/meta/lib/oe/package_manager/deb/__init__.py
+++ b/meta/lib/oe/package_manager/deb/__init__.py
@@ -82,15 +82,15 @@ class DpkgIndexer(Indexer):
82 return 82 return
83 83
84 oe.utils.multiprocess_launch(create_index, index_cmds, self.d) 84 oe.utils.multiprocess_launch(create_index, index_cmds, self.d)
85 if self.d.getVar('PACKAGE_FEED_SIGN', True) == '1': 85 if self.d.getVar('PACKAGE_FEED_SIGN') == '1':
86 signer = get_signer(self.d, self.d.getVar('PACKAGE_FEED_GPG_BACKEND', True)) 86 signer = get_signer(self.d, self.d.getVar('PACKAGE_FEED_GPG_BACKEND'))
87 else: 87 else:
88 signer = None 88 signer = None
89 if signer: 89 if signer:
90 for f in index_sign_files: 90 for f in index_sign_files:
91 signer.detach_sign(f, 91 signer.detach_sign(f,
92 self.d.getVar('PACKAGE_FEED_GPG_NAME', True), 92 self.d.getVar('PACKAGE_FEED_GPG_NAME'),
93 self.d.getVar('PACKAGE_FEED_GPG_PASSPHRASE_FILE', True), 93 self.d.getVar('PACKAGE_FEED_GPG_PASSPHRASE_FILE'),
94 output_suffix="gpg", 94 output_suffix="gpg",
95 use_sha256=True) 95 use_sha256=True)
96 96
diff --git a/meta/recipes-devtools/go/go_1.19.4.bb b/meta/recipes-devtools/go/go_1.19.4.bb
index 98977673ee..587ee55944 100644
--- a/meta/recipes-devtools/go/go_1.19.4.bb
+++ b/meta/recipes-devtools/go/go_1.19.4.bb
@@ -12,7 +12,7 @@ export CXX_FOR_TARGET = "g++"
12# mips/rv64 doesn't support -buildmode=pie, so skip the QA checking for mips/riscv32 and its 12# mips/rv64 doesn't support -buildmode=pie, so skip the QA checking for mips/riscv32 and its
13# variants. 13# variants.
14python() { 14python() {
15 if 'mips' in d.getVar('TARGET_ARCH',True) or 'riscv32' in d.getVar('TARGET_ARCH',True): 15 if 'mips' in d.getVar('TARGET_ARCH') or 'riscv32' in d.getVar('TARGET_ARCH'):
16 d.appendVar('INSANE_SKIP:%s' % d.getVar('PN',True), " textrel") 16 d.appendVar('INSANE_SKIP:%s' % d.getVar('PN'), " textrel")
17} 17}
18 18
diff --git a/meta/recipes-devtools/rust/rust.inc b/meta/recipes-devtools/rust/rust.inc
index 956301023a..7d87e8e1b2 100644
--- a/meta/recipes-devtools/rust/rust.inc
+++ b/meta/recipes-devtools/rust/rust.inc
@@ -72,7 +72,7 @@ python do_configure() {
72 config = configparser.RawConfigParser() 72 config = configparser.RawConfigParser()
73 73
74 # [target.ARCH-poky-linux] 74 # [target.ARCH-poky-linux]
75 host_section = "target.{}".format(d.getVar('RUST_HOST_SYS', True)) 75 host_section = "target.{}".format(d.getVar('RUST_HOST_SYS'))
76 config.add_section(host_section) 76 config.add_section(host_section)
77 77
78 llvm_config_target = d.expand("${RUST_ALTERNATE_EXE_PATH}") 78 llvm_config_target = d.expand("${RUST_ALTERNATE_EXE_PATH}")
@@ -87,7 +87,7 @@ python do_configure() {
87 87
88 # If we don't do this rust-native will compile it's own llvm for BUILD. 88 # If we don't do this rust-native will compile it's own llvm for BUILD.
89 # [target.${BUILD_ARCH}-unknown-linux-gnu] 89 # [target.${BUILD_ARCH}-unknown-linux-gnu]
90 build_section = "target.{}".format(d.getVar('RUST_BUILD_SYS', True)) 90 build_section = "target.{}".format(d.getVar('RUST_BUILD_SYS'))
91 if build_section != host_section: 91 if build_section != host_section:
92 config.add_section(build_section) 92 config.add_section(build_section)
93 93
@@ -97,7 +97,7 @@ python do_configure() {
97 config.set(build_section, "cc", e(d.expand("${RUST_BUILD_CC}"))) 97 config.set(build_section, "cc", e(d.expand("${RUST_BUILD_CC}")))
98 config.set(build_section, "linker", e(d.expand("${RUST_BUILD_CCLD}"))) 98 config.set(build_section, "linker", e(d.expand("${RUST_BUILD_CCLD}")))
99 99
100 target_section = "target.{}".format(d.getVar('RUST_TARGET_SYS', True)) 100 target_section = "target.{}".format(d.getVar('RUST_TARGET_SYS'))
101 if target_section != host_section and target_section != build_section: 101 if target_section != host_section and target_section != build_section:
102 config.add_section(target_section) 102 config.add_section(target_section)
103 103
@@ -143,26 +143,26 @@ python do_configure() {
143 config.set("build", "vendor", e(True)) 143 config.set("build", "vendor", e(True))
144 144
145 if not "targets" in locals(): 145 if not "targets" in locals():
146 targets = [d.getVar("RUST_TARGET_SYS", True)] 146 targets = [d.getVar("RUST_TARGET_SYS")]
147 config.set("build", "target", e(targets)) 147 config.set("build", "target", e(targets))
148 148
149 if not "hosts" in locals(): 149 if not "hosts" in locals():
150 hosts = [d.getVar("RUST_HOST_SYS", True)] 150 hosts = [d.getVar("RUST_HOST_SYS")]
151 config.set("build", "host", e(hosts)) 151 config.set("build", "host", e(hosts))
152 152
153 # We can't use BUILD_SYS since that is something the rust snapshot knows 153 # We can't use BUILD_SYS since that is something the rust snapshot knows
154 # nothing about when trying to build some stage0 tools (like fabricate) 154 # nothing about when trying to build some stage0 tools (like fabricate)
155 config.set("build", "build", e(d.getVar("RUST_BUILD_SYS", True))) 155 config.set("build", "build", e(d.getVar("RUST_BUILD_SYS")))
156 156
157 # [install] 157 # [install]
158 config.add_section("install") 158 config.add_section("install")
159 # ./x.py install doesn't have any notion of "destdir" 159 # ./x.py install doesn't have any notion of "destdir"
160 # but we can prepend ${D} to all the directories instead 160 # but we can prepend ${D} to all the directories instead
161 config.set("install", "prefix", e(d.getVar("D", True) + d.getVar("prefix", True))) 161 config.set("install", "prefix", e(d.getVar("D") + d.getVar("prefix")))
162 config.set("install", "bindir", e(d.getVar("D", True) + d.getVar("bindir", True))) 162 config.set("install", "bindir", e(d.getVar("D") + d.getVar("bindir")))
163 config.set("install", "libdir", e(d.getVar("D", True) + d.getVar("libdir", True))) 163 config.set("install", "libdir", e(d.getVar("D") + d.getVar("libdir")))
164 config.set("install", "datadir", e(d.getVar("D", True) + d.getVar("datadir", True))) 164 config.set("install", "datadir", e(d.getVar("D") + d.getVar("datadir")))
165 config.set("install", "mandir", e(d.getVar("D", True) + d.getVar("mandir", True))) 165 config.set("install", "mandir", e(d.getVar("D") + d.getVar("mandir")))
166 166
167 with open("config.toml", "w") as f: 167 with open("config.toml", "w") as f:
168 f.write('changelog-seen = 2\n\n') 168 f.write('changelog-seen = 2\n\n')
diff --git a/scripts/contrib/image-manifest b/scripts/contrib/image-manifest
index 3c07a73a4e..4d65a99258 100755
--- a/scripts/contrib/image-manifest
+++ b/scripts/contrib/image-manifest
@@ -392,7 +392,7 @@ def export_manifest_info(args):
392 for key in rd.getVarFlags('PACKAGECONFIG').keys(): 392 for key in rd.getVarFlags('PACKAGECONFIG').keys():
393 if key == 'doc': 393 if key == 'doc':
394 continue 394 continue
395 rvalues[pn]['packageconfig_opts'][key] = rd.getVarFlag('PACKAGECONFIG', key, True) 395 rvalues[pn]['packageconfig_opts'][key] = rd.getVarFlag('PACKAGECONFIG', key)
396 396
397 if config['patches'] == 'yes': 397 if config['patches'] == 'yes':
398 patches = oe.recipeutils.get_recipe_patches(rd) 398 patches = oe.recipeutils.get_recipe_patches(rd)
diff --git a/scripts/lib/devtool/menuconfig.py b/scripts/lib/devtool/menuconfig.py
index d87a01e7a9..18daef30c3 100644
--- a/scripts/lib/devtool/menuconfig.py
+++ b/scripts/lib/devtool/menuconfig.py
@@ -45,7 +45,7 @@ def menuconfig(args, config, basepath, workspace):
45 return 1 45 return 1
46 46
47 check_workspace_recipe(workspace, args.component) 47 check_workspace_recipe(workspace, args.component)
48 pn = rd.getVar('PN', True) 48 pn = rd.getVar('PN')
49 49
50 if not rd.getVarFlag('do_menuconfig','task'): 50 if not rd.getVarFlag('do_menuconfig','task'):
51 raise DevtoolError("This recipe does not support menuconfig option") 51 raise DevtoolError("This recipe does not support menuconfig option")