'--git-branch-name', '%s' %(GIT_BRANCH_NAME),
'--revision', '%s' %(revision),
'--dist', '%s' %(dist),
+ '--overlay-dir', '%s' % os.path.join(CWD,'kernel-package-overlay'),
]
os.environ.update({'DIST': '%s' %(dist)})
help='Set the distribution. Default: %default'
)
+ parser.add_option(
+ '--overlay-dir',
+ dest='overlay-dir',
+ default=None,
+ metavar='OVERLAY_DIR',
+ help='Set the overlay-dir for make-kpkg Default: %default'
+ )
+
return parser.parse_args()
def git_clone_remote_repository(url, destination):
)
return True
-def build_kernel(flavour, revision, parallel_jobs='auto', distcc=False):
+def build_kernel(flavour, revision, overlay_dir, parallel_jobs='auto', distcc=False):
if parallel_jobs == 'auto':
parallel_jobs = DEFAULT_PARALLEL_JOBS
else:
cmd = [MAKE_KPKG, '-j', '%s' %(parallel_jobs), '--arch',
'%s' %(BUILD_ARCH), '--rootcmd', 'fakeroot',
'--append-to-version', '-%s' %(flavour),
- '--initrd', '--arch_in_name'
+ '--initrd', '--arch_in_name',
+ '--overlay-dir' % overlay_dir,
]
# add targets
cmd += [ 'kernel_debug', 'kernel_image', 'kernel_source', 'modules' ]
logger.error('Error during installation of extra kernel modules')
exit(ERROR)
- if not build_kernel(kernel_flavour, REVISION):
+ if not build_kernel(kernel_flavour, REVISION, options.overlay_dir):
exit(ERROR)
else:
ftp = FTP(