Modify

Opened 10 years ago

Closed 9 years ago

Last modified 4 years ago

#3711 closed enhancement (fixed)

[patch] Support for different Xlibc libraries (glibc, eglibc, ...)

Reported by: luigi.mantellini@… Owned by: nico
Priority: high Milestone: Barrier Breaker 14.07
Component: toolchain Version:
Keywords: Cc:

Description

Hi,

I think that adding the support for eglibc/glibc, OpenWRT will become a wide used build tool.
Many peopole is interested to have a -gnu compatible embedded building system to cover rojects from router firmware to generic applications.

I propose these patches that add a support for eglibc with the following limitations:

  • I tested only PowerPC targets -> other targets should use the "ports" plug-in
  • basefiles package should be updated in order to copy the correct files into the rootfs.

The patches are available here: http://repo.or.cz/w/openwrt_comio.git?a=shortlog;h=refs/heads/multi-libc

Best regards.

Attachments (2)

openwrt-xlibc-r12259.diff (77.3 KB) - added by nico 9 years ago.
Alternate libc implementations patch (against r12259)
openwrt-xlibc-v2-r12272.diff (81.6 KB) - added by nico 9 years ago.
updated the patch (v2) against r12272. Optimize for i486 when building for x86/uml. Fix issues building cross-compiler when host arch = target arch.

Download all attachments as: .zip

Change History (9)

comment:1 follow-up: Changed 10 years ago by nico

  • Component changed from base system to toolchain
  • Milestone changed from Kamikaze 808 to Kamikaze
  • Owner changed from developers to nico
  • Status changed from new to assigned

Hi Luigi,

I also started working on alternate libc implementations and had a similar approach to yours. I'll take a look at your patches and see how we can integrate theese in our build environment.

Thanks

  • Nico

comment:2 in reply to: ↑ 1 Changed 10 years ago by anonymous

Replying to nico:

Hi Luigi,

I also started working on alternate libc implementations and had a similar approach to yours. I'll take a look at your patches and see how we can integrate theese in our build environment.

Thanks

  • Nico

I noticed that the my git tree is confuse...

These are the commits that should be interesting for you:

commit 3b95b24a6c871c5cf5f0c04280a725cc4483cf7e
Author: Luigi 'Comio' Mantellini <luigi.mantellini@…>
Date: Thu Jul 3 10:25:02 2008 +0200

Delete backup files.

--
Merge: 3cf28c5... abf5738...
Author: Luigi 'Comio' Mantellini <luigi.mantellini@…>
Date: Thu Jul 3 10:23:45 2008 +0200

Merge branch 'multi-libc' of git+ssh://repo.or.cz/srv/git/openwrt_comio

commit abf57385e608fd7db83e1f70418b44d1122c0bef
Author: Luigi 'Comio' Mantellini <luigi.mantellini@…>
Date: Thu Jul 3 09:22:43 2008 +0200

Add copyrights information

--
commit 4372a698ca14f223f1bb321d0e0c079f6fa73d47
Author: Luigi 'Comio' Mantellini <luigi.mantellini@…>
Date: Wed Jul 2 23:53:52 2008 +0200

Support for emulated fp.

--
commit 94a67e0623ea9f37fdd05a0de0c5c0a1a3e08bbe
Author: Luigi 'Comio' Mantellini <luigi.mantellini@…>
Date: Wed Jul 2 20:52:29 2008 +0200

Add svn support for eglibc

commit 90d93b795116aed37e0b9c77547bf51a9fbb014f
Author: Luigi 'Comio' Mantellini <luigi.mantellini@…>
Date: Wed Jul 2 19:48:37 2008 +0200

Some fix in order to compile with glibc/eglibc.

commit 762b2ee92f0f487986ee5bb736eaf12bd3134476
Author: Luigi 'Comio' Mantellini <luigi.mantellini@…>
Date: Wed Jul 2 10:24:05 2008 +0200

Adding a specific make-scripts for gcc when eglibc is selected (gcc-eglibc)

--
Merge: 2a80760... 8a8d2c0...
Author: Luigi 'Comio' Mantellini <luigi.mantellini@…>
Date: Sun Jun 29 14:51:31 2008 +0200

Merge branch 'master' of ../OpenWRT.svn into multi-libc

--
commit 2a807607670b36cc60eba5715d39e518f72dc900
Author: Luigi 'Comio' Mantellini <luigi.mantellini@…>
Date: Fri Jun 27 23:50:48 2008 +0200

Clean TARGET strings.

--
commit b4ae9edf906fe720f1562307aceba679b94f6a41
Author: Luigi 'Comio' Mantellini <luigi.mantellini@…>
Date: Fri Jun 27 17:37:44 2008 +0200

Initial support for multi-libc. - Proof of Concept -

ciao

luigi

Changed 9 years ago by nico

Alternate libc implementations patch (against r12259)

comment:3 Changed 9 years ago by nico

  • Milestone changed from Kamikaze to Kamikaze 808 RC-1
  • Priority changed from normal to high

comment:4 Changed 9 years ago by nico

  • Summary changed from Support for different Xlibc libraries (glibc, eglibc, ...) to [patch] Support for different Xlibc libraries (glibc, eglibc, ...)

Only tested on x86 & uml, please review/test it

Changed 9 years ago by nico

updated the patch (v2) against r12272. Optimize for i486 when building for x86/uml. Fix issues building cross-compiler when host arch = target arch.

comment:5 Changed 9 years ago by nico

  • Milestone changed from Kamikaze 808 RC-1 to Kamikaze

comment:6 Changed 9 years ago by nico

  • Resolution set to fixed
  • Status changed from assigned to closed

Support for glibc & eglibc added in [13931]

comment:7 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.