targopts.h not included ?

Joel Sherrill joel.sherrill at OARcorp.com
Thu Sep 27 18:49:51 UTC 2001


Puro Markku wrote:
> 
> Hi All,
> 
> I'm using modified i386ex BSP(ev386ex.cfg, more or less for learning ;)
> for old Intel Evaluation Board (r1.0 and r2.1)
> and rtems-ss-20010816 snapshot (Hosts: Linux and WinNT/98) with:
> GCC      -  gcc-2.95.3
> BINUTILS -  binutils-2.10
> NEWLIB   -  newlib-1.9.0
> 
> On BSP configuration files there is definitions like...
> --8<--------------------------------------------------------
> *** ev386ex.cfg
> define make-target-options
>         @echo "/* #define NDEBUG 1       */ "           >>$@
>         @echo "/* #define RTEMS_DEBUG  1 */"            >>$@
>         @echo "#define BSP_DEBUG  1  "          >>$@
>         @echo "/* #define RTEMS_TEST_NO_PAUSE 1 */"     >>$@
>         @echo "/* #define RTEMS_TEST_IO_STREAM 1 */"    >>$@
>         @echo "/* #define MALLOC_STATS 1 */"            >>$@
> endef
> --8<--------------------------------------------------------
> that I'd like to use, but those aren't included anywhere ?
> 
> Should those definitions go in targopts.h file?
> Only place where I find that targopts.h file is included
> was in system.h file but not for __i386__ ?
> --8<--------------------------------------------------------
> **** system.h
> #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>
> #else
>   /* fallback to targopts.h for mips and powerpc */
> #include <rtems/score/targopts.h>
> #endif
> --8<--------------------------------------------------------
> 
> Btw. targopts.h seems to include cpuopts.h file anyhow?

You have caught an instance in time where we are trying to transition
from the building RTEMS only for a BSP to being able to build it
multilib and provide it as an addon library separate from the BSPs.

You should modify a bsp specific .h file to get special defines
now.  

>   -Mp
> ----------------------------------------------------------------------------
> ---
> Markku Puro                  markku.puro at insta.fi          Sarankulmankatu
> 20
>                              tel.   +358 3  2659 769       FIN-33900 Tampere
> INSTRUMENTOINTI OY           mobile +358 40 7092 769
> http://www.insta.fi
> C3i Systems                  fax    +358 3  2659 501

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985



More information about the users mailing list