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:   Thu, 25 Jan 2018 21:42:17 +0100
From:   Sam Ravnborg <sam@...nborg.org>
To:     Jakub Kicinski <kubakici@...pl>
Cc:     linux-kbuild@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>
Subject: Re: Mutli-directory module Makefiles

Hi Jakub.

On Mon, Jan 22, 2018 at 01:46:07PM -0800, Jakub Kicinski wrote:
> Hi!
> 
> in drivers/net/ethernet/netronome/nfp there is a module which is built
> from C sources in 4 directories.  What is the best way to handle that?

Move all .c files to th same directory - like done for almost
all other drives.
In this case we have a directory: drivers/net/ethernet/netronome
which is just an indirection to nfp/
and nfp/ contains a structure with 25 .c files in subdirs.

With some careful renaming everything could reside in
one dir without loosing any structure.
And then the driver starts to look a bit
more like any other driver in the kernel.

And as an added benefit some of the other goodies like
building single files just works.

	Sam

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ