2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-04-13 10:09:45 +02:00
|
|
|
#
|
|
|
|
# ne10
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-04-13 10:09:45 +02:00
|
|
|
|
2014-04-23 12:16:46 +02:00
|
|
|
NE10_VERSION = v1.0.0
|
|
|
|
NE10_SITE = $(call github,projectNe10,Ne10,$(NE10_VERSION))
|
2014-01-02 14:01:48 +01:00
|
|
|
NE10_LICENSE = BSD-3c or Apache-2.0
|
2013-04-13 10:09:45 +02:00
|
|
|
NE10_LICENSE_FILES = doc/LICENSE
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
NE10_CONF_OPTS = -DGNULINUX_PLATFORM=ON
|
2014-04-23 12:16:46 +02:00
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),)
|
2014-09-27 21:32:44 +02:00
|
|
|
NE10_CONF_OPTS += \
|
2013-04-13 10:09:45 +02:00
|
|
|
-DNE10_BUILD_SHARED=ON
|
|
|
|
endif
|
|
|
|
|
|
|
|
# The package does not have any install target, so have to provide
|
|
|
|
# INSTALL_STAGING_CMDS and INSTALL_TARGET_CMDS.
|
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),)
|
2013-04-13 10:09:45 +02:00
|
|
|
define NE10_INSTALL_STAGING_SHARED_LIB
|
|
|
|
cp -dpf $(@D)/modules/libNE10*.so* $(STAGING_DIR)/usr/lib/
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
|
|
|
define NE10_INSTALL_STAGING_CMDS
|
|
|
|
cp -dpf $(@D)/inc/NE10*h $(STAGING_DIR)/usr/include/
|
|
|
|
cp -dpf $(@D)/modules/libNE10.a $(STAGING_DIR)/usr/lib/
|
|
|
|
$(NE10_INSTALL_STAGING_SHARED_LIB)
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define NE10_INSTALL_TARGET_CMDS
|
|
|
|
cp -dpf $(@D)/modules/libNE10*.so* $(TARGET_DIR)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|