summaryrefslogtreecommitdiffstats
path: root/rules/ntp.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2004-01-22 00:49:19 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2004-01-22 00:49:19 +0000
commit4e3f703fcc689d0bcd61f6e3f83bcc046487c557 (patch)
treeda3b6a504a272943dcee16afde2b863a51ac464d /rules/ntp.make
parent678b4f914029be289ff286957bc85d6df54c71dc (diff)
downloadptxdist-4e3f703fcc689d0bcd61f6e3f83bcc046487c557.tar.gz
ptxdist-4e3f703fcc689d0bcd61f6e3f83bcc046487c557.tar.xz
fix cross compilation of ntp; a host tool was built with the cross compiler
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunk@988 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/ntp.make')
-rw-r--r--rules/ntp.make13
1 files changed, 10 insertions, 3 deletions
diff --git a/rules/ntp.make b/rules/ntp.make
index 80939ee95..241820be4 100644
--- a/rules/ntp.make
+++ b/rules/ntp.make
@@ -1,5 +1,5 @@
# -*-makefile-*-
-# $Id: ntp.make,v 1.2 2003/12/23 10:57:26 robert Exp $
+# $Id: ntp.make,v 1.3 2004/01/22 00:49:19 robert Exp $
#
# Copyright (C) 2003 by Benedikt Spranger
#
@@ -328,7 +328,14 @@ ntp_compile_deps = $(STATEDIR)/ntp.prepare
$(STATEDIR)/ntp.compile: $(ntp_compile_deps)
@$(call targetinfo, $@)
- $(NTP_PATH) make -C $(NTP_DIR)
+
+ # ntp-4.2.0 tries to build ntpdc/ntpdc-layout for the target but
+ # trys to run it on the build machine - this is wrong...
+ perl -i -p -e "s/^CC =/CC ?=/g" $(NTP_DIR)/ntpdc/Makefile
+ cd $(NTP_DIR)/ntpdc && CC=$(HOSTCC) make ntpdc-layout
+
+ # now build the rest
+ cd $(NTP_DIR) && $(NTP_ENV) $(NTP_PATH) make
touch $@
# ----------------------------------------------------------------------------
@@ -339,7 +346,7 @@ ntp_install: $(STATEDIR)/ntp.install
$(STATEDIR)/ntp.install: $(STATEDIR)/ntp.compile
@$(call targetinfo, $@)
- $(NTP_PATH) make -C $(NTP_DIR) install
+ cd $(NTP_DIR) && $(NTP_PATH) make install
touch $@
# ----------------------------------------------------------------------------