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-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 15 Sep 2006 12:10:14 +0200 (MEST)
From:	Jan Engelhardt <jengelh@...ux01.gwdg.de>
To:	Madhav Bhamidipati <madhavb@...il.com>
cc:	linux-kernel@...r.kernel.org
Subject: Re: Question on compiling a kernel Module

>
> module/
> module/sub-module1
> module/sub-module2
> module/include
> module/objs/


obj-m += my.o
my-objs := sub1/foo.o sub1/bar.o sub2/abc.o sub2/xyz.o
EXTRA_CFLAGS += -I$(src)/include


Should be straightforward.

> module folder has a Makefile, it may or may not have *.c files, it
> invokes sub-* Makefiles
> which build respective objects, these objects need to go into objs
> folder, finally makefile in 'objs'
> builds the module.ko linking all sub-module *.o.
>
> I could not find much information for my requirement in the file
> linux/Documentation/kbuild/makefiles.txt
>
> any information with an example for my requirement is greatly
> appreciated. Also let me know
> how do I expose module/include in sub-module/ c files, looks like
> -I../include is not working


Jan Engelhardt
-- 
-
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