summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrpjday@crashcourse.ca <rpjday@crashcourse.ca>2020-03-28 16:35:00 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-04-06 14:40:24 +0100
commit5f6e055dc8f40d3c0b989e3ffa2a068b0718a5d3 (patch)
tree6eb357e87ebe4cdbed6d10500fc17f678d49c6cf
parent0bcf88c375e1275ce84ed873eeaf799b94b0f196 (diff)
downloadpoky-5f6e055dc8f40d3c0b989e3ffa2a068b0718a5d3.tar.gz
dev-manual: use actual machine override demonstration
Given that the section in question is describing how to configure dependencies based on the machine type, it seems inappropriate to use an example that depends on the choice of C library, so grab a snippet from linux-yocto.inc to really drive the point home. (From yocto-docs rev: 66bfec015f61a690f96cf8e28b80869c77327e6d) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--documentation/dev-manual/dev-manual-common-tasks.xml24
1 files changed, 19 insertions, 5 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml
index 7a8cb35d99..9e4ca955db 100644
--- a/documentation/dev-manual/dev-manual-common-tasks.xml
+++ b/documentation/dev-manual/dev-manual-common-tasks.xml
@@ -319,12 +319,26 @@
319 DEPENDS_append_one = " foo" 319 DEPENDS_append_one = " foo"
320 DEPENDS_prepend_one = "foo " 320 DEPENDS_prepend_one = "foo "
321 </literallayout> 321 </literallayout>
322 As an actual example, here's a line from the recipe 322 As an actual example, here's a snippet from the
323 for gnutls, which adds dependencies on 323 generic kernel include file
324 "argp-standalone" when building with the musl C 324 <filename>linux-yocto.inc</filename>,
325 library: 325 wherein the kernel compile and link options are
326 adjusted in the case of a subset of the supported
327 architectures:
326 <literallayout class='monospaced'> 328 <literallayout class='monospaced'>
327 DEPENDS_append_libc-musl = " argp-standalone" 329 DEPENDS_append_aarch64 = " libgcc"
330 KERNEL_CC_append_aarch64 = " ${TOOLCHAIN_OPTIONS}"
331 KERNEL_LD_append_aarch64 = " ${TOOLCHAIN_OPTIONS}"
332
333 DEPENDS_append_nios2 = " libgcc"
334 KERNEL_CC_append_nios2 = " ${TOOLCHAIN_OPTIONS}"
335 KERNEL_LD_append_nios2 = " ${TOOLCHAIN_OPTIONS}"
336
337 DEPENDS_append_arc = " libgcc"
338 KERNEL_CC_append_arc = " ${TOOLCHAIN_OPTIONS}"
339 KERNEL_LD_append_arc = " ${TOOLCHAIN_OPTIONS}"
340
341 KERNEL_FEATURES_append_qemuall=" features/debug/printk.scc"
328 </literallayout> 342 </literallayout>
329 <note> 343 <note>
330 Avoiding "+=" and "=+" and using 344 Avoiding "+=" and "=+" and using