[2.6 patch] Doc/kbuild/makefiles.txt: check_gcc -> cc-option

From: Adrian Bunk
Date: Wed Oct 27 2004 - 15:37:52 EST


-----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@xxxxxxxxx>

- --- 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-----
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/