mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Update umtprd with fixed folder creation name (#75)
This commit is contained in:
@@ -1,46 +0,0 @@
|
||||
From d84216a678edaca81c0899318231cdcca2100d38 Mon Sep 17 00:00:00 2001
|
||||
From: James Hilliard <james.hilliard1@gmail.com>
|
||||
Date: Mon, 17 Oct 2022 16:39:56 -0600
|
||||
Subject: [PATCH] Fix output_dir make dependency
|
||||
|
||||
Object file targets need to depend on the output_dir target.
|
||||
|
||||
Fixes:
|
||||
make --shuffle=reverse -j1
|
||||
cc -o obj/mtp_op_truncateobject.o src/mtp_operations/mtp_op_truncateobject.c -c -I./inc -lpthread -Wall -O3
|
||||
Assembler messages:
|
||||
Fatal error: can't create obj/mtp_op_truncateobject.o: No such file or directory
|
||||
make: *** [Makefile:19: obj/mtp_op_truncateobject.o] Error 1 shuffle=reverse
|
||||
|
||||
[paul@crapouillou.net: Backport from upstream commit d84216a]
|
||||
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
|
||||
---
|
||||
Makefile | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 7c98b63..c28e186 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -7,15 +7,15 @@ objects := $(sources:src/%.c=obj/%.o)
|
||||
ops_sources := $(wildcard src/mtp_operations/*.c)
|
||||
ops_objects := $(ops_sources:src/mtp_operations/%.c=obj/%.o)
|
||||
|
||||
-all: output_dir umtprd
|
||||
+all: umtprd
|
||||
|
||||
umtprd: $(objects) $(ops_objects)
|
||||
${CC} -o $@ $^ $(LDFLAGS) -lpthread
|
||||
|
||||
-$(objects): obj/%.o: src/%.c
|
||||
+$(objects): obj/%.o: src/%.c | output_dir
|
||||
${CC} -o $@ $^ -c $(CPPFLAGS) $(CFLAGS)
|
||||
|
||||
-$(ops_objects): obj/%.o: src/mtp_operations/%.c
|
||||
+$(ops_objects): obj/%.o: src/mtp_operations/%.c | output_dir
|
||||
${CC} -o $@ $^ -c $(CPPFLAGS) $(CFLAGS)
|
||||
|
||||
output_dir:
|
||||
--
|
||||
2.35.1
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
# Locally computed
|
||||
sha256 1de40511c1dd4618719cff2058dfe68a595f1b9284c80afa89d6d1a1c80aec29 umtprd-1.6.2.tar.gz
|
||||
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSE
|
||||
@@ -4,13 +4,14 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
UMTPRD_VERSION = 1.6.2
|
||||
UMTPRD_SITE = https://github.com/viveris/uMTP-Responder/archive
|
||||
UMTPRD_VERSION = 7d7d099df0dd929f95de0f45a2b6b006545207c6
|
||||
UMTPRD_SITE_METHOD = git
|
||||
UMTPRD_SITE = https://github.com/viveris/uMTP-Responder.git
|
||||
UMTPRD_LICENSE = GPL-3.0+
|
||||
UMTPRD_LICENSE_FILES = LICENSE
|
||||
|
||||
define UMTPRD_BUILD_CMDS
|
||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
||||
CC=$(TARGET_CC) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define UMTPRD_INSTALL_TARGET_CMDS
|
||||
|
||||
Reference in New Issue
Block a user