summaryrefslogtreecommitdiff
path: root/cis
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2011-08-24 06:31:12 +0100
committerBen Hutchings <ben@decadent.org.uk>2012-01-04 00:08:58 +0000
commit81ee454d0911f3ec00d06e69c4f5e4cf6dc06995 (patch)
treeea4a1daf10fab87d2d2140c63a08b5abdbb35dc1 /cis
parentde960e5045cce262dabfba7aee621ddf27b67bdb (diff)
downloadlinux-firmware-81ee454d0911f3ec00d06e69c4f5e4cf6dc06995.tar.gz
cis: Add makefile for building CIS files from text format
Most of the CIS files come from the pcmcia-cs project and are built from a text format using the pack_cis tool. In pcmcia-cs 3.2.8, apparently the last release, pack_cis had some bugs that are fatal when it is built with a current gcc and glibc. Therefore I refer to my own repackaged version that runs successfully and generates exactly the same binaries included here. Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'cis')
-rw-r--r--cis/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/cis/Makefile b/cis/Makefile
new file mode 100644
index 0000000..0a222f1
--- /dev/null
+++ b/cis/Makefile
@@ -0,0 +1,14 @@
+# The pack_cis tool from cis-tools
+# <http://git.kernel.org/?p=utils/cis-tools/cis-tools.git>.
+PACK_CIS = pack_cis
+
+CIS_SRC := $(wildcard src/*.cis)
+CIS_BIN := $(notdir $(CIS_SRC))
+
+all: $(CIS_BIN)
+
+%.cis: src/%.cis
+ $(PACK_CIS) -o $@ $<
+
+clean:
+ rm -f $(CIS_BIN)