Skip to contentSkip to conversation

avr32 compilation fixed

U-Boot New Xulio Coira 2 participants 3 messages May 26, 2010

lore
Share & tools
lore
#0 lore raw

Compilation was broken in atstk100x boards (at least) due to missing file unaligned.h

I hope following patch helps.

Regards,

Xulio Coira.

#1 lore raw

PATCH 1/1 avr32: use generic unaligned.h

---
 arch/avr32/include/asm/unaligned.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
 create mode 100644 arch/avr32/include/asm/unaligned.h
arch/avr32/include/asm/unaligned.h new file +6 -0
new file mode 100644
index 0000000..34b9ccc
@@ -0,0 +1,6 @@
+#ifndef _ASM_AVR32_UNALIGNED_H
+#define _ASM_AVR32_UNALIGNED_H
+
+#include <asm-generic/unaligned.h>
+
+#endif
Signature · 1 line
1.7.0.4
#2 lore raw

PATCH 1/1 avr32: use generic unaligned.h

Quoted 12 lines · On Wednesday 26 May 2010 07:52:37 Xulio Coira wrote:
---
 arch/avr32/include/asm/unaligned.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
 create mode 100644 arch/avr32/include/asm/unaligned.h
(quoted diff) +0 -0

b/arch/avr32/include/asm/unaligned.h new file mode 100644 index 0000000..34b9ccc

arch/avr32/include/asm/unaligned.h line 6

Quoted 6 lines
arch/avr32/include/asm/unaligned.h new file +6 -0
@@ -0,0 +1,6 @@
+#ifndef _ASM_AVR32_UNALIGNED_H
+#define _ASM_AVR32_UNALIGNED_H
+
+#include <asm-generic/unaligned.h>
+
+#endif

typically #ifdef protection isnt needed when the header is merely a stub that forwards to the asm-generic one. not that it hurts the vast majority of the time.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100526/926bfa9b/attachment.pgp