Add patches
authorKeith Packard <keithp@keithp.com>
Sat, 14 Dec 2013 20:59:22 +0000 (12:59 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 14 Dec 2013 20:59:22 +0000 (12:59 -0800)
debian/patches/0001-Add-man-pages.patch [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]

diff --git a/debian/patches/0001-Add-man-pages.patch b/debian/patches/0001-Add-man-pages.patch
new file mode 100644 (file)
index 0000000..6bc6b18
--- /dev/null
@@ -0,0 +1,122 @@
+From: Keith Packard <keithp@keithp.com>
+Date: Sat, 14 Dec 2013 12:49:35 -0800
+Subject: Add man pages
+
+---
+ Makefile.am        |  2 ++
+ debian/stlink.udev |  2 ++
+ st-flash.1         | 22 ++++++++++++++++++++++
+ st-info.1          | 13 +++++++++++++
+ st-term.1          | 12 ++++++++++++
+ st-util.1          | 10 ++++++++++
+ 6 files changed, 61 insertions(+)
+ create mode 100644 debian/stlink.udev
+ create mode 100644 st-flash.1
+ create mode 100644 st-info.1
+ create mode 100644 st-term.1
+ create mode 100644 st-util.1
+
+diff --git a/Makefile.am b/Makefile.am
+index 2ddbf47..2733fa9 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -6,8 +6,10 @@ AUTOMAKE_OPTIONS = subdir-objects
+ if MINGW
+ bin_PROGRAMS = st-flash st-util st-info
++man_MANS = st-flash.1 st-util.1 st-info.1
+ else
+ bin_PROGRAMS = st-flash st-util st-term st-info
++man_MANS = st-flash.1 st-util.1 st-term.1 st-info.1
+ endif
+ noinst_LIBRARIES      = libstlink.a
+diff --git a/debian/stlink.udev b/debian/stlink.udev
+new file mode 100644
+index 0000000..521ef8e
+--- /dev/null
++++ b/debian/stlink.udev
+@@ -0,0 +1,2 @@
++49-stlinkv1.rules
++49-stlinkv2.rules
+diff --git a/st-flash.1 b/st-flash.1
+new file mode 100644
+index 0000000..0ff7ae6
+--- /dev/null
++++ b/st-flash.1
+@@ -0,0 +1,22 @@
++.\" (C) Copyright 2013 Keith Packard <keithp@keithp.com>,
++.SH NAME
++st-flash \- flash STM devices via STlink
++.SH SYNOPSIS
++.B st-flash
++.RI (v1 devices) [--reset] {read|write} " /dev/sgX path addr <size>"
++.br
++.B st-flash
++.RI (v1 devices) " /dev/sgX erase"
++.br
++.B st-flash
++.RI (v2 devices) [--reset] {read|write} " path addr <size>"
++.br
++.B st-flash
++.RI (v2 devices) [--reset] {read|write} " erase"
++.SH DESCRIPTION
++This manual page documents briefly the
++st-flash command
++.SH SEE ALSO
++.BR st-util (1),
++.BR st-term (1),
++.BR st-info (1).
+diff --git a/st-info.1 b/st-info.1
+new file mode 100644
+index 0000000..80fa82e
+--- /dev/null
++++ b/st-info.1
+@@ -0,0 +1,13 @@
++.\" (C) Copyright 2013 Keith Packard <keithp@keithp.com>,
++.SH NAME
++st-info \- get information about STM cpu via STlink device
++.SH SYNOPSIS
++.B st-info
++.RI [--flash] [--sram] [--descr] [--pagesize] [--chipid]
++.SH DESCRIPTION
++This manual page documents briefly the
++st-info command
++.SH SEE ALSO
++.BR st-flash (1),
++.BR st-util (1),
++.BR st-term (1).
+diff --git a/st-term.1 b/st-term.1
+new file mode 100644
+index 0000000..3703077
+--- /dev/null
++++ b/st-term.1
+@@ -0,0 +1,12 @@
++.\" (C) Copyright 2013 Keith Packard <keithp@keithp.com>,
++.SH NAME
++st-term \- ST-link terminal
++.SH SYNOPSIS
++.B st-term
++.SH DESCRIPTION
++This manual page documents briefly the
++st-term command
++.SH SEE ALSO
++.BR st-flash (1),
++.BR st-util (1),
++.BR st-info (1).
+diff --git a/st-util.1 b/st-util.1
+new file mode 100644
+index 0000000..6331321
+--- /dev/null
++++ b/st-util.1
+@@ -0,0 +1,10 @@
++.\" (C) Copyright 2013 Keith Packard <keithp@keithp.com>,
++.SH NAME
++st-util \- GDB server for STM devices via STlink
++.SH DESCRIPTION
++This manual page documents briefly the
++st-util command
++.SH SEE ALSO
++.BR st-flash (1),
++.BR st-term (1),
++.BR st-info (1).
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..abe7f23
--- /dev/null
@@ -0,0 +1 @@
+0001-Add-man-pages.patch