Skip to content

Commit

Permalink
Merge pull request #5735 from ut003460/master
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Richter <[email protected]>
  • Loading branch information
richtja authored Aug 29, 2023
2 parents f07f661 + bea4954 commit a1cd8a8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions avocado/utils/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,12 @@ def build(self, binary_package=False, njobs=multiprocessing.cpu_count()):
make_args = []
LOG.info("Starting build the kernel")

if njobs is None:
make_args.append("-j")
elif njobs > 0:
make_args.extend(["-j", str(njobs)])
if njobs is not None and njobs > 0:
make_args.append("-j" + str(njobs))
make_args.extend(["-C", self._build_dir])

if binary_package is True:
if self.distro.name == "Ubuntu":
make_args.append("deb-pkg")
if binary_package and self.distro.name == "Ubuntu":
make_args.append("deb-pkg")

build.make(self._build_dir, extra_args=" ".join(make_args))

Expand Down

0 comments on commit a1cd8a8

Please sign in to comment.