From patchwork Fri Oct 11 12:40:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1175140 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.137; helo=fraxinus.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="bv96ot+9"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46qSJZ6Db3z9sCJ for ; Fri, 11 Oct 2019 23:42:06 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1C00886C77; Fri, 11 Oct 2019 12:42:05 +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 X5QY_CAPm-Ew; Fri, 11 Oct 2019 12:42:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 47BA386F01; Fri, 11 Oct 2019 12:42:04 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 7F2411BF292 for ; Fri, 11 Oct 2019 12:42:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7B4798809E for ; Fri, 11 Oct 2019 12:42:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PLrFRa89m6AS for ; Fri, 11 Oct 2019 12:42:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4F060880D2 for ; Fri, 11 Oct 2019 12:42:00 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id i16so10265421wmd.3 for ; Fri, 11 Oct 2019 05:42:00 -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=q5Ulz6yqK6yue53hsOs4R0RccV6D/WA7XSlH288aL8I=; b=bv96ot+9T0eKhaAoM0Z2zsCGb6hx8mh0Ke5hKvUsN2+tLAB2EHpQxBo7e8mBrk9LYr RoBrDT47nt5B26dZipCiOYyDwJIuU9zrBxOpr0+nPh/9KlC/03wIDUgz6xA8Jj2ioVOu HIO5OecOG8aY7y6kl2yGaLxi2eSg+DUAb/w2pAZalEfbBLXKCL6W/5oeBePA9nnzGW35 364sOOWmjYJwbWBg54bjvUJNL7wIo1q9Dr2QfXHczyzVgnnQGdMj6xCM+VNS1Z+QBJBx L0aMPB4ny0Mysi52rR46KGysoxCLh/JeqsNnwc8gp7FYS8sLe2cuVkfVHNqXFh3vnOdG wH9Q== 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=q5Ulz6yqK6yue53hsOs4R0RccV6D/WA7XSlH288aL8I=; b=AeGFNFCfI5MWehembdGLw4DayiTYs2IOlAYFLKdwlSbOgGjT8gofpwb5EZp/vkocc5 hMIr2wyTZyGHG+BPq886IVSjOkBelOiSUyI3NWiRYL2jy0914xz/n0WbAtI75GkroLLG cAhMgXrK/K14bvF6LjWz2ltcdMPlHvzSzLX2n6iAtBXBJt7RmA6ymfRV4uPsAQVekYJP KgqdDkcSzg/yiyJT+man0G/g5Ifvy+9mpPCryt6PuCX4tpet7OkgoLf53uayEAttqSi6 gp3q5L+pncWVTAQXBA0w7EhfQ96o3u1iuW2i2816kHMe++egr7ne9vu0yr8SSJObN8N9 hD2Q== X-Gm-Message-State: APjAAAUh8INfEdIW4stpEx16X5vQ1Q8CnpzqMe5oEe1jPPfWUu1LTmCm EA/D3tWommqZe4KOtwTul37Xv/nKjOA= X-Google-Smtp-Source: APXvYqySfaPaW/X0Uhiid6XvKKLkIQT6gsv+wd6Gjj/uLT3w7JIYI7sJzDjHJrm3d/e6BaAog4pMXw== X-Received: by 2002:a1c:a9c8:: with SMTP id s191mr2373256wme.74.1570797718462; Fri, 11 Oct 2019 05:41:58 -0700 (PDT) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id z5sm14336862wrs.54.2019.10.11.05.41.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 05:41:57 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Fri, 11 Oct 2019 14:40:42 +0200 Message-Id: <20191011124131.28246-5-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191011124131.28246-1-heiko.thiery@gmail.com> References: <20191011124131.28246-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 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: yann.morin@orange.com, michael@walle.cc, Heiko Thiery , thomas.petazzoni@bootlin.com, heiko.thiery@gmail.com, jan.kundrat@cesnet.cz 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 e8ef69efc7..1d71a7db52 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1039,6 +1039,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 48a66ec7dd..0d73ead5b7 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1643,6 +1643,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))