All of lore.kernel.org
 help / color / mirror / Atom feed
* how to transplant a driver from 2.4 to 2.6?
@ 2010-08-09  8:03 hacklu
  2010-08-09  8:28 ` Alexander Clouter
  2010-08-09  8:59 ` Valeo de Vries
  0 siblings, 2 replies; 3+ messages in thread
From: hacklu @ 2010-08-09  8:03 UTC (permalink / raw)
  To: linux-kernel

 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-09  9:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-09  8:03 how to transplant a driver from 2.4 to 2.6? hacklu
2010-08-09  8:28 ` Alexander Clouter
2010-08-09  8:59 ` Valeo de Vries

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.