mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@26c91a9
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
From b6eccf2160fd16405542249c62a87aff2fbfcd33 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Jean-Fran=C3=A7ois=20DEL=20NERO?=
|
||||
<jeanfrancoisdelnero@free.fr>
|
||||
Date: Sat, 16 May 2020 09:37:40 +0200
|
||||
Subject: [PATCH] Fix the missing definitions build errors/warnings on some
|
||||
systems.
|
||||
|
||||
[Retrieved from:
|
||||
https://github.com/viveris/uMTP-Responder/commit/b6eccf2160fd16405542249c62a87aff2fbfcd33]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
src/usb_gadget.c | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/usb_gadget.c b/src/usb_gadget.c
|
||||
index 856bb53..9f3896f 100644
|
||||
--- a/src/usb_gadget.c
|
||||
+++ b/src/usb_gadget.c
|
||||
@@ -27,7 +27,10 @@
|
||||
|
||||
#include "buildconf.h"
|
||||
|
||||
+#include <endian.h>
|
||||
#include <inttypes.h>
|
||||
+#include <pthread.h>
|
||||
+#include <sys/time.h>
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
@@ -38,7 +41,7 @@
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
-#include <pthread.h>
|
||||
+
|
||||
#include <signal.h>
|
||||
|
||||
#include <errno.h>
|
||||
@@ -0,0 +1,78 @@
|
||||
From 2e7aaf0c373a0e3a271f4b374bd98de8a80aefb0 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Jean-Fran=C3=A7ois=20DEL=20NERO?=
|
||||
<jeanfrancoisdelnero@free.fr>
|
||||
Date: Sat, 16 May 2020 09:20:01 +0200
|
||||
Subject: [PATCH] Fix the pthread missing definition build error on some
|
||||
systems.
|
||||
|
||||
[Retrieved from:
|
||||
https://github.com/viveris/uMTP-Responder/commit/2e7aaf0c373a0e3a271f4b374bd98de8a80aefb0]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
src/fs_handles_db.c | 1 +
|
||||
src/mtp_cfg.c | 1 +
|
||||
src/mtp_datasets.c | 1 +
|
||||
src/mtp_operations/mtp_op_sendobject.c | 1 +
|
||||
src/mtp_properties.c | 1 +
|
||||
5 files changed, 5 insertions(+)
|
||||
|
||||
diff --git a/src/fs_handles_db.c b/src/fs_handles_db.c
|
||||
index a91268a..178bd90 100644
|
||||
--- a/src/fs_handles_db.c
|
||||
+++ b/src/fs_handles_db.c
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "buildconf.h"
|
||||
|
||||
#include <inttypes.h>
|
||||
+#include <pthread.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
diff --git a/src/mtp_cfg.c b/src/mtp_cfg.c
|
||||
index 30f473a..1f2302d 100644
|
||||
--- a/src/mtp_cfg.c
|
||||
+++ b/src/mtp_cfg.c
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "buildconf.h"
|
||||
|
||||
#include <inttypes.h>
|
||||
+#include <pthread.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
diff --git a/src/mtp_datasets.c b/src/mtp_datasets.c
|
||||
index 95cec68..fbd67e2 100644
|
||||
--- a/src/mtp_datasets.c
|
||||
+++ b/src/mtp_datasets.c
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "buildconf.h"
|
||||
|
||||
#include <inttypes.h>
|
||||
+#include <pthread.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/statvfs.h>
|
||||
diff --git a/src/mtp_operations/mtp_op_sendobject.c b/src/mtp_operations/mtp_op_sendobject.c
|
||||
index 8af2c6b..8e1498c 100644
|
||||
--- a/src/mtp_operations/mtp_op_sendobject.c
|
||||
+++ b/src/mtp_operations/mtp_op_sendobject.c
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "buildconf.h"
|
||||
|
||||
#include <inttypes.h>
|
||||
+#include <pthread.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <pthread.h>
|
||||
diff --git a/src/mtp_properties.c b/src/mtp_properties.c
|
||||
index 4500cd4..5cf6e2d 100644
|
||||
--- a/src/mtp_properties.c
|
||||
+++ b/src/mtp_properties.c
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "buildconf.h"
|
||||
|
||||
#include <inttypes.h>
|
||||
+#include <pthread.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
11
package/umtprd/Config.in
Normal file
11
package/umtprd/Config.in
Normal file
@@ -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
|
||||
3
package/umtprd/umtprd.hash
Normal file
3
package/umtprd/umtprd.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 5f6f9f2882597cd3767b12b0814fdfa27c0cb18ce32e3082176f9658be167a27 umtprd-1.3.6.tar.gz
|
||||
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSE
|
||||
20
package/umtprd/umtprd.mk
Normal file
20
package/umtprd/umtprd.mk
Normal file
@@ -0,0 +1,20 @@
|
||||
################################################################################
|
||||
#
|
||||
# umtprd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
UMTPRD_VERSION = 1.3.6
|
||||
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))
|
||||
Reference in New Issue
Block a user