Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2008-01

kernel module with fpc

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Giuliano Colla

I'd need to create kernel modules written in fpc, so I started by testing the Wiki example:
http://wiki.freepascal.org/linux/kernel/module_development but I stuck in an error message I never met before when dealing with kernel modules: No rule to make target kernel_module_info.s needed by kernel_module_info.o (See attached make output).
Why does it need an assembler source?
What I'm missing?
Any help is appreciated,

Giuliano

Reply by email

Jonas Maebe
to Giuliano Colla
Giuliano Colla wrote 8 lines
I'd need to create kernel modules written in fpc, so I started by testing the Wiki example: http://wiki.freepascal.org/linux/kernel/module_development but I stuck in an error message I never met before when dealing with kernel modules: No rule to make target kernel_module_info.s needed by kernel_module_info.o (See attached make output). Why does it need an assembler source?

See the exaplanation right above the Makefile that your copied from the wiki page: http://wiki.freepascal.org/linux/kernel/module_development#Compilation

"In order to compile the kernel module, you need an object file called kernel_module_info.o. This file is generated automatically by the kernel build system."

Copy it to the same directory as the other files.

Jonas

Reply by email

Giuliano Colla
to Jonas Maebe

Jonas Maebe ha scritto:

Show quoted text 12 lines
See the exaplanation right above the Makefile that your copied from the wiki page: http://wiki.freepascal.org/linux/kernel/module_development#Compilation "In order to compile the kernel module, you need an object file called kernel_module_info.o. This file is generated automatically by the kernel build system." Copy it to the same directory as the other files.

No kernel_module_info.* in my kernel build tree. I'm using a kernel 2.6.17. Is that a feature of newer, or older kernels, or should I have selected some special options when compiling the kernel?

Giuliano

Reply by email