summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClay Chang <clayc@hpe.com>2023-12-20 15:31:33 +0800
committerSteve Sakoman <steve@sakoman.com>2024-01-31 04:10:24 -1000
commit090c0e84458e2416058b99ba22662af19b305d13 (patch)
tree1d6e4b9c52be037668f403e09da0992399597de0
parentc6def80c31566b8de6134166471e491d9e898459 (diff)
downloadpoky-090c0e84458e2416058b99ba22662af19b305d13.tar.gz
devtool: deploy: provide max_process to strip_execs
Use oe.utils.get_bb_number_threads to get max_process (From OE-Core rev: 162607e3f7fd490c4b01775a9516a1bcf643eae6) Signed-off-by: Clay Chang <clayc@hpe.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit f0056dca0a44c374f1f0c5fccbf66ae88e0b1850) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--scripts/lib/devtool/deploy.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/devtool/deploy.py b/scripts/lib/devtool/deploy.py
index e14a587417..eadf6e1521 100644
--- a/scripts/lib/devtool/deploy.py
+++ b/scripts/lib/devtool/deploy.py
@@ -140,6 +140,7 @@ def deploy(args, config, basepath, workspace):
140 import math 140 import math
141 import oe.recipeutils 141 import oe.recipeutils
142 import oe.package 142 import oe.package
143 import oe.utils
143 144
144 check_workspace_recipe(workspace, args.recipename, checksrc=False) 145 check_workspace_recipe(workspace, args.recipename, checksrc=False)
145 146
@@ -174,7 +175,7 @@ def deploy(args, config, basepath, workspace):
174 exec_fakeroot(rd, "cp -af %s %s" % (os.path.join(srcdir, '.'), recipe_outdir), shell=True) 175 exec_fakeroot(rd, "cp -af %s %s" % (os.path.join(srcdir, '.'), recipe_outdir), shell=True)
175 os.environ['PATH'] = ':'.join([os.environ['PATH'], rd.getVar('PATH') or '']) 176 os.environ['PATH'] = ':'.join([os.environ['PATH'], rd.getVar('PATH') or ''])
176 oe.package.strip_execs(args.recipename, recipe_outdir, rd.getVar('STRIP'), rd.getVar('libdir'), 177 oe.package.strip_execs(args.recipename, recipe_outdir, rd.getVar('STRIP'), rd.getVar('libdir'),
177 rd.getVar('base_libdir'), rd) 178 rd.getVar('base_libdir'), oe.utils.get_bb_number_threads(rd), rd)
178 179
179 filelist = [] 180 filelist = []
180 inodes = set({}) 181 inodes = set({})