From 61129cc54f1447a1516f587464c5af7ec6be4168 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 18 Jan 2002 22:33:49 +0000 Subject: 2001-01-18 Joel Sherrill * 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. --- c/src/exec/score/ChangeLog | 7 +++++++ c/src/exec/score/include/rtems/system.h | 24 +++++++++++------------- cpukit/score/ChangeLog | 7 +++++++ cpukit/score/include/rtems/system.h | 24 +++++++++++------------- 4 files changed, 36 insertions(+), 26 deletions(-) diff --git a/c/src/exec/score/ChangeLog b/c/src/exec/score/ChangeLog index 4ac3cbfac2..472ae06395 100644 --- a/c/src/exec/score/ChangeLog +++ b/c/src/exec/score/ChangeLog @@ -1,3 +1,10 @@ +2001-01-18 Joel Sherrill + + * 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 * include/rtems/seterr.h: Add do {..} while (0) in defines. diff --git a/c/src/exec/score/include/rtems/system.h b/c/src/exec/score/include/rtems/system.h index d11e3ea8d7..3fdff9c92b 100644 --- a/c/src/exec/score/include/rtems/system.h +++ b/c/src/exec/score/include/rtems/system.h @@ -27,23 +27,21 @@ extern "C" { * first so the basic macro definitions are in place. */ +#include + /* - * FIXME: cpuopts.h should be included here. + * 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(_AM29K) \ - || defined(__hppa__) \ - || defined(__h8300__) \ - || defined(__i960__) \ - || defined(__mc68000__) \ - || defined(__sh__) \ - || defined(__sparc__) \ - || defined(__i386__) - /* these cpus are ready to apply cpuopts.h */ -#include -#else - /* fallback to targopts.h for mips and powerpc */ + +#if !defined(RTEMS_MULTILIB) +#if defined(__PPC__) || defined(__sparc__) || defined(__i386__) #include #endif +#endif /* * The following ensures that all data is declared in the space diff --git a/cpukit/score/ChangeLog b/cpukit/score/ChangeLog index 4ac3cbfac2..472ae06395 100644 --- a/cpukit/score/ChangeLog +++ b/cpukit/score/ChangeLog @@ -1,3 +1,10 @@ +2001-01-18 Joel Sherrill + + * 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 * include/rtems/seterr.h: Add do {..} while (0) in defines. diff --git a/cpukit/score/include/rtems/system.h b/cpukit/score/include/rtems/system.h index d11e3ea8d7..3fdff9c92b 100644 --- a/cpukit/score/include/rtems/system.h +++ b/cpukit/score/include/rtems/system.h @@ -27,23 +27,21 @@ extern "C" { * first so the basic macro definitions are in place. */ +#include + /* - * FIXME: cpuopts.h should be included here. + * 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(_AM29K) \ - || defined(__hppa__) \ - || defined(__h8300__) \ - || defined(__i960__) \ - || defined(__mc68000__) \ - || defined(__sh__) \ - || defined(__sparc__) \ - || defined(__i386__) - /* these cpus are ready to apply cpuopts.h */ -#include -#else - /* fallback to targopts.h for mips and powerpc */ + +#if !defined(RTEMS_MULTILIB) +#if defined(__PPC__) || defined(__sparc__) || defined(__i386__) #include #endif +#endif /* * The following ensures that all data is declared in the space -- cgit v1.2.3