Porting open NTP to arm platform

Source: Internet
Author: User
Tags openssl library

Work needs ah, need to transplant open source NTP to arm926 platform.

(1) Now Source: http://www.ntp.org/downloads.html

I'm under version: 4.2.8P1

(2) Unzip and place it where you like.

(3) Read the Readme file carefully and follow the steps it says to start compiling

(4) configuration./configure, you can add some parameters, I use a script to do this process:

#!/bin/bash. /configure cc=/opt/sourcery-arm-201203/bin/arm-none-linux-gnueabi-gcc cppflags=-i/home/xxx/ openssl-1.0. 2/include ldflags=-s libs=-l/home/xxx/ntp-4.2. 8p1/openssl-installed/lib--prefix=/home/xxx/ntp- 4.2. 8p1--exec-prefix=/home/xxx/ntp-4.2. 8P1--host=arm-none-linux-gnueabi--with-yielding-  Select=yes--enable-openssl >&./xxx_config-host
CC=/OPT/SOURCERY-ARM-201203/BIN/ARM-NONE-LINUX-GNUEABI-GCC: specifying Cross Compiler
Cppflags=-i/home/xxx/openssl-1.0.2/include: You need to use the OpenSSL library for compilation, so you have to compile the OpenSSL library before you can view the previous article: Arm-linux porting OpenSSL. This specifies the path of the inventory drop
Ldflags=-s: Not clear the reason, anyway, with the connection library specified in the following, do not seem to add
Libs=-l/home/xxx/ntp-4.2.8p1/openssl-installed/lib: Make will find Lib library file, specify the location to find, this is different from the above cppflags, but also to specify
--prefix=/home/xxx/ntp-4.2.8p1--exec-prefix=/home/xxx/ntp-4.2.8p1  : These two steps specify where the compiled files are stored, ( Seems to have not worked very well, should be my personal situation, in short add)
--host=arm-none-linux-gnueabi: Specifies the environment for late-running devices, which is somewhat similar to the target platform
--with-yielding-select=yes : Plus, no side hints not configured
--enable-openssl: Plus don't know if it's useless, anyway.
>&./xxx_config-host: The compilation process is printed to a file for easy observation, can be deleted
Note the point:
CC's designation must be in front, put in the end seems not to

(5) Run this script and configure OK after it is finished. Then it is make, it should be made successful, and the execution file appears in the respective directory.

(6) According to the needs of the evening compiling process and operating environment, to this point, the compilation of the approximate end.


Porting open NTP to arm platform

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.