* [2.6 patch] Doc/kbuild/makefiles.txt: check_gcc -> cc-option
@ 2004-10-27 20:25 Adrian Bunk
2004-10-30 22:18 ` Sam Ravnborg
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2004-10-27 20:25 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: linux-kernel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It's not good to show the obsolete check_gcc in an example.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
- --- linux-2.6.10-rc1-mm1-full/Documentation/kbuild/makefiles.txt.old 2004-10-27 19:58:24.000000000 +0200
+++ linux-2.6.10-rc1-mm1-full/Documentation/kbuild/makefiles.txt 2004-10-27 20:03:24.000000000 +0200
@@ -707,15 +707,17 @@
probe supported options:
#arch/i386/Makefile
- - check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc \
- - /dev/null\ > /dev/null 2>&1; then echo "$(1)"; \
- - else echo "$(2)"; fi)
- - cflags-$(CONFIG_MCYRIXIII) += $(call check_gcc,\
- - -march=c3,-march=i486)
- - CFLAGS += $(cflags-y)
+ ...
+ cflags-$(CONFIG_MPENTIUMII) += $(call cc-option,\
+ -march=pentium2,-march=i686)
+ ...
+ # Disable unit-at-a-time mode ...
+ CFLAGS += $(call cc-option,-fno-unit-at-a-time)
+ ...
- - The above examples both utilise the trick that a config option expands
+
+ The first examples utilises the trick that a config option expands
to 'y' when selected.
CFLAGS_KERNEL $(CC) options specific for built-in
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFBgAQjmfzqmE8StAARAlpgAJwMs91KxFXt6J5CMIxX7CBmU+ck2QCggOtq
79uRYePvlHJEQ+lSKgNzzdQ=
=o4Vo
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [2.6 patch] Doc/kbuild/makefiles.txt: check_gcc -> cc-option
2004-10-27 20:25 [2.6 patch] Doc/kbuild/makefiles.txt: check_gcc -> cc-option Adrian Bunk
@ 2004-10-30 22:18 ` Sam Ravnborg
0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2004-10-30 22:18 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Sam Ravnborg, linux-kernel
On Wed, Oct 27, 2004 at 10:25:07PM +0200, Adrian Bunk wrote:
> It's not good to show the obsolete check_gcc in an example.
Agreed!
Applied,
Sam
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-30 20:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-27 20:25 [2.6 patch] Doc/kbuild/makefiles.txt: check_gcc -> cc-option Adrian Bunk
2004-10-30 22:18 ` Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).