Skip to contentSkip to conversation

package/glibc: set --enable-kernel to match kernel

PATCH New Sam Bobroff 3 participants 3 messages Jan 28, 2016 – Feb 23, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/glibc: set --enable-kernel to match kernel

Glibc is currently configured without any "--enable-kernel" option. This causes it to use the oldest possible kernel API, slowing it down and preventing it from using any kernel features from later versions.

Since we are likely building a kernel and matching glibc together, backwards compatability is probably unnecessary so this patch unconditionally configures glibc with --enable-kernel set to BR2_TOOLCHAIN_HEADERS_AT_LEAST.

---

 package/glibc/glibc.mk | 1 +
 1 file changed, 1 insertion(+)
package/glibc/glibc.mk +1 -0
index e60575f..4a9ba0e 100644
@@ -96,6 +96,7 @@ define GLIBC_CONFIGURE_CMDS
 		--disable-profile \
 		--without-gd \
 		--enable-obsolete-rpc \
+		--enable-kernel=$(call qstrip,$(BR2_TOOLCHAIN_HEADERS_AT_LEAST)) \
 		--with-headers=$(STAGING_DIR)/usr/include)
 	$(GLIBC_ADD_MISSING_STUB_H)
 endef
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/1 package/glibc: set --enable-kernel to match kernel

Quoted 10 lines · Sam Bobroff

Glibc is currently configured without any "--enable-kernel" option. This causes it to use the oldest possible kernel API, slowing it down and preventing it from using any kernel features from later versions.

Since we are likely building a kernel and matching glibc together, backwards compatability is probably unnecessary so this patch unconditionally configures glibc with --enable-kernel set to BR2_TOOLCHAIN_HEADERS_AT_LEAST.

Built+boot tested against what we use for OpenPower firmware.

Signature · 2 lines
Stewart Smith
OPAL Architect, IBM.
#2 lore raw

PATCH 1/1 package/glibc: set --enable-kernel to match kernel

In reply to Sam Bobroff

Dear Sam Bobroff,

Quoted 11 lines · Sam Bobroff

Glibc is currently configured without any "--enable-kernel" option. This causes it to use the oldest possible kernel API, slowing it down and preventing it from using any kernel features from later versions.

Since we are likely building a kernel and matching glibc together, backwards compatability is probably unnecessary so this patch unconditionally configures glibc with --enable-kernel set to BR2_TOOLCHAIN_HEADERS_AT_LEAST.

---

Applied to next, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com