Taking out drivers code from kernel Source and compiling it as out-of-tree module

Viewed 103

I am trying to take out the driver code from Linux kernel and want to compile it separately as out-of-tree module.

What Makefile Modification is needed? and How to pass Kconfig parameter? You can take out any drivers .

say for example for inside kernel you compile xgbe driver using

make M=drivers/net/ethernet/amd/xgbe modules

I want to take out xgbe out of kernel and compile it seperately against kernel installed. (it might to fail to compile due to changes ) but if running kernel is same as the taken out module it should compile fine.

0 Answers
Related