Re: [yocto] Build only one specific C source from git clone with many C files

2017-02-06 Thread Paul Eggleton
On Monday, 6 February 2017 11:45:19 AM NZDT Burton, Ross wrote: > On 6 February 2017 at 11:27, Prasant J wrote: > > Is it possible to modify SRC_URI to take only one source file from a > > git clone and build it? > > No, you can't do that with git. > > One way would be to use the http fetcher to

Re: [yocto] Build only one specific C source from git clone with many C files

2017-02-06 Thread Burton, Ross
On 6 February 2017 at 11:27, Prasant J wrote: > Is it possible to modify SRC_URI to take only one source file from a > git clone and build it? > No, you can't do that with git. One way would be to use the http fetcher to get the file directly from the web interface to the kernel. Ross --

[yocto] Build only one specific C source from git clone with many C files

2017-02-06 Thread Prasant J
Hi, I want to build only spidev_test.c from kernel sources (kernel/Documentation/spi/spidev_test.c) Is it possible to modify SRC_URI to take only one source file from a git clone and build it? Any inputs will be of help! Regards, Pj -- ___ yocto ma