From: "hacklu" <embedway.linux@gmail.com>
To: "linux-kernel" <linux-kernel@vger.kernel.org>
Subject: how to transplant a driver from 2.4 to 2.6?
Date: Mon, 9 Aug 2010 16:03:50 +0800 [thread overview]
Message-ID: <201008091603464245121@gmail.com> (raw)
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 only kown this:
------------------------------------------
ifneq ($(KERNELRELEASE),)
# call from kernel build system
scull-objs := demo1.o demo2.o
obj-m := demo.o
else
CROSS_COMPILE ?=powerpc
KERNELLIBDIR=/lib
KERNELDIR ?= /linux-2.6.25_minifo
PWD := $(shell pwd)
all:
$(MAKE) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=powerpc -C $(KERNELDIR) M=$(PWD) modules
clean:
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions
endif
depend .depend dep:
$(CC) $(CFLAGS) -M *.c > .depend
ifeq (.depend,$(wildcard .depend))
include .depend
endif
-----------------------------------------
thanks so much
--------------
hacklu
2010-08-09
next reply other threads:[~2010-08-09 8:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-09 8:03 hacklu [this message]
2010-08-09 8:28 ` how to transplant a driver from 2.4 to 2.6? Alexander Clouter
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=201008091603464245121@gmail.com \
--to=embedway.linux@gmail.com \
--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.