ts-7000
[Top] [All Lists]

[ts-7000] What is the makefile for build a module?

To:
Subject: [ts-7000] What is the makefile for build a module?
From: "nachozamora" <>
Date: Tue, 11 Mar 2008 14:25:50 -0000
Hi

I need build a module but i think i have problem with the Makefile,
because i take the usbmouse.c from ../linux24/drivers/usb and compile
with the next Makefile:

ARCH=arm
CROSS_COMPILE=/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/arm-linux
# TS-7300 kernel version and modules install path
KERNEL_VERSION=2.4.26-ts11
MOD_INSTALL_PATH=/home/nachofx/embedded/linux24-modules
CC=$(CROSS_COMPILE)gcc
MODCFLAGS = -D__KERNEL__ -DMODULE -O2 -Wall
INCLUDES=-I$(MOD_INSTALL_PATH)/lib/modules/$(KERNEL_VERSION)/build/include

all: mouse2.o

mouse2.o: mouse2.c
$(CC) $(MODCFLAGS) $(INCLUDES) -c mouse2.c

clean:
-rm -f *.o *~

and then insmod ./mouse2

and restart X, the Xorg.log show me:

(II) LoadModule: "mouse2"
(II) Loading /usr/lib/xorg/modules/input/mouse2.o
(EE) LoadModule: Module mouse2 does not have a mouse2ModuleData data
object.
(II) UnloadModule: "mouse2"
(II) Unloading /usr/lib/xorg/modules/input/mouse2.o
(EE) Failed to load module "mouse2" (invalid module, 0)

whats is the correct makefile?
or what is the best way to build a module?

all this is for make and build my own touchscreen (egalax) driver

Thanks for yours replies.

Ignacio Zamora
Santiago de Chile




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU