summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/tools/Makefile
diff options
context:
space:
mode:
authorad <ad@NetBSD.org>2008-05-04 23:50:32 +0000
committerad <ad@NetBSD.org>2008-05-04 23:50:32 +0000
commitb68bfe3ffa8cbc2b0789eaf53140cc11c606a59a (patch)
tree00404cc4ee3c72ba4aa5e5e331d4f04f8a86ecd2 /sys/dev/microcode/tools/Makefile
parente724ef3c860f55beb9a62f0e454eebb0a0286e85 (diff)
A couple of dumb utilities:
array2bin: take array[] from array.h and spit it out as a binary. bin2blob: take a binary file and output a compressed image as a C array.
Diffstat (limited to 'sys/dev/microcode/tools/Makefile')
-rw-r--r--sys/dev/microcode/tools/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/dev/microcode/tools/Makefile b/sys/dev/microcode/tools/Makefile
new file mode 100644
index 00000000000..c7fedf1d5e3
--- /dev/null
+++ b/sys/dev/microcode/tools/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 2008/05/04 23:50:32 ad Exp $
+
+BIN= bin2blob array2bin
+
+all: ${BIN}
+
+bin2blob: bin2blob.c
+ cc -Wall -O2 -lz -o bin2blob bin2blob.c
+
+array2bin: array2bin.c
+ cc -Wall -O2 -lz -o array2bin array2bin.c
+
+clean:
+ rm -f ${BIN} *~