Greg Kroah-Hartman | 3efe891 | 2017-11-06 16:34:07 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | |
| 3 | # some rules to handle the quirks of the 'as31' assembler, like |
| 4 | # insisting upon fixed suffixes for the input and output files, |
| 5 | # and its lack of preprocessor support |
| 6 | |
| 7 | all: keyspan_pda_fw.h |
| 8 | |
| 9 | %.asm: %.S |
| 10 | gcc -x assembler-with-cpp -P -E -o $@ $< |
| 11 | |
| 12 | %.hex: %.asm |
| 13 | as31 -l $< |
| 14 | mv $*.obj $@ |
| 15 | |
| 16 | %_fw.h: %.hex ezusb_convert.pl |
| 17 | perl ezusb_convert.pl $* < $< > $@ |