From patchwork Wed Sep 25 12:17:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1167176 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="l5jBsjsA"; 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 46dcX05Yp1z9sBF for ; Wed, 25 Sep 2019 22:17:52 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 23F4084587; Wed, 25 Sep 2019 12:17:49 +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 i29nWx46EOxJ; Wed, 25 Sep 2019 12:17:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 47AB18454E; Wed, 25 Sep 2019 12:17:45 +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 733D01BF31C for ; Wed, 25 Sep 2019 12:17:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6988B84D49 for ; Wed, 25 Sep 2019 12:17:44 +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 jjNdRS9XH0RY for ; Wed, 25 Sep 2019 12:17:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by whitealder.osuosl.org (Postfix) with ESMTPS id 566D984AF1 for ; Wed, 25 Sep 2019 12:17:43 +0000 (UTC) Received: by mail-wm1-f52.google.com with SMTP id y135so4071333wmc.1 for ; Wed, 25 Sep 2019 05:17:43 -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:mime-version :content-transfer-encoding; bh=V3Xrs3Jn7v+LCiqwZU66Vyq13aU1unClDGClVsOh9M0=; b=l5jBsjsAVhWOoBSwIr7W+87rBv5XBGwb9b/sAC1JI5yrD1O80UjVqQ+N6n5ReUg/Z2 uHpTqwIFRQp9tV3O1aE5t1ClKfUKOSyMUkijpitbB+dDSFtp6R+2rthB2UCL8gGEyUlI Rhf8emQZSOVB0uDyBXHD0fawihuuPYeF797w3aAYyfP5hZ92fc6MvU9isJe/aMHOMREx IU6duJbIrmB54eBKlbmyY6qjOZiaQ5AufZeN2dINp9jdu4cEHNLvFqDxJmCPFGy+NKJk LUz6eBffhF4dH5eK5Wgix31CT4K8RY9vzpdVnxwJC+1RGOjqNwF93Vlj5sqOkkdYLRDZ 5k7A== 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:mime-version :content-transfer-encoding; bh=V3Xrs3Jn7v+LCiqwZU66Vyq13aU1unClDGClVsOh9M0=; b=KKUgqbyJpwwO4EwmkzGoz91FgSgWoN0UIn47bSqnNAJRK6ua8BjwXy/F+pEd7NPH1X JNMPW0qDnMBej0GNMnC7m+Ig7Lm1n/6P8UqDArQyjz50g8np8Fg2cKEiJxK3k5+H2sxH /Xif3TbyZn8FHrQjuncIiG2yiLthza6mypnv/5c1O0n4AzPfV4FVFnvYNvWq+Q5odA9K W1z337wSj0abBAEj1XpIQACvwKPh2bQHYVC69/+IImnM3A1kvngz3p49o4KA4HtmlVJR G9vH86oPfdx5kr0+GFgm0DZA+O8jSewjzKAr+ilIVmlTHp2kmEJBH9k7l7pHQ78sDjZV 4jOg== X-Gm-Message-State: APjAAAXtXgPsM1BD3ox7K+bFoaMeOibjHFyLMraRmk5FfmVq9LILj7+P XS/O48IiwOHxVP5X3SOup/3bCupm X-Google-Smtp-Source: APXvYqzcyQo3swb4rPF4F1vLxCClF65+qE+AC622Lj1XC4nnMD1ZgxcBRQes3gRula7dMuUQSjHZGQ== X-Received: by 2002:a7b:c247:: with SMTP id b7mr7523877wmj.121.1569413861401; Wed, 25 Sep 2019 05:17:41 -0700 (PDT) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id r28sm7967962wrr.94.2019.09.25.05.17.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 05:17:40 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Wed, 25 Sep 2019 14:17:26 +0200 Message-Id: <20190925121726.17454-1-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/libssh: add option to enable server support 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 , Heiko Thiery , Scott Fan Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Heiko Thiery This patch adds Config.in option for ssh server support. Signed-off-by: Heiko Thiery --- package/libssh/Config.in | 9 +++++++++ package/libssh/libssh.mk | 7 ++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/package/libssh/Config.in b/package/libssh/Config.in index 3dbfa7d561..a6cf1f8960 100644 --- a/package/libssh/Config.in +++ b/package/libssh/Config.in @@ -13,6 +13,15 @@ config BR2_PACKAGE_LIBSSH http://www.libssh.org/ +if BR2_PACKAGE_LIBSSH + +config BR2_PACKAGE_LIBSSH_SERVER + bool "server" + help + Enable libssh server support + +endif + comment "libssh needs a toolchain w/ dynamic library, threads" depends on BR2_USE_MMU depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/libssh/libssh.mk b/package/libssh/libssh.mk index d5f22c29a0..71b71a8e65 100644 --- a/package/libssh/libssh.mk +++ b/package/libssh/libssh.mk @@ -14,12 +14,17 @@ LIBSSH_INSTALL_STAGING = YES LIBSSH_SUPPORTS_IN_SOURCE_BUILD = NO LIBSSH_CONF_OPTS = \ -DWITH_STACK_PROTECTOR=OFF \ - -DWITH_SERVER=OFF \ -DWITH_EXAMPLES=OFF # cmake older than 3.10 require this to avoid try_run() in FindThreads LIBSSH_CONF_OPTS += -DTHREADS_PTHREAD_ARG=OFF +ifeq ($(BR2_PACKAGE_LIBSSH_SERVER),y) + LIBSSH_CONF_OPTS += -DWITH_SERVER=ON +else + LIBSSH_CONF_OPTS += -DWITH_SERVER=OFF +endif + ifeq ($(BR2_PACKAGE_ZLIB),y) LIBSSH_CONF_OPTS += -DWITH_ZLIB=ON LIBSSH_DEPENDENCIES += zlib