7987 from option to #define - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Development > FreeBSD Development

FreeBSD Development Kernel development, writing drivers, coding, and questions regarding FreeBSD internals.

Reply
 
Thread Tools Display Modes
  #1  
Old December 12th, 2011, 08:46
fluca1978 fluca1978 is offline
Member
 
Join Date: May 2010
Posts: 679
Thanks: 28
Thanked 66 Times in 61 Posts
Default from option to #define

Hi all,
this could be trivial, but I'm trying to understand how the kernel customization works. If I get it right, each option line in the kernel configuration line is translated by the config command into a #define for the preprocessor. Now, I don't get why in the compilation directory there is also a config.c which contains a c-readable clone of the configuration file for the kernel, and at the same time the config command produces a set of opt_xxx.h header files with the pre-processor macros. I'm losing a passage here, what is the purpose of the config.c file?

Last edited by DutchDaemon; December 13th, 2011 at 01:36.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] C - include + define - I have a question. valsorym Userland Programming & Scripting 5 December 7th, 2011 14:40
[Solved] Using "#define" in .Xdefaults? dzaharee X.Org 2 August 26th, 2011 03:06
Kernel Option mfarrag FreeBSD Development 5 July 9th, 2011 11:08
Define JID with cat in /etc/rc.conf minimike General 4 October 6th, 2010 15:25
[Solved] ALTQ define upload and download. Mr0wyx Firewalls 8 March 18th, 2010 13:30


All times are GMT +1. The time now is 20:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0