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:	Sat, 4 Feb 2012 10:32:59 -0800
From:	Josh Triplett <josh@...htriplett.org>
To:	"H. Peter Anvin" <hpa@...or.com>
Cc:	"linux-kbuild@...r.kernel.org" <linux-kbuild@...r.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Ingo Molnar <mingo@...e.hu>
Subject: Re: Kconfig and toolchain dependencies

On Fri, Feb 03, 2012 at 01:29:09PM -0800, H. Peter Anvin wrote:
> It seems relatively straightforward to do if we were to manifest some
> CONFIG_ variables based on the target toolchain, e.g.
> 
> CONFIG_GCC=0x040601
> 
> ... and perhaps do other tests.  I suspect we would run the tests less
> frequently than what we do right now with the tests embedded in the
> Makefile.
> 
> Does anyone have a feel for if this would be a good addition, and if so
> where it best fits into the chain?

This seems like a *great* idea.  Unfortunately, a quick look at the
implementation of kbuild suggests that it doesn't currently implement
numeric comparisons (<, <=, >, >=), only equality (= and !=).  Most of
the time, a Kconfig file will want to write "depends GCC >=
some_version".

Looking at scripts/kconfig/expr.c, it doesn't look that hard to add,
though.

- Josh Triplett
--
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