projects
/
auto-debuild.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4b61abb
)
Make number of parallel jobs configurable
author
Ralf Jung
<post@ralfj.de>
Fri, 27 Jul 2012 15:06:17 +0000
(17:06 +0200)
committer
Ralf Jung
<ralfjung-e@gmx.de>
Fri, 27 Jul 2012 15:06:17 +0000
(17:06 +0200)
auto_debuild.py
patch
|
blob
|
history
diff --git
a/auto_debuild.py
b/auto_debuild.py
index 9252652ad246fd82a0c830d0f6f0c0374fcd0051..37d8443bf2f30f1d6ede3dd9633eae1d5da59eba 100755
(executable)
--- a/
auto_debuild.py
+++ b/
auto_debuild.py
@@
-94,6
+94,7
@@
def createDebianFiles(config):
buildSystem = config['buildSystem']
version = config['version']
dbgPackage = config.get('dbgPackage', False)
buildSystem = config['buildSystem']
version = config['version']
dbgPackage = config.get('dbgPackage', False)
+ parallelJobs = int(config.get('parallelJobs', 2))
packageArchitecture = config.get('architecture', 'any')
# we return the list of files generated, so we need to know the architecture
arch = getArchitecture(config)
packageArchitecture = config.get('architecture', 'any')
# we return the list of files generated, so we need to know the architecture
arch = getArchitecture(config)
@@
-154,7
+155,7
@@
def createDebianFiles(config):
else:
raise Exception("Invalid build system "+buildSystem)
# global rules
else:
raise Exception("Invalid build system "+buildSystem)
# global rules
- r.env["DEB_BUILD_OPTIONS"] = 'parallel=
2'
+ r.env["DEB_BUILD_OPTIONS"] = 'parallel=
'+str(parallelJobs)
if not dbgPackage:
# disable debug information
r.env["DEB_CFLAGS_APPEND"] = '-g0'
if not dbgPackage:
# disable debug information
r.env["DEB_CFLAGS_APPEND"] = '-g0'