Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I compile Minix source code?

Tags:

makefile

minix

I intend to make modifications to the Minix kernel. But before I start, I want to compile it, so that I know any further compilation issues are caused by things that I did.

I have obtained the Minix 3 source code from github, where it is mirrored:

git clone git://github.com/minix3/minix

Now, I wish to compile it before making any modifications to the code. When I do make in src, I get the message

Makefile:109: *** missing separator.  Stop.

I tried compiling just the kernel by doing make in src/minix/kernel. In this case, I get the message

Makefile:2: *** missing separator.  Stop.

How do I circumvent this problem? How do I compile the Minix source?

like image 697
usernumber Avatar asked Jan 29 '15 04:01

usernumber


2 Answers

Minix building procedure is different. Please read through Crosscompiling MINIX with build.sh and MinixOnARM before trying anything. The Makefile under minix/kernel is not designed in normal as to compile with a simple make command. check if you are able to compile with build.sh tool at the minix/ folder

like image 77
Sagar Sakre Avatar answered Sep 20 '22 16:09

Sagar Sakre


This is how I do it: After logging in as root I navigate to /usr/src/tools and type in "make new fresh" (no quotations). It then compiles.

If you've made changes and you want Minix to boot to that new image, then do the following: After it finishing compiling it will say "Done." Then type in "shutdown -h now". Then at the next prompt type in "exit". It will then start to reboot. Hit "3" and then Minix will boot to that custom boot image you just made when you did the "make new fresh."

like image 23
Mz_Mala Avatar answered Sep 20 '22 16:09

Mz_Mala