注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "User:Drobbins/CLFS"

From Funtoo
Jump to navigation Jump to search
Line 7: Line 7:
{{file|lang=bash|body=
{{file|lang=bash|body=
#!/bin/bash
#!/bin/bash
exec /usr/bin/env -i /bin/bash --noprofile --norc << EOF
exec /usr/bin/env -i /bin/bash --noprofile --norc << "EOF"
export HOME=/home/drobbins
set +h
set +h
umask 022
umask 022
CLFS=$HOME/sexybeast
export HOME=/home/drobbins
LC_ALL=POSIX
export CLFS=$HOME/sexybeast
PATH=$CLFS/cross-tools/bin:/bin:/usr/bin
export CLFS_CROSS_TOOLS=${CLFS}/cross-tools
export CLFS LC_ALL PATH
export D=${CLFS_CROSS_TOOLS}
export LC_ALL=POSIX
export PATH=$CLFS/cross-tools/bin:/bin:/usr/bin
unset CFLAGS CXXFLAGS
unset CFLAGS CXXFLAGS
echo Hello.
echo Hello.
export CLFS_HOST=$(echo ${MACHTYPE} | sed -e 's/-[^-]*/-cross/')
export CLFS_TARGET="powerpc64-unknown-linux-gnu"
export BUILD64="-m64"
cd file-5.19 && ./configure --prefix=/ --disable-static && \
make -j && \
make DESTDIR=${D} install
EOF
EOF
}}
}}

Revision as of 04:06, February 9, 2022

Self-Contained CLFS

Getting CLFS building entirely in your existing user's home directory should be possible.

I'm working on cleaning up some things in CLFS, and want to see if we can build everything inside someone's home directory -- creating the /tools and /cross-tools symlinks on the root filesystem is a bit messy. I also want to see if there is a simpler way to create a clean environment than creating a separate clfs user. In theory, this should not be necessary. We can create a clean-room shell environment like this:

    (bash source code)
#!/bin/bash
exec /usr/bin/env -i /bin/bash --noprofile --norc << "EOF"
set +h
umask 022
export HOME=/home/drobbins
export CLFS=$HOME/sexybeast
export CLFS_CROSS_TOOLS=${CLFS}/cross-tools
export D=${CLFS_CROSS_TOOLS}
export LC_ALL=POSIX
export PATH=$CLFS/cross-tools/bin:/bin:/usr/bin
unset CFLAGS CXXFLAGS
echo Hello.
export CLFS_HOST=$(echo ${MACHTYPE}