public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* [crosstool-ng] eglibc and option-groups
@ 2009-05-07 21:18 Nye Liu
  2009-05-07 22:06 ` Yann E. MORIN
  0 siblings, 1 reply; 3+ messages in thread
From: Nye Liu @ 2009-05-07 21:18 UTC (permalink / raw)
  To: crossgcc

Has anybody played with eglibc's option-groups.defaults or
option-groups.config?

Any ideas how best to integrate it cleanly into ct-ng?

The main detail is that option-groups.config is expected to be in
$(objdir) ... i.e. targets/[blah]/build/*libc*/, whereas
options-groups.defaults is used in situ (srcdir)

-- 
Nye Liu
nliu@mrv.com
(818) 772-6235x248
(818) 772-0576 fax

"Who would be stupid enough to quote a fictitious character?"
	-- Don Quixote

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [crosstool-ng] eglibc and option-groups
  2009-05-07 21:18 [crosstool-ng] eglibc and option-groups Nye Liu
@ 2009-05-07 22:06 ` Yann E. MORIN
  2009-07-24 11:36   ` Arnaud Vrac
  0 siblings, 1 reply; 3+ messages in thread
From: Yann E. MORIN @ 2009-05-07 22:06 UTC (permalink / raw)
  To: crossgcc; +Cc: Nye Liu

Nye,
All,

On Thursday 07 May 2009 23:18:45 Nye Liu wrote:
> Has anybody played with eglibc's option-groups.defaults or
> option-groups.config?
> Any ideas how best to integrate it cleanly into ct-ng?
> The main detail is that option-groups.config is expected to be in
> $(objdir) ... i.e. targets/[blah]/build/*libc*/, whereas
> options-groups.defaults is used in situ (srcdir)

This is a config file for eglibc. Curently, it is taken as-is.
Handling it the same way uClibc handles its config file seems
reasonable to me.

For uClibc, there is no default config file. The user is expected to
give one. For eglibc, we can be a little smarter:

1) add an option asking the user if he/she has a config file
   - if so, prompt for a path to that config file

2) in the build script, function do_libc_check_config:
   - if a config file was specified in menuconfig,
     - copy that one to ${FTX_CONFIG_DIR}/eglibc.config
   - if no config file was specified in menuconfig,
     - copy the default one to ${FTX_CONFIG_DIR}/eglibc.config
       (for the sake of homogeneity)

3) in the build script, functions do_libc_start_files and do_libc:
   - copy ${FTX_CONFIG_DIR}/eglibc.config to objdir, ie. $(pwd)

Note: you may wonder why we copy the file in the first place to
${FTX_CONFIG_DIR}, when it is copied a second time to objdir?
Because of restartable builds. If we have to munge the eglibc
config file for our own internal use, it must be available if
we restart the build later... And even if we don't munge it,
let's do things the same way everywhere, it's easier...

BTW, I've unmark eglibc being EXPERIMENTAL. For Debian to switch to
eglibc (see: http://blog.aurel32.net/?p=47 ), we can safely assume
that it is stable enough! ;-)

Regards,
Yann E. MORIN.

PS. Tomorrow is off in France, so that will be a looong WE.
    I'll be on vacation, and totaly unreachable until monday,
    and starting about... right now!
    "Party time! Excellent!" :-)
YEM.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| --==< ^_^ >==-- `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
`------------------------------^-------^------------------^--------------------'


--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [crosstool-ng] eglibc and option-groups
  2009-05-07 22:06 ` Yann E. MORIN
@ 2009-07-24 11:36   ` Arnaud Vrac
  0 siblings, 0 replies; 3+ messages in thread
From: Arnaud Vrac @ 2009-07-24 11:36 UTC (permalink / raw)
  To: crossgcc

Yann E. MORIN wrote:

> Nye,
> All,
> 
> On Thursday 07 May 2009 23:18:45 Nye Liu wrote:
>> Has anybody played with eglibc's option-groups.defaults or
>> option-groups.config?
>> Any ideas how best to integrate it cleanly into ct-ng?
>> The main detail is that option-groups.config is expected to be in
>> $(objdir) ... i.e. targets/[blah]/build/*libc*/, whereas
>> options-groups.defaults is used in situ (srcdir)
> 
> This is a config file for eglibc. Curently, it is taken as-is.
> Handling it the same way uClibc handles its config file seems
> reasonable to me.
> 

Also, it would be nice to handle the files that needs to be provided when 
the OPTION_EGLIBC_NSSWITCH option is disabled. The two options to handle 
these file paths are OPTION_EGLIBC_NSSWITCH_CONFIG and 
OPTION_EGLIBC_NSSWITCH_FUNCTIONS, with example files provided in the nss/ 
directory in eglibc.

We can use the paths set in the toolchain config if they are set, otherwise 
use the default ones. Then copy the files in ${CT_CONFIG_DIR} and set the 
correct paths in the ${CT_CONFIG_DIR}/eglibc.config.

Regards,

-- 
Arnaud Vrac

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-24 11:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-07 21:18 [crosstool-ng] eglibc and option-groups Nye Liu
2009-05-07 22:06 ` Yann E. MORIN
2009-07-24 11:36   ` Arnaud Vrac

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 read-only IMAP folder(s) and NNTP newsgroup(s).