The DDL to C compiler provided with LDDK takes a driver description file and generates a whole kernel driver module sourcetree including Makefiles and installation scripts.
ddl2c [options] ddl-files
--templates, -T [path]
add path to template search path (default /usr/local/lib/lddk/templates)
--includes, -I [path]
add path to include library path (default /usr/local/lib/lddk/ddllib)
--noline, -l
avoid #line statements in generated source code, this can be used if the lddk is used for production where the ddl file is not distributed.
--make, -m
execute make after the sourcetree generation.
--help, -?
display usage message.
ddl2c -m Simple.ddl
cd Simple ; make load
will generate the sourcetree according to the module name set in Simple.ddl and will exececute a make in this directory. (You'll find this example in the ./examples/basics directory of LDDK).