Re: gitignore with kernel source result in fail to compile

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, May 21, 2007 at 09:48:19AM +0800, Yang, Sheng wrote:
> Recently I am trying to use git with kernel development, and add the
> linux-2.6.21 to git repo as follow:
> 
> cd linux-2.6.21
> >git init
> >git add .
> >git commit
> >
> 
> But when I using "git clone" to get the this repo and then compile it, it
> said that arch/xxx/vmlinux.lds.S can't be found. Then I checked .gitignore,
> found vmlinux* on the list. I don't know why...

You probably started with a directory without that file.

> Is it the normal way to build a kernel source repo? 

No, the normal way is to clone Linus's repo because that's the master
tree. It has several advantages:

- - Makes updating much easier: git pull
- - It's the master repo, all other kernel repos I know are a clone of
  that repo. Because there is a common ancestor it's possible to pull
  objects from those repos.
- - If you have a useful patch, Linus (or somebody else upstream) can 
  pull from your repo just because you use a common ancestor.

> Of course, if I cloned source from th*e* Linus Torvalds's, everything
> goes well.

So use Linus's repo.


Erik

- -- 
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGUWxi/PlVHJtIto0RAqzKAJ4ysBAh1Bzk+lxUdZnuHa92YUF1lgCggWOP
79vpCttfUafWeVEjVtCOi2I=
=kVl3
-----END PGP SIGNATURE-----

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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