wiki:Developer/Projects/Obsolete/RPM_Packages

Version 4 (modified by ChrisJohns, on Dec 7, 2005 at 1:41:49 PM) (diff)

Add the RPM Base dir.

Building Tool RPM Packages

Chris: This is the start of documenting building the tool RPM packages.

RTEMS provides binary tool packages in the RPM format. You need to build the packages from source so will need the RTEMS source tree, plus the source for GCC, binutils, newlib and GDB. The standard packages may require patches?.

Build Machine

The current tool sets are build on Linux PC based machines. Joel uses a RedHat? 7.3 machine to give the resulting executables a wide range of machines to run on. Ralf and Chris use Fedora Core 4 machines. The page is written while building on a Fedora Core 4 machine.

The host machine needs to be a software development machine. You need to make sure you have a working GNU compile suite. If you intend to build all possible packages you will need a large amount of disk space. You need to install perl and help2man. On Fedora Core 4 you can find a help2man RPM package in the Extras RPM repository standard packages may require patches.

Source Code

To build the latest tool set you will need a current RTEMS snapshot. A checkout standard packages may require patches maybe suitable. You will also need to download these source code packages:

Place these files in a SOURCES directory under the RPM build location you select.

RPM Base Directory

You need to selection a location on the host build machine where the RPMs are built and the resulting images left. An example is:

/opt/rtems/RPMS

This means the source code should be placed in:

/opt/rtems/RPMS/SOURCES

You also need to create few working directories. These are:

$ cd /opt/rtems/RPMS $ mkdir SRPMS $ mkdir -p RPMS/noarch