From patchwork Wed Oct 9 11:26:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1173757 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sU9RW5px"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46pBlr3Lz1z9sP7 for ; Wed, 9 Oct 2019 22:27:52 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C103522F05; Wed, 9 Oct 2019 11:27:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0MaJ563wWqLK; Wed, 9 Oct 2019 11:27:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 47CE322F26; Wed, 9 Oct 2019 11:27:49 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 4C6CA1BF853 for ; Wed, 9 Oct 2019 11:27:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 48BFB22F05 for ; Wed, 9 Oct 2019 11:27:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bk1i2pwKL3ap for ; Wed, 9 Oct 2019 11:27:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by silver.osuosl.org (Postfix) with ESMTPS id 09C4B22EE6 for ; Wed, 9 Oct 2019 11:27:45 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id b9so2486508wrs.0 for ; Wed, 09 Oct 2019 04:27:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9lIswzKPNSeYy3b+3J0+Qr4ijyM/cRbIOy599I7NNxI=; b=sU9RW5pxlLJZM5lRNpplguGQ73pOEXR8BiU8Jr6mzJP8k8rWwkD/Pwmxqlm9pQpRYW l4+w5HAGad3O5hP7YwapSLTjY/o94Nsn8vRPI3WJ7IArV71RFax/JSQfggbywmqRjuyc xWV48UlqVWuEo7fTqAswNF91kEX0xBezaujnn08trDKqn8uCyw9A5mXEwnbNc+4xyYHi pqGB9dkvOhseGonTmJa/x5YWmux1FWvwW3j3CiQJnyVM+cizPkdvlI9amUqGNWi2kOoD ZaCyu9qIwsh7Bdo3dwnrzQzifRpcAi1lbG111RbSLa9Fv/rZHNKriK3pSzu/ZXSCwmS2 5DIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9lIswzKPNSeYy3b+3J0+Qr4ijyM/cRbIOy599I7NNxI=; b=ZNVjlQAQgdupb9d1eZfW6ezchl0+JMmwGgHUbiTk7H3NEsyLNfh4BCvTfQQMRPNFIZ dU0+7+wEEzYD6t0092Z8OUWFbXdLYTeBiuFZ5rWVco3TigZ+hVAknqkhN2Ll7FIEtF4C mwlR0gypBJdFIa88EKWCwr7Qp2IO7jkd8fv5w6JI+xj47+CffjGZdMyWuCLvO4GUoyvp wyggVp9WqjWjtzdKOmTWlRUpT7GZQTdVJCbzBk9eKhYAnWgp+wO+mLLgRuwRwCwbTFSa IEov5dEGq0aY4GKboSQDDNBL5zKLASp31QqRMJFh1p+GzoFD1Su5wCC2QuJse3wXZfHY yICQ== X-Gm-Message-State: APjAAAUyR+rDUs5lp7OfJ5EyH1suYuJDt+BfjfwRPlXLU8nssQ2eWj6m zmGfMGOIepWaWadbmfeoZarUTqON X-Google-Smtp-Source: APXvYqwKEx1BKCqidvzXP+qWtqVC5zu2bRwOpwaMzmqqNCDYt+W/A8qRUZvnXXpQsgBC6Hn+ngli5A== X-Received: by 2002:adf:dcc6:: with SMTP id x6mr2423572wrm.81.1570620463199; Wed, 09 Oct 2019 04:27:43 -0700 (PDT) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id e3sm1977194wme.39.2019.10.09.04.27.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 04:27:42 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Wed, 9 Oct 2019 13:26:51 +0200 Message-Id: <20191009112656.21232-5-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191009112656.21232-1-heiko.thiery@gmail.com> References: <20191009112656.21232-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 4/9] package/libyang: add package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: heiko.thiery@gmail.com, Heiko Thiery , jan.kundrat@cesnet.cz, michael@walle.cc, thomas.petazzoni@bootlin.com Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Heiko Thiery LibYANG processes YIN and YANG files. It's a dependency of sysrepo which is a dependency of Netopeer, a NETCONF/YANG server. Signed-off-by: Heiko Thiery --- DEVELOPERS | 3 +++ package/Config.in | 1 + package/libyang/Config.in | 13 +++++++++++++ package/libyang/libyang.hash | 2 ++ package/libyang/libyang.mk | 25 +++++++++++++++++++++++++ 5 files changed, 44 insertions(+) create mode 100644 package/libyang/Config.in create mode 100644 package/libyang/libyang.hash create mode 100644 package/libyang/libyang.mk diff --git a/DEVELOPERS b/DEVELOPERS index 05f33eb2c3..3a7b5f3bbc 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1038,6 +1038,9 @@ F: package/python-markdown/ F: package/python-remi/ F: package/python-sip/ +N: Heiko Thiery +F: package/libyang/ + N: Henrique Camargo F: package/json-glib/ diff --git a/package/Config.in b/package/Config.in index e84624ccdf..ca3d4d5d33 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1641,6 +1641,7 @@ menu "Networking" source "package/libvncserver/Config.in" source "package/libwebsock/Config.in" source "package/libwebsockets/Config.in" + source "package/libyang/Config.in" source "package/lksctp-tools/Config.in" source "package/mongoose/Config.in" source "package/nanomsg/Config.in" diff --git a/package/libyang/Config.in b/package/libyang/Config.in new file mode 100644 index 0000000000..ebe51ff099 --- /dev/null +++ b/package/libyang/Config.in @@ -0,0 +1,13 @@ +config BR2_PACKAGE_LIBYANG + bool "libyang" + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_PCRE + select BR2_PACKAGE_PCRE_UCP + help + Libyang is YANG data modeling language parser and toolkit + written (and providing API) in C. + + https://github.com/CESNET/libyang + +comment "libyang needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS diff --git a/package/libyang/libyang.hash b/package/libyang/libyang.hash new file mode 100644 index 0000000000..4989873c8c --- /dev/null +++ b/package/libyang/libyang.hash @@ -0,0 +1,2 @@ +sha256 351f712433d50494aad153bfd4aa92ff50299058428620eabddb7a41d781e756 libyang-v1.0-r3.tar.gz +sha256 f942fe693e03e4e3ff67a351c00dc8f468a042e0d7273b0aa6bc53060b568112 LICENSE diff --git a/package/libyang/libyang.mk b/package/libyang/libyang.mk new file mode 100644 index 0000000000..a120f51293 --- /dev/null +++ b/package/libyang/libyang.mk @@ -0,0 +1,25 @@ +################################################################################ +# +# libyang +# +################################################################################ + +LIBYANG_VERSION = v1.0-r3 +LIBYANG_SITE = $(call github,CESNET,libyang,$(LIBYANG_VERSION)) +LIBYANG_LICENSE = BSD-3-Clause +LIBYANG_LICENSE_FILES = LICENSE +LIBYANG_INSTALL_STAGING = YES +LIBYANG_SUPPORTS_IN_SOURCE_BUILD = NO +LIBYANG_DEPENDENCIES = pcre +HOST_LIBYANG_DEPENDENCIES = host-pcre + +LIBYANG_CONF_OPTS = \ + -DENABLE_VALGRIND_TESTS=OFF \ + -DGEN_PYTHON_BINDINGS=OFF + +HOST_LIBYANG_CONF_OPTS = \ + -DENABLE_VALGRIND_TESTS=OFF \ + -DGEN_PYTHON_BINDINGS=OFF + +$(eval $(cmake-package)) +$(eval $(host-cmake-package))