hc
2024-08-19 eb6b9ee90f50f13c5abb885ce483802d6262f2b5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
################################################################################
#
# ne10
#
################################################################################
 
NE10_VERSION = 1.2.1
NE10_SITE = $(call github,projectNe10,Ne10,v$(NE10_VERSION))
NE10_LICENSE = BSD-3-Clause or Apache-2.0
NE10_LICENSE_FILES = doc/LICENSE
NE10_INSTALL_STAGING = YES
 
NE10_CONF_OPTS = \
   -DGNULINUX_PLATFORM=ON \
   -DNE10_BUILD_EXAMPLES=OFF \
   -DNE10_BUILD_UNIT_TEST=OFF \
   -DNE10_LINUX_TARGET_ARCH=$(if $(BR2_aarch64),aarch64,armv7)
 
ifeq ($(BR2_STATIC_LIBS),)
NE10_CONF_OPTS += \
   -DNE10_BUILD_SHARED=ON
endif
 
# The package does not have any install target, so have to provide
# INSTALL_STAGING_CMDS and INSTALL_TARGET_CMDS.
 
ifeq ($(BR2_STATIC_LIBS),)
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))