Skip to contentSkip to conversation

package/openpowerlink: bump to v2.4.1

PATCH New Romain Naour 2 participants 2 messages Aug 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/openpowerlink: bump to v2.4.1

Remove upstream patches.

---
 ...-veth-avoid-kernel-header-issue-with-musl.patch | 90 ----------------------
 ...-Disable-Werror-date-time-for-kernel-3.14.patch | 35 ---------
 ...6-PCIe-Fix-name-of-sched_priority-element.patch | 52 -------------
 ...apps-include-stdarg.h-in-eventlogstring.h.patch | 61 ---------------
 package/openpowerlink/openpowerlink.hash           |  8 +-
 package/openpowerlink/openpowerlink.mk             |  2 +-
 6 files changed, 5 insertions(+), 243 deletions(-)
 delete mode 100644 package/openpowerlink/0004-veth-avoid-kernel-header-issue-with-musl.patch
 delete mode 100644 package/openpowerlink/0005-PCIe-Driver-Disable-Werror-date-time-for-kernel-3.14.patch
 delete mode 100644 package/openpowerlink/0006-PCIe-Fix-name-of-sched_priority-element.patch
 delete mode 100644 package/openpowerlink/0007-apps-include-stdarg.h-in-eventlogstring.h.patch
package/openpowerlink/0004-veth-avoid-kernel-header-issue-with-musl.patch deleted +0 -90
deleted file mode 100644
index a85b94e..0000000
@@ -1,90 +0,0 @@
-From 9cd93aeecbca62db278f2fe4a2c0a2f6fd04924b Mon Sep 17 00:00:00 2001
-From: Romain Naour <[email protected]>
-Date: Wed, 25 May 2016 13:26:49 +0200
-Subject: [PATCH] veth: avoid kernel header issue with musl
-
-The Virtual Ethernet driver doesn't build when the musl libc is used on the
-system. As stated in the musl wiki [1], the userspace and kernel headers are
-mixed leading to a "clash" with the definitions provided by musl.
-
-Remove netinet/if_ether.h userspace header and replace ETHER_ADDR_LEN by
-ETH_ALEN [2] and ETHERMTU by ETH_DATA_LEN [3] in veth-linuxuser.c.
-
-Fixes:
-http://autobuild.buildroot.org/results/2ca/2ca04bb046263e479e7597867b56469893d3c11d/build-end.log
-
-Upsteam status: pending
-https://github.com/OpenAutomationTechnologies/openPOWERLINK_V2/pull/120
-
-[1] http://wiki.musl-libc.org/wiki/FAQ#Q:_why_am_i_getting_.22error:_redefinition_of_struct_ethhdr.2Ftcphdr.2Fetc.22_.3F
-[2] https://git.musl-libc.org/cgit/musl/tree/include/net/ethernet.h?h=v1.1.14#n35
-[3] https://git.musl-libc.org/cgit/musl/tree/include/net/ethernet.h?h=v1.1.14#n48
-
-Signed-off-by: Romain Naour <[email protected]>
----
- stack/src/kernel/veth/veth-linuxuser.c | 13 ++++++-------
- 1 file changed, 6 insertions(+), 7 deletions(-)
-
-diff --git a/stack/src/kernel/veth/veth-linuxuser.c b/stack/src/kernel/veth/veth-linuxuser.c
-index d70566c..ddcf950 100644
---- a/stack/src/kernel/veth/veth-linuxuser.c
-+++ b/stack/src/kernel/veth/veth-linuxuser.c
-@@ -61,7 +61,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- #include <arpa/inet.h>
- #include <linux/if.h>
- #include <linux/if_tun.h>
--#include <netinet/if_ether.h>
- 
- //============================================================================//
- //            G L O B A L   D E F I N I T I O N S                             //
-@@ -248,7 +247,7 @@ static void getMacAdrs(UINT8* pMac_p)
- 
-     close(sock);
- 
--    OPLK_MEMCPY(pMac_p, &ifr.ifr_hwaddr.sa_data[0], ETHER_ADDR_LEN);
-+    OPLK_MEMCPY(pMac_p, &ifr.ifr_hwaddr.sa_data[0], ETH_ALEN);
- }
- 
- //------------------------------------------------------------------------------
-@@ -272,9 +271,9 @@ static tOplkError veth_receiveFrame(tFrameInfo* pFrameInfo_p,
- 
-     // replace the MAC address of the POWERLINK Ethernet interface with virtual
-     // Ethernet MAC address before forwarding it into the virtual Ethernet interface
--    if (OPLK_MEMCMP(pFrameInfo_p->frame.pBuffer->aDstMac, vethInstance_l.macAdrs, ETHER_ADDR_LEN) == 0)
-+    if (OPLK_MEMCMP(pFrameInfo_p->frame.pBuffer->aDstMac, vethInstance_l.macAdrs, ETH_ALEN) == 0)
-     {
--        OPLK_MEMCPY(pFrameInfo_p->frame.pBuffer->aDstMac, vethInstance_l.tapMacAdrs, ETHER_ADDR_LEN);
-+        OPLK_MEMCPY(pFrameInfo_p->frame.pBuffer->aDstMac, vethInstance_l.tapMacAdrs, ETH_ALEN);
-     }
- 
-     nwrite = write(vethInstance_l.fd, pFrameInfo_p->frame.pBuffer, pFrameInfo_p->frameSize);
-@@ -302,7 +301,7 @@ to be used as a thread which does a blocking read in a while loop.
- //------------------------------------------------------------------------------
- static void* vethRecvThread(void* pArg_p)
- {
--    UINT8               buffer[ETHERMTU];
-+    UINT8               buffer[ETH_DATA_LEN];
-     UINT                nread;
-     tFrameInfo          frameInfo;
-     tOplkError          ret = kErrorOk;
-@@ -331,7 +330,7 @@ static void* vethRecvThread(void* pArg_p)
-                 break;
- 
-             default:    // data from tun/tap ready for read
--                nread = read(pInstance->fd, buffer, ETHERMTU);
-+                nread = read(pInstance->fd, buffer, ETH_DATA_LEN);
-                 if (nread > 0)
-                 {
-                     DEBUG_LVL_VETH_TRACE("VETH:Read %d bytes from the tap interface\n", nread);
-@@ -340,7 +339,7 @@ static void* vethRecvThread(void* pArg_p)
-                     DEBUG_LVL_VETH_TRACE("DST MAC: %02X:%02X:%02x:%02X:%02X:%02x\n",
-                                           buffer[0], buffer[1], buffer[2], buffer[3], buffer[4], buffer[5]);
-                     // replace src MAC address with MAC address of virtual Ethernet interface
--                    OPLK_MEMCPY(&buffer[6], pInstance->macAdrs, ETHER_ADDR_LEN);
-+                    OPLK_MEMCPY(&buffer[6], pInstance->macAdrs, ETH_ALEN);
- 
-                     frameInfo.frame.pBuffer = (tPlkFrame *)buffer;
-                     frameInfo.frameSize = nread;
--- 
-2.5.5
-
package/openpowerlink/0005-PCIe-Driver-Disable-Werror-date-time-for-kernel-3.14.patch deleted +0 -35
deleted file mode 100644
index eb61f93..0000000
@@ -1,35 +0,0 @@
-From cfd85e15957305b461a3553afe1710590b9e01cd Mon Sep 17 00:00:00 2001
-From: Romain Naour <[email protected]>
-Date: Sat, 4 Jun 2016 01:14:24 +0200
-Subject: [PATCH] PCIe Driver: Disable Werror=date-time for kernel >= 3.14
-
-Avoid a build error due to __DATE__ and __TIME___ being used in
-oplk driver. Just disable the warning with -Wno-date-time.
-
-See da76c94059ed799689ad3283ddcb32d5ace175a0
-
-Upstream status: pending
-https://github.com/OpenAutomationTechnologies/openPOWERLINK_V2/pull/123
-
-Signed-off-by: Romain Naour <[email protected]>
----
- drivers/linux/drv_kernelmod_pcie/CMakeLists.txt | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/drivers/linux/drv_kernelmod_pcie/CMakeLists.txt b/drivers/linux/drv_kernelmod_pcie/CMakeLists.txt
-index d16e2fb..9b119e7 100644
---- a/drivers/linux/drv_kernelmod_pcie/CMakeLists.txt
-+++ b/drivers/linux/drv_kernelmod_pcie/CMakeLists.txt
-@@ -45,6 +45,9 @@ MESSAGE(STATUS "CMAKE_SYSTEM_PROCESSOR is ${CMAKE_SYSTEM_PROCESSOR}")
- STRING(TOLOWER "${CMAKE_SYSTEM_NAME}" SYSTEM_NAME_DIR)
- STRING(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" SYSTEM_PROCESSOR_DIR)
- 
-+# Since 3.14 kernel Werror=date-time is automatically used if the compiler supports it.
-+SET(MODULE_DEFS "${MODULE_DEFS} -Wno-date-time")
-+
- ################################################################################
- # Configuration options
- 
--- 
-2.5.5
-
package/openpowerlink/0006-PCIe-Fix-name-of-sched_priority-element.patch deleted +0 -52

52 lines not on this page · raw message

package/openpowerlink/0007-apps-include-stdarg.h-in-eventlogstring.h.patch deleted +0 -61

61 lines not on this page · raw message

package/openpowerlink/openpowerlink.hash +4 -4
index d112947..a6026cb 100644
@@ -1,5 +1,5 @@
-# From http://sourceforge.net/projects/openpowerlink/files/openPOWERLINK/V2.4.0/
-md5	a833ca76a162db04a28c36ccecfd8a05	openPOWERLINK_V2.4.0.tar.gz
-sha1	d2260f7d1b7f264dd7a0323509bec233d36aed11	openPOWERLINK_V2.4.0.tar.gz
+# From http://sourceforge.net/projects/openpowerlink/files/openPOWERLINK/V2.4.1/
+md5	13389a419f3727b9c5f07b1b412eff30	openPOWERLINK_V2.4.1.tar.gz
+sha1	eb3883f1771d665d1f948fc35e57bb97dd5c7ca5	openPOWERLINK_V2.4.1.tar.gz
 # sha256 locally computed
-sha256	7296556e621adfeeb643c6541747433ecf86176923d736ea909e9ff6dcf1650b	openPOWERLINK_V2.4.0.tar.gz
+sha256	f627fb8efcb5d9b1b9d8e7701ad611d44d05ad046b1b62ea0f71bd8244d5bf49	openPOWERLINK_V2.4.1.tar.gz
package/openpowerlink/openpowerlink.mk +1 -1
index 4d27d5a..5b1b175 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-OPENPOWERLINK_VERSION = V2.4.0
+OPENPOWERLINK_VERSION = V2.4.1
 OPENPOWERLINK_SITE = http://downloads.sourceforge.net/project/openpowerlink/openPOWERLINK/$(OPENPOWERLINK_VERSION)
 OPENPOWERLINK_SOURCE = openPOWERLINK_$(OPENPOWERLINK_VERSION).tar.gz
 OPENPOWERLINK_LICENSE = BSD-2c, GPLv2
Signature · 1 line
2.5.5
#1 lore raw

PATCH 1/1 package/openpowerlink: bump to v2.4.1

Hello,

Quoted 15 lines · Romain Naour

Remove upstream patches.

---
 ...-veth-avoid-kernel-header-issue-with-musl.patch | 90 ----------------------
 ...-Disable-Werror-date-time-for-kernel-3.14.patch | 35 ---------
 ...6-PCIe-Fix-name-of-sched_priority-element.patch | 52 -------------
 ...apps-include-stdarg.h-in-eventlogstring.h.patch | 61 ---------------
 package/openpowerlink/openpowerlink.hash           |  8 +-
 package/openpowerlink/openpowerlink.mk             |  2 +-
 6 files changed, 5 insertions(+), 243 deletions(-)
 delete mode 100644 package/openpowerlink/0004-veth-avoid-kernel-header-issue-with-musl.patch
 delete mode 100644 package/openpowerlink/0005-PCIe-Driver-Disable-Werror-date-time-for-kernel-3.14.patch
 delete mode 100644 package/openpowerlink/0006-PCIe-Fix-name-of-sched_priority-element.patch
 delete mode 100644 package/openpowerlink/0007-apps-include-stdarg.h-in-eventlogstring.h.patch

Applied to master, thanks.

Thomas

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