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 20:17:46 -0700	[thread overview]
Message-ID: <20060705201746.3438e944.rdunlap@xenotime.net> (raw)
In-Reply-To: <4960.58.105.227.226.1152155926.squirrel@58.105.227.226>

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  3:15 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 ` Randy.Dunlap [this message]
2006-07-06  5:32   ` O_TARGET yh
2006-07-06  5:32     ` O_TARGET Randy.Dunlap
     [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=20060705201746.3438e944.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

Powered by JetHome