kurt-vd / linux

Linux kernel source tree
Other
9 stars 12 forks source link

Compiling kernel module without pulling/compiling full linux kernel ? #1

Open s-hemer opened 8 years ago

s-hemer commented 8 years ago

Have you ever thought about providing a more simple/slim way of providing and compiling the can-j1939 kernel module? I really like to test the j1939 extension but I won't pull the full linux kernel nor compile it. I like to stay with the precompiled Debian/Ubuntu kernel on my machines and just go the way like the ISOTP extension or the ISOBUS extension provide (latter does not compile anymore with 4.2 but that's another story, don't need it anyway). Providing such a way for can-j1939 extension would make it much faster and easier to test/use it.

Regards Steffen

kurt-vd commented 8 years ago

Hey,

can-j1939 extends 2 core CAN data structures, of which 1 is even visible in userspace.

So the easy out-of-tree option as you propose is not possible. You'd need to recompile all CAN modules.

Then swapping the new can.ko with the old can.ko yields memory corruptions. You really want me to avoid that path.

My repository here is meant to be merged into the kernel of your choice. So you can take your distribution's kernel source and .config, merge can-j1939, enable can-j1939, and compile.

Why won't you pull the linux kernel source?

Kurt