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]
Message-ID: <20120328095125.GA16369@aftab>
Date:	Wed, 28 Mar 2012 11:51:25 +0200
From:	Borislav Petkov <bp@...64.org>
To:	Ingo Molnar <mingo@...nel.org>
Cc:	Borislav Petkov <bp@...64.org>, Michal Marek <mmarek@...e.cz>,
	Sam Ravnborg <sam@...nborg.org>, Ingo Molnar <mingo@...e.hu>,
	Arnaldo Carvalho de Melo <acme@...radead.org>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 0/2] tools: Add a toplevel Makefile

On Wed, Mar 28, 2012 at 09:25:28AM +0200, Ingo Molnar wrote:
> 
> * Borislav Petkov <bp@...64.org> wrote:
> 
> > On Mon, Mar 26, 2012 at 05:14:32PM +0200, Ingo Molnar wrote:
> > > 
> > > * Borislav Petkov <bp@...64.org> wrote:
> > > 
> > > > On Sat, Mar 24, 2012 at 08:44:12AM +0100, Ingo Molnar wrote:
> > > > > Could this also be accessible via 'make tools' in the toplevel 
> > > > > Makefile?
> > > > > 
> > > > > I'd love to be able to type:
> > > > > 
> > > > >   make -j tools perf install
> > > > 
> > > > Well,
> > > > 
> > > > you could do
> > > > 
> > > > $ make -j -C tools perf
> > > 
> > > Arguably I could also type:
> > > 
> > >   cd tools/perf; make -j install
> > > 
> > > :-)
> > > 
> > > So I just wanted to bring this up, that integrating it into the 
> > > top level Makefile might make sense. Or not.
> > 
> > Right,
> > 
> > so from dealing with make in the last days, I can say that it's not a
> > fun walk in the park :). The problem is having multiple targets like the
> > following:
> > 
> > $ make -j tools perf install
> > 
> > I have to be able to differentiate in the Makefile which of the targets
> > is a directory ("tools"), which is the actual tool name to build
> > ("perf") and which is a special target ("install") which relates to the
> > tool name coming before it on the command line and is not the "install"
> > target of the main Makefile.
> > 
> > And it becomes nasty very fast if you reorder them
> > 
> > $ make -j install perf tools
> > 
> > where all that sequential info doesn't mean anything anymore.
> > 
> > So, the question is, what we actually want?
> > 
> > $ make -j tools perf install
> > 
> > is pretty cryptic wrt to which target we're actually building and having
> > the -C switch makes stuff a bit clearer IMHO:
> > 
> > $ make -j -C tools perf install
> > 
> > Also, having "install" as the last target means IMO to build the tool
> > before it and then install it.
> > 
> > In the end of the day, probably the most important thing is what is
> > the use case for tools/ which makes most sense. I definitely think the
> > 'help' target is a step in that direction. Being able to do
> > 
> > $ make -C tools
> > 
> > and it give you a short description is pretty helpful.
> > 
> > How about we have:
> > 
> > make tools-<toolname> install
> > 
> > or
> > 
> > make tools/perf install
> > 
> > from the toplevel kernel directory? Would that make more sense from a
> > usability perspective?
> 
> I have no strong preference currently. I think since it affects 
> kbuild it would be nice to know the opinion of the kbuild folks 
> (Cc:-ed): how should the integration of tools/ proceed?

Btw,

I'm currently thinking I want to give the make tools/{perf,help,...}
approach a try because it is clear that it is a subdir of the kernel src
tree and it probably could support all the targets we thought about.

Let me play around with it a bit...

-- 
Regards/Gruss,
Boris.

Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
GM: Alberto Bozzo
Reg: Dornach, Landkreis Muenchen
HRB Nr. 43632 WEEE Registernr: 129 19551
--
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