From: Alexander Clouter <alex@digriz.org.uk>
To: linux-kernel@vger.kernel.org
Subject: Re: how to transplant a driver from 2.4 to 2.6?
Date: Mon, 9 Aug 2010 09:28:01 +0100 [thread overview]
Message-ID: <hpq4j7-0tp.ln1@chipmunk.wormnet.eu> (raw)
In-Reply-To: 201008091603464245121@gmail.com
hacklu <embedway.linux@gmail.com> wrote:
>
> I have a driver project programmed under the 2.4 kernel.
> but now ,I want to transplant it to 2.6.
> the driver has some directions;
> like 1/1.c 2/2.c 3/3_1.c 3_2.c
> in this case ,how can I imtate the template Makefile of 2.6's driver
>
I use the following 2.6 Makefile template for an out of kernel drive I
am forced to use:
----
alex@berk:~$ cat /usr/src/wag54g/sangam-atm/Makefile
ifneq ($(KERNELRELEASE),)
include Kbuild
else
KERNELDIR := /usr/src/wag54g/linux/
all::
$(MAKE) -C $(KERNELDIR) M=`pwd` tiatm.ko
endif
alex@berk:~$ cat /usr/src/wag54g/sangam-atm/Kbuild
obj-m := tiatm.o
tiatm-y := cpsar.o aal5sar.o tn7sar.o tn7atm.o tn7dsl.o dsl_hal_api.o dsl_hal_support.o dsl_hal_advcfg.o
ccflags-y += -I$(PWD) -DPOST_SILICON -DCOMMON_NSP -D__NO__VOICE_PATCH__ -DEL -DCPATM_TASKLET_MODE
#ccflags-$(DEBUG) += -D....
----
It's not great, but it works.
Cheers
--
Alexander Clouter
.sigmonster says: Never eat more than you can lift.
-- Miss Piggy
next prev parent reply other threads:[~2010-08-09 9:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-09 8:03 how to transplant a driver from 2.4 to 2.6? hacklu
2010-08-09 8:28 ` Alexander Clouter [this message]
2010-08-09 8:59 ` Valeo de Vries
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=hpq4j7-0tp.ln1@chipmunk.wormnet.eu \
--to=alex@digriz.org.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.