summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-06-19 12:43:09 (GMT)
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-07-07 11:44:36 (GMT)
commit28dba2a2843bf6d5c16256a8e4df47ce18ec48f1 (patch)
tree976b631a76f142b704b6131de452bb045efb90f9
parent23a3a3c746261c3ecb2aa961d91f988f0602a032 (diff)
downloaddefinitions-28dba2a2843bf6d5c16256a8e4df47ce18ec48f1.tar.gz
Proper support for powerpc64 (little and big endian)
-rw-r--r--elements/gnu-toolchain/stage2-glibc.bst14
-rw-r--r--project.conf6
2 files changed, 16 insertions, 4 deletions
diff --git a/elements/gnu-toolchain/stage2-glibc.bst b/elements/gnu-toolchain/stage2-glibc.bst
index a5153c5..043dccb 100644
--- a/elements/gnu-toolchain/stage2-glibc.bst
+++ b/elements/gnu-toolchain/stage2-glibc.bst
@@ -100,9 +100,11 @@ config:
# Install a symlink for the program interpreter (ld.so) so that binaries
# built in stage 3 before the stage 3 glibc is built can use it.
- # FIXME: get a better way of finding the name of the loader. The lib64
- # path is hardcoded into glibc in the file
- # sysdeps/unix/sysv/linux/configure.
+ #
+ # The name of the dynamic loader is hardcoded in GCC during its 'configure'
+ # stage, but the file is actually provided by the libc (usually GLIBC). It
+ # would be better if we could ask GCC or GLIBC what the expected name of the
+ # ld.so is for the given platform rather than figuring it out
- install -d %{install-root}/lib
- |
case "%{bst-target-arch}" in
@@ -110,7 +112,11 @@ config:
install -d "%{install-root}/lib64"
ln -s "%{prefix}/lib/ld-linux-x86-64.so.2" \
"%{install-root}/lib64/ld-linux-x86-64.so.2" ;;
- ppc64l|ppc64b)
+ ppc64l)
+ install -d "%{install-root}/lib64"
+ ln -s "%{prefix}/lib/ld64.so.2" \
+ "%{install-root}/lib64/ld64.so.2" ;;
+ ppc64b)
install -d "%{install-root}/lib64"
ln -s "%{prefix}/lib/ld64.so.1" \
"%{install-root}/lib64/ld64.so.1" ;;
diff --git a/project.conf b/project.conf
index 2e5dbeb..7644547 100644
--- a/project.conf
+++ b/project.conf
@@ -54,3 +54,9 @@ arches:
mips32l:
variables:
cpu: mipsel
+ ppc64b:
+ variables:
+ cpu: powerpc64
+ ppc64l:
+ variables:
+ cpu: powerpc64le