mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
synced 2024-12-17 20:55:27 +00:00
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>
This commit is contained in:
parent
1f2fd14997
commit
7ee581d892
2
WHENCE
2
WHENCE
@ -173,6 +173,8 @@ Source: keyspan_pda/keyspan_pda.S
|
|||||||
File: keyspan_pda/xircom_pgs.fw
|
File: keyspan_pda/xircom_pgs.fw
|
||||||
Source: keyspan_pda/xircom_pgs.S
|
Source: keyspan_pda/xircom_pgs.S
|
||||||
|
|
||||||
|
Source: keyspan_pda/Makefile
|
||||||
|
|
||||||
Licence: GPLv2+
|
Licence: GPLv2+
|
||||||
|
|
||||||
Compiled from original 8051 source into Intel HEX, used in our binary ihex form.
|
Compiled from original 8051 source into Intel HEX, used in our binary ihex form.
|
||||||
|
12
keyspan_pda/Makefile
Normal file
12
keyspan_pda/Makefile
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user