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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
---
This is not quite right; the clean rule needs to be updated too.

Ben.

 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$@ $<
 
 clean:
 	rm -f *.bin *~ *.lst *.bin
-- 
1.7.9


Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux