diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2018-06-18 15:45:03 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2018-06-21 12:20:57 +0200 |
commit | c562f7f950225206b44c488004a83cbd87591435 (patch) | |
tree | 85e30c412f851d679c82ea53b2171cd78cb8d45c | |
parent | 008efad967fbecfce65cd7d3d0bd362e9c620d27 (diff) | |
download | nfv-access-documentation-c562f7f950225206b44c488004a83cbd87591435.tar.gz |
Add workaround for building kernel object using the SDK
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
-rw-r--r-- | doc/book-enea-nfv-access-guide-intel/doc/using_nfv_access_sdks.xml | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/doc/book-enea-nfv-access-guide-intel/doc/using_nfv_access_sdks.xml b/doc/book-enea-nfv-access-guide-intel/doc/using_nfv_access_sdks.xml index f5db0ba..41b6218 100644 --- a/doc/book-enea-nfv-access-guide-intel/doc/using_nfv_access_sdks.xml +++ b/doc/book-enea-nfv-access-guide-intel/doc/using_nfv_access_sdks.xml | |||
@@ -1,4 +1,4 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
2 | <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" | 2 | <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" |
3 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> | 3 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> |
4 | <chapter id="using_sdks"> | 4 | <chapter id="using_sdks"> |
@@ -198,10 +198,12 @@ hello world</programlisting> | |||
198 | <section id="crosscomp-kern-mod"> | 198 | <section id="crosscomp-kern-mod"> |
199 | <title>Cross-Compiling Kernel Modules</title> | 199 | <title>Cross-Compiling Kernel Modules</title> |
200 | 200 | ||
201 | <para>Before cross-compiling kernle modules, you need to make sure the | 201 | <para>Before cross-compiling kernel modules, you need to go into the |
202 | installed toolchain includes the kernel source tree, which should be | 202 | kernel source tree in the installed sdk, which should be available at |
203 | available at: | 203 | <literal>sdkdir/sysroots/targetarch-enea-linux/usr/src/kernel</literal>, |
204 | <literal>sdkdir/sysroots/targetarch-enea-linux/usr/src/kernel</literal>.</para> | 204 | and run the following command:</para> |
205 | |||
206 | <programlisting>make scripts prepare</programlisting> | ||
205 | 207 | ||
206 | <para>Once the environment-setup script is sourced, you can make your | 208 | <para>Once the environment-setup script is sourced, you can make your |
207 | kernel modules as usual and get them compiled for your target. Below you | 209 | kernel modules as usual and get them compiled for your target. Below you |
@@ -287,11 +289,11 @@ MODULE_LICENSE("GPL");</programlisting> | |||
287 | 289 | ||
288 | <itemizedlist> | 290 | <itemizedlist> |
289 | <listitem> | 291 | <listitem> |
290 | <para>Kgdb – for kernel cross-debugging</para> | 292 | <para>Kgdb - for kernel cross-debugging</para> |
291 | </listitem> | 293 | </listitem> |
292 | 294 | ||
293 | <listitem> | 295 | <listitem> |
294 | <para>GDBServer – for application cross-debugging</para> | 296 | <para>GDBServer - for application cross-debugging</para> |
295 | </listitem> | 297 | </listitem> |
296 | </itemizedlist> | 298 | </itemizedlist> |
297 | 299 | ||
@@ -589,4 +591,4 @@ NOTE: The image build result can be seen here:<literal> | |||
589 | </orderedlist> | 591 | </orderedlist> |
590 | </section> | 592 | </section> |
591 | </section> | 593 | </section> |
592 | </chapter> \ No newline at end of file | 594 | </chapter> |