diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-04-10 16:39:25 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-04-10 16:40:03 +0100 |
commit | 40a2e5be478cc7398b99324fe4830cd979ea2a5b (patch) | |
tree | 6b78bdec3da798d121ccc004211a1763d8e38834 | |
parent | a1683556c7d8fdd9d5538a4f0cb5ee018832719b (diff) |
Add Makefile and mii-diag.8 updates from Debian package
Add the Makefile and mii-diag.8 spelling fixes from the Debian package.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r-- | Makefile | 26 | ||||
-rw-r--r-- | mii-diag.8 | 4 |
2 files changed, 28 insertions, 2 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cdfc573 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +CFLAGS= -O -Wall +CC=gcc +INSTALL=install + +LIBS=libmii.o + +all: mii-diag mii-diag-udeb + +mii-diag: + $(CC) $(CFLAGS) -Wstrict-prototypes -O mii-diag.c -DLIBMII \ + libmii.c -o mii-diag + +mii-diag-udeb: + $(CC) -Os -Wstrict-prototypes -O mii-diag.c -o mii-diag +clean: + rm -f *.o mii-diag mii-diag-udeb *~ + +install-mii-diag: + mkdir -p $(DESTDIR)/usr/sbin + $(INSTALL) mii-diag $(DESTDIR)/usr/sbin + +install-mii-diag-udeb: + mkdir -p $(DESTDIR)/usr/sbin + $(INSTALL) mii-diag-udeb $(DESTDIR)/usr/sbin/mii-diag + +install: all install-mii-diag @@ -61,7 +61,7 @@ A summary of options is as follows. .B \-F, --fixed-speed <speed|setting> Speed is one of: 100baseT4, 100baseTx, 100baseTx-FD, 100baseTx-HD, 10baseT, -10baseT-FD, 10baseT-HD. For more precise control an explict numeric +10baseT-FD, 10baseT-HD. For more precise control an explicit numeric register setting is also allowed. @@ -117,7 +117,7 @@ capabilities, configuration and current status. .PP The '--monitor' option allows scripting link beat changes. .PP -This option is similar to --watch, but with lower overhead and simplifed +This option is similar to --watch, but with lower overhead and simplified output. It polls the interface only once a second and the output format is a single line per link change with three fixed words <unknown|down||negotiating|up> <STATUS> <PARTNER-CAP> |