This port was renamed to amd64-linux-glibc
and, along with i686-linux-glibc
,
bootstrapped and uploaded on 2014-03-19.
The rest of this page is kept only for reference and historical purposes.
Following is the planned procedure to bootstrap the core-linux-eglibc port from a Debian GNU system. Debian's GNU toolchain for its amd64 architecture is used to build a fake generic port named amd64-linux-eglibc.
This procedure assumes that Debian's build-essential package is installed, that
opkhelper 1.0.0 is installed, that genopkg.sh from opkhelper 1.0.0 has been run,
and that the following architecture table is present at
/usr/local/share/opkhelper/archtab
:
# Map between distribution and build system architecture names.
#
# <Distribution arch> <GNU system type> <kbuild arch>
i686-linux-eglibc i686-pc-linux-gnu x86
amd64-linux-eglibc x86_64-pc-linux-gnu x86
core-linux-eglibc x86_64-pc-linux-gnu x86
k8-linux-eglibc x86_64-pc-linux-gnu x86
cortexa8-linux-eglibc arm-cortex_a8-linux-gnueabi arm
Subsequent ports like i686-linux-eglibc may simply be cross built from the core-linux-eglibc port.
Build the following base system packages for amd64-linux-eglibc using Debian's GNU toolchain:
- src:eglibc
- src:busybox
- src:linux-libre
- src:opkg
Build the following build essential packages for amd64-linux-eglibc using Debian's GNU toolchain:
- src:binutils
- src:gmp
- src:mpfr
- src:mpc
- src:gcc-4.7
- src:gcc-defaults
- src:opkhelper-1.0
- src:build-essential
- src:fakeroot
Build src:binutils and src:gcc-4.7 with a core-linux-eglibc target.
Unpack the following essential binary packages into the target directory:
- libc.6
- libc-bin
- locales
- nscd
- zoneinfo
- busybox
- linux-libre
- libopkg.1
- opkg
Unpack the following build essential binary packages into the target directory:
- libc.6-dev
- libc-dev-bin
- linux-libre-headers
- libgmp.10
- libgmp-dev
- libmpfr.4
- libmpfr-dev
- libmpc.2
- libmpc-dev
- gcc-4.7-base-core-linux-eglibc
- cpp-4.7-core-linux-eglibc
- gcc-4.7-core-linux-eglibc
- g++-4.7-core-linux-eglibc
- libgcc.1
- libstdc++.6
- libstdc++.6-4.7-dev
- cpp-core-linux-eglibc
- gcc-core-linux-eglibc
- g++-core-linux-eglibc
- opkhelper-1.0
- fakeroot
- build-essential-core-linux-eglibc
Unpack the following source binary packages into the target directory:
- eglibc-src
- busybox-src
- linux-libre-src
- opkg-src
- binutils-src
- gmp-src
- mpfr-src
- mpc-src
- gcc-4.7-src
- gcc-defaults-src
- opkhelper-1.0-src
- build-essential-src
Mount the proc and sysfs filesystems.
Run
/bin/sh
in an isolated environment with chroot.Run the following command to rebuild every source package for core-linux-eglibc:
# for src in /usr/src/*; do \ > cd "${src}"; \ > opkbuild -a core-linux-eglibc; \ > done
Exit ash and the isolated environment.
Collect from
usr/src
in the target directory the binary packages built for core-linux-eglibc.