This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
mips32 cld change
- From: "Tim Michals" <t dot michals at attbi dot com>
- To: <ecos-patches at sources dot redhat dot com>
- Date: Thu, 2 Jan 2003 22:48:26 -0600
- Subject: mips32 cld change
Added a choice to select little or big endian, this helps building a variant
hal based on mips32 hal.
The default is big-endian, but it might be better to have it default to
little for malta board build.
77a78,90
>
> cdl_option CYGHWR_HAL_MIPS_MIPS32_ENDIAN {
> display "Mips32 processor core used"
> flavor data
> default_value {"big-endian" }
> legal_values {"big-endian" "little-endian" }
> description "
> The MIPS 32 cores come in (at least) 3 flavors. The main
> differences being in the MMU"
> }
>
>
>
81c94,100
< calculated 1
---
> calculated { CYGHWR_HAL_MIPS_MIPS32_ENDIAN == "little-endian"}
> }
>
>
> cdl_option CYGPKG_HAL_MIPS_MSBFIRST {
> display "CPU Variant big-endian"
> calculated { CYGHWR_HAL_MIPS_MIPS32_ENDIAN == "big-endian"}
135c154,155
< default_value {
"-mips32 -EL -msoft-float -Wall -Wpointer-arith -Wstrict-prototypes -Winline
-Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fn
o-rtti -fno-exceptions -fvtable-gc -finit-priority -G0" }
---
> default_value { CYGHWR_HAL_MIPS_MIPS32_ENDIAN ==
"little-endian" ?
"-mips32 -EL -msoft-float -Wall -Wpointer-arith -Wstrict-prototypes -Winline
-Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fn
o-rtti -fno-exceptions -fvtable-gc -finit-priority -G0" : \
>
"-mips32 -msoft-float -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wu
ndef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rt
ti -fno-exceptions -fvtable-gc -finit-priority -G0" }
147c167,168
< default_value {
"-EL -msoft-float -g -nostdlib -Wl,--gc-sections -Wl,-static" }
---
> default_value {CYGHWR_HAL_MIPS_MIPS32_ENDIAN ==
"little-endian" ?
"-EL -msoft-float -g -nostdlib -Wl,--gc-sections -Wl,-static" :\
> "-msoft-float -g -nostdlib -Wl,--gc-sections -Wl,-static"}