Hello,
I'm trying to build RTnet for an embedded board(arm processor) with a
Davicom dm9000 Ethernet controller, I added the new driver in the driver
folder, then modify the GNUmakefile.am and Kconfig in the drivers folder,
and configure.ac in the main folder (the patch contain these changes).
I use the script autogen.sh, then menuconfig without any error.
I compile with :
make ARCH=arm CROSS_COMPILE=arm-linux- install
which send me an error during the compilation :
...
make[1]: folder« rtnet-0.9.11/drivers »
make[2]: *** No rules to build the target « +@ », needed by « all-local.ko
». Stop.
I have tried with menuconfig and manually with configure, and I have each
times the same error message, "+@" seems to be the variable
RTNET_KBUILD_CMD. The patch is too large to be join
Have you any idea of what should be my problem ?
Thankfully,
WALLOIS Cyril
diff -u -r /home/utc/Bureau/rtnet-0.9_3/configure.ac /home/utc/Bureau/rtnet-0.9_2/configure.ac
--- /home/utc/Bureau/rtnet-0.9_3/configure.ac 2009-04-13 17:18:18.000000000 +0200
+++ /home/utc/Bureau/rtnet-0.9_2/configure.ac 2010-03-08 16:24:05.372420000 +0100
@@ -991,6 +991,16 @@
AC_MSG_RESULT([${CONFIG_RTNET_DRV_E1000_NEW:-n}])
AM_CONDITIONAL(CONFIG_RTNET_DRV_E1000_NEW,[test "$CONFIG_RTNET_DRV_E1000_NEW" = "y"])
+AC_MSG_CHECKING([whether to build DM9000 Ethernet driver])
+AC_ARG_ENABLE(dm9000,
+ AS_HELP_STRING([--enable-DM9000], [build DM9000 Ethernet driver]),
+ [case "$enableval" in
+ y | yes) CONFIG_RTNET_DRV_DM9000=y ;;
+ *) CONFIG_RTNET_DRV_DM9000=n ;;
+ esac])
+AC_MSG_RESULT([${CONFIG_RTNET_DRV_DM9000:-n}])
+AM_CONDITIONAL(CONFIG_RTNET_DRV_DM9000,[test "$CONFIG_RTNET_DRV_DM9000" = "y"])
+
AC_MSG_CHECKING([whether to build AT91 Ethernet [AT91RM9200] driver])
AC_ARG_ENABLE(at91ether,
AS_HELP_STRING([--enable-at91ether], [build AT91 Ethernet driver]),
diff -u -r /home/utc/Bureau/rtnet-0.9_3/drivers/GNUmakefile.am /home/utc/Bureau/rtnet-0.9_2/drivers/GNUmakefile.am
--- /home/utc/Bureau/rtnet-0.9_3/drivers/GNUmakefile.am 2009-02-28 14:34:03.000000000 +0100
+++ /home/utc/Bureau/rtnet-0.9_2/drivers/GNUmakefile.am 2010-03-08 11:15:19.261406000 +0100
@@ -20,6 +20,7 @@
EXTRA_LIBRARIES = \
libkernel_8139too.a \
libkernel_at91_ether.a \
+ libkernel_dm9000.a \
libkernel_eepro100.a \
libkernel_eth1394.a \
libkernel_loopback.a \
@@ -51,6 +52,15 @@
rt_at91_ether.c \
rt_at91_ether.h
+libkernel_dm9000_a_CPPFLAGS = \
+ $(RTEXT_KMOD_CFLAGS) \
+ -I$(top_srcdir)/stack/include \
+ -I$(top_builddir)/stack/include
+
+libkernel_dm9000_a_SOURCES = \
+ rt_dm9000.c \
+ rt_dm9000.h
+
libkernel_eepro100_a_CPPFLAGS = \
$(RTEXT_KMOD_CFLAGS) \
-I$(top_srcdir)/stack/include \
@@ -153,6 +163,10 @@
OBJS += rt_at91_ether$(modext)
endif
+if CONFIG_RTNET_DRV_DM9000
+OBJS += rt_dm9000$(modext)
+endif
+
if CONFIG_RTNET_DRV_EEPRO100
OBJS += rt_eepro100$(modext)
endif
@@ -203,6 +217,9 @@
rt_at91_ether.o: libkernel_at91_ether.a
$(LD) --whole-archive $< -r -o $@
+rt_dm9000.o: libkernel_dm9000.a
+ $(LD) --whole-archive $< -r -o $@
+
rt_eepro100.o: libkernel_eepro100.a
$(LD) --whole-archive $< -r -o $@
@@ -244,6 +261,7 @@
# 2.6 build
all-local.ko: $(libkernel_8139too_a_SOURCES) \
$(libkernel_at91_ether_a_SOURCES) \
+ $(libkernel_dm9000_a_SOURCES) \
$(libkernel_eepro100_a_SOURCES) \
$(libkernel_eth1394_a_SOURCES) \
$(libkernel_loopback_a_SOURCES) \
@@ -254,7 +272,7 @@
$(libkernel_pcnet32_a_SOURCES) \
$(libkernel_smc91111_a_SOURCES) \
$(libkernel_macb_a_SOURCES) \
- $(libkernel_via_rhine_a_SOURCES) FORCE
+ $(libkernel_via_rhine_a_SOURCES) FORCE \
$(RTNET_KBUILD_CMD)
install-exec-local: $(OBJS)
@@ -266,6 +284,7 @@
clean-local: $(libkernel_8139too_a_SOURCES) \
$(libkernel_at91_ether_a_SOURCES) \
+ $(libkernel_dm9000_a_SOURCES) \
$(libkernel_eepro100_a_SOURCES) \
$(libkernel_eth1394_a_SOURCES) \
$(libkernel_loopback_a_SOURCES) \
diff -u -r /home/utc/Bureau/rtnet-0.9_3/drivers/Kconfig /home/utc/Bureau/rtnet-0.9_2/drivers/Kconfig
--- /home/utc/Bureau/rtnet-0.9_3/drivers/Kconfig 2009-02-28 14:34:03.000000000 +0100
+++ /home/utc/Bureau/rtnet-0.9_2/drivers/Kconfig 2010-03-08 09:57:51.893452000 +0100
@@ -94,6 +94,9 @@
if ARCH = arm
+config RTNET_DRV_DM9000
+ bool "Armadeus Board Ethernet Driver"
+
config RTNET_DRV_AT91ETHER
bool "AT91RM9200 Board Ethernet Driver"
Seulement dans /home/utc/Bureau/rtnet-0.9_2/drivers: rt_dm9000.c
Seulement dans /home/utc/Bureau/rtnet-0.9_2/drivers: rt_dm9000.h
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users