From 7601b544103426f45430bef7995bb2b3fafb1069 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 20 Sep 2011 18:02:41 +0200 Subject: [PATCH] also build kernel_doc for production --- kernel_inpbuilder.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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)) -- 2.39.5