From patchwork Wed Nov 13 11:21:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 1194213 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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=crapouillou.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=crapouillou.net header.i=@crapouillou.net header.b="xCWhDK8+"; 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 47Chyk5ncZz9sNH for ; Wed, 13 Nov 2019 22:21:50 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 60BAA85F35; Wed, 13 Nov 2019 11:21:48 +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 8lqLmoVCQsol; Wed, 13 Nov 2019 11:21:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id D5BE885EAF; Wed, 13 Nov 2019 11:21:46 +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 BB8741BF355 for ; Wed, 13 Nov 2019 11:21:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B874584906 for ; Wed, 13 Nov 2019 11:21:45 +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 HFjulpiuw8Rz for ; Wed, 13 Nov 2019 11:21:44 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from crapouillou.net (outils.crapouillou.net [89.234.176.41]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2B80484627 for ; Wed, 13 Nov 2019 11:21:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1573644102; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=+oM4o04uhiD/9+rWs2jUwHNrJM+Lc+jtWWTZUBsL2T4=; b=xCWhDK8+hjGTTlPL5CgdcmQzR+yfHnU+zYeGdZw/uIKA8LJEp/kjrNMreud/jl4G18udYH W5B9bkLqMYDNVQe9QqOSKNQkfhpDSJAeHBCHkDMJJO5RZwU/xkL8242iYaF3UOh7b9br4s SK9Q9rLWdtKvuyVuTmdZbfVAXlvhq3E= From: Paul Cercueil To: buildroot@busybox.net Date: Wed, 13 Nov 2019 12:21:36 +0100 Message-Id: <20191113112136.24211-1-paul@crapouillou.net> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2] umtprd: 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: Paul Cercueil Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" uMTP-Responder is a lightweight USB Media Transfer Protocol (MTP) responder daemon for GNU/Linux. Signed-off-by: Paul Cercueil --- Notes: v2: - Remove patch. It used to be required but now I can compile the latest master without it, so the upstream PR was closed. - Require toolchain with threads and kernel headers >= 3.15 - Add hash for license file - Add entry in DEVELOPERS for the package DEVELOPERS | 1 + package/Config.in | 1 + package/umtprd/Config.in | 11 +++++++++++ package/umtprd/umtprd.hash | 3 +++ package/umtprd/umtprd.mk | 20 ++++++++++++++++++++ 5 files changed, 36 insertions(+) create mode 100644 package/umtprd/Config.in create mode 100644 package/umtprd/umtprd.hash create mode 100644 package/umtprd/umtprd.mk diff --git a/DEVELOPERS b/DEVELOPERS index c0863aabc6..a15a64527c 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1800,6 +1800,7 @@ F: package/yavta/ N: Paul Cercueil F: package/libiio/ F: package/lightning/ +F: package/umtprd/ N: Pedro Aguilar F: package/libunistring/ diff --git a/package/Config.in b/package/Config.in index f72c77b416..4d945e0b04 100644 --- a/package/Config.in +++ b/package/Config.in @@ -550,6 +550,7 @@ endmenu source "package/udev/Config.in" source "package/udisks/Config.in" source "package/uhubctl/Config.in" + source "package/umtprd/Config.in" source "package/upower/Config.in" source "package/usb_modeswitch/Config.in" source "package/usb_modeswitch_data/Config.in" diff --git a/package/umtprd/Config.in b/package/umtprd/Config.in new file mode 100644 index 0000000000..24bf119549 --- /dev/null +++ b/package/umtprd/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_UMTPRD + bool "umtprd" + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15 + help + Lightweight USB MTP responder daemon for GNU/Linux + + https://github.com/viveris/uMTP-Responder + +comment "umtprd needs a toolchain w/ threads, headers >= 3.15" + depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15 diff --git a/package/umtprd/umtprd.hash b/package/umtprd/umtprd.hash new file mode 100644 index 0000000000..168b19e951 --- /dev/null +++ b/package/umtprd/umtprd.hash @@ -0,0 +1,3 @@ +# Locally computed +sha256 e1301bdd89170cc2c679446c1cc5873feaacd061bf0ab547fc0a11670bae9163 umtprd-1.0.0.tar.gz +sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSE diff --git a/package/umtprd/umtprd.mk b/package/umtprd/umtprd.mk new file mode 100644 index 0000000000..8460f82b7d --- /dev/null +++ b/package/umtprd/umtprd.mk @@ -0,0 +1,20 @@ +################################################################################ +# +# umtprd +# +################################################################################ + +UMTPRD_VERSION = 1.0.0 +UMTPRD_SITE = https://github.com/viveris/uMTP-Responder/archive +UMTPRD_LICENSE = GPL-3.0 +UMTPRD_LICENSE_FILES = LICENSE + +define UMTPRD_BUILD_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) +endef + +define UMTPRD_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/umtprd $(TARGET_DIR)/usr/sbin/umtprd +endef + +$(eval $(generic-package))