Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

sed -i '/deb-src/s/^# //' /etc/apt/sources.list && sudo apt update
sudo apt install -y build-dep linux-imagelinux-image-$(uname -r) linux-modules-$(uname -r) linux-modules-extra-$(uname -r)
sudo apt install -y git libtool libtool-bin libyaml-dev ed libreadline-dev dpatch libsnmp-dev mpi-default-dev module-assistant quilt
sudo apt install -y libncurses5-dev libncurses-dev bison flex gnupg libelf-dev gcc libssl-dev bc bzip2 build-essential udev kmod cpio
sudo apt install -y libfuse-dev libattr1-dev libblkid-dev uuid-dev devscripts fakeroot kernel-wedge libudev-dev libpython3-dev swig
sudo apt install -y gettext texinfo debhelper dh-exec update-notifier-common sg3-utils attr mpi-default-bin selinux-utils
sudo apt install -y python python2 python2-minimal python2.7 libpython2-stdlib libsgutils2-2 libpython2.7-stdlib python2.7-minimal libpython2.7-minimal

...

$ cd ${BUILDPATH}
$ sudo apt source linux-image-unsigned-$(uname -r)

or

$ sudo wget http://ports.ubuntu.com/pool/main/l/linux/linux-source-5.4.0_5.4.0-62.70_all.deb
$ sudo dpkg -i linux-source-5.4.0_5.4.0-62.70_all.deb
$ sudo tar xjf /usr/src/linux-source-5.4.0/linux-source-5.4.0.tar.bz

The next thing you need is the kernel configuration for that version. The easiest way to get it, is by grabbing it from a server running that version.
Assuming the current compile server already runs that kernel (which is not necessary, but certainly makes things easier):

...