diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2011-08-24 05:43:40 +0100 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2011-12-16 05:42:11 +0000 |
commit | 7ee581d89273a231d3999be10f28a5ffb325fcb6 (patch) | |
tree | 4277172f07116d0b05e2ed46058d8ab20c83b329 | |
parent | 1f2fd14997b38b8aeeaae5de8f81c3a04958971e (diff) | |
download | linux-firmware-7ee581d89273a231d3999be10f28a5ffb325fcb6.tar.gz |
keyspan_pda: Add makefile for building from source
The commands given in the source aren't quite right, and don't cover
use of ihex2fw.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | WHENCE | 2 | ||||
-rw-r--r-- | keyspan_pda/Makefile | 12 |
2 files changed, 14 insertions, 0 deletions
@@ -173,6 +173,8 @@ Source: keyspan_pda/keyspan_pda.S File: keyspan_pda/xircom_pgs.fw Source: keyspan_pda/xircom_pgs.S +Source: keyspan_pda/Makefile + Licence: GPLv2+ Compiled from original 8051 source into Intel HEX, used in our binary ihex form. diff --git a/keyspan_pda/Makefile b/keyspan_pda/Makefile new file mode 100644 index 00000000..fc37ea48 --- /dev/null +++ b/keyspan_pda/Makefile @@ -0,0 +1,12 @@ +CC = gcc +IHEX2FW = ihex2fw + +all: keyspan_pda.fw xircom_pgs.fw + +%.fw: %.S + $(CC) -x assembler-with-cpp -P -E -o $*.asm $< + as31 -l $*.asm + $(IHEX2FW) $*.hex $@ + +clean: + rm -f *.asm *.fw *.hex *.lst *.obj |