NuTyX Toolchain construction based on Linux From Scratch documentation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
tnut 6a64e8d0af setup-nutyx, 5 months ago
chroot toolchain files completed 7 months ago
man add all the nutyx package files 7 months ago
po setup-nutyx, 5 months ago
scripts setup-nutyx, 5 months ago
tools setup-nutyx.in, 5 months ago
Makefile Makefile 5 months ago
Makefile.inc push version 5 months ago
README.md toolchain files completed 7 months ago

README.md

NuTyX toolchain construction & nutyx package construction

Follow thoses commands to build the toolchain

It's important to make the all process in one go. Total time of the construction is around 30 minutes on a modern Intel I7 processor (means 8 cores can be used).

This processus is only valid for a normal NuTyX GNU/Linux

In case you already launch the process once and interrupt it:

you have to remove the LFS user from the nutyx base and restart from the begining

userdel lfs
rm -r /home/lfs
rm -r /mnt/lfs

It's important to have a NuTyX devel packages installed

cards install cards.devel git

Time to build the toolchain

Create the LFS configuration variable

export LFS=/mnt/lfs

Create the folders

mkdir -pv $LFS/{sources,tools}
ln -svf $LFS/tools /
ln -svf $LFS/sources /

Create the LFS user

groupadd lfs
useradd -s /bin/bash -g lfs -m -k /dev/null lfs
passwd lfs
chown -v lfs $LFS/{tools,sources}
chmod -v a+wt $LFS/sources
chown -v lfs $LFS

Adjust the working environment:

the /home/lfs/.bash

cat > /home/lfs/.bash_profile << "EOF"
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
EOF

and the /home/lfs/.bashrc file

echo "set +h
umask 022
LFS=$LFS
LC_ALL=POSIX
LFS_TARGET=$(uname -m)-nutyx-linux-gnu
PATH=/home/lfs/bin:/tools/bin:/bin:/usr/bin
export LFS LC_ALL LFS_TARGET PATH" > /home/lfs/.bashrc

Now go in the LFS user

su - lfs

You are now in the LFS user, time to clone this git project

git clone https://github.com/nutyx/nutyx development

We enter into the git folder

cd development
scripts/runmebeforepass1

Normally, all will be good with the message above

====> Successfull configured

Do the first pass

cd chroot
pass

When you see following message (about 30 minutes later or more ...):

=======> Building '/home/lfs/development/chroot/cards/Pkgfile' succeeded.
/home/lfs/development/chroot

it means you successfully build the toolchain.

Toolchain construction finished