Skip to content

Commit

Permalink
package: libaio: Add MicroBlaze support
Browse files Browse the repository at this point in the history
Signed-off-by: Dragos Bogdan <dragos.bogdan@analog.com>
  • Loading branch information
dbogdan authored and commodo committed Apr 9, 2019
1 parent b995bc4 commit 2fc84c2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions package/libaio/0004-microblaze-support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Add MicroBlaze support.

Signed-off-by: Dragos Bogdan <dragos.bogdan@analog.com>
---
diff --git a/src/libaio.h b/src/libaio.h
--- a/src/libaio.h
+++ b/src/libaio.h
@@ -52,7 +52,7 @@ typedef enum io_iocb_cmd {
/* little endian, 32 bits */
#if defined(__i386__) || (defined(__arm__) && !defined(__ARMEB__)) || \
defined(__sh__) || defined(__bfin__) || defined(__MIPSEL__) || \
- defined(__cris__)
+ defined(__cris__) || defined(__microblaze__)
#define PADDED(x, y) x; unsigned y
#define PADDEDptr(x, y) x; unsigned y
#define PADDEDul(x, y) unsigned long x; unsigned y
2 changes: 1 addition & 1 deletion package/libaio/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ config BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS
default y if BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 || \
BR2_m68k || BR2_mips || BR2_mipsel || BR2_powerpc || \
BR2_powerpc64 || BR2_powerpc64le || BR2_sparc || \
BR2_x86_64
BR2_x86_64 || BR2_microblaze

config BR2_PACKAGE_LIBAIO
bool "libaio"
Expand Down

0 comments on commit 2fc84c2

Please sign in to comment.