wiki:Building/RTEMS

Version 3 (modified by Rsg, on Dec 26, 2006 at 9:56:35 PM) (diff)

BuildingRTEMS

The primary source of information about building and configuring RTEMS is always the Getting Started manual for the RTEMS version you are using (see http://www.rtems.com/onlinedocs.html. This section contains answers to some frequently asked questions.

Required Tools

  • Which tools are required to build RTEMS?
  • Do I need autoconf and automake to build RTEMS?
  • Do I need a native gcc on my host?
  • Can I use a non-gcc cross-toolchain?
  • Where to get autoconf automake ld gcc etc.?
  • Building the Tool RPM packages?

Issues when building RTEMS

  • When running ./configure weird thing start to happen
  • When running bootstrap weird thing start to happen
  • configure xxx cannot create executables
  • Why can I not build RTEMS inside of the source tree?
  • Which environment variables to set?
  • Compiler /Assembler /Linker report errors
  • How to set up $PATH?
  • Can I build RTEMS Canadian Cross?
  • Building RTEMS is slow
  • Building my pre-4.5.x BSPs does not work anymore

Get rest from build45.t in FAQ and continue.

Issue relating to Debuging and Building

  • Does building with `make VARIANT=DEBUG' cause RTEMS_DEBUG to get defined?

No.

  • How do I cause RTEMS_DEBUG to get defined

In newer snapshots it's --enable-rtems-debug. In older versions you had to define it inside the target-opts section in your BSP's <BSP>.cfg.

  • What exactly does VARIANT=debug do?

Builds with less optimisation

  • What does RTEMS_DEBUG do?

Enables debug checks inside the RTEMS kernel, including memory heap walking.

Building Under Cygwin

BuildingCygwin? documents obtaining the latest pre-4.7 release (RTEMS-4.6.99.3 snapshot), installing an appropriate tool set, building RTEMS, and installing Insight/GDB. This procedure was tested using a Xilinx ml403 development board, which contains a Virtex-4 FX12 device with its embedded PowerPC.