From: Holger Levsen Date: Tue, 20 Sep 2011 16:02:41 +0000 (+0200) Subject: also build kernel_doc for production X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=7601b544103426f45430bef7995bb2b3fafb1069;p=profitbricks%2Fjenkins-build-scripts.git also build kernel_doc for production --- diff --git a/kernel_inpbuilder.py b/kernel_inpbuilder.py index 3bd726c..87fcca1 100644 --- a/kernel_inpbuilder.py +++ b/kernel_inpbuilder.py @@ -202,14 +202,16 @@ def build_kernel(version, revision, parallel_jobs='auto', distcc=False): 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))