Forked from a9db0e of Stichting-MINIX-Research-Foundation/minix.
Added run.sh and modified x86_hdimage.sh to make cross-build easier and faster.
On Debian, run
apt-get install build-essential curl git zlibc zlib1g zlib1g-dev m4 qemuAlso, make a alias for make:
sudo ln -s /usr/bin/make /usr/bin/gmakeTo get all needed dependencies.
- CD into repo root:
cd minix - Run
sudo ./releasetools/x86_hdimage.sh FULL - Run
run.shto boot Minix in QEMU. - Inside Minix, run
netconfto config network if needed.
After first building, you can run x86_hdimage.sh without FULL argument:
sudo ./releasetools/x86_hdimage.shThis will enable "Expert" mode in NetBSD's build.sh.
And it will set MKUPDATE, NOCLEANDIR to yes to avoid repeated compile. Also -T option is set to use the toolchians that are previously built.
In x86_hdimage.sh, the variable $JOBS is set to 1, indicating the maximum number
of parallel task is 1, this is for the first time you run this script. You can change this value to further speed-up building process. Normally, it shoule be the number of your
logical processors.
In <REPO_ROOT>/../obj.i386/destdir.i386/home, all files (not folders) will be copied to target's system's /root
Since the toolchian contains gcc-4, which are compiled based on outdated C98. Using newer version of gcc to build gcc-4 would have
several issues. Related fixs are in commit f66913.