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

BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom ["Jennings, Richard R" <Richard.Jennings@MW.Boeing.com> (fwd)



>From owner-rtl Tue May  8 09:04:38 2001
Received: from stl-smtpout-01.boeing.com (stl-smtpout-01.boeing.com [12.13.247.21])
	by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f48F4bJ22019
	for <rtl@fsmlabs.com>; Tue, 8 May 2001 09:04:38 -0600
Received: from stl-av-01.boeing.com ([192.76.190.6])
	by stl-smtpout-01.boeing.com (8.9.2/8.8.5-M2) with ESMTP id KAA27795
	for <rtl@fsmlabs.com>; Tue, 8 May 2001 10:00:34 -0500 (CDT)
Received: from stl-hub-01.boeing.com (localhost [127.0.0.1])
	by stl-av-01.boeing.com (8.9.3/8.9.2/MBS-AV-01) with ESMTP id KAA18086
	for <rtl@fsmlabs.com>; Tue, 8 May 2001 10:00:32 -0500 (CDT)
Received: from xch-mwbh-01.stl.mo.boeing.com by stl-hub-01.boeing.com with ESMTP for rtl@fsmlabs.com; Tue, 8 May 2001 10:00:27 -0500
Received: by xch-mwbh-01.mdc.com with Internet Mail Service (5.5.2650.21)
	id <KM6QKRN7>; Tue, 8 May 2001 10:00:26 -0500
Message-Id: <71E8F52EF0B5D211B69B0008C7A45BAA02BD2B5A@xch-stl-05.mdc.com>
From: "Jennings, Richard R" <Richard.Jennings@MW.Boeing.com>
To: "'rtl@fsmlabs.com'" <rtl@fsmlabs.com>
Subject: RE: [rtl] Make file.
Date: Tue, 8 May 2001 10:00:24 -0500 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain

I see the -c in the compile command in the dependencies.  What I
don't see is the -DMODULE in the compile for lp_main, mrt_io.

Hope this helps.
Rich

-----Original Message-----
From: jjk@mathstar.com [mailto:jjk@mathstar.com]
Sent: Monday, May 07, 2001 1:31 PM
To: rtl@fsmlabs.com
Subject: RE: [rtl] Make file.


Dont you have to compile with the -c option to make a module?  I dont
see that anywhere down there.


-----Original Message-----
From:	Tony Denault
Sent:	Fri 5/4/2001 1:06 AM
To:	rtl@fsmlabs.com
Cc:
Subject:	[rtl] Make file.


I've installed rtlinux 3.0 on a 2.2.18 (slackware) kernel. I was able to
write and run a program that create periodic thread and write to a rtl
fifo. My next step was to break up the source into muliple files:
  lp_mod.c - module load/cleanup
  lp_main.c - start of new thread
  myrt_io.c - some support function.

The created the following makefile:

RTINCLUDE = -I/usr/src/rtlinux/linux/include
-I/usr/src/rtlinux-3.0/include
            -I/usr/src/rtlinux-3.0/include/compat
-I/usr/src/rtlinux-3.0/include/posix
INCLUDE =  $(RTINCLUDE) -I../include
CFLAGS  = -D__KERNEL__ -Wall -Wstrict-prototypes -fno-strict-aliasing
-D__SMP__
   -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2
    -malign-functions=2 -DCPU=686 -g -D__RTL__ -D_LOOSE_KERNEL_NAMES
    -O2 $(INCLUDE)
CC = gcc

all: lp.o

lp.o: lp_mod.o lp_main.o mrt_io.o
   ld -r -o lp.o lp_mod.o lp_main.o mrt_io.o

lp_mod.o: lp_mod.c
   $(CC) $(CFLAGS) -DMODULE -c lp_mod.c

lp_main.o: lp_main.c
   $(CC) $(CFLAGS) -c lp_main.c

mrt_io.o: mrt_io.c
   $(CC) $(CFLAGS) -c mrt_io.c

clean:
   rm -f *.o


The problem? I can't create a good loadable module? Either I am
missing module information, can find stuff like stdio, can't compile due
to multiple define in system header...very frustrating. I'm not a
makefile
expert, but have been doing C / Linux program for a number of years.

Any advice on make, order of #includes<>, etc, is appreciated..

Tony

/-----------------------------------------------------------------------
------\
| Tony Denault                        | Internet:
denault@irtf.ifa.hawaii.edu |
| NASA IRTF, Institute of Astronomy   |                 Phone: (808)
974-4206 |
| 1175 Manono St., Bldg 393           |                   Fax: (808)
974-4207 |
| Hilo, Hawaii 96720                  |
|
\-----------------------------------------------------------------------
------/



-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/



----Admin Comment----

Content-Type: application/ms-tnef;
	name="winmail.dat"
Content-Transfer-Encoding: base64

what is and who needs winmail.dat ? 
what ever it was I removed it, pleas drop these littl M$-gimics
I guess they are only usable for wasting bandwidth and triggering
paranoid admins virus-scanners :) 

thx !
hofrat
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/