From b5e6a0d0afa91b7fc5fe891caa0d689932c4b09f Mon Sep 17 00:00:00 2001 From: Chandana kalluri Date: Tue, 11 Aug 2020 22:27:30 -0700 Subject: runx: Fix linux kernel versions referenced in the recipe Fix the linux kernel versions referenced in the recipe. For ease of use, add variables KERNEL_SRC_VER and KERNEL_URL_VER that can be used to udpate the linux versions. Signed-off-by: Sai Hari Chandana Kalluri Signed-off-by: Bruce Ashfield --- recipes-core/runx/runx_git.bb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'recipes-core/runx/runx_git.bb') diff --git a/recipes-core/runx/runx_git.bb b/recipes-core/runx/runx_git.bb index 991e6e1f..a2600711 100644 --- a/recipes-core/runx/runx_git.bb +++ b/recipes-core/runx/runx_git.bb @@ -3,9 +3,13 @@ SUMMARY = "runx stuff" DESCRIPTION = "Xen Runtime for OCI" SRCREV_runx = "f24efd33fb18469e9cfe4d1bfe8e2c90ec8c4e93" + +KERNEL_SRC_VER="linux-5.4" +KERNEL_URL_VER="v5.x" + SRC_URI = "\ git://github.com/lf-edge/runx;nobranch=1;name=runx \ - https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.4.tar.xz;destsuffix=git/kernel/build \ + https://www.kernel.org/pub/linux/kernel/${KERNEL_URL_VER}/${KERNEL_SRC_VER}.tar.xz;destsuffix=git/kernel/build \ file://0001-make-kernel-cross-compilation-tweaks.patch \ file://0001-make-initrd-cross-install-tweaks.patch \ " @@ -45,12 +49,12 @@ do_compile() { # building. mkdir -p ${S}/kernel/build mkdir -p ${S}/kernel/src - cp ${DL_DIR}/linux-4.15.tar.xz ${S}/kernel/build/ + cp ${DL_DIR}/${KERNEL_SRC_VER}.tar.xz ${S}/kernel/build/ # In the future, we might want to link the extracted kernel source (if # we move patches to recipe space, but for now, we need make-kernel to # extract a copy and possibly patch it. - # ln -sf ${WORKDIR}/linux-4.15 ${S}/kernel/src/ + # ln -sf ${WORKDIR}/${KERNEL_SRC_VER} ${S}/kernel/src/ # build the kernel echo "[INFO]: runx: building the kernel" -- cgit v1.2.3-54-g00ecf