README.source: Update "Updating the upstream source" to reflect current practice
* Recommend using git rather than tarballs * We compress upstream source with xz, not gzip * Don't mention the complicated alternative to debian/rules orig
This commit is contained in:
parent
328762c833
commit
c4460bf84d
|
@ -1,24 +1,25 @@
|
||||||
Updating the upstream source
|
Updating the upstream source
|
||||||
============================
|
============================
|
||||||
|
|
||||||
1) You can use either:
|
In addition to the build-dependencies, you will need the rsync and
|
||||||
a) a git repository of the kernel source
|
unifdef packages installed.
|
||||||
b) a kernel tarball from kernel.org (e.g. linux-3.4.tar.bz2)
|
|
||||||
and, optionally, a patch (e.g. patch-3.5-rc1.bz2).
|
|
||||||
|
|
||||||
2) Run ./debian/bin/genorig.py <repository>
|
1) It is recommended to fetch the release tag from the relevant upstream git
|
||||||
or ./debian/bin/genorig.py <tarball> [patch]
|
repository, one of:
|
||||||
This will produce ../orig/linux_<version>.orig.tar.gz
|
|
||||||
(e.g. linux_3.5~rc1.orig.tar.gz).
|
|
||||||
|
|
||||||
(genorig.py requires the python and unifdef packages to be
|
* https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
|
||||||
installed)
|
* https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
|
||||||
|
* git://kernel.ubuntu.com/ubuntu/linux.git
|
||||||
|
|
||||||
3) Unpack linux_<version>.orig.tar.gz, cd into the new directory,
|
However, it is also possible to use upstream tarball and patch releases.
|
||||||
and do a 'git archive' to get the debian/ subdirectory.
|
|
||||||
Alternatively unpack using "make -f debian/rules orig".
|
|
||||||
|
|
||||||
(the orig target of the Makefiles requires rsync)
|
2) Run: ./debian/bin/genorig.py <repository>
|
||||||
|
or: ./debian/bin/genorig.py <tarball> [patch]
|
||||||
|
|
||||||
|
This will produce ../orig/linux_<version>.orig.tar.xz
|
||||||
|
(e.g. linux_3.5~rc1.orig.tar.xz).
|
||||||
|
|
||||||
|
3) Run: make -f debian/rules orig
|
||||||
|
|
||||||
Applying patches to the Debian kernel tree
|
Applying patches to the Debian kernel tree
|
||||||
==========================================
|
==========================================
|
||||||
|
|
Loading…
Reference in New Issue