summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorJermain Horsman <jermain.horsman@nedap.com>2023-11-02 13:11:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-11-05 11:28:33 +0000
commita9063f845b0a39f4e3a0f81c28897d067fa85863 (patch)
treec23d82f567353aaa27d3b19e36c3e87256d7d97d /meta/lib/oe
parentd012de568fa66c76da94ce74984ad1aca0dc6629 (diff)
downloadpoky-a9063f845b0a39f4e3a0f81c28897d067fa85863.tar.gz
lib/oe/buildcfg.py: Remove unused parameter
Several functions included the 'd' parameter but never used it, additionally the value passed is always None. (From OE-Core rev: 9e03ce0426576ebef3739dc1dfec4f7cd73ae094) Signed-off-by: Jermain Horsman <jermain.horsman@nedap.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/buildcfg.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/lib/oe/buildcfg.py b/meta/lib/oe/buildcfg.py
index b9d32c7cc1..b3fe510309 100644
--- a/meta/lib/oe/buildcfg.py
+++ b/meta/lib/oe/buildcfg.py
@@ -5,23 +5,23 @@ import bb.process
5 5
6def detect_revision(d): 6def detect_revision(d):
7 path = get_scmbasepath(d) 7 path = get_scmbasepath(d)
8 return get_metadata_git_revision(path, d) 8 return get_metadata_git_revision(path)
9 9
10def detect_branch(d): 10def detect_branch(d):
11 path = get_scmbasepath(d) 11 path = get_scmbasepath(d)
12 return get_metadata_git_branch(path, d) 12 return get_metadata_git_branch(path)
13 13
14def get_scmbasepath(d): 14def get_scmbasepath(d):
15 return os.path.join(d.getVar('COREBASE'), 'meta') 15 return os.path.join(d.getVar('COREBASE'), 'meta')
16 16
17def get_metadata_git_branch(path, d): 17def get_metadata_git_branch(path):
18 try: 18 try:
19 rev, _ = bb.process.run('git rev-parse --abbrev-ref HEAD', cwd=path) 19 rev, _ = bb.process.run('git rev-parse --abbrev-ref HEAD', cwd=path)
20 except bb.process.ExecutionError: 20 except bb.process.ExecutionError:
21 rev = '<unknown>' 21 rev = '<unknown>'
22 return rev.strip() 22 return rev.strip()
23 23
24def get_metadata_git_revision(path, d): 24def get_metadata_git_revision(path):
25 try: 25 try:
26 rev, _ = bb.process.run('git rev-parse HEAD', cwd=path) 26 rev, _ = bb.process.run('git rev-parse HEAD', cwd=path)
27 except bb.process.ExecutionError: 27 except bb.process.ExecutionError:
@@ -46,5 +46,5 @@ def get_layer_revisions(d):
46 layers = (d.getVar("BBLAYERS") or "").split() 46 layers = (d.getVar("BBLAYERS") or "").split()
47 revisions = [] 47 revisions = []
48 for i in layers: 48 for i in layers:
49 revisions.append((i, os.path.basename(i), get_metadata_git_branch(i, None).strip(), get_metadata_git_revision(i, None), is_layer_modified(i))) 49 revisions.append((i, os.path.basename(i), get_metadata_git_branch(i).strip(), get_metadata_git_revision(i), is_layer_modified(i)))
50 return revisions 50 return revisions