summaryrefslogtreecommitdiffstats
path: root/tools/firmware/Makefile
diff options
context:
space:
mode:
authorAndrey Smirnov2018-10-17 20:27:18 +0200
committerGreg Kroah-Hartman2018-11-11 21:58:27 +0100
commit1e5106031f298af4ad29c2eb866780d9a21e9ab4 (patch)
tree9bc1380a216ac0fc6b10b4855d68337f8a02ef25 /tools/firmware/Makefile
parentTools: hv: kvp: Fix a warning of buffer overflow with gcc 8.0.1 (diff)
downloadkernel-qcow2-linux-1e5106031f298af4ad29c2eb866780d9a21e9ab4.tar.gz
kernel-qcow2-linux-1e5106031f298af4ad29c2eb866780d9a21e9ab4.tar.xz
kernel-qcow2-linux-1e5106031f298af4ad29c2eb866780d9a21e9ab4.zip
tools: Add 'firmware' category and add ihex2fw tool
Commit 5620a0d1aacd ("firmware: delete in-kernel firmware") removed ihex2fw tool together with the rest of the contents of firmware/ folder. Since that tool is quite useful for doing .ihex -> .fw converstion, restore its original source code to tools/firmware Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Kyle McMartin <kyle@kernel.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linux-kernel <linux-kernel@vger.kernel.org> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/firmware/Makefile')
-rw-r--r--tools/firmware/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/firmware/Makefile b/tools/firmware/Makefile
new file mode 100644
index 000000000000..d329825aa31b
--- /dev/null
+++ b/tools/firmware/Makefile
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: GPL-2.0
+# Makefile for firmware tools
+
+CFLAGS = -Wall -Wextra -g
+
+all: ihex2fw
+%: %.c
+ $(CC) $(CFLAGS) -o $@ $^
+
+clean:
+ $(RM) ihex2fw
+
+.PHONY: all clean \ No newline at end of file