
On Wed, 2004-09-01 at 15:26, Wolfgang Denk wrote:
If you use code from a board directory, no such endianess support is needed, as the board will normally not change endianness (at least I don't know of any of the supported boards which can be configured both for BE or LE).
</lurk-mode>
Hi
My port to the AMD Dbau1550 board (I think I may have time to clean it up and submit patches in a couple of weeks) was done for little endian mode. The other Dbau1xx0 boards were all supported in big endian mode (mips works both ways, and these boards when running Yamon can be switched between them with a dip switch scanned at power-on).
To get around this (for linker scripts and such) I patched mkconfig to take an optional "$6", for putting "ENDIANESS = " to config.mk.
Since the patch is trivial, I'm including it below.
regards / Leif
---
--- u-boot-1.1.1/mkconfig Thu Jun 26 00:26:29 2003 +++ patch/mkconfig Thu Jun 17 17:51:53 2004 @@ -19,7 +19,7 @@ while [ $# -gt 0 ] ; do done
[ $# -lt 4 ] && exit 1 -[ $# -gt 5 ] && exit 1 +[ $# -gt 6 ] && exit 1
echo "Configuring for $1 board..."
@@ -46,6 +46,8 @@ echo "CPU = $3" >> config.mk echo "BOARD = $4" >> config.mk
[ "$5" ] && echo "VENDOR = $5" >> config.mk + +[ "$6" ] && echo "ENDIANESS = $6" >> config.mk
# # Create board specific header file