public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] crosstool-ng: missing ntp userland MOD_ macros, ecjx.o  should use native compiler
@ 2009-09-24 10:39 Nye Liu
  2009-09-26 21:23 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Nye Liu @ 2009-09-24 10:39 UTC (permalink / raw)
  To: crossgcc, yann.morin.1998

# HG changeset patch
# User nyet@mrv.com
# Date 1253788137 25200
# Node ID bf85e2f5ac55100512f26956be251c42f58068a9
# Parent  16a2eaf5fd778a6e3eb5ec6b8ec3e0d3e2a28bdb
ntp uses MOD_NANO not ADJ_NANO
ecjx.cc -> ecjx.o should use native compiler, not cross compiler

diff -r 16a2eaf5fd77 -r bf85e2f5ac55 patches/eglibc/2_10/110-ntp-MOD-prefix.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/eglibc/2_10/110-ntp-MOD-prefix.patch	Thu Sep 24 03:28:57 2009 -0700
@@ -0,0 +1,13 @@
+diff -ur eglibc-2_10-orig/sysdeps/unix/sysv/linux/sys/timex.h eglibc-2_10/sysdeps/unix/sysv/linux/sys/timex.h
+--- eglibc-2_10-orig/sysdeps/unix/sysv/linux/sys/timex.h	2009-04-30 14:37:18.000000000 -0700
++++ eglibc-2_10/sysdeps/unix/sysv/linux/sys/timex.h	2009-09-24 03:00:05.590174161 -0700
+@@ -83,6 +83,9 @@
+ #define MOD_ESTERROR	ADJ_ESTERROR
+ #define MOD_STATUS	ADJ_STATUS
+ #define MOD_TIMECONST	ADJ_TIMECONST
++#define MOD_TAI		ADJ_TAI
++#define MOD_MICRO	ADJ_MICRO
++#define MOD_NANO	ADJ_NANO
+ #define MOD_CLKB	ADJ_TICK
+ #define MOD_CLKA	ADJ_OFFSET_SINGLESHOT /* 0x8000 in original */
+ 
diff -r 16a2eaf5fd77 -r bf85e2f5ac55 patches/gcc/4.3.4/400-ecjx-host-cc.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/gcc/4.3.4/400-ecjx-host-cc.patch	Thu Sep 24 03:28:57 2009 -0700
@@ -0,0 +1,13 @@
+diff -ur gcc-4.3.4-orig/libjava/Makefile.in gcc-4.3.4/libjava/Makefile.in
+--- gcc-4.3.4-orig/libjava/Makefile.in	2009-08-04 04:12:27.000000000 -0700
++++ gcc-4.3.4/libjava/Makefile.in	2009-09-23 22:03:15.750951483 -0700
+@@ -8874,6 +8874,9 @@
+ ecjx$(EXEEXT): $(ecjx_OBJECTS) $(ecjx_DEPENDENCIES) 
+ 	@rm -f ecjx$(EXEEXT)
+ 	$(ecjx_LINK) $(ecjx_LDFLAGS) $(ecjx_OBJECTS) $(ecjx_LDADD) $(LIBS)
++ecjx.$(OBJEXT): $(ecjx_SOURCES)
++	@rm -f ecjx.$(OBJEXT)
++	$(CC_FOR_BUILD) $(BUILD_CFLAGS) -c -o $@ $<
+ gappletviewer$(EXEEXT): $(gappletviewer_OBJECTS) $(gappletviewer_DEPENDENCIES) 
+ 	@rm -f gappletviewer$(EXEEXT)
+ 	$(gappletviewer_LINK) $(gappletviewer_LDFLAGS) $(gappletviewer_OBJECTS) $(gappletviewer_LDADD) $(LIBS)
diff -r 16a2eaf5fd77 -r bf85e2f5ac55 patches/linux/2.6.31/100-ntp-MOD-prefix.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/linux/2.6.31/100-ntp-MOD-prefix.patch	Thu Sep 24 03:28:57 2009 -0700
@@ -0,0 +1,13 @@
+diff -ur linux-2.6.31-orig/include/linux/timex.h linux-2.6.31/include/linux/timex.h
+--- linux-2.6.31-orig/include/linux/timex.h	2009-09-09 15:13:59.000000000 -0700
++++ linux-2.6.31/include/linux/timex.h	2009-09-24 03:13:13.218174137 -0700
+@@ -122,6 +122,9 @@
+ #define MOD_ESTERROR	ADJ_ESTERROR
+ #define MOD_STATUS	ADJ_STATUS
+ #define MOD_TIMECONST	ADJ_TIMECONST
++#define MOD_TAI		ADJ_TAI
++#define MOD_MICRO	ADJ_MICRO
++#define MOD_NANO	ADJ_NANO
+ 
+ 
+ /*
-- 
Nye Liu
nliu@mrv.com
(818) 772-6235x248
(818) 772-0576 fax

"Who would be stupid enough to quote a fictitious character?"
	-- Don Quixote

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] crosstool-ng: missing ntp userland MOD_ macros, ecjx.o  should use native compiler
  2009-09-24 10:39 [PATCH] crosstool-ng: missing ntp userland MOD_ macros, ecjx.o should use native compiler Nye Liu
@ 2009-09-26 21:23 ` Yann E. MORIN
  0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2009-09-26 21:23 UTC (permalink / raw)
  To: crossgcc; +Cc: Nye Liu

Nye,
All,

On Thursday 24 September 2009 12:39:47 Nye Liu wrote:
> # HG changeset patch
> # User nyet@mrv.com
> # Date 1253788137 25200
> # Node ID bf85e2f5ac55100512f26956be251c42f58068a9
> # Parent  16a2eaf5fd778a6e3eb5ec6b8ec3e0d3e2a28bdb
> ntp uses MOD_NANO not ADJ_NANO
> ecjx.cc -> ecjx.o should use native compiler, not cross compiler

It seems that patch fixes two things, one part related to ecjx, the other
part retaed to fixing glibc and exported kernel headers.

Could you split that into two patches, please?

Also, what is the exact reason for the MOD_ macros wrt NTP? The macros are
nowhere to be found, except in the NTP code. I think the following patch
would be a better fit:
http://www.mail-archive.com/pld-cvs-commit@lists.pld-linux.org/msg191184.html

I looked at the latest kernel sources from Linus' git tree, and there is no
MOD_ macros in there either. Do you know the time-realted tree, by chance?

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| --==< ^_^ >==-- `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
`------------------------------^-------^------------------^--------------------'



--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-26 21:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-24 10:39 [PATCH] crosstool-ng: missing ntp userland MOD_ macros, ecjx.o should use native compiler Nye Liu
2009-09-26 21:23 ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).