Here's a rough outline of files needed and how to create them
This is taken from the drivers/skeleton/README-porting


This skeleton directory of files was created (7/14/2000)
from the hpux files before they got populated with
real architecture-specific code.

1) Make a new drivers directory for your architecture.

2) Edit the configure.in script to include entries
   for your processor and operating system.

3) Edit the acconfig.h file to add your
    GM_OS_*arch*
    GM_CPU_*cpu*
   entries

4) run
      autoheader
      autoconf
   to generate a new configure and include/gm_auto_config.h.in

                      autoheader
        acconfig.h    ==========> include/gm_auto_config.h.in

                      autoconf
        configure.in  ==========> configure


autoheader and autoconf take no parameters.
They just read the configure.in file.



4) Edit the include/gm.h include/gm_stbar.h include/gm_tick.h
   to support your CPU OS and compiler

5) modify the drivers/make-os.in to compile your driver files
   add in specific compiler flags especially for kernel driver builds

6) Start modifying the drivers/arch/gm/*.[ch] files to populate
   the structures and functions.

7) modify drivers/arch/gm_install to be used as a GM_INSTALL
   script for installing your driver

8) Try to build
	./configure --enable-maintainer-mode
	make

   configure does the following conversions
    Makefile.in ==> Makefile
    include/gm_auto_config.h.in ==> include/gm_auto_config.h
    drivers/ARCH/make-os.in ==> drivers/ARCH/make-os
    
9) Never edit configure, or Makefile for permanent changes.
   You only want to edit configure.in and Makefile.in

10) Tools
	Remember that you MUST use GNU Make when building.
	You can find gnu make and autoconf/autoheader at
	ftp://gatekeeper.dec.com/pub/GNU/make/
	ftp://gatekeeper.dec.com/pub/GNU/autoconf
	you might need "m4" also (it is used by autoconf)
	ftp://gatekeeper.dec.com/pub/GNU/m4

