* make headers_install for out-of-tree modules
@ 2015-10-07 13:46 Daniel.
2015-10-07 13:51 ` Daniel.
0 siblings, 1 reply; 5+ messages in thread
From: Daniel. @ 2015-10-07 13:46 UTC (permalink / raw)
To: kernelnewbies
Hi all,
I'm trying to install headers from out-of-tree module. I've writed
this[1] Makefile. I have Kbuild files with header-y tokens poiting for
propper folders and files. When I run "make headers_install" I got
this[2] error message,
[1] http://pastebin.com/9f3kYT8k
[2] http://pastebin.com/yfi69nUi
Any idea?
Best regards,
--
"Do or do not. There is no try"
Yoda Master
^ permalink raw reply [flat|nested] 5+ messages in thread
* make headers_install for out-of-tree modules
2015-10-07 13:46 make headers_install for out-of-tree modules Daniel.
@ 2015-10-07 13:51 ` Daniel.
2015-10-07 15:09 ` Yann Droneaud
2015-10-07 16:09 ` Greg KH
0 siblings, 2 replies; 5+ messages in thread
From: Daniel. @ 2015-10-07 13:51 UTC (permalink / raw)
To: kernelnewbies
Uhh, as I see from docs, this isn't supported,
--- 2.3 Targets
When building an external module, only a subset of the "make"
targets are available.
>From https://www.kernel.org/doc/Documentation/kbuild/modules.txt
So, how can I export ioctl calls defined by an out-of-tree module?
2015-10-07 10:46 GMT-03:00 Daniel. <danielhilst@gmail.com>:
> Hi all,
>
> I'm trying to install headers from out-of-tree module. I've writed
> this[1] Makefile. I have Kbuild files with header-y tokens poiting for
> propper folders and files. When I run "make headers_install" I got
> this[2] error message,
>
> [1] http://pastebin.com/9f3kYT8k
> [2] http://pastebin.com/yfi69nUi
>
> Any idea?
>
> Best regards,
>
> --
> "Do or do not. There is no try"
> Yoda Master
--
"Do or do not. There is no try"
Yoda Master
^ permalink raw reply [flat|nested] 5+ messages in thread
* make headers_install for out-of-tree modules
2015-10-07 13:51 ` Daniel.
@ 2015-10-07 15:09 ` Yann Droneaud
2015-10-07 16:09 ` Greg KH
1 sibling, 0 replies; 5+ messages in thread
From: Yann Droneaud @ 2015-10-07 15:09 UTC (permalink / raw)
To: kernelnewbies
Hi,
Le mercredi 07 octobre 2015 ? 10:51 -0300, Daniel. a ?crit :
> Uhh, as I see from docs, this isn't supported,
>
> --- 2.3 Targets
>
> When building an external module, only a subset of the "make"
> targets are available.
> > From https://www.kernel.org/doc/Documentation/kbuild/modules.txt
>
> So, how can I export ioctl calls defined by an out-of-tree module?
>
I had the same expectation and it was a sad day when I found myself
having to do it manually in the out of tree makefile, having to handle
__user annotations in particular, as it wasn't possible to call
scripts/headers_install.sh as scripts/unifdef.c wasn't compiled and
available in the various kernel build environment provided by
distribution packages.
PS: please, don't top post reply, thanks.
> 2015-10-07 10:46 GMT-03:00 Daniel. <danielhilst@gmail.com>:
> > Hi all,
> >
> > I'm trying to install headers from out-of-tree module. I've writed
> > this[1] Makefile. I have Kbuild files with header-y tokens poiting
> > for
> > propper folders and files. When I run "make headers_install" I got
> > this[2] error message,
> >
> > [1] http://pastebin.com/9f3kYT8k
> > [2] http://pastebin.com/yfi69nUi
> >
> > Any idea?
Regards.
--
Yann Droneaud
OPTEYA
^ permalink raw reply [flat|nested] 5+ messages in thread
* make headers_install for out-of-tree modules
2015-10-07 13:51 ` Daniel.
2015-10-07 15:09 ` Yann Droneaud
@ 2015-10-07 16:09 ` Greg KH
2015-10-08 20:48 ` Daniel.
1 sibling, 1 reply; 5+ messages in thread
From: Greg KH @ 2015-10-07 16:09 UTC (permalink / raw)
To: kernelnewbies
On Wed, Oct 07, 2015 at 10:51:25AM -0300, Daniel. wrote:
> Uhh, as I see from docs, this isn't supported,
>
> --- 2.3 Targets
>
> When building an external module, only a subset of the "make"
> targets are available.
> >From https://www.kernel.org/doc/Documentation/kbuild/modules.txt
>
> So, how can I export ioctl calls defined by an out-of-tree module?
You get your out-of-tree module merged into the tree and it's
automatically solved for you :)
^ permalink raw reply [flat|nested] 5+ messages in thread
* make headers_install for out-of-tree modules
2015-10-07 16:09 ` Greg KH
@ 2015-10-08 20:48 ` Daniel.
0 siblings, 0 replies; 5+ messages in thread
From: Daniel. @ 2015-10-08 20:48 UTC (permalink / raw)
To: kernelnewbies
Hi,
thanks for the replies
Well, I'm using out-of-tree for development, I use it in one tree
while working and on another at home, so I keep my module out-of-tree
at only one repository, and compile against too trees. This is my
header[1], it doesn't have anything special, only ioctl definitions. I
read that this header processing is mainly because of libc and
syscalls integration. Since I don't mess with syscalls and libc stuff
do I need to process them too? When and why this header processing
applies?
[1] https://bitbucket.org/danielhilst/nrf24/src/1b63724a4bcf181568a0970133d1e51a5883ad9f/include/linux/nrf24.h?at=master&fileviewer=file-view-default
Best regards,
2015-10-07 13:09 GMT-03:00 Greg KH <greg@kroah.com>:
> On Wed, Oct 07, 2015 at 10:51:25AM -0300, Daniel. wrote:
>> Uhh, as I see from docs, this isn't supported,
>>
>> --- 2.3 Targets
>>
>> When building an external module, only a subset of the "make"
>> targets are available.
>> >From https://www.kernel.org/doc/Documentation/kbuild/modules.txt
>>
>> So, how can I export ioctl calls defined by an out-of-tree module?
>
> You get your out-of-tree module merged into the tree and it's
> automatically solved for you :)
--
"Do or do not. There is no try"
Yoda Master
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-10-08 20:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-07 13:46 make headers_install for out-of-tree modules Daniel.
2015-10-07 13:51 ` Daniel.
2015-10-07 15:09 ` Yann Droneaud
2015-10-07 16:09 ` Greg KH
2015-10-08 20:48 ` Daniel.
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).