Patchwork [meta-oe] fuse: add aarch64 support

login
register
mail settings
Submitter Riku Voipio
Date Jan. 21, 2013, 2:31 p.m.
Message ID <1358778699-30412-1-git-send-email-riku.voipio@linaro.org>
Download mbox | patch
Permalink /patch/43069/
State Accepted, archived
Commit 0c7b009c99adc37d828a9587934e38130aa732c6
Headers show

Comments

Riku Voipio - Jan. 21, 2013, 2:31 p.m.
u64/u32 is not defined in sys/types.h, include linux/types.h like
the kernel version of fuse.h does. Patch sent to upstream mailing list.

Upstream-Status: Submitted

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
---
 .../recipes-support/fuse/fuse-2.9.2/aarch64.patch  |   20 ++++++++++++++++++++
 meta-oe/recipes-support/fuse/fuse_2.9.2.bb         |    1 +
 2 files changed, 21 insertions(+)
 create mode 100644 meta-oe/recipes-support/fuse/fuse-2.9.2/aarch64.patch
Martin Jansa - Jan. 28, 2013, 10:44 a.m.
On Mon, Jan 21, 2013 at 04:31:38PM +0200, Riku Voipio wrote:
> u64/u32 is not defined in sys/types.h, include linux/types.h like
> the kernel version of fuse.h does. Patch sent to upstream mailing list.

Applied thanks

> 
> Upstream-Status: Submitted
> 
> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
> ---
>  .../recipes-support/fuse/fuse-2.9.2/aarch64.patch  |   20 ++++++++++++++++++++
>  meta-oe/recipes-support/fuse/fuse_2.9.2.bb         |    1 +
>  2 files changed, 21 insertions(+)
>  create mode 100644 meta-oe/recipes-support/fuse/fuse-2.9.2/aarch64.patch
> 
> diff --git a/meta-oe/recipes-support/fuse/fuse-2.9.2/aarch64.patch b/meta-oe/recipes-support/fuse/fuse-2.9.2/aarch64.patch
> new file mode 100644
> index 0000000..180f544
> --- /dev/null
> +++ b/meta-oe/recipes-support/fuse/fuse-2.9.2/aarch64.patch
> @@ -0,0 +1,20 @@
> +Upstream-Status: Submitted
> +
> +Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
> +
> +--- a/include/fuse_kernel.h
> ++++ b/include/fuse_kernel.h
> +@@ -88,12 +88,7 @@
> + #ifndef _LINUX_FUSE_H
> + #define _LINUX_FUSE_H
> + 
> +-#include <sys/types.h>
> +-#define __u64 uint64_t
> +-#define __s64 int64_t
> +-#define __u32 uint32_t
> +-#define __s32 int32_t
> +-#define __u16 uint16_t
> ++#include <linux/types.h>
> + 
> + /*
> +  * Version negotiation:
> diff --git a/meta-oe/recipes-support/fuse/fuse_2.9.2.bb b/meta-oe/recipes-support/fuse/fuse_2.9.2.bb
> index 23b9447..b558c4d 100644
> --- a/meta-oe/recipes-support/fuse/fuse_2.9.2.bb
> +++ b/meta-oe/recipes-support/fuse/fuse_2.9.2.bb
> @@ -9,6 +9,7 @@ PR = "r1"
>  
>  SRC_URI = "${SOURCEFORGE_MIRROR}/fuse/fuse-${PV}.tar.gz \
>             file://gold-unversioned-symbol.patch \
> +           file://aarch64.patch \
>            "
>  SRC_URI[md5sum] = "7d80d0dc9cc2b9199a0c53787c151205"
>  SRC_URI[sha256sum] = "81a728fb3f87da33063068735e2fb7e2cd89df207d32687d3d3278385279cefc"
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Patch

diff --git a/meta-oe/recipes-support/fuse/fuse-2.9.2/aarch64.patch b/meta-oe/recipes-support/fuse/fuse-2.9.2/aarch64.patch
new file mode 100644
index 0000000..180f544
--- /dev/null
+++ b/meta-oe/recipes-support/fuse/fuse-2.9.2/aarch64.patch
@@ -0,0 +1,20 @@ 
+Upstream-Status: Submitted
+
+Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
+
+--- a/include/fuse_kernel.h
++++ b/include/fuse_kernel.h
+@@ -88,12 +88,7 @@
+ #ifndef _LINUX_FUSE_H
+ #define _LINUX_FUSE_H
+ 
+-#include <sys/types.h>
+-#define __u64 uint64_t
+-#define __s64 int64_t
+-#define __u32 uint32_t
+-#define __s32 int32_t
+-#define __u16 uint16_t
++#include <linux/types.h>
+ 
+ /*
+  * Version negotiation:
diff --git a/meta-oe/recipes-support/fuse/fuse_2.9.2.bb b/meta-oe/recipes-support/fuse/fuse_2.9.2.bb
index 23b9447..b558c4d 100644
--- a/meta-oe/recipes-support/fuse/fuse_2.9.2.bb
+++ b/meta-oe/recipes-support/fuse/fuse_2.9.2.bb
@@ -9,6 +9,7 @@  PR = "r1"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/fuse/fuse-${PV}.tar.gz \
            file://gold-unversioned-symbol.patch \
+           file://aarch64.patch \
           "
 SRC_URI[md5sum] = "7d80d0dc9cc2b9199a0c53787c151205"
 SRC_URI[sha256sum] = "81a728fb3f87da33063068735e2fb7e2cd89df207d32687d3d3278385279cefc"