cmd = [MAKE_KPKG, '-j', '%s' %(parallel_jobs), '--arch',
'%s' %(BUILD_ARCH), '--rootcmd', 'fakeroot', '--revision',
- '%s' %(revision), '--initrd', '--arch_in_name', 'kernel_debug',
+ '%s' %(revision), '--initrd', 'kernel_debug',
'kernel_image', 'kernel_source', 'kernel_headers', 'modules']
logger.info('start compile process')
'No config file found at %s' %(KERNEL_CONFIG_PATH)
)
kernel_config = read_file(KERNEL_CONFIG_PATH)
- localversion = '-%s-%s' %(GIT_BRANCH_NAME, BUILD_ARCH)
+ # don't put the branch names into the packages names
+ if GIT_BRANCH_NAME[7:] == 'master-'
+ flavor=GIT_BRANCH_NAME[:7]
+ elif GIT_BRANCH_NAME[8:] == 'develop-'
+ flavor=GIT_BRANCH_NAME[:8]
+ elif GIT_BRANCH_NAME[8:] == 'release-'
+ flavor=GIT_BRANCH_NAME[:8]
+ elif GIT_BRANCH_NAME[7:] == 'hotfix-'
+ flavor=GIT_BRANCH_NAME[:7]
+
+ localversion = '-profitbricks-%s' %(flavor)
for lino, line in kernel_config.iteritems():
try:
key, value = CREG_KERNEL_CONFIG_DELIM.split(line)