2001-01-18 Joel Sherrill <joel@OARcorp.com>

* include/rtems/system.h: Only include cpuopts.h when building a
	multilib configuration.  Some ports still need targopts.h but this
	small modification lets those ports work non-multilib while
	fixing being fixed for multilib.
This commit is contained in:
Joel Sherrill
2002-01-18 22:33:49 +00:00
parent 8560ed944d
commit 61129cc54f
4 changed files with 38 additions and 28 deletions

View File

@@ -1,3 +1,10 @@
2001-01-18 Joel Sherrill <joel@OARcorp.com>
* include/rtems/system.h: Only include cpuopts.h when building a
multilib configuration. Some ports still need targopts.h but this
small modification lets those ports work non-multilib while
fixing being fixed for multilib.
2002-01-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2002-01-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/rtems/seterr.h: Add do {..} while (0) in defines. * include/rtems/seterr.h: Add do {..} while (0) in defines.

View File

@@ -27,23 +27,21 @@ extern "C" {
* first so the basic macro definitions are in place. * first so the basic macro definitions are in place.
*/ */
/*
* FIXME: cpuopts.h should be included here.
*/
#if defined(_AM29K) \
|| defined(__hppa__) \
|| defined(__h8300__) \
|| defined(__i960__) \
|| defined(__mc68000__) \
|| defined(__sh__) \
|| defined(__sparc__) \
|| defined(__i386__)
/* these cpus are ready to apply cpuopts.h */
#include <rtems/score/cpuopts.h> #include <rtems/score/cpuopts.h>
#else
/* fallback to targopts.h for mips and powerpc */ /*
* FIXME: No port should have to include targopts.h
*
* Most cpus are ready to apply only cpuopts.h but these ports
* unfortunately still need targopts.h. This means these ports
* are not ready to be built multilib yet.
*/
#if !defined(RTEMS_MULTILIB)
#if defined(__PPC__) || defined(__sparc__) || defined(__i386__)
#include <rtems/score/targopts.h> #include <rtems/score/targopts.h>
#endif #endif
#endif
/* /*
* The following ensures that all data is declared in the space * The following ensures that all data is declared in the space

View File

@@ -1,3 +1,10 @@
2001-01-18 Joel Sherrill <joel@OARcorp.com>
* include/rtems/system.h: Only include cpuopts.h when building a
multilib configuration. Some ports still need targopts.h but this
small modification lets those ports work non-multilib while
fixing being fixed for multilib.
2002-01-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2002-01-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/rtems/seterr.h: Add do {..} while (0) in defines. * include/rtems/seterr.h: Add do {..} while (0) in defines.

View File

@@ -27,23 +27,21 @@ extern "C" {
* first so the basic macro definitions are in place. * first so the basic macro definitions are in place.
*/ */
/*
* FIXME: cpuopts.h should be included here.
*/
#if defined(_AM29K) \
|| defined(__hppa__) \
|| defined(__h8300__) \
|| defined(__i960__) \
|| defined(__mc68000__) \
|| defined(__sh__) \
|| defined(__sparc__) \
|| defined(__i386__)
/* these cpus are ready to apply cpuopts.h */
#include <rtems/score/cpuopts.h> #include <rtems/score/cpuopts.h>
#else
/* fallback to targopts.h for mips and powerpc */ /*
* FIXME: No port should have to include targopts.h
*
* Most cpus are ready to apply only cpuopts.h but these ports
* unfortunately still need targopts.h. This means these ports
* are not ready to be built multilib yet.
*/
#if !defined(RTEMS_MULTILIB)
#if defined(__PPC__) || defined(__sparc__) || defined(__i386__)
#include <rtems/score/targopts.h> #include <rtems/score/targopts.h>
#endif #endif
#endif
/* /*
* The following ensures that all data is declared in the space * The following ensures that all data is declared in the space