summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/Makefile-keyspan_pda_fw
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/serial/Makefile-keyspan_pda_fw')
-rw-r--r--drivers/usb/serial/Makefile-keyspan_pda_fw17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/usb/serial/Makefile-keyspan_pda_fw b/drivers/usb/serial/Makefile-keyspan_pda_fw
new file mode 100644
index 0000000000..503b472d85
--- /dev/null
+++ b/drivers/usb/serial/Makefile-keyspan_pda_fw
@@ -0,0 +1,17 @@
+# SPDX-License-Identifier: GPL-2.0
+
+# some rules to handle the quirks of the 'as31' assembler, like
+# insisting upon fixed suffixes for the input and output files,
+# and its lack of preprocessor support
+
+all: keyspan_pda_fw.h
+
+%.asm: %.S
+ gcc -x assembler-with-cpp -P -E -o $@ $<
+
+%.hex: %.asm
+ as31 -l $<
+ mv $*.obj $@
+
+%_fw.h: %.hex ezusb_convert.pl
+ perl ezusb_convert.pl $* < $< > $@