* [PATCH 0/1] base/features_check: Make PARSE_ALL_RECIPES and SOURCE_MIRROR_FETCH boolean
@ 2024-12-22 16:02 liezhi.yang
2024-12-22 16:02 ` [PATCH 1/1] " liezhi.yang
0 siblings, 1 reply; 2+ messages in thread
From: liezhi.yang @ 2024-12-22 16:02 UTC (permalink / raw)
To: openembedded-core
From: Robert Yang <liezhi.yang@windriver.com>
The following changes since commit a2c5b2cad7857250b4a1b36ba792a8110989733a:
nfs-utils: Use v2 of upstream patch for tpyecast fix (2024-12-20 18:00:11 +0000)
are available in the Git repository at:
https://github.com/robertlinux/yocto rbt/bool
https://github.com/robertlinux/yocto/tree/rbt/bool
Robert Yang (1):
base/features_check: Make PARSE_ALL_RECIPES and SOURCE_MIRROR_FETCH
boolean
meta/classes-global/base.bbclass | 7 ++++---
meta/classes-recipe/features_check.bbclass | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
--
2.44.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] base/features_check: Make PARSE_ALL_RECIPES and SOURCE_MIRROR_FETCH boolean
2024-12-22 16:02 [PATCH 0/1] base/features_check: Make PARSE_ALL_RECIPES and SOURCE_MIRROR_FETCH boolean liezhi.yang
@ 2024-12-22 16:02 ` liezhi.yang
0 siblings, 0 replies; 2+ messages in thread
From: liezhi.yang @ 2024-12-22 16:02 UTC (permalink / raw)
To: openembedded-core
From: Robert Yang <liezhi.yang@windriver.com>
So that value "0" can turn them off.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
meta/classes-global/base.bbclass | 7 ++++---
meta/classes-recipe/features_check.bbclass | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass
index 101ecdcf0f..c8268abcdf 100644
--- a/meta/classes-global/base.bbclass
+++ b/meta/classes-global/base.bbclass
@@ -330,7 +330,7 @@ python base_eventhandler() {
# particular.
#
pn = d.getVar('PN')
- source_mirror_fetch = d.getVar('SOURCE_MIRROR_FETCH', False)
+ source_mirror_fetch = bb.utils.to_boolean(d.getVar('SOURCE_MIRROR_FETCH', False))
if not source_mirror_fetch:
provs = (d.getVar("PROVIDES") or "").split()
multiprovidersallowed = (d.getVar("BB_MULTI_PROVIDER_ALLOWED") or "").split()
@@ -553,7 +553,7 @@ python () {
d.appendVarFlag('do_devshell', 'depends', ' virtual/fakeroot-native:do_populate_sysroot')
need_machine = d.getVar('COMPATIBLE_MACHINE')
- if need_machine and not d.getVar('PARSE_ALL_RECIPES', False):
+ if need_machine and not bb.utils.to_boolean(d.getVar('PARSE_ALL_RECIPES', False)):
import re
compat_machines = (d.getVar('MACHINEOVERRIDES') or "").split(":")
for m in compat_machines:
@@ -562,7 +562,8 @@ python () {
else:
raise bb.parse.SkipRecipe("incompatible with machine %s (not in COMPATIBLE_MACHINE)" % d.getVar('MACHINE'))
- source_mirror_fetch = d.getVar('SOURCE_MIRROR_FETCH', False) or d.getVar('PARSE_ALL_RECIPES', False)
+ source_mirror_fetch = bb.utils.to_boolean(d.getVar('SOURCE_MIRROR_FETCH', False)) or \
+ bb.utils.to_boolean(d.getVar('PARSE_ALL_RECIPES', False))
if not source_mirror_fetch:
need_host = d.getVar('COMPATIBLE_HOST')
if need_host:
diff --git a/meta/classes-recipe/features_check.bbclass b/meta/classes-recipe/features_check.bbclass
index 163a7bc3fc..4e122ecaef 100644
--- a/meta/classes-recipe/features_check.bbclass
+++ b/meta/classes-recipe/features_check.bbclass
@@ -16,7 +16,7 @@
python () {
- if d.getVar('PARSE_ALL_RECIPES', False):
+ if bb.utils.to_boolean(d.getVar('PARSE_ALL_RECIPES', False)):
return
unused = True
--
2.44.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-22 16:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-22 16:02 [PATCH 0/1] base/features_check: Make PARSE_ALL_RECIPES and SOURCE_MIRROR_FETCH boolean liezhi.yang
2024-12-22 16:02 ` [PATCH 1/1] " liezhi.yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox