diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2016-07-25 10:37:39 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-07-25 23:33:37 +0200 |
commit | 67f96915b14a3f316ee1850253fc7ce11982fafb (patch) | |
tree | 697f7195ab595198cacd182de6b84dae8d06dace | |
parent | 89a33a06022d3b21a633f24566e1f6b6d30df5ba (diff) |
tinycbor: new package
Concise Binary Object Representation (CBOR) Library
Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
[Thomas:
- use lower-case letters in the Config.in option prompt
- remove BR2_PACKAGE_TINYCBOR_JSON2CBOR sub-option, simply rely on
the cjson package being enabled
- pass prefix=/usr only at install time.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/Config.in | 1 | ||||
-rw-r--r-- | package/tinycbor/Config.in | 6 | ||||
-rw-r--r-- | package/tinycbor/tinycbor.hash | 2 | ||||
-rw-r--r-- | package/tinycbor/tinycbor.mk | 35 |
4 files changed, 44 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in index 814141f18..8ceeb9eec 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1328,6 +1328,7 @@ endif source "package/qlibc/Config.in" source "package/sphinxbase/Config.in" source "package/startup-notification/Config.in" + source "package/tinycbor/Config.in" source "package/tz/Config.in" source "package/tzdata/Config.in" endmenu diff --git a/package/tinycbor/Config.in b/package/tinycbor/Config.in new file mode 100644 index 000000000..41f0b5fac --- /dev/null +++ b/package/tinycbor/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_TINYCBOR + bool "tinycbor" + help + Concise Binary Object Representation (CBOR) Library + + https://github.com/01org/tinycbor diff --git a/package/tinycbor/tinycbor.hash b/package/tinycbor/tinycbor.hash new file mode 100644 index 000000000..e60a86ccd --- /dev/null +++ b/package/tinycbor/tinycbor.hash @@ -0,0 +1,2 @@ +# Locally computed: +sha256 e73a617b3a51fac103df1faab9ea037e509c1491cca29c1fd4b5083d74267597 tinycbor-v0.3.1.tar.gz diff --git a/package/tinycbor/tinycbor.mk b/package/tinycbor/tinycbor.mk new file mode 100644 index 000000000..0be91b7bb --- /dev/null +++ b/package/tinycbor/tinycbor.mk @@ -0,0 +1,35 @@ +################################################################################ +# +# tinycbor +# +################################################################################ + +TINYCBOR_VERSION = v0.3.1 +TINYCBOR_SITE = $(call github,01org,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 + +define TINYCBOR_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(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)) |