[lkml]   [1996]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[C] /proc/summary
Folks -

I've been hacking away at a /proc/summary entry for quick reference
when commenting on your kernel. I thought that it would be a
one-stop-shop for certain major configuration information.

One thing that I wanted to place in there was the GCC CFLAGS that were
used to compile the kernel.

My question is, are these stored anyplace in the kernel ? If not, I
was thinking the easiest solution would be to do something like the
following in a Makefile someplace

gcc (... normal stuff ...) -DKFLAGS="${CFLAGS}"

That way my routine in proc/array.c could output it.

Does this seem like a clean way of doing it? Or perhaps something is
already in place?

Comments? And please, no flames, I'm just a simpleton trying to learn
more ....

Another Mailing List personality of Nicholas J. Leon

Linux Kernel Database []

"It is by caffeine alone I set my mind in motion, it is by the beans of
Java that thoughts acquire speed, the hands acquire shaking, the shaking
becomes a warning, it is by caffeine alone I set my mind in motion."

 \ /
  Last update: 2005-03-22 13:37    [W:0.041 / U:0.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site