mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rdunlap@xenotime.net>
To: yh@bizmail.com.au
Cc: linux-kernel@vger.kernel.org
Subject: Re: O_TARGET
Date: Wed, 5 Jul 2006 22:32:31 -0700	[thread overview]
Message-ID: <20060705223231.785f2419.rdunlap@xenotime.net> (raw)
In-Reply-To: <4314.58.105.227.226.1152163948.squirrel@58.105.227.226>

On Thu, 6 Jul 2006 15:32:28 +1000 (EST) yh@bizmail.com.au wrote:

> Thanks Randy, that works. But now it generated a NewSerial.ko instead of
> NewSerial.o in kernel 2.6, this caused a problem when I called the insmod,
> the insmod added another .o as follows:
> 
> insmod NewSerial.ko
> insmod: NewSerial.ko.o: no module by that name found
> 
> Is it possible for me to get a NewSerial.o, not a NewSerail.ko?

Nope, loadable modules in 2.6.x are *.ko files.
That's what insmod and modprobe expect.

Are using module-init-tools instead of modutils?
You should be.


> Thank you.
> 
> Jim
> 
> > On Thu, 6 Jul 2006 13:18:46 +1000 (EST) yh@bizmail.com.au wrote:
> >
> >> Hi,
> >>
> >> The O_TARGET is no longer valid in kernel 2.4, what is the replacement
> >> of
> >> following module object in kernel 2.6?
> >>
> >> O_TARGET := NewSerial.o
> >>
> >> obj-y   := new_s_driver.o queue.o
> >> obj-m   := $(O_TARGET)
> >
> > You just want a trivial Makefile ?
> >
> > See Documentation/kbuild/makefiles.txt for more info.
> >
> > Here is a working trivial example:
> >
> > #################### begin ###################3
> > # usage:
> > # make -C /path/to/kernel/source M=/path/to/source/TARGET/ [modules]
> >
> > obj-m := TARGET.o
> >
> > clean-files := *.o *.ko *.mod.c
> > ############# end #######################
> >
> > M= implies modules, so modules is optional.
> > I usually use M=$PWD (after cd to TARGET dir).

---
~Randy

  reply	other threads:[~2006-07-06  5:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-06  3:18 O_TARGET yh
2006-07-06  3:17 ` O_TARGET Randy.Dunlap
2006-07-06  5:32   ` O_TARGET yh
2006-07-06  5:32     ` Randy.Dunlap [this message]
     [not found] <fa.MfrVuze0cVJi+KUSsOCGQQfE92g@ifi.uio.no>
     [not found] ` <fa.nsRAsUZV+GPQB1UlyIFSnCjSxYs@ifi.uio.no>
2006-07-06  5:32   ` O_TARGET Robert Hancock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060705223231.785f2419.rdunlap@xenotime.net \
    --to=rdunlap@xenotime.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=yh@bizmail.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®