Christoph Bartelmus wrote:
> Ludwig Nussel "ludwig.nussel@..." wrote:
> > Christoph Bartelmus wrote:
> >>> directory and call make for every kernel flavor SUSE ships (pae,
> >>> smp, xen etc). Manually that would look like this:
> >> [...]
> >>> /tmp/lirc/drivers/lirc_dev $ make -C /lib/modules/`uname -r`/build
> >>> M=$(pwd)
> >> Does this mean that on SUSE you have everything necessary in
> >> /lib/modules/`uname -r`/build ?
> > Theoretically yes. That weird configure check that copies the
> > Makefile and adds extra targets to figure out the kernel compiler
> > doesn't work though.
> Why it doesn't work?
No idea. I'm not a kernel Makefile wizard. The Makefile you are
appending custom rules to looks like this:
$ cat /lib/modules/`uname -r`/build/Makefile
# Automatically generated by /usr/src/linux-188.8.131.52-0.1/scripts/mkmakefile: don't edit
VERSION = 2
PATCHLEVEL = 6
lastword = $(word $(words $(1)),$(1))
makedir := $(dir $(call lastword,$(MAKEFILE_LIST)))
MAKEARGS := -C /usr/src/linux-184.108.40.206-0.1
MAKEARGS += O=$(if $(patsubst /%,,$(makedir)),$(CURDIR)/)$(patsubst %/,%,$(makedir))
MAKEFLAGS += --no-print-directory
.PHONY: all $(MAKECMDGOALS)
all := $(filter-out all Makefile,$(MAKECMDGOALS))
$(MAKE) $(MAKEARGS) $(all)
$(all) %/: all
I wonder why you need to figure out kernelcc etc in the first place
though. The kernel build system knows how to compile it's module so
just providing simple Kbuild files should suffice.
> Could you please try it with 0.8.4pre1?
Doesn't work, just as any previous version. That's why this
subthread started :-)
(o_ Ludwig Nussel
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)