)
return True
-def build_kernel(revision, parallel_jobs='auto', distcc=False):
+def build_kernel(version, revision, parallel_jobs='auto', distcc=False):
if parallel_jobs == 'auto':
parallel_jobs = DEFAULT_PARALLEL_JOBS
else:
parallel_jobs = int(parallel_jobs)
cmd = [MAKE_KPKG, '-j', '%s' %(parallel_jobs), '--arch',
- '%s' %(BUILD_ARCH), '--rootcmd', 'fakeroot', '--append_to_version',
- '%s' %(revision), '--initrd', 'kernel_debug',
+ '%s' %(BUILD_ARCH), '--rootcmd', 'fakeroot', '--revision',
+ '%s' %(version), '--initrd', 'kernel_debug',
'kernel_image', 'kernel_source', 'kernel_headers', 'modules']
logger.info('start compile process')
lino,
'CONFIG_LOCALVERSION="%s"\n' %(localversion)
)
+ logger.info('CONFIG_LOCALVERSION set to %s' % localversion)
try:
fh = open(KERNEL_CONFIG_PATH, 'w', 1)
new_version = REVISION
try:
- add_local_version_to_config(new_version)
+ kernel_version = add_local_version_to_config(new_version)
except Exception, error:
logger.exception(error)
exit(ERROR)
logger.error('Error during installation of extra kernel modules')
exit(ERROR)
- if not build_kernel(new_version):
+ if not build_kernel(kernel_version, new_version):
exit(ERROR)
else:
ftp = FTP(