cmd = [MAKE_KPKG, '-j', '%s' %(parallel_jobs), '--arch',
'%s' %(BUILD_ARCH), '--rootcmd', 'fakeroot', '--append_to_version',
- '~%s' %(revision), '--initrd', 'kernel_debug',
+ '%s' %(revision), '--initrd', 'kernel_debug',
'kernel_image', 'kernel_source', 'kernel_headers', 'modules']
logger.info('start compile process')
)
kernel_config = read_file(KERNEL_CONFIG_PATH)
# don't put the branch names into the packages names
- if GIT_BRANCH_NAME[7:] == 'master-':
- flavour = GIT_BRANCH_NAME[:7]
- elif GIT_BRANCH_NAME[8:] == 'develop-':
- flavour = GIT_BRANCH_NAME[:8]
- elif GIT_BRANCH_NAME[8:] == 'release-':
- flavour = GIT_BRANCH_NAME[:8]
- elif GIT_BRANCH_NAME[7:] == 'hotfix-':
- flavour = GIT_BRANCH_NAME[:7]
+ if GIT_BRANCH_NAME[:7] == 'master-':
+ flavour = GIT_BRANCH_NAME[7:]
+ elif GIT_BRANCH_NAME[:8] == 'develop-':
+ flavour = GIT_BRANCH_NAME[8:]
+ elif GIT_BRANCH_NAME[:8] == 'release-':
+ flavour = GIT_BRANCH_NAME[8:]
+ elif GIT_BRANCH_NAME[:7] == 'hotfix-':
+ flavour = GIT_BRANCH_NAME[7:]
else:
logger.error('GIT_BRANCH_NAME is %s' % GIT_BRANCH_NAME)
flavour = 'none'