Skip to contentSkip to conversation

devtool: deploy: provide max_process to strip_execs

PATCH New [email protected] 1 participant 1 message Dec 20, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 devtool: deploy: provide max_process to strip_execs

From: Clay Chang <[email protected]>

Use oe.utils.get_bb_number_threads to get max_process

---
 scripts/lib/devtool/deploy.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/lib/devtool/deploy.py +2 -1
index e14a587417..eadf6e1521 100644
@@ -140,6 +140,7 @@ def deploy(args, config, basepath, workspace):
     import math
     import oe.recipeutils
     import oe.package
+    import oe.utils
 
     check_workspace_recipe(workspace, args.recipename, checksrc=False)
 
@@ -174,7 +175,7 @@ def deploy(args, config, basepath, workspace):
             exec_fakeroot(rd, "cp -af %s %s" % (os.path.join(srcdir, '.'), recipe_outdir), shell=True)
             os.environ['PATH'] = ':'.join([os.environ['PATH'], rd.getVar('PATH') or ''])
             oe.package.strip_execs(args.recipename, recipe_outdir, rd.getVar('STRIP'), rd.getVar('libdir'),
-                        rd.getVar('base_libdir'), rd)
+                        rd.getVar('base_libdir'), oe.utils.get_bb_number_threads(rd), rd)
 
         filelist = []
         inodes = set({})
Signature · 1 line
2.34.1