The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "User:Pnoecker/clfs"
m (MOAR) |
|||
Line 88: | Line 88: | ||
export BUILD64="${BUILD64}" | export BUILD64="${BUILD64}" | ||
EOF | EOF | ||
}} | |||
link the sources directory to your clfs ~ home work space: | |||
{{console|body= | |||
$##i## ln -sv ${CLFS}/sources . | |||
}} | |||
http://www.clfs.org/view/CLFS-3.0.0-SYSVINIT/ppc64-64/cross-tools/introduction.html | |||
{{console|body= | |||
$##i## tar -xf file-5.19.tar.gz && cd file-5.19 | |||
}} | |||
compile according to the page. | |||
http://www.clfs.org/view/CLFS-3.0.0-SYSVINIT/ppc64-64/cross-tools/file.html | |||
{{console|body= | |||
$##i## ./configure --prefix=/cross-tools --disable-static && make && make install | |||
}} | }} |
Revision as of 00:20, February 8, 2022
first export the clfs variable. this is my ~/sexybeast.
user $ pwd /home/pnoecker
user $ mkdir sexybeast user $ export CLFS=/home/pnoecker/sexybeast user $ sudo su root # export CLFS=/home/pnoecker/sexybeast
follow from http://www.clfs.org/view/CLFS-3.0.0-SYSVINIT/ppc64-64/materials/introduction.html
user $ mkdir -v ${CLFS}/sources user $ chmod -v a+wt ${CLFS}/sources user $ wget http://www.clfs.org/view/CLFS-3.0.0-SYSVINIT/ppc64-64/dl.list
dl.list has a broken isl link. use nano ctl + w : isl to find the link. replace it with this live link. http://ftp.osuosl.org/pub/clfs/conglomeration/isl/isl-0.12.2.tar.lzma then write the file and exit out of nano.
- download sources
user $ wget -i dl.list -P ${CLFS}/sources
follow on from http://www.clfs.org/view/CLFS-3.0.0-SYSVINIT/ppc64-64/final-preps/creatingtoolsdir.html
igore root, were doing this cash money $$$$ on the first command. second command requires root.
user $ install -dv ${CLFS}/tools user $ sudo ln -sv ${CLFS}/tools /
create cross tool directory.
user $ install -dv ${CLFS}/cross-tools user $ sudo ln -sv ${CLFS}/cross-tools /
http://www.clfs.org/view/CLFS-3.0.0-SYSVINIT/ppc64-64/final-preps/addinguser.html
user $ sudo groupadd clfs user $ sudo useradd -s /bin/bash -g clfs -d /home/clfs clfs user $ sudo mkdir -pv /home/clfs user $ sudo chown -v clfs:clfs /home/clfs user $ sudo chown -v clfs ${CLFS}/tools user $ sudo chown -v clfs ${CLFS}/cross-tools user $ sudo chown -v clfs ${CLFS}/sources user $ sudo su - clfs
setup environment:
user $ cat > ~/.bash_profile << "EOF" exec env -i HOME=${HOME} TERM=${TERM} PS1='\u:\w\$ ' /bin/bash EOF user $ cat > ~/.bashrc << "EOF" set +h umask 022 CLFS=/home/pnoecker/sexybeast LC_ALL=POSIX PATH=/cross-tools/bin:/bin:/usr/bin export CLFS LC_ALL PATH unset CFLAGS CXXFLAGS EOF user $source ~/.bash_profile
setup host and target variables.
http://www.clfs.org/view/CLFS-3.0.0-SYSVINIT/ppc64-64/final-preps/variables.html
user $ export CLFS_HOST=$(echo ${MACHTYPE} | sed -e 's/-[^-]*/-cross/') user $ export CLFS_TARGET="powerpc64-unknown-linux-gnu" user $ export BUILD64="-m64" user $ cat >> ~/.bashrc << EOF export CLFS_HOST="${CLFS_HOST}" export CLFS_TARGET="${CLFS_TARGET}" export BUILD64="${BUILD64}" EOF
link the sources directory to your clfs ~ home work space:
user $ ln -sv ${CLFS}/sources .
http://www.clfs.org/view/CLFS-3.0.0-SYSVINIT/ppc64-64/cross-tools/introduction.html
user $ tar -xf file-5.19.tar.gz && cd file-5.19
compile according to the page. http://www.clfs.org/view/CLFS-3.0.0-SYSVINIT/ppc64-64/cross-tools/file.html
user $ ./configure --prefix=/cross-tools --disable-static && make && make install