kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: lexa@cfotr.com (aleksey)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Problem with module spanning from multiple files
Date: Wed, 18 Jul 2012 13:40:56 +0400	[thread overview]
Message-ID: <1342604456.3829.14.camel@calculate.local> (raw)
In-Reply-To: <CAC157GCOi4WmzOmZpr9oeL7M31mDDuu1pN1WOgr4w+bWUjmxyw@mail.gmail.com>

On Wed, 2012-07-18 at 11:27 +0200, Philipp Ittershagen wrote:
> On Wed, Jul 18, 2012 at 10:40 AM, aleksey <lexa@cfotr.com> wrote:
> > obj-m = test.o
> > test-objs = test_sub.o
> > all:
> >                 $(MAKE) -C $(KDIR) M=$(shell pwd) modules
> >
> >
> > But the problem is stay. i don't receive any message on module load.
> 
> Apparently, the problem is the name of your obj-m target and the name
> of the other object which should be build. This worked for me:
> 
> 
> obj-m += mytest.o
> 
> mytest-objs += test.o test_sub.o
> 
> 
> Your kernel module will then be called mytest.ko and consists of
> test.o and test_sub.o
> 

Thank you. your advice helped me. I will read documentation more
carefully, i promise.

> Greetings,
> 
>   Philipp

  reply	other threads:[~2012-07-18  9:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-18  7:34 Problem with module spanning from multiple files aleksey
2012-07-18  8:14 ` Philipp Ittershagen
2012-07-18  8:40   ` aleksey
2012-07-18  9:27     ` Philipp Ittershagen
2012-07-18  9:40       ` aleksey [this message]
2012-07-18 14:40     ` Jonathan Neuschäfer

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=1342604456.3829.14.camel@calculate.local \
    --to=lexa@cfotr.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /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;
as well as URLs for NNTP newsgroup(s).