Xilinx-CNS / onload

OpenOnload high performance user-level network stack
Other
583 stars 95 forks source link

Fix root makefile to work with linux 6.10 #242

Closed okt-sergeyn closed 2 weeks ago

okt-sergeyn commented 2 months ago

Linux 6.10 has broken Onload kernel modules build by replacing $(src) with $(obj) in its makefiles. See Linux commit 9a0ebe5011f49e932bb0a2cea2034fd65e6e567e

This patch implements a possible approach - create symlinks to Onload source files in build directory.


Possible fix for #236 Checked on CentOS 9 6.10.5-1.el9.elrepo.x86_64 and Ubuntu 22.04 6.8.0-40-generic by running make/ mmakebuildtree --driver && make.

Note: there are other build issues, related to linux-6.10, which I'll address separately.

rhughes-xilinx commented 2 months ago

One of my goals for this build system was not to have to do this kind of copying/linking (one reason being that it causes difficulties with deleted files), so it's disappointing to see it come back. I shouldn't be spending time on coming up with another intricate trick which avoids it, however. If somebody else has given it a good try and failed then I'll accept that conclusion