mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
kernel-dev: Added kernel-devsrc information for building on target
I added a clarifying paragraph at the start of the section that talks about building on the target hardware. Included kernel-devsrc and rationale for why a user would even do this (it is not normal). (From yocto-docs rev: 95ae213b80cb45b5e9b7b161b2968dca6315e1da) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8a19731e4d
commit
8124686aa2
@@ -735,13 +735,27 @@
|
|||||||
<section id='building-out-of-tree-modules-on-the-target'>
|
<section id='building-out-of-tree-modules-on-the-target'>
|
||||||
<title>Building Out-of-Tree Modules on the Target</title>
|
<title>Building Out-of-Tree Modules on the Target</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
While the traditional Yocto Project development model would be
|
||||||
|
to include kernel modules as part of the normal build
|
||||||
|
process, you might find it useful to build modules on the
|
||||||
|
target.
|
||||||
|
This could be the case if your target system is capable
|
||||||
|
and powerful enough to handle the necessary compilation.
|
||||||
|
Before deciding to build on your target, however, you should
|
||||||
|
consider the benefits of using a proper cross-development
|
||||||
|
environment from your build host.
|
||||||
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
If you want to be able to build out-of-tree modules on
|
If you want to be able to build out-of-tree modules on
|
||||||
the target, there are some steps you need to take
|
the target, there are some steps you need to take
|
||||||
on the target that is running your SDK image.
|
on the target that is running your SDK image.
|
||||||
Briefly, the <filename>kernel-dev</filename> package
|
Briefly, the <filename>kernel-dev</filename> package
|
||||||
is installed by default on all
|
is installed by default on all
|
||||||
<filename>*.sdk</filename> images.
|
<filename>*.sdk</filename> images and the
|
||||||
|
<filename>kernel-devsrc</filename> package is installed
|
||||||
|
on many of the <filename>*.sdk</filename> images.
|
||||||
However, you need to create some scripts prior to
|
However, you need to create some scripts prior to
|
||||||
attempting to build the out-of-tree modules on the target
|
attempting to build the out-of-tree modules on the target
|
||||||
that is running that image.
|
that is running that image.
|
||||||
@@ -759,7 +773,9 @@
|
|||||||
Because all SDK image recipes include
|
Because all SDK image recipes include
|
||||||
<filename>dev-pkgs</filename>, the
|
<filename>dev-pkgs</filename>, the
|
||||||
<filename>kernel-dev</filename> packages will be installed
|
<filename>kernel-dev</filename> packages will be installed
|
||||||
as part of the SDK image.
|
as part of the SDK image and the
|
||||||
|
<filename>kernel-devsrc</filename> packages will be installed
|
||||||
|
as part of applicable SDK images.
|
||||||
The SDK uses the scripts when building out-of-tree
|
The SDK uses the scripts when building out-of-tree
|
||||||
modules.
|
modules.
|
||||||
Once you have switched to that directory and created the
|
Once you have switched to that directory and created the
|
||||||
|
|||||||
Reference in New Issue
Block a user