4 kernel_config_file="${kernel_src_dir}/arch/x86/configs/opnfv.config"
12 function kernel_build_validate {
14 if [[ -z "$@" ]]; then
15 echo "usage: ${0} output_dir"
16 echo "usage: ${1} pkg_type"
21 if [ ! -d ${output_dir} -o ! -w ${output_dir} ] ; then
22 echo "${0}: Output directory '${output_dir}' does not exist or cannot be written"
25 if [ ! -d ${kernel_src_dir} ] ; then
26 echo "${0}: Directory '${kernel_src_dir}' does not exist, run this script from the root of kvmfornfv source tree"
30 if [ ! -f ${kernel_config_file} ] ; then
31 echo "${0}: ${kernel_config_file} does not exist"
39 function kernel_build_prep {
40 show_stage "kernel tree prep"
41 cp -f ${kernel_config_file} "${kernel_src_dir}/.config"