hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
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
################################################################################
#
# tinycbor
#
################################################################################
 
TINYCBOR_VERSION = v0.4.2
TINYCBOR_SITE = $(call github,intel,tinycbor,$(TINYCBOR_VERSION))
TINYCBOR_LICENSE = MIT
TINYCBOR_LICENSE_FILES = LICENSE
 
TINYCBOR_DEPENDENCIES = host-pkgconf
TINYCBOR_INSTALL_STAGING = YES
 
ifeq ($(BR2_PACKAGE_CJSON),y)
TINYCBOR_DEPENDENCIES += cjson
endif
 
TINYCBOR_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) V=1
 
# disabled parallel build because of build failures while
# producing the .config file
define TINYCBOR_BUILD_CMDS
   $(TARGET_MAKE_ENV) $(MAKE1) $(TINYCBOR_MAKE_OPTS) -C $(@D)
endef
 
define TINYCBOR_INSTALL_STAGING_CMDS
   $(TARGET_MAKE_ENV) $(MAKE) $(TINYCBOR_MAKE_OPTS) -C $(@D) \
       DESTDIR=$(STAGING_DIR) prefix=/usr install
endef
 
define TINYCBOR_INSTALL_TARGET_CMDS
   $(TARGET_MAKE_ENV) $(MAKE) $(TINYCBOR_MAKE_OPTS) -C $(@D) \
       DESTDIR=$(TARGET_DIR) prefix=/usr install
endef
 
$(eval $(generic-package))