Revamp module build script to make it work for 5.15 on Ubuntu 20.04
The current version of the script does not work at all when the host
kernel is Azure's 5.15 kernel on Ubuntu 20.04. It does seem to work with
the non-HWE kernel (version 5.4).
Update the script to add support for building and loading the kernel
modules for the 5.15 kernel, while keeping support for the non-HWE
kernel.
This is a cherry-pick of sonic-net/sonic-swss-common#720
The current version of the script does not work at all when the host kernel is Azure's 5.15 kernel on Ubuntu 20.04. It does seem to work with the non-HWE kernel (version 5.4).
Update the script to add support for building and loading the kernel modules for the 5.15 kernel, while keeping support for the non-HWE kernel.
This is a cherry-pick of sonic-net/sonic-swss-common#720
Signed-off-by: Saikrishna Arcot saiarcot895@gmail.com
Signed-off-by: Saikrishna Arcot saiarcot895@gmail.com
Signed-off-by: Saikrishna Arcot saiarcot895@gmail.com