All of lore.kernel.org
 help / color / mirror / Atom feed
From: Romain Naour <romain.naour@openwide.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCHv3 3/4] package/openpowerlink-pcap-daemon: new package
Date: Fri,  7 Aug 2015 15:29:02 +0200	[thread overview]
Message-ID: <1438954143-23533-4-git-send-email-romain.naour@openwide.fr> (raw)
In-Reply-To: <1438954143-23533-1-git-send-email-romain.naour@openwide.fr>

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
v3: rename to openpowerlink-pcap-daemon
    Provide a hash file via a symlink to
    openpowerlink.hash
    Don't use $(OPENPOWERLINK_*) since they will not
    be set in openpowerlink-pcap-daemon
    move openpowerlink-pcap-daemon to package
    directory.
---
 package/Config.in                                  |  1 +
 package/openpowerlink-pcap-daemon/Config.in        | 12 +++++++
 .../openpowerlink-pcap-daemon.hash                 |  1 +
 .../openpowerlink-pcap-daemon.mk                   | 38 ++++++++++++++++++++++
 package/openpowerlink/Config.in                    |  1 +
 5 files changed, 53 insertions(+)
 create mode 100644 package/openpowerlink-pcap-daemon/Config.in
 create mode 120000 package/openpowerlink-pcap-daemon/openpowerlink-pcap-daemon.hash
 create mode 100644 package/openpowerlink-pcap-daemon/openpowerlink-pcap-daemon.mk

diff --git a/package/Config.in b/package/Config.in
index 47f7da1..830b9a2 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -395,6 +395,7 @@ endif
 	source "package/openocd/Config.in"
 	source "package/openpowerlink/Config.in"
 	source "package/openpowerlink-kernel-drivers/Config.in"
+	source "package/openpowerlink-pcap-daemon/Config.in"
 	source "package/owl-linux/Config.in"
 	source "package/parted/Config.in"
 	source "package/pciutils/Config.in"
diff --git a/package/openpowerlink-pcap-daemon/Config.in b/package/openpowerlink-pcap-daemon/Config.in
new file mode 100644
index 0000000..4236a57
--- /dev/null
+++ b/package/openpowerlink-pcap-daemon/Config.in
@@ -0,0 +1,12 @@
+
+config BR2_PACKAGE_OPENPOWERLINK_PCAP_DAEMON
+	bool "openpowerlink userspace (PCAP) stack"
+	depends on BR2_PACKAGE_OPENPOWERLINK_STACK_USERSPACE_DAEMON_LIB
+	select BR2_PACKAGE_LIBPCAP
+	help
+	  The Linux userspace implementation of the openPOWERLINK stack
+	  provides all functions for a software based POWERLINK solution
+	  running as Linux userspace application. The stack uses the
+	  libpcap library for accessing the network interface and is
+	  therefore totally independant of the used network card and
+	  driver.
diff --git a/package/openpowerlink-pcap-daemon/openpowerlink-pcap-daemon.hash b/package/openpowerlink-pcap-daemon/openpowerlink-pcap-daemon.hash
new file mode 120000
index 0000000..cbbc194
--- /dev/null
+++ b/package/openpowerlink-pcap-daemon/openpowerlink-pcap-daemon.hash
@@ -0,0 +1 @@
+../openpowerlink/openpowerlink.hash
\ No newline at end of file
diff --git a/package/openpowerlink-pcap-daemon/openpowerlink-pcap-daemon.mk b/package/openpowerlink-pcap-daemon/openpowerlink-pcap-daemon.mk
new file mode 100644
index 0000000..8575128
--- /dev/null
+++ b/package/openpowerlink-pcap-daemon/openpowerlink-pcap-daemon.mk
@@ -0,0 +1,38 @@
+################################################################################
+#
+# openpowerlink-pcap-daemon
+#
+################################################################################
+
+OPENPOWERLINK_PCAP_DAEMON_VERSION = V2.2.0
+OPENPOWERLINK_PCAP_DAEMON_SITE = http://downloads.sourceforge.net/project/openpowerlink/openPOWERLINK/$(OPENPOWERLINK_PCAP_DAEMON_VERSION)
+OPENPOWERLINK_PCAP_DAEMON_SOURCE = openPOWERLINK-$(OPENPOWERLINK_PCAP_DAEMON_VERSION).tar.gz
+OPENPOWERLINK_PCAP_DAEMON_LICENSE = BSD-2c, GPLv2
+OPENPOWERLINK_PCAP_DAEMON_LICENSE_FILES = license.md
+
+OPENPOWERLINK_PCAP_DAEMON_DEPENDENCIES = libpcap openpowerlink
+
+define OPENPOWERLINK_PCAP_DAEMON_EXTRACT_CMDS
+	$(INFLATE$(suffix $($(PKG)_SOURCE))) $(DL_DIR)/$($(PKG)_SOURCE) | \
+		$(TAR) -C $($(PKG)_DIR) $(TAR_OPTIONS) - $($(PKG)_TAR_OPTIONS)
+endef
+
+define OPENPOWERLINK_PCAP_DAEMON_APPLY_PATCHES
+	$(APPLY_PATCHES) $(@D) package/openpowerlink \*.patch
+endef
+
+OPENPOWERLINK_PCAP_DAEMON_POST_PATCH_HOOKS += \
+	OPENPOWERLINK_PCAP_DAEMON_APPLY_PATCHES
+
+OPENPOWERLINK_PCAP_DAEMON_SUBDIR = drivers/linux/drv_daemon_pcap
+
+# CFG_DEBUG_LVL is taken into account only in Debug
+ifeq ($(BR2_ENABLE_DEBUG),y)
+OPENPOWERLINK_PCAP_DAEMON_CONF_OPTS = \
+	-DCFG_DEBUG_LVL="$(call qstrip,$(BR2_PACKAGE_OPENPOWERLINK_DEBUG_LEVEL))"
+endif
+
+OPENPOWERLINK_PCAP_DAEMON_CONF_OPTS = \
+	-DCFG_OPLK_MN=$(OPENPOWERLINK_MN_ONOFF)
+
+$(eval $(cmake-package))
diff --git a/package/openpowerlink/Config.in b/package/openpowerlink/Config.in
index 93e66d2..7807fc0 100644
--- a/package/openpowerlink/Config.in
+++ b/package/openpowerlink/Config.in
@@ -49,6 +49,7 @@ config BR2_PACKAGE_OPENPOWERLINK_STACK_MONOLITHIC_USER_STACK_LIB
 config BR2_PACKAGE_OPENPOWERLINK_STACK_USERSPACE_DAEMON_LIB
 	bool "build EPL stack as linux userspace pcap daemon."
 	select BR2_PACKAGE_LIBPCAP
+	select BR2_PACKAGE_OPENPOWERLINK_PCAP_DAEMON
 	help
 	  Compile openPOWERLINK application library which contains the
 	  interface to a Linux user space driver, and the Linux user space
-- 
2.4.3

  parent reply	other threads:[~2015-08-07 13:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-07 13:28 [Buildroot] [PATCHv3 0/4] openpowerlink bump to v2.2 Romain Naour
2015-08-07 13:29 ` [Buildroot] [PATCHv3 1/4] package/openpowerlink: bump to v2.2.0 Romain Naour
2015-08-07 13:29 ` [Buildroot] [PATCHv3 2/4] package/openpowerlink-kernel-drivers: new package Romain Naour
2015-08-07 13:29 ` Romain Naour [this message]
2015-08-07 13:29 ` [Buildroot] [PATCHv3 4/4] package/openpowerlink-apps-demo-mn-console: " Romain Naour
2015-08-10 13:14 ` [Buildroot] [PATCHv3 0/4] openpowerlink bump to v2.2 Romain Naour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1438954143-23533-4-git-send-email-romain.naour@openwide.fr \
    --to=romain.naour@openwide.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.