98
•
Step-by-Step Guide to your own Linux Application
Linux Kernel Compilation
WAGO-I/O-SYSTEM
750
Linux Fieldbus Coupler
5.3 Linux Kernel Compilation
All the work on the Linux kernel and on the user space programs should be
done in the user mode (not in the super user mode). You should also run the
make command in the user mode. The super user mode is only required for the
one-time setup of the host PC.
The make program in the
~
/uclinux-dist
folder is used to compile the Linux
kernel, the file system or a user space application. The make function is
determined by call parameters and the Makefile file. The following order is
mandatory for the first compilation of the kernel.
> cd ~/uclinux-dist
> make menuconfig
Starts a graphical configuration tool to set the kernel options. (Exit the dialog
with EXIT and end the program without saving changed settings.)
Note
If the graphical interface to configure the distribution cannot be opened,
please install the NCURSES components from your PC Linux distribution on
your host PC
> make
Note
In some versions of S.U.S.E, make aborts during the first compilation. In this
case, please restart make. Make works correctly if kernel information is
shown after the compilation process.
Make calls the program to execute Makefile, make is the short form of make
all, all being the argument. The following attributes can be used:
•
all
Synonym for: linux uClibc user romfs image
•
linux
Kernel compilation
•
romfs
Creates the root file system in the
/romfs
directory