Re: Config system and 2.5.x...

From: Erik Andersen (andersen@xmission.com)
Date: Tue Mar 07 2000 - 19:07:42 EST


On Tue Mar 07, 2000 at 04:03:33PM -0500, Jeff Garzik wrote:
> Arjan van de Ven wrote:
> > For 2.5, the entire config-system must go, as it is way to limited for the
> > current kernels.
>
> Agreed...
>
> While we are talking about 2.5, it would be nice if it was possible for
> people to add drivers to the build without patching a single file. This
> would be very useful for people who distribute extra drivers with their
> kernels, and want an easy way to drop them into the kernel build.
>
> It is much easier for a vendor to do
>
> cp newdriver.{c,mk,config} linux/3rdparty
>
> and have magic occur than it is to constantly maintain a patch which
> does nothing but add make and config.in rules which pull the driver into
> the vendor build.

Could be done with nifty makefiles something like:

    DRIVERS=$(shell ls *.make)
    all:
            (for i in ${DRIVERS};do\
                make -f $${i}.make driver module;\
            done)
            L_OBJS += $(shell ls drivers/*.o)
            M_OBJS += $(shell ls modules/*.o)

so that drivers can include their own makefiles,
so drivers can either be standalone, or dropped into
the kernel tree without having to patch up any makefiles
and yet they still mystically work...

 -Erik

--
Erik B. Andersen   Web:    http://www.xmission.com/~andersen/ 
                   email:  andersee@debian.org
--This message was written using 73% post-consumer electrons--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:24 EST