1 #############################################################
5 #############################################################
7 NTP_SOURCE
:=ntp-
$(NTP_VERSION
).
tar.gz
8 NTP_SITE
:=http
://www.eecis.udel.edu
/~ntp
/ntp_spool
/ntp4
9 NTP_DIR
:=$(BUILD_DIR
)/ntp-
$(NTP_VERSION
)
11 NTP_BINARY
:=ntpdate
/ntpdate
12 NTP_TARGET_BINARY
:=usr
/bin
/ntpdate
14 $(DL_DIR
)/$(NTP_SOURCE
):
15 $(WGET
) -P
$(DL_DIR
) $(NTP_SITE
)/$(NTP_SOURCE
)
17 ntp-source
: $(DL_DIR
)/$(NTP_SOURCE
)
19 $(NTP_DIR
)/.unpacked
: $(DL_DIR
)/$(NTP_SOURCE
)
20 $(NTP_CAT
) $(DL_DIR
)/$(NTP_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
21 toolchain
/patch-kernel.sh
$(NTP_DIR
) package
/ntp
/ ntp\
*.patch
22 $(SED
) "s,^#if.*__GLIBC__.*_BSD_SOURCE.*$$,#if 0," \
23 $(NTP_DIR
)/ntpd
/refclock_pcf.c
;
24 touch
$(NTP_DIR
)/.unpacked
26 $(NTP_DIR
)/.configured
: $(NTP_DIR
)/.unpacked
27 (cd
$(NTP_DIR
); rm -rf config.cache
; \
28 $(TARGET_CONFIGURE_OPTS
) \
29 CFLAGS
="$(TARGET_CFLAGS)" \
30 ac_cv_lib_md5_MD5Init
=no \
32 --target
=$(GNU_TARGET_NAME
) \
33 --host
=$(GNU_TARGET_NAME
) \
34 --build
=$(GNU_HOST_NAME
) \
39 --libexecdir
=/usr
/lib \
41 --datadir=/usr
/share \
42 --localstatedir
=/var \
47 --program-transform-name
=s
,,, \
49 --disable-all-clocks \
50 --disable-parse-clocks \
52 --disable-errorcache \
53 --enable-LOCAL-CLOCK \
56 touch
$(NTP_DIR
)/.configured
58 $(NTP_DIR
)/$(NTP_BINARY
): $(NTP_DIR
)/.configured
61 $(TARGET_DIR
)/$(NTP_TARGET_BINARY
): $(NTP_DIR
)/$(NTP_BINARY
)
62 install -m
755 $(NTP_DIR
)/ntpd
/ntpd
$(TARGET_DIR
)/usr
/sbin
/ntpd
63 install -m
755 $(NTP_DIR
)/$(NTP_BINARY
) $(TARGET_DIR
)/$(NTP_TARGET_BINARY
)
65 ntp
: uclibc
$(TARGET_DIR
)/$(NTP_TARGET_BINARY
)
68 rm -f
$(TARGET_DIR
)/usr
/sbin
/ntpd
69 rm -f
$(TARGET_DIR
)/$(NTP_TARGET_BINARY
)
70 -$(MAKE
) -C
$(NTP_DIR
) clean
75 #############################################################
77 # Toplevel Makefile options
79 #############################################################
80 ifeq ($(strip $(BR2_PACKAGE_NTP
)),y
)