lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <45BB96B4.30907@redhat.com>
Date:	Sat, 27 Jan 2007 16:15:16 -0200
From:	Arnaldo Carvalho de Melo <acme@...hat.com>
To:	Sam Ravnborg <sam@...nborg.org>
CC:	linux-kernel@...r.kernel.org
Subject: External module Makefile with generated C file

Sam,

      I'm trying to create a external module that involves generating 
one of the source files needed for
the module, I'm using this Makefile:

[acme@...o ctracer_example]$ cat Makefile
obj-m := ctracer.o

ctracer-y := ctracer_methods.o ctracer_jprobe.o

CLASS=sock
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

default:
        $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
clean:
        rm -f *.mod.c *.ko *.o ctracer_methods.c

# Files generated that shall be removed upon make clean
clean-files := ctracer_methods.c

ctracer_methods.o: ctracer_methods.c

ctracer_methods.c:
        ctracer /usr/lib/debug/lib/modules/$(shell uname -r)/vmlinux 
$(CLASS) > ctracer_methods.c

[acme@...o ctracer_example]$

But I get this as the result:

[acme@...o ctracer_example]$ make
make -C /lib/modules/2.6.19-1.2895.fc6/build 
SUBDIRS=/home/acme/git/pahole/ctracer_example modules
make[1]: Entering directory `/usr/src/kernels/2.6.19-1.2895.fc6-i686'
make[2]: *** No rule to make target 
`/home/acme/git/pahole/ctracer_example/ctracer_methods.o', needed by 
`/home/acme/git/pahole/ctracer_example/ctracer.o'.  Stop.
make[1]: *** [_module_/home/acme/git/pahole/ctracer_example] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.19-1.2895.fc6-i686'
make: *** [default] Error 2
[acme@...o ctracer_example]$

What is the stupid thing I'm doing? :-)

- Arnaldo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ