smdev

suckless mdev
git clone git://git.2f30.org/smdev.git
Log | Files | Refs | README | LICENSE

README (648B)


      1 What is it?
      2 ===========
      3 
      4 smdev is a simple program to manage device nodes.  It is
      5 mostly compatible with mdev but doesn't have all of its features.
      6 
      7 Building
      8 ========
      9 
     10 You need to have the kernel headers available on your
     11 system to build smdev.
     12 
     13 To build a statically linked smdev against musl-libc[0]
     14 install the relevant cross-compiler[1], then install the kernel
     15 headers into your cross-compiler prefix and finally run
     16 the following:
     17 
     18 $ make CC=x86_64-musl-linux-gcc LDFLAGS=-static
     19 $ x86_64-linux-musl-strip smdev
     20 
     21 On my system the above results in a 88kB statically linked
     22 application.
     23 
     24 [0] http://www.musl-libc.org/
     25 [1] http://musl.codu.org/