#!/usr/bin/env bash

# clean compilation and config file
make mrproper

# create config solely with the loaded modules of the current system
read -p "Connect every hardware you have, into the computer. When done, press ENTER..."
make localmodconfig
read -p "You may disconnect the hardware that you connected in the last step. When done, press ENTER..."

# embed all the configurations and modules into the kernel
make localyesconfig

# compile this kernel
make -j$(nproc)
