2013-06-21 00:17:14 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# igh-ethercat
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2012-06-27 04:46:31 +02:00
|
|
|
IGH_ETHERCAT_VERSION = 1.5.1
|
2014-07-31 10:46:58 +02:00
|
|
|
IGH_ETHERCAT_SITE = http://etherlab.org/download/ethercat
|
2012-06-27 04:46:31 +02:00
|
|
|
IGH_ETHERCAT_SOURCE = ethercat-$(IGH_ETHERCAT_VERSION).tar.bz2
|
2012-11-30 22:46:30 +01:00
|
|
|
IGH_ETHERCAT_LICENSE = GPLv2 (IgH EtherCAT master), LGPLv2.1 (libraries)
|
|
|
|
IGH_ETHERCAT_LICENSE_FILES = COPYING COPYING.LESSER
|
2011-12-24 11:28:37 +01:00
|
|
|
|
|
|
|
IGH_ETHERCAT_DEPENDENCIES = linux
|
|
|
|
IGH_ETHERCAT_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
IGH_ETHERCAT_CONF_OPT = \
|
|
|
|
--with-linux-dir=$(LINUX_DIR)
|
|
|
|
|
|
|
|
IGH_ETHERCAT_CONF_OPT += $(if $(BR2_PACKAGE_IGH_ETHERCAT_8139TOO),--enable-8139too,--disable-8139too)
|
|
|
|
IGH_ETHERCAT_CONF_OPT += $(if $(BR2_PACKAGE_IGH_ETHERCAT_E100),--enable-e100,--disable-e100)
|
|
|
|
IGH_ETHERCAT_CONF_OPT += $(if $(BR2_PACKAGE_IGH_ETHERCAT_E1000),--enable-e1000,--disable-e1000)
|
2012-06-27 04:46:31 +02:00
|
|
|
IGH_ETHERCAT_CONF_OPT += $(if $(BR2_PACKAGE_IGH_ETHERCAT_E1000E),--enable-e1000e,--disable-e1000e)
|
2011-12-24 11:28:37 +01:00
|
|
|
IGH_ETHERCAT_CONF_OPT += $(if $(BR2_PACKAGE_IGH_ETHERCAT_R8169),--enable-r8169,--disable-r8169)
|
|
|
|
|
|
|
|
define IGH_ETHERCAT_BUILD_MODULES
|
|
|
|
$(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) modules
|
|
|
|
endef
|
|
|
|
|
|
|
|
IGH_ETHERCAT_POST_BUILD_HOOKS += IGH_ETHERCAT_BUILD_MODULES
|
|
|
|
|
|
|
|
define IGH_ETHERCAT_INSTALL_MODULES
|
|
|
|
$(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) modules_install
|
|
|
|
endef
|
|
|
|
|
|
|
|
IGH_ETHERCAT_POST_INSTALL_TARGET_HOOKS += IGH_ETHERCAT_INSTALL_MODULES
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|