Skip to content

Commit

Permalink
Merge pull request clearcontainers#112 from Weichen81/master
Browse files Browse the repository at this point in the history
Kernel: Normalize target-arch for setup-kernel function
  • Loading branch information
jodh-intel authored Jul 31, 2018
2 parents f0e1d9d + 0e64f2a commit 90fa930
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion kernel/build-kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ readonly patches_repo_dir="${GOPATH}/src/${patches_repo}"
# Default path to search patches to apply to kernel
readonly default_patches_dir="${patches_repo_dir}/kernel/patches/"
# Default path to search config for kata
readonly default_kernel_config_dir="${GOPATH}/src/${kernel_config_repo}/kernel/configs/"
readonly default_kernel_config_dir="${GOPATH}/src/${kernel_config_repo}/kernel/configs"
#Path to kernel directory
kernel_path=""
#
Expand Down Expand Up @@ -188,6 +188,7 @@ setup_kernel() {

[ -n "${hypervisor_target}" ] || hypervisor_target="kvm"
[ -n "${arch_target}" ] || arch_target="$(uname -m)"
arch_target=$(arch_to_kernel "${arch_target}")
[ -n "${kernel_config_path}" ] || kernel_config_path=$(get_default_kernel_config "${kernel_version}" "${hypervisor_target}" "${arch_target}")

cp "${kernel_config_path}" ./.config
Expand Down
2 changes: 1 addition & 1 deletion kernel/kata_config_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3
4

0 comments on commit 90fa930

Please sign in to comment.