mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 05:46:47 +07:00
17 lines
353 B
Plaintext
17 lines
353 B
Plaintext
|
|
||
|
# 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 $* < $< > $@
|