Home Download Buy Blog Forum Support

Build system for linux module compilation

Build system for linux module compilation

Postby teto on Tue Mar 26, 2013 5:34 pm

Hi,

After 15 minutes of Sublime Text trial, I bought it immediately. Since then I've found many features I appreciate, just to say you did a great job (only thing I dislike is the sidebar color which contrasts with the main theme).

I wish to write a build system to compile my module via F7 instead of launching a command in the terminal. I woud like to do so via this build system:
Code: Select all
{
   "shell" : true,
   "cmd": ["make" , "-C" ,"/lib/modules/`uname-r`/build", "M=$PWD" ]
}

It returns
make: *** No targets specified and no makefile found. Stop.
[Finished in 0.0s with exit code 2]

I would really like to see the resulting command in order to know if parameters got interpreted correctly (doesn't look like it) and not only its output.

I thought the following would be working
Code: Select all
{
   "shell" : true,
   "cmd": ["bash" , "compile.sh" ]  # with compile.sh containing the "make -C /lib/... " command

}

it also returns [Finished in 0.0s] whereas make shoudl return errors (synta mistakes in my C file).

Thanks for your help.
teto
 
Posts: 4
Joined: Tue Mar 26, 2013 5:24 pm

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], rothgar, Yahoo [Bot] and 39 guests