sonic-net / sonic-swss

SONiC Switch State Service (SwSS)
https://azure.github.io/SONiC
Other
170 stars 503 forks source link

Revamp module build script to make it work for 5.15 on Ubuntu 20.04 #3212

Closed saiarcot895 closed 1 month ago

saiarcot895 commented 1 month ago

What I did

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 5.11 and older.

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.

In addition, use a separate updates/sonic directory for the kernel modules we compile, to make it clear they were compiled separately and don't come from the official kernel build packages.

Finally, add a warning if we're compiling a kernel module for a different version of the kernel than what is currently running.

This is a cherry-pick of sonic-net/sonic-swss-common#720

Why I did it

How I verified it

Details if related

mssonicbld commented 1 month ago

Cherry-pick PR to 202405: https://github.com/sonic-net/sonic-swss/pull/3214

mssonicbld commented 1 month ago

Cherry-pick PR to 202311: https://github.com/sonic-net/sonic-swss/pull/3215

mssonicbld commented 1 month ago

@saiarcot895 cherry pick PR didn't pass PR checker. Please check!!!
https://github.com/sonic-net/sonic-swss/pull/3214

mssonicbld commented 1 month ago

@saiarcot895 cherry pick PR didn't pass PR checker. Please check!!!
https://github.com/sonic-net/sonic-swss/pull/3214

mssonicbld commented 1 month ago

@saiarcot895 cherry pick PR didn't pass PR checker. Please check!!!
https://github.com/sonic-net/sonic-swss/pull/3214

mssonicbld commented 1 month ago

@saiarcot895 cherry pick PR didn't pass PR checker. Please check!!!
https://github.com/sonic-net/sonic-swss/pull/3214

mssonicbld commented 1 month ago

@saiarcot895 cherry pick PR didn't pass PR checker. Please check!!!
https://github.com/sonic-net/sonic-swss/pull/3214

mssonicbld commented 1 month ago

@saiarcot895 cherry pick PR didn't pass PR checker. Please check!!!
https://github.com/sonic-net/sonic-swss/pull/3214

mssonicbld commented 1 month ago

@saiarcot895 cherry pick PR didn't pass PR checker. Please check!!!
https://github.com/sonic-net/sonic-swss/pull/3214