TOP
SSV SOFTWARE SYSTEMS REGISTER  REGISTER
Log in to check your private messages  Log in to check your private messages
START FAQ SEARCH MITGLIEDER PROFILE  Log in 
SSV-Forum
Demomakefile für Kernelmodule für Kernel 2.6

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/9200
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
majo



Joined: 17 Jul 2006
Posts: 12

PostPosted: 25.07.2006, 10:00    Post subject: Demomakefile für Kernelmodule für Kernel 2.6 Reply with quote

Hallo,

wollte mal anfragen ob es vielleicht ein Demomakefile zum übersetzen der Kernelmodule für Kernel 2.6 gibt (wie z.B. ssvirq-demo von Kernel 2.4). In Kernel 2.6 hat sich was die Kernelmodule betrifft ja einiges geändert. Um nicht wieder ewig "herumprobieren" zu müssen
wäre so etwas sehr hilfreich.

Danke im Voraus.
J.Maier
Back to top
View user's profile Send private message
mha



Joined: 05 May 2006
Posts: 28

PostPosted: 02.08.2006, 16:04    Post subject: Reply with quote

Hallo,

so sieht ein einfaches Makefile für Kernelmodule (hier hello.c) unter Linux 2.6 aus:

obj-m := hello.o

KDIR := /usr/src/linux-2.6.16.20-at91-ssv1
PWD := $(shell pwd)

all:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

clean:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean

Bei diesem Makefile müssen die Kernel Quellen unter
"/usr/src/linux-2.6.16.20-at91-ssv1" vorhanden und
für den DNP9200 konfiguriert sein.

Zusätzlich müssen folgende Umgebungsvariablen
gesetzt werden, damit ein make gelingt:

export PATH=$PATH:/usr/local/arm-ssv1-linux/bin
export ARCH=arm
export CROSS_COMPILE=arm-ssv1-linux-
export INSTALL_MOD_PATH=$PWD


Marco Hasewinkel
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/9200 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

SSV SOFTWARE SYSTEMS

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2024 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015