[PATCH linux-firmware 2/2] usbdux: Rebuild firmware in the correct directory

Ben Hutchings ben at decadent.org.uk
Sun Feb 19 03:54:59 UTC 2012

The source for usbdux firmware is in a subdirectory but the binaries
are not.  This is weird but not worth changing.  Adjust the makefile
to rebuild the binaries at the top-level.

Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
This is not quite right; the clean rule needs to be updated too.


 usbdux/Makefile_dux |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/usbdux/Makefile_dux b/usbdux/Makefile_dux
index a61118e..55477d8 100644
--- a/usbdux/Makefile_dux
+++ b/usbdux/Makefile_dux
@@ -5,16 +5,10 @@
 AS31 := as31
-all: usbduxfast_firmware.bin usbdux_firmware.bin usbduxsigma_firmware.bin
+all: ../usbduxfast_firmware.bin ../usbdux_firmware.bin ../usbduxsigma_firmware.bin
-usbduxfast_firmware.bin: fx2-include.asm usbduxfast_firmware.asm
-	$(AS31) -Fbin usbduxfast_firmware.asm
-usbdux_firmware.bin: fx2-include.asm usbdux_firmware.asm
-	$(AS31) -Fbin usbdux_firmware.asm
-usbduxsigma_firmware.bin: fx2-include.asm usbduxsigma_firmware.asm
-	$(AS31) -Fbin usbduxsigma_firmware.asm
+../%.bin: %.asm fx2-include.asm
+	$(AS31) -Fbin -O$@ $<
 	rm -f *.bin *~ *.lst *.bin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20120219/1e1facd5/attachment.asc>

More information about the devel mailing list