[ntp:questions] Help with cross-compiling NTP for the Raspberry Pi requested

David Taylor david-taylor at blueyonder.co.uk.invalid
Thu Mar 6 16:20:27 UTC 2014


On 06/03/2014 05:53, Harlan Stenn wrote:
> I'm very comfortable that the process described at:
>
>   http://support.ntp.org/bin/view/Dev/Cross-compilingNTP
>
> is correct.  It happens to follow the recommended process for
> cross-compiling projects that use autoconf/automake.  NTP is one of
> these.
>
> I've used it many times before at several locations.  I have not had to
> use it over the past few years' time.
>
> There may be more options now, with newer versions of automake and
> autoconf.
[]
> I'd also recommend folks be careful about "mixing" the instructions for
> cross-compiling NTP with the instructions for cross-compiling "other
> things".
>
> H

Harlan, if I am guilty of the latter, it's purely through ignorance 
rather than malice!

I looked for gcc on my system and found:

/home/david/kernel/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/lib/gcc
/home/david/kernel/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/share/doc/gcc-linaro-arm-linux-gnueabihf-raspbian/html/gcc
/home/david/kernel/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/libexec/gcc
/home/david/kernel/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/arm-linux-gnueabihf/bin/gcc
/home/david/kernel/tools/arm-bcm2708/arm-bcm2708-linux-gnueabi/lib/gcc
/home/david/kernel/tools/arm-bcm2708/arm-bcm2708-linux-gnueabi/arm-bcm2708-linux-gnueabi/bin/gcc
/home/david/kernel/tools/arm-bcm2708/arm-bcm2708-linux-gnueabi/libexec/gcc
/home/david/kernel/tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/lib/gcc
/home/david/kernel/tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/libexec/gcc
/home/david/kernel/tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/arm-bcm2708hardfp-linux-gnueabi/bin/gcc
/usr/lib/gcc
/usr/bin/gcc
/usr/share/doc/gcc-4.7-base/gcc
/usr/share/doc/gcc
/usr/share/doc/gcc-4.6-base/gcc
/usr/share/bash-completion/completions/gcc

Those in /home/david/kernel/tools/.. are ones which successfully 
compiled a new kernel and modules for the Rapsberry Pi, when using the 
CCPREFIX method.  I had:

CCPREFIX=/home/david/kernel/tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/bin/arm-bcm2708hardfp-linux-gnueabi-

export CCPREFIX

How, in very simple terms, may I apply the same for cross-compiling NTP?

-- 
Thanks,
David
Web: http://www.satsignal.eu



More information about the questions mailing list