Skip to contentSkip to conversation

pckage/openpowerlink: fix sha256 hash

PATCH New Romain Naour 2 participants 5 messages Jun 8, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 pckage/openpowerlink: fix sha256 hash

While bumping to v2.4.0, the sha256 was commented by mistake and the hash was for v2.3.2 archive.

---
 package/openpowerlink/openpowerlink.hash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/openpowerlink/openpowerlink.hash +1 -1
index c879df1..d112947 100644
@@ -2,4 +2,4 @@
 md5	a833ca76a162db04a28c36ccecfd8a05	openPOWERLINK_V2.4.0.tar.gz
 sha1	d2260f7d1b7f264dd7a0323509bec233d36aed11	openPOWERLINK_V2.4.0.tar.gz
 # sha256 locally computed
-#sha256	e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855	openPOWERLINK_V2.4.0.tar.gz
+sha256	7296556e621adfeeb643c6541747433ecf86176923d736ea909e9ff6dcf1650b	openPOWERLINK_V2.4.0.tar.gz
Signature · 1 line
2.5.5
#1 lore raw

PATCH 2/3 package/openpowerlink: link demos applications with PCIe library interface

In commit f1bc98f396778c9fd8c884527787eb538212f398 the CFG_BUILD_KERNEL_STACK option wasn't set when the PCIe library interface is selected.

The build fail since the default choice "Link to Application" (which require libpcap) is used.

---
 package/openpowerlink/openpowerlink.mk | 3 +++
 1 file changed, 3 insertions(+)
package/openpowerlink/openpowerlink.mk +3 -0
index 53c636c..4d27d5a 100644
@@ -131,6 +131,9 @@ OPENPOWERLINK_CONF_OPTS += \
 else ifeq ($(BR2_PACKAGE_OPENPOWERLINK_STACK_KERNEL_STACK_LIB),y)
 OPENPOWERLINK_CONF_OPTS += \
 	-DCFG_BUILD_KERNEL_STACK="Linux Kernel Module"
+else ifeq ($(BR2_PACKAGE_OPENPOWERLINK_STACK_KERNEL_PCIE_STACK_LIB),y)
+OPENPOWERLINK_CONF_OPTS += \
+	-DCFG_BUILD_KERNEL_STACK="Kernel stack on PCIe card"
 endif
 
 ifeq ($(BR2_PACKAGE_OPENPOWERLINK_DEMO_MN_CONSOLE),y)
Signature · 1 line
2.5.5
#2 lore raw

PATCH 3/3 package/openpowerlink: fix uClibc build

In reply to Romain Naour

In the demo application code, va_list type is used in eventlogstring.h so stdarg.h must be included to define it.

This problem occurs with a uClibc-ng based toolchain.

Fixes:
http://autobuild.buildroot.net/results/a9e/a9e7615a19922706039bf97ccb94bcf5b99330b2

---
 ...apps-include-stdarg.h-in-eventlogstring.h.patch | 61 ++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 package/openpowerlink/0007-apps-include-stdarg.h-in-eventlogstring.h.patch
package/openpowerlink/0007-apps-include-stdarg.h-in-eventlogstring.h.patch new file +61 -0
new file mode 100644
index 0000000..70e44c2
@@ -0,0 +1,61 @@
+From 533f40e097b8d08e1dfeb03e2484a4369fad778f Mon Sep 17 00:00:00 2001
+From: Romain Naour <[email protected]>
+Date: Wed, 8 Jun 2016 13:13:36 +0200
+Subject: [PATCH] [FIX] apps: include stdarg.h in eventlogstring.h
+
+va_list type is used in eventlogstring.h so it must include stdarg.h to define
+it.
+
+Upstream status: Pending
+https://github.com/OpenAutomationTechnologies/openPOWERLINK_V2/pull/127
+
+Fixes:
+http://autobuild.buildroot.net/results/a9e/a9e7615a19922706039bf97ccb94bcf5b99330b2/build-end.log
+
+Signed-off-by: Romain Naour <[email protected]>
+---
+ apps/common/src/eventlog/eventlog.c       | 1 -
+ apps/common/src/eventlog/eventlogstring.c | 1 -
+ apps/common/src/eventlog/eventlogstring.h | 2 ++
+ 3 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/apps/common/src/eventlog/eventlog.c b/apps/common/src/eventlog/eventlog.c
+index f2193e2..eba1101 100644
+--- a/apps/common/src/eventlog/eventlog.c
++++ b/apps/common/src/eventlog/eventlog.c
+@@ -47,7 +47,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ //------------------------------------------------------------------------------
+ 
+ #include <stdio.h>
+-#include <stdarg.h>
+ #include <time.h>
+ 
+ #include <oplk/debugstr.h>
+diff --git a/apps/common/src/eventlog/eventlogstring.c b/apps/common/src/eventlog/eventlogstring.c
+index 9fb677b..a55a1a4 100644
+--- a/apps/common/src/eventlog/eventlogstring.c
++++ b/apps/common/src/eventlog/eventlogstring.c
+@@ -47,7 +47,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ #include "eventlogstring.h"
+ 
+ #include <stdio.h>
+-#include <stdarg.h>
+ #include <time.h>
+ 
+ #include <oplk/debugstr.h>
+diff --git a/apps/common/src/eventlog/eventlogstring.h b/apps/common/src/eventlog/eventlogstring.h
+index 2c291a6..3a5f2fa 100644
+--- a/apps/common/src/eventlog/eventlogstring.h
++++ b/apps/common/src/eventlog/eventlogstring.h
+@@ -41,6 +41,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ //------------------------------------------------------------------------------
+ // includes
+ //------------------------------------------------------------------------------
++#include <stdarg.h>
++
+ #include <oplk/oplk.h>
+ #include <oplk/nmt.h>
+ 
+-- 
+2.5.5
+
Signature · 1 line
2.5.5
#3 lore raw

PATCH 1/3 pckage/openpowerlink: fix sha256 hash

In reply to Romain Naour

Hello,

Quoted 7 lines · Romain Naour

While bumping to v2.4.0, the sha256 was commented by mistake and the hash was for v2.3.2 archive.

---
 package/openpowerlink/openpowerlink.hash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

All three patches applied, thanks! There was a typo in the title of this patch, which I fixed when applying.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#4 lore raw

PATCH 1/3 pckage/openpowerlink: fix sha256 hash

Hi Thomas,

Le 08/06/2016 ? 23:25, Thomas Petazzoni a ?crit :

Quoted 6 lines

Hello,

Quoted 3 lines · Romain Naour

While bumping to v2.4.0, the sha256 was commented by mistake and the hash was for v2.3.2 archive.

Quoted 7 lines
Quoted 4 lines
---
 package/openpowerlink/openpowerlink.hash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

All three patches applied, thanks! There was a typo in the title of this patch, which I fixed when applying.

Thanks, I'm working with upstream for the next bug fix release (2.4.1) to upstream most of the patches.

Patch 5 and 6 are already upstream.

Best regards,
Romain

Quoted 3 lines

Thomas