How to test a syscall prior to compiling the kernel

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Wed Jun 4 13:56:15 EDT 2014


On Wed, 04 Jun 2014 11:51:25 -0400, Andev said:
> On Wed, Jun 4, 2014 at 12:19 AM, Greg KH <greg at kroah.com> wrote:
>
> > have to worry about build times.  Or, build on a ram disk, that goes
> > much faster :)
>
> I was actually trying to get this to work the other day. Are there any
> good pointers on how to setup a ram disk and host a linux git tree on
> it? My google-fu failed me this time.

The trick to remember is that you probably don't want to use the ramdisk
as the permanent host, so...

1) Setup your git tree on permanent storage
2) Set up your ramdisk
3) cd /my/source/tree
4) tar -c --exclude=.git -f - . | (cd /mnt/ramdisk && tar -xvf -)

then cd /mnt/ramdisk and start building.  Remember if you make changes to
copy them back to /my/source/tree :)

(The --exclude=.git will avoid copying about 900M onto the ramdisk.  Skip that
if you need the git history on the ramdisk for doing a bisect or similar)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140604/26ae0c56/attachment.bin 


More information about the Kernelnewbies mailing list