From patchwork Tue Oct 1 14:30:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1169984 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="W9HRInQR"; 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 46jMBw5zj6z9sDB for ; Wed, 2 Oct 2019 00:31:04 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 1B035203DC; Tue, 1 Oct 2019 14:31:03 +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 LpghG2IpqfdL; Tue, 1 Oct 2019 14:30:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 68F23204F6; Tue, 1 Oct 2019 14:30:53 +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 C036B1BF592 for ; Tue, 1 Oct 2019 14:30:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BD48A8762A for ; Tue, 1 Oct 2019 14:30:52 +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 cAYJEb7+BTvF for ; Tue, 1 Oct 2019 14:30:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id 6B091875FD for ; Tue, 1 Oct 2019 14:30:50 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id b24so3492214wmj.5 for ; Tue, 01 Oct 2019 07:30:50 -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=VmbIc2waqH3pHZDVuXXPmO+PudsLij0ZgMo3gOgJXEs=; b=W9HRInQR/hf26tL6t2RMKS/ueCBntkTkQS5ff9Yj/tUDUbejmeZEdtThKvOq6f4vbV 1PRSaZ8VLdGrNq2McMZDLT1mlsbguPclcX2acAiDXRFJXxRS/V/CfWRYUkSQ6GbuqxvH kyRE8WtEeWBWqY0yoJDu4CduG04Ak6pYTW6zPCJ4x+b9T1Goadt4S4yHbgVA8quef46Z JuwdM18/4239+w1JQLSOY5kkEZ45ffWmu104NXsLKn8rGFYLLUI1hV250VPEo3xWEf4a sfIccrHcmVmLjsTNOuP/ROYlP/MkHVDeVOYnXiNt+fP+D2zrFrIFJ+DWxIEErNe+zeB3 W7wA== 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=VmbIc2waqH3pHZDVuXXPmO+PudsLij0ZgMo3gOgJXEs=; b=NvIdjGvw0F8efe64DBTZUUhILxUTHFfwvo7C2hBeCnCS9TZCdD9c/56SSmIC5AfaCT wUTF4UrIPxlXtvrwTF/CiDWyS42suRu3fJRPBpPeHcIQnNslHu4RHPy5YUtYR0ZDb999 Zgu7bdZg4ALxyEqKGc2muNlldqdiS1WBG0IW4ke5x4ytALS2NfEBp17GIasw7D9AVPZ8 I1zVASOJVOlT7GhAaz4jHpghnPrLI/D8oDJMLoLYMLk5k2Oo27GZBWmxZw9n1JRedlMc 9Cj60kYPVVpMhPLTCVo26+GRkD4iNjJDV5J9Lit+BJqLxfA4tUJlp4zpoOPqtEQkHi0B RVWA== X-Gm-Message-State: APjAAAW49wgEzgGCIMcptnPY0K/cceztouRg5dlZOLkipbEKltQP2Ujz a8T4fNuVlND1IeFDdtpjkAyenf6s X-Google-Smtp-Source: APXvYqx798nHUtbHvNPcJVdxfOYZ5B+i1AfXzN/7ouJzTJVwh7e0mKKc56BaEa2Wt8G513whLK6Nsg== X-Received: by 2002:a7b:c44e:: with SMTP id l14mr3972192wmi.54.1569940248646; Tue, 01 Oct 2019 07:30:48 -0700 (PDT) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id y5sm4027506wma.14.2019.10.01.07.30.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2019 07:30:48 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Tue, 1 Oct 2019 16:30:17 +0200 Message-Id: <20191001143023.698-4-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191001143023.698-1-heiko.thiery@gmail.com> References: <20191001143023.698-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 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 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 | 1 + package/Config.in | 1 + package/libyang/Config.in | 7 +++++++ package/libyang/libyang.hash | 2 ++ package/libyang/libyang.mk | 21 +++++++++++++++++++++ 5 files changed, 32 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 a25fbb7a0d..a378ff2a61 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1038,6 +1038,7 @@ F: package/python-sip/ N: Heiko Thiery F: package/libredblack/ +F: package/libyang/ N: Henrique Camargo F: package/json-glib/ diff --git a/package/Config.in b/package/Config.in index abea9e2428..04cd466eba 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1640,6 +1640,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..cfd2862c15 --- /dev/null +++ b/package/libyang/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_LIBYANG + bool "libyang - YANG data modeling language parser and toolkit" + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_PCRE + help + Libyang is YANG data modeling language parser and toolkit + written (and providing API) in C. 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..9005683053 --- /dev/null +++ b/package/libyang/libyang.mk @@ -0,0 +1,21 @@ +################################################################################ +# +# 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 + +$(eval $(cmake-package)) +$(eval $(host-cmake-package))