mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 15:32:30 +00:00
pkgs: fix kernel build
Kernel build for packages got broken after upgrade, this add needed changes to build again. Fixes #924 Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
901f9ba294
commit
2e3b090762
@ -3,7 +3,7 @@
|
||||
<service name="download_url">
|
||||
<param name="protocol">https</param>
|
||||
<param name="host">cdn.kernel.org</param>
|
||||
<param name="path">/pub/linux/kernel/v4.x/linux-@VERSION@.tar.xz</param>
|
||||
<param name="path">/pub/linux/kernel/v5.x/linux-@VERSION@.tar.xz</param>
|
||||
</service>
|
||||
<service name="verify_file">
|
||||
<param name="file">_service:download_url:linux-@VERSION@.tar.xz</param>
|
||||
|
@ -24,7 +24,7 @@ override_dh_auto_build:
|
||||
rm -f .config
|
||||
find $(KERNEL_CONFIGS) -name "$(KERNEL_ARCH)_kata_kvm_*" -exec cp {} .config \;
|
||||
if [ ! -f .config ]; then \
|
||||
scripts/kconfig/merge_config.sh -r -n $(KERNEL_FRAG_COMMON_DIR)/* $(KERNEL_FRAG_ARCH_DIR)/* ; \
|
||||
scripts/kconfig/merge_config.sh -r -n $(KERNEL_FRAG_COMMON_DIR)/*.conf $(KERNEL_FRAG_ARCH_DIR)/* ; \
|
||||
if [ ! -f .config ]; then \
|
||||
echo "ERROR: cannot find the kernel config file for the $(KERNEL_ARCH) architecture"; \
|
||||
exit 1; \
|
||||
|
@ -11,7 +11,7 @@ License: GPL-2.0
|
||||
Summary: The Linux kernel optimized for running inside a container
|
||||
Group: System/Kernel
|
||||
Url: http://www.kernel.org/
|
||||
Source0: https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-@VERSION@.tar.xz
|
||||
Source0: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-@VERSION@.tar.xz
|
||||
Source1: kata-kernel-configs.tar.gz
|
||||
Source2: kata-multiarch.sh
|
||||
|
||||
@ -84,7 +84,7 @@ BuildKernel() {
|
||||
# Use fragments to generate the .config
|
||||
frag_dir="kata-kernel-configs/fragments"
|
||||
err_msg="not in final"
|
||||
r="$(KCONFIG_CONFIG=.config ARCH=${kernelArch} scripts/kconfig/merge_config.sh -r -n ${frag_dir}/common/* ${frag_dir}/${kernelArch}/* | grep "${err_msg}")" || true
|
||||
r="$(KCONFIG_CONFIG=.config ARCH=${kernelArch} scripts/kconfig/merge_config.sh -r -n ${frag_dir}/common/*.conf ${frag_dir}/${kernelArch}/* | grep "${err_msg}")" || true
|
||||
[ -z "${r}" ] || (echo "ERROR: ${r}"; exit 1)
|
||||
fi
|
||||
[ -f .config ] || (echo "ERROR: cannot find the kernel config file for the ${kernelArch} architecture"; exit 1)
|
||||
|
Loading…
Reference in New Issue
Block a user