ChorusOS 5.0 Transition Guide

Reorganization of the Driver Source Trees

The driver source tree has been reorganized to reduce the existing driver components (DRV and DRV_F) to one generic DRV component. To make this possible, the drv_f source trees have been moved to the drv source tree.

This change is indicated in Figure 11-1 and Figure 11-2.

Figure 11-1 Old BSP Source Tree

Graphic

Figure 11-2 New BSP Source Tree

Graphic

The src/family Imakefile is able to select the correct family-dependent tree at compile time, for example:

#define IHaveSubdirs

SUBDIRS_x86    = x86
SUBDIRS_ppc60x = powerpc
SUBDIRS_mpc860 = powerpc
SUBDIRS_mpc8260= powerpc
SUBDIRS_usparc = usparc

SUBDIRS = $(SUBDIRS_$(FAMILY))