Rockbox Development > Starting Development and Compiling
More rapid compilation
(1/1)
hobby16:
Hi,
I'm developping on Sansa Clip V1 and I write my code on a single plugin file myfile.c, which is compiled to myfile.rock.
Is there a way to tell "make" to go compile just myfile.c without scanning for file changes before actually compiling ? That scan is really annoying since it takes about 10s on my PC and is totally unecessary since I KNOW I only change myfile.c and nothing else ?
saratoga:
"make plugins" might work for you.
FWIW though make already does skip basically everything if you just touch one file:
--- Code: ---mike@biosgroup-desktop:~/rockbox/codeclib/clip+$ touch ../apps/plugins/fire.c
mike@biosgroup-desktop:~/rockbox/codeclib/clip+$ time make
CC apps/plugins/fire.c
LD fire.rock
real 0m2.465s
user 0m1.760s
sys 0m1.070s
--- End code ---
Basically, unless you've modified other files, most of the compile time will just be actually compiling and linking that one file.
hobby16:
@saratoga
thank you for your reply.
I can't say that "make" skip is very smart.
The delay when just one file is changed is 7s.
The delay when nothing is changed is 5s.
I know it's the time used to parse for changed files since there is no delay when make compiles a one-file project. That's really annoying when you develop & compile on just one file of the rockbox project !
P.S. in my config, "make plugins" doesn't work ("*** No rule to make target" error) and I doubt it will change things a lot.
--- Quote ---ubuntu@ubuntu-desktop:~/rockbox/build_lua$ time make
CC apps/plugin.c
LD rockbox.elf
OC rockbox.bin
SCRAMBLE rockbox.sansa
Creating rockbox-info.txt
real 0m6.962s
user 0m3.216s
sys 0m3.364s
--- End quote ---
--- Quote ---ubuntu@ubuntu-desktop:~/rockbox/build_lua$ time make
make: Nothing to be done for `all'.
real 0m5.660s
user 0m2.572s
sys 0m2.876s
--- End quote ---
saratoga:
--- Quote from: hobby16 on July 28, 2011, 12:45:15 PM ---P.S. in my config, "make plugins" doesn't work ("*** No rule to make target" error) and I doubt it will change things a lot.
--- End quote ---
Its actually "make rocks". You can see a complete list of options with "make help".
Navigation
[0] Message Index
Go to full version