How to Use ncurses to design a terminal menu interface ??
1. Download ncurses.tar.gz to the/opt/directory and decompress
2. Go to the ncurses directory and run the configure command (compiled as an ARM platform)
./Configure-host = arm-linux-disable-big-core-prefix =/usr/local
(If compiled on the X86 Platform)
./Configure-host = i386-linux-prefix =/usr
3. Make
4. Make install
In this case, the tic command tool is created under the/usr/bin directory on the menu interface. The corresponding terminal information is displayed in the/usr/share/terminfo directory.
Linux Kernel customization and cropping
Complete the terminal interface settings in the previous section and then create the Linux kernel.
1. decompress the downloaded Linux kernel to the/usr/src directory.
2, switch to/usr/src/linux-2.6-source directory
3. Save and exit after making menuconfig configures the corresponding options
<*> Compile this function module to the kernel
<> Disable this function ....
<M> compile the function into a module, which can be dynamically inserted to the kernel module as needed.
4. make clean (used to delete generated modules and target files)
5. Make dep (provide the relationship information of variable dependency)
6. Make bzImage (compile the kernel to generate a compressed image)
At this point, the path of the compressed image file after compilation is saved as arch/arm/boot/bzImage.