2013-10-04 22:18:22 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# openpowerlink
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2013-10-31 18:20:26 +01:00
|
|
|
OPENPOWERLINK_VERSION = V1.08.4
|
2014-05-09 01:05:12 +02:00
|
|
|
OPENPOWERLINK_SITE = http://git.code.sf.net/p/openpowerlink/code
|
|
|
|
OPENPOWERLINK_SITE_METHOD = git
|
2013-10-04 22:18:22 +02:00
|
|
|
OPENPOWERLINK_LICENSE = BSD-2c, GPLv2
|
|
|
|
OPENPOWERLINK_LICENSE_FILES = license.txt
|
|
|
|
OPENPOWERLINK_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
ifeq ($(BR2_i386),y)
|
|
|
|
OPENPOWERLINK_ARCH = x86
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_x86_64),y)
|
|
|
|
OPENPOWERLINK_ARCH = x86_64
|
|
|
|
endif
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS = -DCMAKE_SYSTEM_PROCESSOR=$(OPENPOWERLINK_ARCH)
|
2013-10-04 22:18:22 +02:00
|
|
|
|
2014-01-24 22:34:21 +01:00
|
|
|
# There is no shared lib in openpowerlink,
|
|
|
|
# so force static lib to build libpowerlink.a
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS += -DBUILD_SHARED_LIBS=OFF
|
2014-01-24 22:34:21 +01:00
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS += -DCFG_DEBUG_LVL=$(call qstrip,$(BR2_PACKAGE_OPENPOWERLINK_DEBUG_LEVEL))
|
2013-10-04 22:18:22 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENPOWERLINK_LIBPCAP),y)
|
|
|
|
# use the user space stack (libpcap)
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS += -DCFG_KERNEL_STACK=OFF
|
2013-10-04 22:18:22 +02:00
|
|
|
OPENPOWERLINK_DEPENDENCIES = libpcap
|
|
|
|
define OPENPOWERLINK_REMOVE_LIB
|
|
|
|
rm $(TARGET_DIR)/usr/lib/libpowerlink.a
|
|
|
|
endef
|
|
|
|
OPENPOWERLINK_POST_INSTALL_TARGET_HOOKS += OPENPOWERLINK_REMOVE_LIB
|
|
|
|
else
|
|
|
|
# use the kernel stack
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS += -DCFG_KERNEL_STACK=ON \
|
2013-10-04 22:18:22 +02:00
|
|
|
-DCFG_KERNEL_DIR=$(LINUX_DIR) \
|
|
|
|
-DCMAKE_SYSTEM_VERSION=$(LINUX_VERSION)
|
|
|
|
OPENPOWERLINK_DEPENDENCIES = linux
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENPOWERLINK_82573),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS += -DCFG_POWERLINK_EDRV=82573
|
2013-10-04 22:18:22 +02:00
|
|
|
else ifeq ($(BR2_PACKAGE_OPENPOWERLINK_8255x),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS += -DCFG_POWERLINK_EDRV=8255x
|
2014-05-09 01:05:13 +02:00
|
|
|
else ifeq ($(BR2_PACKAGE_OPENPOWERLINK_I210),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS += -DCFG_POWERLINK_EDRV=I210
|
2014-05-09 01:05:13 +02:00
|
|
|
else ifeq ($(BR2_PACKAGE_OPENPOWERLINK_RTL8139),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS += -DCFG_POWERLINK_EDRV=8139
|
2013-10-04 22:18:22 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENPOWERLINK_MN),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS += -DCFG_POWERLINK_MN=ON
|
2013-10-04 22:18:22 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS += -DCFG_POWERLINK_MN=OFF
|
2013-10-04 22:18:22 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENPOWERLINK_DEMO_MN_CONSOLE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS += -DCFG_X86_DEMO_MN_CONSOLE=ON
|
2013-10-04 22:18:22 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS += -DCFG_X86_DEMO_MN_CONSOLE=OFF
|
2013-10-04 22:18:22 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENPOWERLINK_DEMO_MN_QT),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS += -DCFG_X86_DEMO_MN_QT=ON
|
2013-10-04 22:18:22 +02:00
|
|
|
OPENPOWERLINK_DEPENDENCIES += qt
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS += -DCFG_X86_DEMO_MN_QT=OFF
|
2013-10-04 22:18:22 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENPOWERLINK_DEMO_CN_CONSOLE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS += -DCFG_X86_DEMO_CN_CONSOLE=ON
|
2013-10-04 22:18:22 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS += -DCFG_X86_DEMO_CN_CONSOLE=OFF
|
2013-10-04 22:18:22 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENPOWERLINK_DEMO_LINUX_KERNEL),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS += -DCFG_X86_DEMO_LINUX_KERNEL=ON
|
2013-10-04 22:18:22 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
OPENPOWERLINK_CONF_OPTS += -DCFG_X86_DEMO_LINUX_KERNEL=OFF
|
2013-10-04 22:18:22 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|