1

How to compile a module from downloaded Linux source?

view story
linux-howto

http://stackoverflow.com – I would ultimately like to modify and compile the existing Linux USB storage driver and test it. For the first step, I wanted to compile the module as is. I downloaded the latest Linux kernel (version 3.12) and extracted it to ~/linux-3.12. I found the driver I wanted to compile: drivers/usb/storage, but when I ran make, I got the following error: make: *** No targets. Stop. I found many guides online, but none of them worked for the USB storage driver. All I want is to compile this one module and get the .ko so I can test it out. NOTE: I'm running Ubuntu 13.04 64-bit, and uname -r outp (HowTos)