All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/umtprd: add patch to fix output_dir make dependency
@ 2022-10-18 11:01 Paul Cercueil
  2022-10-31 14:14 ` Thomas Petazzoni via buildroot
  2022-11-13 16:55 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Cercueil @ 2022-10-18 11:01 UTC (permalink / raw)
  To: buildroot; +Cc: Paul Cercueil

Object file targets need to depend on the output_dir target.

Upstream commit:
https://github.com/viveris/uMTP-Responder/commit/d84216a678edaca81c0899318231cdcca2100d38

Fixes:
- http://autobuild.buildroot.net/results/c7ce975d398190fc191ccc03813f8ec0b3464c7d/
- http://autobuild.buildroot.net/results/0331fb9cf2748b16440ef830d09452a9812f5217/
- http://autobuild.buildroot.net/results/a1b1de9e2f764ce22f23d8a8ea88f7ddcf2969a9/
- http://autobuild.buildroot.net/results/7c7dbe03d769dc5f155fc14102f6591855605640/
- http://autobuild.buildroot.net/results/6cd90b7877520669d9ab9c9fadc9fa36912963b4/
- http://autobuild.buildroot.net/results/186689fc9637ae1a8330d7e19057cd1b3c9a841c/

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
 .../0001-Fix-output_dir-make-dependency.patch | 46 +++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 package/umtprd/0001-Fix-output_dir-make-dependency.patch

diff --git a/package/umtprd/0001-Fix-output_dir-make-dependency.patch b/package/umtprd/0001-Fix-output_dir-make-dependency.patch
new file mode 100644
index 0000000000..fcbca6b000
--- /dev/null
+++ b/package/umtprd/0001-Fix-output_dir-make-dependency.patch
@@ -0,0 +1,46 @@
+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
+
-- 
2.35.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/umtprd: add patch to fix output_dir make dependency
  2022-10-18 11:01 [Buildroot] [PATCH 1/1] package/umtprd: add patch to fix output_dir make dependency Paul Cercueil
@ 2022-10-31 14:14 ` Thomas Petazzoni via buildroot
  2022-11-13 16:55 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-10-31 14:14 UTC (permalink / raw)
  To: Paul Cercueil; +Cc: buildroot

On Tue, 18 Oct 2022 12:01:57 +0100
Paul Cercueil <paul@crapouillou.net> wrote:

> Object file targets need to depend on the output_dir target.
> 
> Upstream commit:
> https://github.com/viveris/uMTP-Responder/commit/d84216a678edaca81c0899318231cdcca2100d38
> 
> Fixes:
> - http://autobuild.buildroot.net/results/c7ce975d398190fc191ccc03813f8ec0b3464c7d/
> - http://autobuild.buildroot.net/results/0331fb9cf2748b16440ef830d09452a9812f5217/
> - http://autobuild.buildroot.net/results/a1b1de9e2f764ce22f23d8a8ea88f7ddcf2969a9/
> - http://autobuild.buildroot.net/results/7c7dbe03d769dc5f155fc14102f6591855605640/
> - http://autobuild.buildroot.net/results/6cd90b7877520669d9ab9c9fadc9fa36912963b4/
> - http://autobuild.buildroot.net/results/186689fc9637ae1a8330d7e19057cd1b3c9a841c/
> 
> Signed-off-by: Paul Cercueil <paul@crapouillou.net>
> ---
>  .../0001-Fix-output_dir-make-dependency.patch | 46 +++++++++++++++++++
>  1 file changed, 46 insertions(+)
>  create mode 100644 package/umtprd/0001-Fix-output_dir-make-dependency.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/umtprd: add patch to fix output_dir make dependency
  2022-10-18 11:01 [Buildroot] [PATCH 1/1] package/umtprd: add patch to fix output_dir make dependency Paul Cercueil
  2022-10-31 14:14 ` Thomas Petazzoni via buildroot
@ 2022-11-13 16:55 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2022-11-13 16:55 UTC (permalink / raw)
  To: Paul Cercueil; +Cc: buildroot

>>>>> "Paul" == Paul Cercueil <paul@crapouillou.net> writes:

 > Object file targets need to depend on the output_dir target.
 > Upstream commit:
 > https://github.com/viveris/uMTP-Responder/commit/d84216a678edaca81c0899318231cdcca2100d38

 > Fixes:
 > - http://autobuild.buildroot.net/results/c7ce975d398190fc191ccc03813f8ec0b3464c7d/
 > - http://autobuild.buildroot.net/results/0331fb9cf2748b16440ef830d09452a9812f5217/
 > - http://autobuild.buildroot.net/results/a1b1de9e2f764ce22f23d8a8ea88f7ddcf2969a9/
 > - http://autobuild.buildroot.net/results/7c7dbe03d769dc5f155fc14102f6591855605640/
 > - http://autobuild.buildroot.net/results/6cd90b7877520669d9ab9c9fadc9fa36912963b4/
 > - http://autobuild.buildroot.net/results/186689fc9637ae1a8330d7e19057cd1b3c9a841c/

 > Signed-off-by: Paul Cercueil <paul@crapouillou.net>

Committed to 2022.08.x and 2022.02.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-13 16:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-18 11:01 [Buildroot] [PATCH 1/1] package/umtprd: add patch to fix output_dir make dependency Paul Cercueil
2022-10-31 14:14 ` Thomas Petazzoni via buildroot
2022-11-13 16:55 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.