http://bugs.openembedded.org/show_bug.cgi?id=961
Summary: fix glibc-2.3.5+cvs20050627 build for sh3 and sh4
Product: Openembedded
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Build
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
The fix added for bug #954 only works for sh3 and not for sh4.
There are two issues with building this glibc for sh:
1. glibc is supposed to look in sysdeps/sh/sh3 or sysdeps/sh/sh4 (depending on
the architecture you are building for) and then in sysdeps/sh. However this
doesn't work.. and the glibc build system is rather complex and I have not
managed to figure out how to actually fix the glibc build system to work around
this.
2. For sh4 you also need to enable no-z-defs.
Bug #954 attempted to fix 1 by adding a copy in the .bb file to move the
headers from the sysdeps/sh/sh3 or sysdeps/sh/sh4 directory into the sysdeps/sh
directory. This is fine for sh3, however for sh4 there is an fpu subdirectory
under sysdeps/sh/sh4 that needs to be copied and there are references from the
files in sysdeps/sh/sh4 to files in sysdeps/sh - so a copy results in recusive
inclusions.
The attached patch removes the copy and actually includes a patch to move the
files. I found doing the patch a lot easier to work with than trying to copy
and modify files from with then .bb. There are three seperate patches:
no-z-defs.patch - Enable no-z-defs for sh4 build only
sh3-sysdeps-hack.patch - Patches files from sysdeps/sh/sh3 into sysdeps/sh for
sh3 only.
sh4-sysdeps-hack.patch - Patches files from sysdeps/sh/sh4 into sysdeps/sh for
sh4 only. Takes care of fixing moving the fpu files and editing files to ensure
their are no dependencies.
The sh4 parts of this patch I have been using for several months to build a
router distribution for an sh4 based target.
--
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Oe mailing list
[email protected]
https://www.handhelds.org/mailman/listinfo/oe