[PATCH] spufs: fix hexdump format
authorArnd Bergmann <arnd@arndb.de>
Fri, 9 Dec 2005 18:04:17 +0000 (19:04 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 03:53:18 +0000 (14:53 +1100)
Output from hexdump with "%08x" depends on HOST platform's endian.
When building linux by cross toolchain, that difference makes errors.

Signed-off-by: Masato Noguchi <Masato.Noguchi@jp.sony.com>
Signed-off-by: Geoff Levand <geoff.levand@am.sony.com>
Signed-off-by: Arnd Bergmann <arndb@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/Makefile

index ac86b25..9bfaba8 100644 (file)
@@ -46,7 +46,7 @@ cmd_hexdump   = ( \
                echo " * Do not edit!" ; \
                echo " */" ; \
                echo "static unsigned int $*_code[] __page_aligned = {" ; \
-               hexdump -v -e '4/4 "0x%08x, " "\n"' $< ; \
+               hexdump -v -e '"0x" 4/1 "%02x" "," "\n"' $< ; \
                echo "};" ; \
                ) > $@
 quiet_cmd_hexdump = HEXDUMP $@