From: Richard Cochran [mailto:[email protected]]
Data: Saturday, November 23, 2013 12:03 AM
>It looks like your toolchain search path is messed up. Can you compile the
>following simple program with it?
>
>---
>#include <limits.h>
>int main()
>{
> return INT_MAX;
>}
>---
>
>Thanks,
>Richard
I have solve the issue which caused by cross compiler issue. And I change the
makefile as below that can pass the compiling.
diff --git a/makefile b/makefile
index 37cbaf9..f410c07 100644
--- a/makefile
+++ b/makefile
@@ -17,10 +17,12 @@
KBUILD_OUTPUT =
+INCLUDES := -I
/opt/freescale/usr/local/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include
+
DEBUG =
-CC = $(CROSS_COMPILE)gcc
+#CC = $(CROSS_COMPILE)gcc
VER = -DVER=$(version)
-CFLAGS = -Wall $(VER) $(incdefs) $(DEBUG) $(EXTRA_CFLAGS)
+CFLAGS = -Wall $(VER) $(incdefs) $(DEBUG) $(EXTRA_CFLAGS) $(INCLUDES)
LDLIBS = -lm -lrt $(EXTRA_LDFLAGS)
PRG = ptp4l pmc phc2sys hwstamp_ctl
OBJ = bmc.o clock.o clockadj.o clockcheck.o config.o fault.o \
@@ -79,7 +81,7 @@ distclean: clean
%.d: %.c
@echo DEPEND $<; \
rm -f $@; \
- $(CC) -MM $(CPPFLAGS) $(CFLAGS) $< > $@.$$$$; \
+ $(CC) -MM -static $(CPPFLAGS) $(CFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
Thanks,
Richard
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Linuxptp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-users