Modify distro/minimal.conf to use glibc and add an eglibc-based minimal distribution
PATCH 1/1 Modify distro/minimal.conf to use glibc and add an eglibc-based minimal distribution
1. conf/distro/minimal-eglibc.conf: add minimal distribution based on eglibc.
2. conf/distro/minimal.conf: use glibc instead of eglibc
--- conf/distro/minimal-eglibc.conf | 41 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-) create mode 100644 conf/distro/minimal-eglibc.conf
conf/distro/minimal-eglibc.conf new file +41 -0
@@ -0,0 +1,41 @@ +#----------------------------------------------------------------------------- +#@TYPE: Distribution +#@NAME: Minimal uClibc +#@DESCRIPTION: uClibc based Embedded Linux Distribution Configuration (minimal) +# +#@COMMENT: This distribution configuration serves as a starting point for +#@COMMENT: the integration of new target platforms, machines, or distributions. +#@COMMENT: It bases on conservative settings and should always be buildable. +#----------------------------------------------------------------------------- + +# +# Header +# +DISTRO_NAME = "minimal-eglibc" + +TARGET_FPU_arm = "soft" +TARGET_FPU_armeb = "soft" + +LIBC = "eglibc" + +require conf/distro/minimal.conf + +# NOTE: +# +# We get the DISTRO_FEATURES defined in minimal.conf here but +# however there are some features like mips -mplt support which +# is not supported on uclibc yet so we need to disable that +# feature for uclibc based distributions, therefore we redefine +# the DISTRO_FEATURES for minimal-uclibc and notably leave mplt +# out. Make sure that if there is a new DISTRO_FEATURE thats added +# to minimal.conf will not get included in minimal-uclibc.conf +# it has to be added to the below selection if it should also be +# enabled for minimal-uclibc + +# FEATURE SELECTION +############################################################################# +# We want images supporting the following features (for task-base) +DISTRO_FEATURES = "nfs smbfs wifi ppp alsa ext2 vfat pcmcia usbgadget usbhost pci" +# Following features are for ARM and E500 based machines +DISTRO_FEATURES += "eabi" +
Signature · 1 line
1.5.4.3
PATCH 1/1 change uclibc to eglibc on comments
--- conf/distro/minimal-eglibc.conf | 14 +++++++------- conf/distro/minimal.conf | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-)
conf/distro/minimal-eglibc.conf +7 -7
@@ -1,7 +1,7 @@ #----------------------------------------------------------------------------- #@TYPE: Distribution -#@NAME: Minimal uClibc -#@DESCRIPTION: uClibc based Embedded Linux Distribution Configuration (minimal) +#@NAME: Minimal eglibc +#@DESCRIPTION: eglibc based Embedded Linux Distribution Configuration (minimal) # #@COMMENT: This distribution configuration serves as a starting point for #@COMMENT: the integration of new target platforms, machines, or distributions.
@@ -24,13 +24,13 @@ require conf/distro/minimal.conf # # We get the DISTRO_FEATURES defined in minimal.conf here but # however there are some features like mips -mplt support which -# is not supported on uclibc yet so we need to disable that -# feature for uclibc based distributions, therefore we redefine -# the DISTRO_FEATURES for minimal-uclibc and notably leave mplt +# is not supported on eglibc yet so we need to disable that +# feature for eglibc based distributions, therefore we redefine +# the DISTRO_FEATURES for minimal-eglibc and notably leave mplt # out. Make sure that if there is a new DISTRO_FEATURE thats added -# to minimal.conf will not get included in minimal-uclibc.conf +# to minimal.conf will not get included in minimal-eglibc.conf # it has to be added to the below selection if it should also be -# enabled for minimal-uclibc +# enabled for minimal-eglibc # FEATURE SELECTION #############################################################################
conf/distro/minimal.conf +1 -1
@@ -86,7 +86,7 @@ OVERRIDES = "local:${MACHINE}:${MACHINE_CLASS}:${DISTRO}:${TARGET_OS}:${TARGET_A ############################################################################# # TOOLCHAIN ############################################################################# -LIBC ?= "eglibc" +LIBC ?= "glibc" require conf/distro/include/sane-toolchain.inc #############################################################################
Signature · 1 line
1.5.4.3
Re: [PATCH] change uclibc to eglibc on comments
Quoted 43 lines · Guo Hongruan
---
conf/distro/minimal-eglibc.conf | 14 +++++++-------conf/distro/minimal.conf| 2 +-2 files changed, 8 insertions(+), 8 deletions(-)conf/distro/minimal-eglibc.conf +7
-7@@ -1,7 +1,7 @@ #----------------------------------------------------------------------------- #@TYPE: Distribution -#@NAME: Minimal uClibc -#@DESCRIPTION: uClibc based Embedded Linux Distribution Configuration (minimal) +#@NAME: Minimal eglibc +#@DESCRIPTION: eglibc based Embedded Linux Distribution Configuration (minimal) # #@COMMENT: This distribution configuration serves as a starting point for #@COMMENT: the integration of new target platforms, machines, or distributions.@@ -24,13 +24,13 @@ require conf/distro/minimal.conf # # We get the DISTRO_FEATURES defined in minimal.conf here but # however there are some features like mips -mplt support which -# is not supported on uclibc yet so we need to disable that -# feature for uclibc based distributions, therefore we redefine -# the DISTRO_FEATURES for minimal-uclibc and notably leave mplt +# is not supported on eglibc yet so we need to disable that +# feature for eglibc based distributions, therefore we redefine +# the DISTRO_FEATURES for minimal-eglibc and notably leave mplt # out. Make sure that if there is a new DISTRO_FEATURE thats added -# to minimal.conf will not get included in minimal-uclibc.conf +# to minimal.conf will not get included in minimal-eglibc.conf # it has to be added to the below selection if it should also be -# enabled for minimal-uclibc +# enabled for minimal-eglibc # FEATURE SELECTION #############################################################################conf/distro/minimal.conf +0
-0
conf/distro/minimal.conf OVERRIDES = "local:${MACHINE}:${MACHINE_CLASS}:${DISTRO}:${TARGET_OS}:${TARGET_A · line 89
Quoted 5 lines
conf/distro/minimal.conf +1
-1@@ -86,7 +86,7 @@ OVERRIDES = "local:${MACHINE}:${MACHINE_CLASS}:${DISTRO}:${TARGET_OS}:${TARGET_A ############################################################################# # TOOLCHAIN ############################################################################# -LIBC ?= "eglibc" +LIBC ?= "glibc"
We have intentionally switched to use eglibc as default C library for minimal. As you can see its a weak assignment which means
you can still override it in you local.conf but the default is to stay as it is
Thanks
-Khem
Quoted 2 lines · Guo Hongruan
1.
conf/distro/minimal-eglibc.conf: add minimal distribution based on eglibc.
2.conf/distro/minimal.conf: use glibc instead of eglibc
What's the reason for this change? If eglibc is deficient in some way then I would prefer to either see it fixed, or just switch minimal back to using glibc generically. I am not sure that adding another distro variant for this is a good idea.
p.
No, it is not a bug. I just want to specify the libc type explicitly in the distribution name.
Quoted 17 lines · 在 Tue, 22 Dec 2009 17:25:49 +0800,Phil Blundell <[email protected]> 写道:
Quoted 2 lines · Guo Hongruan
1.
conf/distro/minimal-eglibc.conf: add minimal distribution based on eglibc.
2.conf/distro/minimal.conf: use glibc instead of eglibcWhat's the reason for this change? If eglibc is deficient in some way then I would prefer to either see it fixed, or just switch minimal back to using glibc generically. I am not sure that adding another distro variant for this is a good idea.
p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 5 lines
Guo Hongruan, Embedded Linux Consultant Mobile: +86-0-13484056007 Skype: camelguo Twitter: camelguo http://www.gulessoft.com
Quoted 2 lines · Guo Hongruan
No, it is not a bug. I just want to specify the libc type explicitly in the distribution name.
This isn't what your patch does, though: it changes the "minimal" distro from eglibc to glibc. Are you saying that this isn't what you actually wanted to do?
p.
Leon Woestenberg
NAKHello,
Quoted 2 lines · Guo Hongruan
1.
conf/distro/minimal-eglibc.conf: add minimal distribution based on eglibc.
2.conf/distro/minimal.conf: use glibc instead of eglibc
NAK.
OE is not supposed to have a different distribution file name for each for the variants.
Regards,
Signature · 1 line
Leon
I reviewed the minimal-uclibc.conf. So I added the minimal-eglibc.conf. No, it is not a must.
Quoted 12 lines · 在 Wed, 23 Dec 2009 21:52:23 +0800,Leon Woestenberg…
Hello,
Quoted 2 lines · Guo Hongruan
1.
conf/distro/minimal-eglibc.conf: add minimal distribution based on eglibc.
2.conf/distro/minimal.conf: use glibc instead of eglibcNAK.
OE is not supposed to have a different distribution file name for each for the variants.
Regards,
Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant Skype: camelguo Twitter: camelguo http://www.gulessoft.com