All of lore.kernel.org
 help / color / mirror / Atom feed
From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: build external module splited into several files
Date: Mon, 4 Apr 2016 11:47:40 -0700	[thread overview]
Message-ID: <20160404184740.GC32131@kroah.com> (raw)
In-Reply-To: <1459792809.2543.80.camel@cvidal.org>

On Mon, Apr 04, 2016 at 08:00:09PM +0200, Colin Vidal wrote:
> Hi all,
> 
> I'm currently reading LDD the 3rd edition. Chapter 2 says that if we
> need for example to build module "foo.c" which is split in two other
> files "sub1.c" and "sub2.c", we just have to define the following
> Kbuild variable in the makefile:
> 
> foo-objs := sub1.o sub2.o
> 
> I suppose that?
> 
> foo-y := sub1.o sub2.o
> 
> has the same semantic ? That's not very clear to me.

Nope, not at all, stick with the "foo-objs" string instead please.

That should resolve your other issues here.

hope this helps,

greg k-h

  reply	other threads:[~2016-04-04 18:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-04 18:00 build external module splited into several files Colin Vidal
2016-04-04 18:47 ` Greg KH [this message]
2016-04-04 19:43   ` Colin Vidal

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=20160404184740.GC32131@kroah.com \
    --to=greg@kroah.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.