Hi all, does anyone know how to compile the tpctl kernel modules after compiling a new kernel? I installed package km_tpctl. In the description of this package I read: "You need this package to recreate the tpctl kernel modules after a new kernel compilation. Change the directory to /usr/src/kernel-modules/tpctl/ and call "make -f Makefile.module all/install" I did this exactly as written. But this is what happens: ---- thinkpad:/usr/src/kernel-modules/tpctl # make -f Makefile.module all/install make: Makefile.module: No such file or directory make: *** No rule to make target `Makefile.module'. Stop. ---- There is only a Makefile (not Makefile.module) in the /usr/src/kernel-modules/tpctl directory. When I try to call make without -f Makefile.module there are errors, too: ---- thinkpad:/usr/src/kernel-modules/tpctl # make make -C modules_add SUBDIRS=/usr/src/kernel-modules/tpctl make: *** modules_add: No such file or directory. Stop. make: *** [modules_add] Error 2 ---- What am I doing wrong? Thanks, Christoph
On Friday, 28. October 2005 12:21, Christoph Singer wrote:
I installed package km_tpctl. In the description of this package I read:
"You need this package to recreate the tpctl kernel modules after a new kernel compilation. Change the directory to /usr/src/kernel-modules/tpctl/ and call "make -f Makefile.module all/install"
I guess this means that you should run make twice - for targets "all" and "install": "make -f Makefile.module all" and "make -f Makefile.module install".
thinkpad:/usr/src/kernel-modules/tpctl # make
You could try: "make all" and as root: "make install". -Teemu
On 28.10.2005 12:00, Teemu Nikkilä wrote:
I guess this means that you should run make twice - for targets "all" and "install": "make -f Makefile.module all" and "make -f Makefile.module install".
thinkpad:/usr/src/kernel-modules/tpctl # make
It doesn't work. This is what I tried: thinkpad:/usr/src/kernel-modules/tpctl # make -f Makefile.module all make: Makefile.module: No such file or directory make: *** No rule to make target `Makefile.module'. Stop. thinkpad:/usr/src/kernel-modules/tpctl # make all make: *** No rule to make target `all'. Stop. thinkpad:/usr/src/kernel-modules/tpctl # make install make -C modules_add SUBDIRS=/usr/src/kernel-modules/tpctl make: *** modules_add: No such file or directory. Stop. make: *** [modules_add] Error 2 christoph
On Friday, 28. October 2005 13:16, Christoph Singer wrote:
It doesn't work. This is what I tried:
thinkpad:/usr/src/kernel-modules/tpctl # make all make: *** No rule to make target `all'. Stop.
Well, to be honest I don't use my TP600 anymore, so I don't use tpctl and I think I never re-compiled the kernel and tpctl on it when it still was in use. So I'm just guessing here... How about "make module"
thinkpad:/usr/src/kernel-modules/tpctl # make install make -C modules_add SUBDIRS=/usr/src/kernel-modules/tpctl make: *** modules_add: No such file or directory. Stop.
Once you have successfully compiled the modules, install might work too. -teemu
On 28.10.2005 12:50, Teemu Nikkilä wrote:
How about "make module"
thinkpad:/usr/src/kernel-modules/tpctl # make install make -C modules_add SUBDIRS=/usr/src/kernel-modules/tpctl make: *** modules_add: No such file or directory. Stop.
Once you have successfully compiled the modules, install might work too.
Thanks for your answers. I guess there is either a wrong Makefile in the /usr/src/kernel-modules/tpctl directory, or it should be called from another location. Unfortunately, I don't know how a Makefile should look like. The one in the /usr/src/kernel-modules/tpctl directory has the following content: ---- ifndef EXTRA_CFLAGS EXTRA_CFLAGS := -Wall -Wcast-align -Wstrict-prototypes -O2 -DLINUX endif EXTRA_CFLAGS += -I$(src)/include ifeq ($(CONFIG_X86),y) ifeq ($(CONFIG_USERMODE),) obj-m := thinkpad.o smapi.o superio.o rtcmosram.o thinkpadpm.o smapi-objs := smapi_core.o smapi_call.o endif endif # Where to install the modules MOD_DIR := thinkpad .PHONY: modules install clean modules_add install : modules_add modules modules_add clean: $(MAKE) -C $(KERNEL_SOURCE) $@ SUBDIRS=$(CURDIR) ---- Is there anyone who can tell me how I have to call make to build the module? christoph
On Friday, 28. October 2005 15:03, Christoph Singer wrote:
Unfortunately, I don't know how a Makefile should look like.
Neither do I ;-)
The one in the /usr/src/kernel-modules/tpctl directory has the following content: ... .PHONY: modules install clean modules_add
install : modules_add modules modules_add clean:
OK, I'd try "make modules", "make install".
Is there anyone who can tell me how I have to call make to build the module?
Is it possible to find the maintainer of the package? There is also the project's home page at http://tpctl.sourceforge.net/ where you can dowload the tools and READMEs. -teemu
christoph
participants (2)
-
Christoph Singer
-
Teemu Nikkilä