This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
multiple serial drivers
- From: Thomas Eschenbacher <Thomas dot Eschenbacher at gmx dot de>
- To: ecos-discuss at sources dot redhat dot com
- Date: Mon, 18 Aug 2003 20:43:20 +0200
- Subject: [ECOS] multiple serial drivers
Hi,
I am trying to get a configuration with two serial drivers working, one
for communication and one for debug output. The drivers themselfes
worked fine - as long as I activate only one of them.
The first driver is like the AT91 serial driver, defines it's
CYGDAT_IO_SERIAL_DEVICE_HEADER in his cdl file and so on.
The second (debug board) driver is based on the GENERIC_16X5X and does
not have this define. But as soon as I add this second driver (package)
the first driver gets kicked out!?
I tried to track it down by comparing the two source trees, one with the
first driver only and one with both drivers configured in. This is the
diff of the corresponding makefile:
--------------------------------------------------------------------
--- first_only/devs/serial/arm/xp37/current/makefile
+++ both/devs/serial/arm/xp37/current/makefile
@@ -18,20 +18,14 @@
MLT := $(wildcard $(REPOSITORY)/$(PACKAGE)/include/pkgconf/mlt*.ldi
$(REPOSITORY)/$(PACKAGE)/include/pkgconf/mlt*.h
TESTS :=
-build: headers libextras.a.stamp
+build: headers
-LIBRARY := libextras.a
-COMPILE := src/xp37_serial.c
-OBJECTS := $(COMPILE:.cxx=.o.d)
-OBJECTS := $(OBJECTS:.c=.o.d)
-OBJECTS := $(OBJECTS:.S=.o.d)
+headers: mlt_headers $(PREFIX)/include/cyg/io/arm_xp37_ser_debug.inl
-$(LIBRARY).stamp: $(OBJECTS)
- $(AR) rcs $(PREFIX)/lib/$(@:.stamp=) $(foreach obj,$?,$(dir
$(obj))$(OBJECT_PREFIX)_$(notdir $(obj:.o.d=.o))
- @cat $^ > $(@:.stamp=.deps)
- @touch $@
-
-headers: mlt_headers
+$(PREFIX)/include/cyg/io/arm_xp37_ser_debug.inl:
$(REPOSITORY)/$(PACKAGE)/include/arm_xp37_ser_debug.inl
+ @mkdir -p $(dir $@)
+ @cp $< $@
+ @chmod u+w $@
include $(REPOSITORY)/pkgconf/rules.mak
---------------------------------
This looks weird, how can one serial driver kick out another one?
Is there a place where I can find documentation about how the source
tree is generated? I have no idea what I could have made wrong.
I'm using eCos from CVS, target is ARM7 based, developing under Linux.
No idea which version "ecosconfig" is.
Thomas.
--
________________________________________________________________________
Thomas Eschenbacher <Thomas.Eschenbacher@gmx.de>
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss