This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: dynamic HAL_PLATFORM_* values
- From: "Andy Dyer" <adyer at righthandtech dot com>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 26 Apr 2004 13:26:28 -0500
- Subject: RE: [ECOS] dynamic HAL_PLATFORM_* values
> -----Original Message-----
> From: Andrew Lunn [mailto:andrew@lunn.ch]
> Sent: Monday, April 12, 2004 6:20 AM
> To: Andy Dyer
> Cc: ecos-discuss@ecos.sourceware.org
> Subject: Re: [ECOS] dynamic HAL_PLATFORM_* values
>
>
> Things like this normally go into plf_io.h. Just add a prototype for
> something like char *cyg_hal_fgpa_version(void), and edit the
> define_proc in the hal cdl to something like
>
> puts $::cdl_header "#define HAL_PLATFORM_EXTRA
> cyg_hal_fpga_version()"
>
> Im note sure is redboot/src/main.c pulls in plf_io.h. If not you will
> also need
>
> puts $::cdl_header "#include <cyg/hal/plf_io.h>"
>
I finally got around to messing with this again. Putting the #include
of plf_io.h into the platform specific .h file seems to break a bunch
of things in building on MIPS.
It causes a bunch of files to be pulled in before the
#define CYGARC_HAL_COMMON_EXPORT_CPU_MACROS which breaks
hal/mips/arch/current/src/hal_misc.c (and others) and it
causes a bunch of C specific stuff to get pulled into
compiling hal/mips/arch/current/src/context.S (and I assume
other assembly files, too).
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss