diff --git a/bin/create_rt_kernel_deb.sh b/bin/create_rt_kernel_deb.sh index c148da55..66cc4cd7 100755 --- a/bin/create_rt_kernel_deb.sh +++ b/bin/create_rt_kernel_deb.sh @@ -1,12 +1,18 @@ #!/bin/bash - -KERNEL_VERSION="4.13.13" +# 1) Replace with kernel version +KERNEL_VERSION="x.x.x" # https://www.debian.org/releases/stable/i386/ch08s06.html.en -sudo apt-get install kernel-package fakeroot libssl-dev +sudo apt-get install kernel-package fakeroot libssl-dev dpkg-dev libelf-dev cd linux-${KERNEL_VERSION}/ -make-kpkg clean +make clean + # set concurrency to all cores but one export CONCURRENCY_LEVEL=$(expr $(grep -c ^processor /proc/cpuinfo) - 1) -sudo fakeroot make-kpkg --initrd --revision=1.0.custom kernel_image + +# 2)a) on systems prior to 22.04 run below +#sudo fakeroot make-kpkg --initrd --revision=1.0.custom kernel_image + +#2)b) on systems 22.04 and up run +#sudo fakeroot make bindeb-pkg diff --git a/bin/prepare_rt_kernel.sh b/bin/prepare_rt_kernel.sh index d94448df..9324acb0 100755 --- a/bin/prepare_rt_kernel.sh +++ b/bin/prepare_rt_kernel.sh @@ -1,12 +1,13 @@ #!/bin/bash -RT_PATCH_DIR="4.13" -RT_PATCH_VERSION="4.13.13-rt5" -KERNEL_DIR="v4.x" -KERNEL_VERSION="4.13.13" +RT_PATCH_DIR="x.xx" +RT_PATCH_VERSION="x.xx.xx-rtx" +KERNEL_DIR="vx.x" +KERNEL_VERSION="x.xx.xx" -wget https://www.kernel.org/pub/linux/kernel/projects/rt/${RT_PATCH_DIR}/patch-${RT_PATCH_VERSION}.patch.xz -wget https://www.kernel.org/pub/linux/kernel/${KERNEL_DIR}/linux-${KERNEL_VERSION}.tar.xz +# Double check the links here as they do change over time to include new paths i.e. kernel/projects/old/rt +wget https://www.kernel.org/pub/linux/kernel/projects/rt/${RT_PATCH_DIR}/patch-${RT_PATCH_VERSION}.patch.xz --no-check-certificate +wget https://www.kernel.org/pub/linux/kernel/${KERNEL_DIR}/linux-${KERNEL_VERSION}.tar.xz --no-check-certificate tar -xvJf linux-${KERNEL_VERSION}.tar.xz cd linux-${KERNEL_VERSION}/ xzcat -dc ../patch-${RT_PATCH_VERSION}.patch.xz | patch -p1 @@ -18,6 +19,9 @@ make mrproper cp /boot/config-`uname -r` .config make olddefconfig +# Setting systemkeys to avoid; No rule to make target 'debian/certs/test-signing-certs.pem' build error +scripts/config --set-str SYSTEM_TRUSTED_KEYS "" +scripts/config --disable SYSTEM_REVOCATION_KEYS # edit manually the RT_PREEMPT parameters: # General Setup -> Preemption Model set to Fully Preemptible Kernel (RT)