All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Helder Daniel <hdaniel@ualg.pt>
Cc: Michael Smith <2michael.smith@gmail.com>,
	"Xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] rtdm/driver.h location - Xenomai 3.0
Date: Fri, 13 Mar 2015 18:10:16 +0100	[thread overview]
Message-ID: <20150313171016.GG1497@hermes.click-hack.org> (raw)
In-Reply-To: <CAKk99t3XcTPTD=7VoFsJ=hsZeX7mVAR4dnyecCd_yZ2NiiZzzw@mail.gmail.com>

On Fri, Mar 13, 2015 at 05:06:06PM +0000, Helder Daniel wrote:
> I was having the same problem.
> What I did was (for a one source code file module only to keep it simple):
> 
> In the source code: #include <rtdm/driver.h>
> 
> The makefile that I use is:
> 
> obj-m += modulesource.o
> 
> $(eval EXTRA_CFLAGS := $(shell xeno-config --kcflags))
> #or:
> #$(eval ccflags-y = $(shell xeno-config --kcflags))
> 
> all:
> make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
> clean:
> make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
> 
> It assumes that:
> 
> /lib/modules/3.16.0-ipipe/build -> /usr/src/linux-3.16.0-ipipe/
> 
> points the full source tree (not just a headers tree like the one created
> by the debian kbuild)

Once again, typing:

make -C /usr/src/linux-3.16.0-ipipe/ M=$(PWD) modules

is shorter and avoids the need for a symbolic link which requires
root privileges.

-- 
					    Gilles.


  reply	other threads:[~2015-03-13 17:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-13  8:17 [Xenomai] rtdm/driver.h location - Xenomai 3.0 Michael Smith
2015-03-13  9:32 ` Philippe Gerum
2015-03-13 11:42   ` Michael Smith
2015-03-13 16:39     ` Michael Smith
2015-03-13 16:44       ` Gilles Chanteperdrix
2015-03-13 17:06       ` Helder Daniel
2015-03-13 17:10         ` Gilles Chanteperdrix [this message]
2015-03-13 17:16           ` Helder Daniel
2015-03-16  6:15           ` Michael Smith
2015-03-16  9:59     ` Philippe Gerum
2015-03-16 11:09       ` Michael Smith

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=20150313171016.GG1497@hermes.click-hack.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=2michael.smith@gmail.com \
    --cc=hdaniel@ualg.pt \
    --cc=xenomai@xenomai.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.