[hackers] [smdev] Add README || sin

From: <git_AT_suckless.org>
Date: Sun, 28 Sep 2014 13:28:56 +0200

commit d660ed761013bac5224ddb91d7085415a750ace8
Author: sin <sin_AT_2f30.org>
Date: Sun Sep 28 12:28:21 2014 +0100

    Add README

diff --git a/README b/README
new file mode 100644
index 0000000..410b023
--- /dev/null
+++ b/README
_AT_@ -0,0 +1,25 @@
+What is it?
+===========
+
+smdev is a simple program to manage device nodes. It is
+mostly compatible with mdev but doesn't have all of its features.
+
+Building
+========
+
+You need to have the kernel headers available on your
+system to build smdev.
+
+To build a statically linked smdev against musl-libc[0]
+install the cross-compilers[1], then install the kernel
+headers into your cross-compiler prefix and finally run
+the following:
+
+$ make CC=x86_64-musl-linux-gcc LDFLAGS=-static
+$ x86_64-linux-musl-strip smdev
+
+On my system the above results in a 88kB statically linked
+application.
+
+[0] http://www.musl-libc.org/
+[1] http://musl.codu.org/
Received on Sun Sep 28 2014 - 13:28:56 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 28 2014 - 13:36:10 CEST