Skip to content

Commit

Permalink
Synology support now more explicit
Browse files Browse the repository at this point in the history
Johan Vromans tested the changes on DS413. The changes I added before
are more Synology specific (though perhaps not only appropriate for
Synology) but at least wider than just armv5tel
  • Loading branch information
H.Merijn Brand committed Nov 11, 2013
1 parent ff4a442 commit 79a1863
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 46 deletions.
56 changes: 27 additions & 29 deletions hints/linux.sh
Expand Up @@ -361,35 +361,33 @@ if [ -r /usr/lib/libndbm.so -a -x /usr/bin/nm ] ; then
fi
fi

# Linux on ARM. This is just one case, possibly needs more exceptions
case "`uname -m`" in
arm*tel)
if [ -d /opt/arm-none-linux-gnueabi ]; then
# Tested on Synology DS213
# CPU model Marvell Kirkwood mv6282 ARMv5te
# Linux 2.6.32.12 #3211 Tue Apr 16 20:04:57 CST 2013 armv5tel GNU/Linux
# All development stuff is installed in /opt, which is probably a
# symbolic link to /volum1/@opt
# Without /opt/* nothing works. The devel tools installed with ipkg
# all end up in /opt
export LD_LIBRARY_PATH=/opt/local/lib:/opt/lib:/usr/local/lib:/usr/lib:/lib:${LD_LIBRARY_PATH:-}
if [ "$LANG" = "" -o "$LANG" = "C" ]; then
echo 'Your LANG is safe'
else
echo 'Please set $LANG to "C". All other $LANG settings will cause havoc' >&4
LANG=C
fi
echo 'Setting up to use /opt/*' >&4
locincpth="/opt/local/include /opt/include $locincpth"
libpth="/opt/local/lib /opt/lib $libpth"
libspth="/opt/local/lib /opt/lib $libspth"
loclibpth="/opt/local/lib /opt/lib $loclibpth"
# POSIX will not link without the pthread lib
libswanted="$libswanted pthread"
echo "$libswanted" >&4
fi
;;
esac
# Linux on Synology.
if [ -f /etc/synoinfo.conf -a -d /usr/syno ]; then
# Tested on Synology DS213 and DS413
# OS version info in /etc.defaults/VERSION
# http://forum.synology.com/wiki/index.php/What_kind_of_CPU_does_my_NAS_have
# Synology DS213 running DSM 4.3-3810-0 (2013-11-06)
# CPU model Marvell Kirkwood mv6282 ARMv5te
# Linux 2.6.32.12 #3810 Wed Nov 6 05:13:41 CST 2013 armv5tel GNU/Linux
# Synology DS413 running DSM 4.3-3810-0 (2013-11-06)
# CPU model Freescale QorIQ P1022 ppc (e500v2)
# linux 2.6.32.12 #3810 ppc GNU/Linux
# All development stuff installed with ipkg is in /opt
if [ "$LANG" = "" -o "$LANG" = "C" ]; then
echo 'Your LANG is safe'
else
echo 'Please set $LANG to "C". All other $LANG settings will cause havoc' >&4
LANG=C
fi
echo 'Setting up to use /opt/*' >&4
locincpth="/opt/include $locincpth"
libpth="/opt/lib $libpth"
libspth="/opt/lib $libspth"
loclibpth="/opt/lib $loclibpth"
# POSIX will not link without the pthread lib
libswanted="$libswanted pthread"
echo "$libswanted" >&4
fi

# This script UU/usethreads.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use threads.
Expand Down
22 changes: 5 additions & 17 deletions pod/perldelta.pod
Expand Up @@ -265,28 +265,16 @@ XXX

=head1 Platform Support

=over 4

=item arm5tel

Platforms based on cheap ARM CPU's (like the Marvell Kirkwood mv6282) not
meant for workstations or development boxes should build now. The basic
problems are the non-standard location for tools.

=back

=head2 New Platforms

XXX List any platforms that this version of perl compiles on, that previous
versions did not. These will either be enabled by new files in the F<hints/>
directories, or new subdirectories and F<README> files at the top level of the
source tree.

=over 4

=item XXX-some-platform
=item Synology

XXX
Synology ships its NAS boxes with a lean Linux distribution (DSM) on relative
cheap CPU's (like the Marvell Kirkwood mv6282 - ARMv5tel or Freescale QorIQ
P1022 ppc - e500v2) not meant for workstations or development. These boxes
should build now. The basic problems are the non-standard location for tools.

=back

Expand Down

0 comments on commit 79a1863

Please sign in to comment.