else:
parallel_jobs = int(parallel_jobs)
-
cmd = [MAKE_KPKG, '-j', '%s' %(parallel_jobs), '--arch',
'%s' %(BUILD_ARCH), '--rootcmd', 'fakeroot',
'--append-to-version', '-%s' %(version),
- '--initrd', '--arch_in_name',
- 'kernel_debug', 'kernel_image', 'kernel_source', 'kernel_headers', 'modules'
+ '--initrd', '--arch_in_name'
]
- # FIXME: once we have sane branches also build kernel_doc for master
+ # add targets
+ cmd += [ 'kernel_debug', 'kernel_image', 'kernel_source', 'kernel_headers', 'modules' ]
+
+ if GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME.startswith('hotfix'):
+ cmd += [ 'kernel_doc' ]
logger.info('start compile process for version %s revision %s' % (version, revision))