@@ -35,6 +35,7 @@ choice
endchoice
+source "package/openpowerlink2/openpowerlink2-apps/Config.in"
source "package/openpowerlink2/openpowerlink2-drivers/Config.in"
source "package/openpowerlink2/openpowerlink2-stack/Config.in"
new file mode 100644
@@ -0,0 +1,2 @@
+
+source "package/openpowerlink2/openpowerlink2-apps/openpowerlink2-apps-demo-mn-console/Config.in"
new file mode 100644
@@ -0,0 +1,5 @@
+
+config BR2_PACKAGE_OPENPOWERLINK2_APPS_DEMO_MN_CONSOLE
+ bool "demo_mn_console"
+ help
+ Managing Node console demo application
new file mode 100644
@@ -0,0 +1,42 @@
+################################################################################
+#
+# openpowerlink2-apps-demo-mn-console
+#
+################################################################################
+
+OPENPOWERLINK2_APPS_DEMO_MN_CONSOLE_VERSION = $(OPENPOWERLINK2_VERSION)
+
+OPENPOWERLINK2_APPS_DEMO_MN_CONSOLE_LICENSE = $(OPENPOWERLINK2_LICENSE)
+OPENPOWERLINK2_APPS_DEMO_MN_CONSOLE_LICENSE_FILES = $(OPENPOWERLINK2_LICENSE_FILES)
+
+# We want to use the same archive for all sub-packages.
+OPENPOWERLINK2_APPS_DEMO_MN_CONSOLE_SOURCE =
+OPENPOWERLINK2_APPS_DEMO_MN_CONSOLE_DEPENDENCIES = openpowerlink2-stack
+
+define OPENPOWERLINK2_APPS_DEMO_MN_CONSOLE_SYMLINK_TO_SRC_HOOK
+ ln -s $(OPENPOWERLINK2_DIR) $(OPENPOWERLINK2_APPS_DEMO_MN_CONSOLE_DIR)/src
+endef
+
+OPENPOWERLINK2_APPS_DEMO_MN_CONSOLE_POST_EXTRACT_HOOKS += \
+ OPENPOWERLINK2_APPS_DEMO_MN_CONSOLE_SYMLINK_TO_SRC_HOOK
+
+OPENPOWERLINK2_APPS_DEMO_MN_CONSOLE_SUBDIR = src/apps/demo_mn_console/
+
+# See apps/common/cmake/configure-linux.cmake for available options list.
+
+# PCAP is used for directlink or userspace daemon
+ifeq ($(BR2_PACKAGE_OPENPOWERLINK2_STACK_MONOLITHIC_USER_STACK_LIB),y)
+OPENPOWERLINK2_APPS_DEMO_MN_CONSOLE_CONF_OPTS += \
+ -DCFG_BUILD_KERNEL_STACK="Link to Application"
+else ifeq ($(BR2_PACKAGE_OPENPOWERLINK2_STACK_USERSPACE_DAEMON_LIB),y)
+OPENPOWERLINK2_APPS_DEMO_MN_CONSOLE_CONF_OPTS += \
+ -DCFG_BUILD_KERNEL_STACK="Linux Userspace Daemon" \
+ -DCFG_DEMO_MN_CONSOLE_USE_SYNCTHREAD=ON
+else ifeq ($(BR2_PACKAGE_OPENPOWERLINK2_STACK_KERNEL_STACK_LIB),y)
+# kernel stack
+OPENPOWERLINK2_APPS_DEMO_MN_CONSOLE_CONF_OPTS += \
+ -DCFG_BUILD_KERNEL_STACK="Linux Kernel Module" \
+ -DCFG_DEMO_MN_CONSOLE_USE_SYNCTHREAD=ON
+endif
+
+$(eval $(cmake-package))
new file mode 100644
@@ -0,0 +1,2 @@
+
+include $(sort $(wildcard package/openpowerlink2/openpowerlink2-apps/*/*.mk))
@@ -14,5 +14,6 @@ OPENPOWERLINK2_LICENSE_FILES = license.md
$(eval $(generic-package))
+include package/openpowerlink2/openpowerlink2-apps/openpowerlink2-apps.mk
include package/openpowerlink2/openpowerlink2-drivers/openpowerlink2-drivers.mk
include package/openpowerlink2/openpowerlink2-stack/openpowerlink2-stack.mk
Signed-off-by: Romain Naour <romain.naour@openwide.fr> --- package/openpowerlink2/Config.in | 1 + .../openpowerlink2/openpowerlink2-apps/Config.in | 2 ++ .../openpowerlink2-apps-demo-mn-console/Config.in | 5 +++ .../openpowerlink2-apps-demo-mn-console.mk | 42 ++++++++++++++++++++++ .../openpowerlink2-apps/openpowerlink2-apps.mk | 2 ++ package/openpowerlink2/openpowerlink2.mk | 1 + 6 files changed, 53 insertions(+) create mode 100644 package/openpowerlink2/openpowerlink2-apps/Config.in create mode 100644 package/openpowerlink2/openpowerlink2-apps/openpowerlink2-apps-demo-mn-console/Config.in create mode 100644 package/openpowerlink2/openpowerlink2-apps/openpowerlink2-apps-demo-mn-console/openpowerlink2-apps-demo-mn-console.mk create mode 100644 package/openpowerlink2/openpowerlink2-apps/openpowerlink2-apps.mk