doc: Update porting instructions in `HACKING'.
* HACKING (When the platform is supported by Nixpkgs): Update instructions.
This commit is contained in:
parent
b30e4f3f12
commit
9149f1a087
29
HACKING
29
HACKING
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#+TITLE: Hacking GNU Guix and its incredible distro
|
#+TITLE: Hacking GNU Guix and its incredible distro
|
||||||
|
|
||||||
Copyright © 2012 Ludovic Courtès <ludo@gnu.org>
|
Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
|
||||||
|
|
||||||
Copying and distribution of this file, with or without modification,
|
Copying and distribution of this file, with or without modification,
|
||||||
are permitted in any medium without royalty provided the copyright
|
are permitted in any medium without royalty provided the copyright
|
||||||
|
@ -106,26 +106,10 @@ GCC, libc, etc. need to be built. To that end, run the following
|
||||||
commands:
|
commands:
|
||||||
|
|
||||||
#+BEGIN_SRC sh
|
#+BEGIN_SRC sh
|
||||||
./pre-inst-env guix-build \
|
./pre-inst-env guix-build \
|
||||||
-e '(@@ (distro packages base) %guile-bootstrap-tarball)' \
|
-e '(@ (distro packages make-bootstrap) bootstrap-tarballs)' \
|
||||||
--system=i686-linux
|
--system=i686-linux
|
||||||
|
|
||||||
./pre-inst-env guix-build \
|
|
||||||
-e '(@@ (distro packages base) %bootstrap-binaries-tarball)' \
|
|
||||||
--system=i686-linux
|
|
||||||
|
|
||||||
./pre-inst-env guix-build \
|
|
||||||
-e '(@@ (distro packages base) %binutils-bootstrap-tarball)' \
|
|
||||||
--system=i686-linux
|
|
||||||
|
|
||||||
./pre-inst-env guix-build \
|
|
||||||
-e '(@@ (distro packages base) %glibc-bootstrap-tarball)' \
|
|
||||||
--system=i686-linux
|
|
||||||
|
|
||||||
./pre-inst-env guix-build \
|
|
||||||
-e '(@@ (distro packages base) %gcc-bootstrap-tarball)' \
|
|
||||||
--system=i686-linux
|
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
These should build tarballs containing statically-linked tools usable on
|
These should build tarballs containing statically-linked tools usable on
|
||||||
|
@ -135,12 +119,11 @@ In the source tree, you need to install binaries for ‘mkdir’, ‘bash’,
|
||||||
‘tar’, and ‘xz’ under ‘distro/packages/bootstrap/i686-linux’. These
|
‘tar’, and ‘xz’ under ‘distro/packages/bootstrap/i686-linux’. These
|
||||||
binaries can be extracted from the static-binaries tarball built above.
|
binaries can be extracted from the static-binaries tarball built above.
|
||||||
|
|
||||||
A rule for
|
A rule for ‘distro/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz’
|
||||||
‘distro/packages/bootstrap/i686-linux/guile-bootstrap-2.0.6.tar.xz’
|
|
||||||
needs to be added in ‘Makefile.am’, with the appropriate hexadecimal
|
needs to be added in ‘Makefile.am’, with the appropriate hexadecimal
|
||||||
vrepresentation of its SHA256 hash.
|
vrepresentation of its SHA256 hash.
|
||||||
|
|
||||||
You may then revert your changes to ‘base.scm’. For the variables
|
You may then revert your changes to ‘bootstrap.scm’. For the variables
|
||||||
‘%bootstrap-coreutils&co’, ‘%bootstrap-binutils’, ‘%bootstrap-glibc’,
|
‘%bootstrap-coreutils&co’, ‘%bootstrap-binutils’, ‘%bootstrap-glibc’,
|
||||||
and ‘%bootstrap-gcc’, the expected SHA256 of the corresponding tarballs
|
and ‘%bootstrap-gcc’, the expected SHA256 of the corresponding tarballs
|
||||||
for ‘i686-linux’ (built above) must be added.
|
for ‘i686-linux’ (built above) must be added.
|
||||||
|
|
Loading…
Reference in New Issue