1 ################################################################################
5 ################################################################################
7 TINYCBOR_VERSION
= v0.4
8 TINYCBOR_SITE
= $(call github
,01org
,tinycbor
,$(TINYCBOR_VERSION
))
10 TINYCBOR_LICENSE_FILES
= LICENSE
12 TINYCBOR_DEPENDENCIES
= host-pkgconf
13 TINYCBOR_INSTALL_STAGING
= YES
15 ifeq ($(BR2_PACKAGE_CJSON
),y
)
16 TINYCBOR_DEPENDENCIES
+= cjson
19 TINYCBOR_MAKE_OPTS
= $(TARGET_CONFIGURE_OPTS
) V
=1
21 # disabled parallel build because of build failures while
22 # producing the .config file
23 define TINYCBOR_BUILD_CMDS
24 $(TARGET_MAKE_ENV
) $(MAKE1
) $(TINYCBOR_MAKE_OPTS
) -C
$(@D
)
27 define TINYCBOR_INSTALL_STAGING_CMDS
28 $(TARGET_MAKE_ENV
) $(MAKE
) $(TINYCBOR_MAKE_OPTS
) -C
$(@D
) \
29 DESTDIR
=$(STAGING_DIR
) prefix=/usr
install
32 define TINYCBOR_INSTALL_TARGET_CMDS
33 $(TARGET_MAKE_ENV
) $(MAKE
) $(TINYCBOR_MAKE_OPTS
) -C
$(@D
) \
34 DESTDIR
=$(TARGET_DIR
) prefix=/usr
install
37 $(eval
$(generic-package
))