Loading...
1# SPDX-License-Identifier: GPL-2.0
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
7all: 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 $* < $< > $@
1
2# some rules to handle the quirks of the 'as31' assembler, like
3# insisting upon fixed suffixes for the input and output files,
4# and its lack of preprocessor support
5
6all: keyspan_pda_fw.h
7
8%.asm: %.S
9 gcc -x assembler-with-cpp -P -E -o $@ $<
10
11%.hex: %.asm
12 as31 -l $<
13 mv $*.obj $@
14
15%_fw.h: %.hex ezusb_convert.pl
16 perl ezusb_convert.pl $* < $< > $@