Instructions to build and deploy host kernel
--------------------------------------------

# Install packages needed to compile kernel from source
sudo apt update
sudo apt install build-essential libncurses-dev gawk flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf

wget https://raw.githubusercontent.com/projectceladon/vendor-intel-utils/master/host/kernel/linux-intel-lts2022/build.sh
./build.sh

# Copy deb files to USB and get it deployed in target device

cd ..
# cp *.deb files to USB and get it deployed in target device(<kernel_deb_folder>)
# copy the deb files to target PC

# Install the kernel debs
cd <kernel_deb_folder>  #in target device
sudo dpkg -i *.deb


### Update grub to wait indefinitely for kernel selection on boot
sudo vim /etc/default/grub

# Comment out GRUB_TIMEOUT_STYLE=hidden
#GRUB_TIMEOUT_STYLE=hidden

#Uncommment following ling and modify grub timeout to -1 for indefinite wait or 5 for 5secs wait
#GRUB_TIMEOUT=-1

#Save the file
sudo update-grub

### Reboot the target device after the above files are copied.
reboot

# Select compiled kernel from "Advanced options for Ubuntu"
