[Buildroot] [PATCH v2] mender: fix ioctl build failure on powerpc64le / power8

Giulio Benetti giulio.benetti at micronovasrl.com
Wed Aug 29 11:54:05 UTC 2018


Build fails due to missing // +build ppc64le in ioctl_64_bit.go

Add patch to append ppc64le to // +build list.

Fixes
http://autobuild.buildroot.net/results/f22/f222b4389f9308363c386da25ec22a0919bc29fb//

Signed-off-by: Giulio Benetti <giulio.benetti at micronovasrl.com>
---
 .../0001-FIX-Enabling-compiling-ppc64le.patch | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 package/mender/0001-FIX-Enabling-compiling-ppc64le.patch

diff --git a/package/mender/0001-FIX-Enabling-compiling-ppc64le.patch b/package/mender/0001-FIX-Enabling-compiling-ppc64le.patch
new file mode 100644
index 0000000000..3197a0ec01
--- /dev/null
+++ b/package/mender/0001-FIX-Enabling-compiling-ppc64le.patch
@@ -0,0 +1,37 @@
+From 2b13f9a50793fdc15199925000107cb0cc4e7bad Mon Sep 17 00:00:00 2001
+From: Angelo Compagnucci <angelo at amarulasolutions.com>
+Date: Thu, 9 Aug 2018 09:28:06 +0200
+Subject: [PATCH] FIX: Enabling compiling ppc64le
+
+This patch enables Mender compilation on ppc64le
+
+Changelog: FIX: Enabling compiling ppc64le
+
+Signed-off-by: Angelo Compagnucci <angelo at amarulasolutions.com>
+Signed-off-by: Giulio Benetti <giulio.benetti at micronovasrl.com>
+---
+ ioctl_64_bit.go | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/ioctl_64_bit.go b/ioctl_64_bit.go
+index 6f61a6c..f1e2dd8 100644
+--- a/ioctl_64_bit.go
++++ b/ioctl_64_bit.go
+@@ -1,4 +1,4 @@
+-// Copyright 2017 Northern.tech AS
++// Copyright 2018 Northern.tech AS
+ //
+ //    Licensed under the Apache License, Version 2.0 (the "License");
+ //    you may not use this file except in compliance with the License.
+@@ -12,7 +12,7 @@
+ //    See the License for the specific language governing permissions and
+ //    limitations under the License.
+ 
+-// +build amd64 arm64
++// +build amd64 arm64 ppc64le
+ 
+ package main
+ 
+-- 
+2.17.1
+
-- 
2.17.1



More information about the buildroot mailing list