Re: How to test a syscall prior to compiling the kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 04 Jun 2014 11:51:25 -0400, Andev said:
> On Wed, Jun 4, 2014 at 12:19 AM, Greg KH <greg@xxxxxxxxx> 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)

Attachment: pgpIrf3eT1hO8.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux