Skip to contentSkip to conversation

(e)glibc.inc: add minimal sane kernel versions

PATCH In review Tom Rini 5 participants 8 messages May 30, 2009 – Jun 1, 2009

lore
Share & tools
lore

Tom Rini

author
#0 lore raw
Quoted 6 lines · Roman Khimov

(e)glibc is configured for OLDEST_KERNEL, certain target architectures have specific requirements for kernel versions, if that are not satisfied (e)glibc reconfigures itself with what it think more appropriate and warns user that there is misconfiguration on his side.

Add minimal sane kernel versions for architectures requiring that.

Sorry for the late reply, I'd make one last request however, move OLDEST_KERNEL from bitbake.conf to these files as well.

Signature · 1 line
Tom Rini
#1 lore raw

Hello Tom,

Quoted 11 lines · Tom Rini
Quoted 6 lines · Roman Khimov

(e)glibc is configured for OLDEST_KERNEL, certain target architectures have specific requirements for kernel versions, if that are not satisfied (e)glibc reconfigures itself with what it think more appropriate and warns user that there is misconfiguration on his side.

Add minimal sane kernel versions for architectures requiring that.

Sorry for the late reply, I'd make one last request however, move OLDEST_KERNEL from bitbake.conf to these files as well.

Fully agreed; it is not distro dependant and neither is suppose to be adjusted very ofthen and then this ought to be set in the class files to make it clear where it is used.

Signature · 3 lines
Otavio Salvador                  O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br
#2 lore raw
Quoted 10 lines · Otavio Salvador

Hello Tom,

Quoted 7 lines · Tom Rini
Quoted 5 lines · Roman Khimov

(e)glibc is configured for OLDEST_KERNEL, certain target architectures have specific requirements for kernel versions, if that are not satisfied (e)glibc reconfigures itself with what it think more appropriate and warns user that there is misconfiguration on his side.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Add minimal sane kernel versions for architectures requiring that.

Sorry for the late reply, I'd make one last request however, move OLDEST_KERNEL from bitbake.conf to these files as well.

Fully agreed; it is not distro dependant and neither is suppose to be adjusted very ofthen and then this ought to be set in the class files to make it clear where it is used.

OLDEST_KERNEL is, at least partially, distro dependent: this was its original purpose, and it would be a shame to lose the ability to override it from DISTRO.conf. But, moving the default definition from bitbake.conf to (e)glibc.inc would be fine if it's also changed to a weak assignment (?=) at the same time.

p.

#3 lore raw

Hello,

Quoted 5 lines · Phil Blundell

OLDEST_KERNEL is, at least partially, distro dependent: this was its original purpose, and it would be a shame to lose the ability to override it from DISTRO.conf.  But, moving the default definition from bitbake.conf to (e)glibc.inc would be fine if it's also changed to a weak assignment (?=) at the same time.

Mind to explain an use case where we'd need to override it?

Signature · 3 lines
Otavio Salvador                  O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br
author
#4 lore raw
Quoted 8 lines · Otavio Salvador

Hello,

Quoted 5 lines · Phil Blundell

OLDEST_KERNEL is, at least partially, distro dependent: this was its original purpose, and it would be a shame to lose the ability to override it from DISTRO.conf.  But, moving the default definition from bitbake.conf to (e)glibc.inc would be fine if it's also changed to a weak assignment (?=) at the same time.

I thought it was weak already..

Quoted 1 line

Mind to explain an use case where we'd need to override it?

If *libc can drop all compat for older stuff (ie MIPS would get the 2.4.0 min, but I only care about 2.6) and I know I don't care about 2.4, I want that space back.

Signature · 1 line
Tom Rini
#5 lore raw
Quoted 11 lines · Tom Rini
Quoted 8 lines · Otavio Salvador

Hello,

Quoted 5 lines · Phil Blundell

OLDEST_KERNEL is, at least partially, distro dependent: this was its original purpose, and it would be a shame to lose the ability to override it from DISTRO.conf. But, moving the default definition from bitbake.conf to (e)glibc.inc would be fine if it's also changed to a weak assignment (?=) at the same time.

I thought it was weak already..

Doh, you're quite right, so it is. Nevermind then.

p.

#6 lore raw

PATCH 1/1 (e)glibc.inc: add minimal sane kernel versions, move from bitbake.conf

In reply to Tom Rini

(e)glibc is configured for OLDEST_KERNEL, certain target architectures have specific requirements for kernel versions, if that are not satisfied (e)glibc reconfigures itself with what it think more appropriate and warns user that there is misconfiguration on his side.

Add minimal sane kernel versions for architectures requiring that.

Also move (e)glibc-specific OLDEST_KERNEL variable from bitbake.conf to (e)glibc.inc files that are more appropriate for this.

---
 conf/bitbake.conf              |    2 --
 conf/distro/include/eglibc.inc |   11 +++++++++++
 conf/distro/include/glibc.inc  |   11 +++++++++++
 3 files changed, 22 insertions(+), 2 deletions(-)
conf/bitbake.conf +0 -2
index 0caa162..e711a1f 100644
@@ -656,8 +656,6 @@ require conf/enterprise.conf
 # Weak variables (usually to retain backwards compatibility)
 ##################################################################
 
-OLDEST_KERNEL ?= "2.4.0"
-
 DL_DIR ?= "${TMPDIR}/downloads"
 IMAGE_FSTYPES ?= "tar.gz"
 PCMCIA_MANAGER ?= "pcmcia-cs"
conf/distro/include/eglibc.inc +11 -0
index 0d2087e..0443140 100644
@@ -7,3 +7,14 @@ PREFERRED_PROVIDER_virtual/libintl ?= "eglibc"
 PREFERRED_PROVIDER_virtual/libc = "eglibc"
 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-initial = "eglibc-initial"
 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "eglibc"
+
+# eglibc is configured for OLDEST_KERNEL kernel version, so we set minimal
+# sane versions there
+
+OLDEST_KERNEL ?= "2.4.0"
+
+# ARM OABI is fine with 2.4.0, EABI is not, so we override on "-gnueabi"
+# TARGET_OS here, not on architecture which is 'arm' in both cases
+OLDEST_KERNEL_linux-gnueabi ?= "2.6.16"
+OLDEST_KERNEL_sparc64 ?= "2.4.21"
+OLDEST_KERNEL_ppc64 ?= "2.4.21"
conf/distro/include/glibc.inc +11 -0
index f9140ff..2cb6502 100644
@@ -7,3 +7,14 @@ PREFERRED_PROVIDER_virtual/libintl ?= "glibc"
 PREFERRED_PROVIDER_virtual/libc = "glibc"
 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-initial = "glibc-initial"
 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "glibc"
+
+# glibc is configured for OLDEST_KERNEL kernel version, so we set minimal
+# sane versions there
+
+OLDEST_KERNEL ?= "2.4.0"
+
+# ARM OABI is fine with 2.4.0, EABI is not, so we override on "-gnueabi"
+# TARGET_OS here, not on architecture which is 'arm' in both cases
+OLDEST_KERNEL_linux-gnueabi ?= "2.6.14"
+OLDEST_KERNEL_sparc64 ?= "2.4.21"
+OLDEST_KERNEL_ppc64 ?= "2.4.21"
Signature · 7 lines
1.6.3.1


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
author Acked-by on v1 1/1
#7 lore raw

Re: [PATCH] (e)glibc.inc: add minimal sane kernel versions, move from bitbake.conf

Quoted 9 lines · Roman I Khimov

(e)glibc is configured for OLDEST_KERNEL, certain target architectures have specific requirements for kernel versions, if that are not satisfied (e)glibc reconfigures itself with what it think more appropriate and warns user that there is misconfiguration on his side.

Add minimal sane kernel versions for architectures requiring that.

Also move (e)glibc-specific OLDEST_KERNEL variable from bitbake.conf to (e)glibc.inc files that are more appropriate for this.

Thanks.

Quoted 72 lines
---
 conf/bitbake.conf              |    2 --
 conf/distro/include/eglibc.inc |   11 +++++++++++
 conf/distro/include/glibc.inc  |   11 +++++++++++
 3 files changed, 22 insertions(+), 2 deletions(-)
conf/bitbake.conf +0 -2
index 0caa162..e711a1f 100644
@@ -656,8 +656,6 @@ require conf/enterprise.conf
 # Weak variables (usually to retain backwards compatibility)
 ##################################################################
 
-OLDEST_KERNEL ?= "2.4.0"
-
 DL_DIR ?= "${TMPDIR}/downloads"
 IMAGE_FSTYPES ?= "tar.gz"
 PCMCIA_MANAGER ?= "pcmcia-cs"
conf/distro/include/eglibc.inc +11 -0
index 0d2087e..0443140 100644
@@ -7,3 +7,14 @@ PREFERRED_PROVIDER_virtual/libintl ?= "eglibc"
 PREFERRED_PROVIDER_virtual/libc = "eglibc"
 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-initial = "eglibc-initial"
 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "eglibc"
+
+# eglibc is configured for OLDEST_KERNEL kernel version, so we set minimal
+# sane versions there
+
+OLDEST_KERNEL ?= "2.4.0"
+
+# ARM OABI is fine with 2.4.0, EABI is not, so we override on "-gnueabi"
+# TARGET_OS here, not on architecture which is 'arm' in both cases
+OLDEST_KERNEL_linux-gnueabi ?= "2.6.16"
+OLDEST_KERNEL_sparc64 ?= "2.4.21"
+OLDEST_KERNEL_ppc64 ?= "2.4.21"
conf/distro/include/glibc.inc +11 -0
index f9140ff..2cb6502 100644
@@ -7,3 +7,14 @@ PREFERRED_PROVIDER_virtual/libintl ?= "glibc"
 PREFERRED_PROVIDER_virtual/libc = "glibc"
 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-initial = "glibc-initial"
 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "glibc"
+
+# glibc is configured for OLDEST_KERNEL kernel version, so we set minimal
+# sane versions there
+
+OLDEST_KERNEL ?= "2.4.0"
+
+# ARM OABI is fine with 2.4.0, EABI is not, so we override on "-gnueabi"
+# TARGET_OS here, not on architecture which is 'arm' in both cases
+OLDEST_KERNEL_linux-gnueabi ?= "2.6.14"
+OLDEST_KERNEL_sparc64 ?= "2.4.21"
+OLDEST_KERNEL_ppc64 ?= "2.4.21"
Signature · 13 lines
1.6.3.1


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Tom Rini