rtl-config is a tool that is used to determine the compiler and linker flags that should be used to compile and link programs that use RTLinux.
rtl-config accepts the following options (Note that without options, rtl-config has the same effect as typing "rtl-config --help")
prints out useful usage information
uses the specified file as the new configuration file to from which to parse all information used
returns the full list of RTLinux modules
returns the full path to the RTLinux modules
returns the full path to the Linux source tree
returns the full path to the RTLinux source tree
returns the machine architecture for which RTLinux was compiled
returns the versions of the rtl-config script, Linux, and RTLinux
returns the version of the RTLinux kernel
returns the version of the Linux kernel
returns the name of the compiler used to compile RTLinux
returns the root path to the RTLinux documentation directory.
returns the full list of include file paths used during the compilation process for non Real Time programs. It is presented in a form that is acceptable to the compiler (refer to both --cc and --rtinclude).
returns the full list of include file paths used during the compilation process of Real Time programs. It is presented in a form acceptable to the compiler (refer to both --cc and --include).
returns the full list of optimization flags, and general other C flags necessary to compile the user's RT modules in C
returns the full list of optimization flags, and general other flags necessary to compile the user's RT modules in C++
prints to stdout a full Makefile-compatible file that can be included into the user's Makefiles. This output is a replica of the old rtl.mk file that has been available since older RTLinux distributions.
The following example demonstrates a typical usage of rtl-config. It compiles the user's my_module.c with all the necessary flags, include file paths, libraries, and optimization flags:
gcc -c `rtl-config --cflags` my_module.c
The following example creates a Makefile compatible include file rtl.mk in the user's "Projects" directory:
rtl-config --mk > Projects/rtl.mk
Unless the --config=... option is specified at the command line, this script extracts its information from the file /usr/include/rtlinux/rtl.config
Edgar F. Hilton (email@example.com)
©2001 FSMLabs Inc.
All rights reserved.