[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Iperf does not build



Hi Tom,

Curran, Tom wrote:
I am using petalinux-v0.30-rc1 to target my Xilinx Spartan3A1800 board
want to include the iperf network app in my kernel image, but it does
not build when selected in 'make menuconfig'.  Has anyone else had this
problem?  Any idea what the issue could be?

Sorry for the delay, some work travel and Christmas etc got in the way.

Attached patch will get iperf building, and will be included in next release.

Apply at patchlevel -p0 from petalinux-dist directory

$ cd petalinux-dist
$ patch -p0 < iperf.patch

Regards,

John
Index: user/iperf/src/Makefile.in
===================================================================
--- user/iperf/src/Makefile.in	(revision 3389)
+++ user/iperf/src/Makefile.in	(revision 3390)
@@ -209,7 +209,7 @@
 		stdio.c \
 		tcp_window_size.c
 
-iperf_LDADD = $(LIBCOMPAT_LDADDS)
+iperf_LDADD = $(LIBCOMPAT_LDADDS) $(PTHREAD_LIBS)
 all: all-am
 
 .SUFFIXES:
Index: user/iperf/src/Makefile.am
===================================================================
--- user/iperf/src/Makefile.am	(revision 3389)
+++ user/iperf/src/Makefile.am	(revision 3390)
@@ -33,4 +33,4 @@
 		stdio.c \
 		tcp_window_size.c
 
-iperf_LDADD = $(LIBCOMPAT_LDADDS)
+iperf_LDADD = $(LIBCOMPAT_LDADDS) $(PTHREAD_LIBS)
Index: user/iperf/config.sub
===================================================================
--- user/iperf/config.sub	(revision 3389)
+++ user/iperf/config.sub	(revision 3390)
@@ -238,6 +238,7 @@
 	| i370 | i860 | i960 | ia64 \
 	| ip2k | iq2000 \
 	| m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
+	| microblaze | mb \
 	| mips | mipsbe | mipseb | mipsel | mipsle \
 	| mips16 \
 	| mips64 | mips64el \
@@ -314,6 +315,7 @@
 	| m32r-* | m32rle-* \
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
 	| m88110-* | m88k-* | maxq-* | mcore-* \
+	| microblaze-* | mb-* \
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
 	| mips16-* \
 	| mips64-* | mips64el-* \
Index: user/Makefile
===================================================================
--- user/Makefile	(revision 3389)
+++ user/Makefile	(revision 3390)
@@ -150,6 +150,7 @@
 dir_$(CONFIG_USER_INIT_EXPAND)              += init
 dir_$(CONFIG_USER_INIT_INIT)                += init
 dir_$(CONFIG_USER_IPCHAINS_IPCHAINS)        += ipchains
+dir_$(CONFIG_USER_IPERF_IPERF)		    += iperf
 dir_$(CONFIG_USER_IPFWADM_IPFWADM)          += ipfwadm
 dir_$(CONFIG_USER_IPMASQADM_IPMASQADM)      += ipmasqadm
 dir_$(CONFIG_USER_IPPORTFW_IPPORTFW)        += ipportfw