On Wed, 2012-05-16 at 09:47 +0530, Venkat Raghavulu wrote: > Hello All > > Just discovered something, wanted to share, might be that many out there > will be knowing this, for the unknowns sharing this: > > We do few source file change and then end up building the entire stuff > using "make" command. Mid way through the build we see that a single > annoying COMPILE ERROR and see its such a waste of time. > > So the ideal thing is to just compile and link only the changed file which > will be quick and rest assured FULL the build will succeed. So here's how > it is to be done: > > In my below example I am building the Sensor file which is in the path, > kernel/drivers/hwmon: > *The build command is:* make -C ../out/target/product/snowball/obj/kernel/ > SUBDIRS=drivers/hwmon ARCH=arm CROSS_COMPILE=arm-eabi- > > *Replace the "drivers/hwmon" to your location where the file you modified > is present and it builds.*
Or specify the target object you want to make, so for a source file... make ARCH=arm CROSS_COMPILE=arm-eabi- drivers/hwmon/lsm303dlh_m.o or for a loadable module make ARCH=arm CROSS_COMPILE=arm-eabi- drivers/foo/bar.ko Though, once you've done a failed make once, and corrected the source code, I would have thought then next make would take next to no time for the objects it had already built and so wouldn't be worth doing these shortcuts. (Perhaps I just lucky to have a fast machine with a decent amount of RAM.) -- Tixy _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev