From patchwork Mon Jul 25 08:37:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 652187 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3ryZQQ243bz9t1f for ; Mon, 25 Jul 2016 18:38:05 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=pKGVD8gs; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CBC1F8881E; Mon, 25 Jul 2016 08:38:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XlP4+8FzHKnO; Mon, 25 Jul 2016 08:38:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id A351A88794; Mon, 25 Jul 2016 08:38:02 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id D05F71C0DFF for ; Mon, 25 Jul 2016 08:38:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C60298827A for ; Mon, 25 Jul 2016 08:38:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jZfBWdU1u9jN for ; Mon, 25 Jul 2016 08:38:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 54C7B8824E for ; Mon, 25 Jul 2016 08:38:00 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id q128so15670929wma.1 for ; Mon, 25 Jul 2016 01:38:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=RycJakYxp8zSQkcX5LKxutSB5TaHq8P5H05Eu1AmGeE=; b=pKGVD8gsufm8nknKgHNMP60cfh5dbX2AUsEyNP3K8fLklXJDdtns/glhFUo+iJ5ck5 3kU79eXsWfrXozWLIGyZc3VOuo0cHDWS8ByHpg6YjMDNJvLmn+0bQgJg4dPGiJ12Mdzi rZgv2JDG2FCikxfqf931dw5iVgaTV7qfw/7ple3Jwikk2BZ6wbXycNrb3/4/ggX6dyaR AKHpAUqQtx2yX/CgI3v3o7Kpe9v35QAfXvQrcCPPpJimzdgywXAzCK28UMtpv4Bry1iI eTk6SqQO5MaKCAdd6X4ug+uu7F/eb1S34EJGrmcMV69CkrKr29dIgKFddnxM9XKIruUo DZkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=RycJakYxp8zSQkcX5LKxutSB5TaHq8P5H05Eu1AmGeE=; b=Mk2991RvsgZL+cziLSSpwa0OYUGmOgD0t3E5qFTogx4q76OwKQy0xHgSJ1NkUZMH0d StBiUhw2kHc0gB5z8wC6K1ixizDOYUJmZBgFwVr1tPFsfs+mevtGsLVSCrKrXvkKv3KT YnLHCFIkJodCZLynmSb/ejpNiFFem1hi2HFsGmTwbpOXfU3SvW2+DThAqNxB7I6vuiMx LN8cxPZN4vxdwDsdT7R3XuAXGkGWg87Ny2KiIGv4G7dP4B40KWPECnSmM+av2zwkJ3yk +NgLsREgEF4s40y5uWShYgxNC4UFH7lpy2BDPi1+L2/E3h8pAnD5QFPOhWeqlB0Eke+R blFQ== X-Gm-Message-State: ALyK8tKgjVWXpc3M6LqKJrMPDuBv4FRfskQ18UeNLSV7gOfrrUIGfmrAT+ymKbfaOiEdmQ== X-Received: by 10.28.63.8 with SMTP id m8mr40486179wma.88.1469435878694; Mon, 25 Jul 2016 01:37:58 -0700 (PDT) Received: from r-x-uffo8396.rd.francetelecom.fr (ARennes-654-1-45-52.w81-53.abo.wanadoo.fr. [81.53.172.52]) by smtp.gmail.com with ESMTPSA id a203sm26843898wma.0.2016.07.25.01.37.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Jul 2016 01:37:57 -0700 (PDT) From: Fabrice Fontaine X-Google-Original-From: Fabrice Fontaine To: buildroot@buildroot.org Date: Mon, 25 Jul 2016 10:37:39 +0200 Message-Id: <1469435859-25918-1-git-send-email-fabrice.fontaine@orange.com> X-Mailer: git-send-email 2.7.4 Cc: Fabrice Fontaine Subject: [Buildroot] [PATCH 1/1] tinycbor: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Concise Binary Object Representation (CBOR) Library Signed-off-by: Fabrice Fontaine --- package/Config.in | 1 + package/tinycbor/Config.in | 20 ++++++++++++++++++++ package/tinycbor/tinycbor.hash | 2 ++ package/tinycbor/tinycbor.mk | 38 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 package/tinycbor/Config.in create mode 100644 package/tinycbor/tinycbor.hash create mode 100644 package/tinycbor/tinycbor.mk diff --git a/package/Config.in b/package/Config.in index 814141f..8ceeb9e 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 0000000..edbe64a --- /dev/null +++ b/package/tinycbor/Config.in @@ -0,0 +1,20 @@ +config BR2_PACKAGE_TINYCBOR + bool "tinyCBOR" + help + Concise Binary Object Representation (CBOR) Library + + https://github.com/01org/tinycbor + +if BR2_PACKAGE_TINYCBOR + +config BR2_PACKAGE_TINYCBOR_JSON2CBOR + bool "json2cbor" + depends on !BR2_STATIC_LIBS # cJSON + select BR2_PACKAGE_CJSON + help + The TinyCBOR library does not provide a way to convert from + JSON representation back to encoded form. However, json2cbor + can be used for that purpose. That tool supports the metadata + format that these functions may produce. + +endif # BR2_PACKAGE_TINYCBOR diff --git a/package/tinycbor/tinycbor.hash b/package/tinycbor/tinycbor.hash new file mode 100644 index 0000000..e60a86c --- /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 0000000..5d05a22 --- /dev/null +++ b/package/tinycbor/tinycbor.mk @@ -0,0 +1,38 @@ +################################################################################ +# +# 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 \ + prefix=/usr + +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) install +endef + +define TINYCBOR_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TINYCBOR_MAKE_OPTS) -C $(@D) \ + DESTDIR=$(TARGET_DIR) install +endef + +$(eval $(generic-package))