[bootlin/training-materials updates] master: Configuring and building the kernel: minor improvements (7e4729c0)

Michael Opdenacker michael.opdenacker at bootlin.com
Wed Mar 20 06:24:59 CET 2019


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/7e4729c0c90eb4bbba4df3908e822df1e1ea9f7f

>---------------------------------------------------------------

commit 7e4729c0c90eb4bbba4df3908e822df1e1ea9f7f
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Wed Mar 20 05:22:42 2019 +0100

    Configuring and building the kernel: minor improvements
    
    - In particular, rephrased the example of dependencies.
      For me, it's more natural to say the "option B depends
      on option A", because option A should be selected first.
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

7e4729c0c90eb4bbba4df3908e822df1e1ea9f7f
 .../sysdev-kernel-building.tex                     |  13 +-
 .../sysdev-kernel-building/xconfig-iso-example.svg | 226 ++++++++++++++++-----
 .../sysdev-linux-intro-modules.tex                 |   4 +-
 3 files changed, 185 insertions(+), 58 deletions(-)

diff --git a/slides/sysdev-kernel-building/sysdev-kernel-building.tex b/slides/sysdev-kernel-building/sysdev-kernel-building.tex
index d090843f..2ff1c697 100644
--- a/slides/sysdev-kernel-building/sysdev-kernel-building.tex
+++ b/slides/sysdev-kernel-building/sysdev-kernel-building.tex
@@ -177,11 +177,12 @@
     stack to be enabled
   \item Two types of dependencies
     \begin{itemize}
-    \item \code{depends on} dependencies. In this case, option A that
-      depends on option B is not visible until option B is enabled
-    \item \code{select} dependencies. In this case, with option A
-      depending on option B, when option A is enabled, option B is
-      automatically enabled
+    \item \code{depends on} dependencies. In this case, option B that
+      depends on option A is not visible until option A is enabled
+    \item \code{select} dependencies. In this case, with option B
+      depending on option A, when option A is enabled, option B is
+      automatically enabled. In particular, such dependencies are
+      used to declare what features a hardware architecture supports.
     \end{itemize}
   \item With the \code{Show All Options} option, \code{make xconfig} allows
     to see all options, even the ones that cannot be selected because of
@@ -292,6 +293,8 @@ CONFIG_NTFS_RW=y
     \begin{itemize}
       \item A newer, similar text interface
       \item More user friendly (for example, easier to access help information).
+      \item However, lacking the shortcuts that \code{menuconfig} offers
+	in search results. Therefore, much less convenient than \code{menuconfig}.
       \item Required Debian packages: \code{libncurses-dev}
     \end{itemize}
     \column{0.5\textwidth}
diff --git a/slides/sysdev-kernel-building/xconfig-iso-example.svg b/slides/sysdev-kernel-building/xconfig-iso-example.svg
index 3c66785f..35fc565e 100644
--- a/slides/sysdev-kernel-building/xconfig-iso-example.svg
+++ b/slides/sysdev-kernel-building/xconfig-iso-example.svg
@@ -8,9 +8,9 @@
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
-   width="23cm"
-   height="8cm"
-   viewBox="352 165 442 154"
+   width="22.933607cm"
+   height="9.6187849cm"
+   viewBox="352 165 440.7241 185.16161"
    version="1.1"
    id="svg57"
    sodipodi:docname="xconfig-iso-example.svg"
@@ -28,7 +28,83 @@
     </rdf:RDF>
   </metadata>
   <defs
-     id="defs61" />
+     id="defs61">
+    <marker
+       inkscape:stockid="Arrow1Lend"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="Arrow1Lend"
+       style="overflow:visible"
+       inkscape:isstock="true">
+      <path
+         id="path903"
+         d="M 0,0 5,-5 -12.5,0 5,5 Z"
+         style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
+         transform="matrix(-0.8,0,0,-0.8,-10,0)"
+         inkscape:connector-curvature="0" />
+    </marker>
+    <marker
+       inkscape:stockid="Arrow1Lstart"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="Arrow1Lstart"
+       style="overflow:visible"
+       inkscape:isstock="true">
+      <path
+         id="path900"
+         d="M 0,0 5,-5 -12.5,0 5,5 Z"
+         style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
+         transform="matrix(0.8,0,0,0.8,10,0)"
+         inkscape:connector-curvature="0" />
+    </marker>
+    <marker
+       inkscape:stockid="Arrow1Lstart"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="Arrow1Lstart-6"
+       style="overflow:visible"
+       inkscape:isstock="true">
+      <path
+         inkscape:connector-curvature="0"
+         id="path900-5"
+         d="M 0,0 5,-5 -12.5,0 5,5 Z"
+         style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
+         transform="matrix(0.8,0,0,0.8,10,0)" />
+    </marker>
+    <marker
+       inkscape:stockid="Arrow1Lend"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="Arrow1Lend-8"
+       style="overflow:visible"
+       inkscape:isstock="true">
+      <path
+         inkscape:connector-curvature="0"
+         id="path903-8"
+         d="M 0,0 5,-5 -12.5,0 5,5 Z"
+         style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
+         transform="matrix(-0.8,0,0,-0.8,-10,0)" />
+    </marker>
+    <marker
+       inkscape:stockid="Arrow1Lend"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="marker1756"
+       style="overflow:visible"
+       inkscape:isstock="true">
+      <path
+         inkscape:connector-curvature="0"
+         id="path1754"
+         d="M 0,0 5,-5 -12.5,0 5,5 Z"
+         style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
+         transform="matrix(-0.8,0,0,-0.8,-10,0)" />
+    </marker>
+  </defs>
   <sodipodi:namedview
      pagecolor="#ffffff"
      bordercolor="#666666"
@@ -39,95 +115,106 @@
      inkscape:pageopacity="0"
      inkscape:pageshadow="2"
      inkscape:window-width="1853"
-     inkscape:window-height="1025"
+     inkscape:window-height="1052"
      id="namedview59"
      showgrid="false"
      inkscape:zoom="0.78684783"
-     inkscape:cx="434.64567"
-     inkscape:cy="151.1811"
-     inkscape:window-x="67"
-     inkscape:window-y="27"
+     inkscape:cx="175.92761"
+     inkscape:cy="222.96582"
+     inkscape:window-x="1987"
+     inkscape:window-y="0"
      inkscape:window-maximized="1"
-     inkscape:current-layer="svg57" />
+     inkscape:current-layer="svg57"
+     fit-margin-top="0"
+     fit-margin-left="0"
+     fit-margin-right="0"
+     fit-margin-bottom="0">
+    <inkscape:grid
+       type="xygrid"
+       id="grid896"
+       originx="-0.54913826"
+       originy="36.561606" />
+  </sodipodi:namedview>
   <text
      id="text4"
-     y="180"
-     x="352"
+     y="174.60001"
+     x="351.44992"
      style="font-style:normal;font-weight:normal;font-size:12.80000019px;font-family:'Latin Modern Sans';text-anchor:start;fill:#cc1f1a;fill-opacity:1;stroke:none"
      font-size="12.8">
     <tspan
        id="tspan2"
-       y="180"
-       x="352">Compiled as a module (separate file)</tspan>
+       y="174.60001"
+       x="351.44992">Compiled as a module (separate file)</tspan>
   </text>
   <text
      id="text8"
-     y="228"
-     x="352"
+     y="222.60001"
+     x="351.44992"
      style="font-style:normal;font-weight:normal;font-size:12.80000019px;font-family:'Latin Modern Sans';text-anchor:start;fill:#cc1f1a;fill-opacity:1;stroke:none"
      font-size="12.8">
     <tspan
        id="tspan6"
-       y="228"
-       x="352">Driver options</tspan>
+       y="222.60001"
+       x="351.44992">Driver options</tspan>
   </text>
   <text
      id="text12"
-     y="304"
-     x="352"
+     y="298.60001"
+     x="351.44992"
      style="font-style:normal;font-weight:normal;font-size:12.80000019px;font-family:'Latin Modern Sans';text-anchor:start;fill:#cc1f1a;fill-opacity:1;stroke:none"
      font-size="12.8">
     <tspan
        id="tspan10"
-       y="304"
-       x="352">Compiled statically into the kernel</tspan>
+       y="298.60001"
+       x="351.44992">Compiled statically into the kernel</tspan>
   </text>
   <text
      id="text16"
-     y="196"
-     x="352"
+     y="190.60001"
+     x="351.44992"
      style="font-style:normal;font-weight:500;font-size:12.80000019px;font-family:Inconsolata;text-anchor:start;fill:#cc1f1a;fill-opacity:1;stroke:none"
      font-size="12.8">
     <tspan
        id="tspan14"
-       y="196"
-       x="352">CONFIG_ISO9660_FS=m</tspan>
+       y="190.60001"
+       x="351.44992">CONFIG_ISO9660_FS=m</tspan>
   </text>
   <text
      id="text20"
-     y="244"
-     x="352"
+     y="238.60001"
+     x="351.44992"
      style="font-style:normal;font-weight:500;font-size:12.80000019px;font-family:Inconsolata;text-anchor:start;fill:#cc1f1a;fill-opacity:1;stroke:none"
      font-size="12.8">
     <tspan
        id="tspan18"
-       y="244"
-       x="352">CONFIG_JOLIET=y</tspan>
+       y="238.60001"
+       x="351.44992">CONFIG_JOLIET=y</tspan>
   </text>
   <text
      id="text24"
-     y="264"
-     x="352"
+     y="258.60001"
+     x="351.44992"
      style="font-style:normal;font-weight:500;font-size:12.80000019px;font-family:Inconsolata;text-anchor:start;fill:#cc1f1a;fill-opacity:1;stroke:none"
      font-size="12.8">
     <tspan
        id="tspan22"
-       y="264"
-       x="352">CONFIG_ZISOFS=y</tspan>
+       y="258.60001"
+       x="351.44992">CONFIG_ZISOFS=y</tspan>
   </text>
   <text
      id="text28"
-     y="316"
-     x="352"
+     y="310.60001"
+     x="351.44992"
      style="font-style:normal;font-weight:500;font-size:12.80000019px;font-family:Inconsolata;text-anchor:start;fill:#cc1f1a;fill-opacity:1;stroke:none"
      font-size="12.8">
     <tspan
        id="tspan26"
-       y="316"
-       x="352">CONFIG_UDF_FS=y</tspan>
+       y="310.60001"
+       x="351.44992">CONFIG_UDF_FS=y</tspan>
   </text>
   <g
-     id="g34">
+     id="g34"
+     transform="translate(-0.55007003,-5.3999999)">
     <line
        id="line30"
        y2="219.338"
@@ -137,11 +224,12 @@
        style="fill:none;stroke:#cc1f1a;stroke-width:2;stroke-opacity:1" />
     <polygon
        id="polygon32"
-       points="491.652,213.751 498.037,222.929 486.864,222.53 491.453,219.338 "
+       points="486.864,222.53 491.453,219.338 491.652,213.751 498.037,222.929 "
        style="fill:#cc1f1a;fill-opacity:1;fill-rule:evenodd;stroke:#cc1f1a;stroke-width:2;stroke-opacity:1" />
   </g>
   <g
-     id="g40">
+     id="g40"
+     transform="translate(-0.55007003,-5.3999999)">
     <line
        id="line36"
        y2="240"
@@ -151,11 +239,12 @@
        style="fill:none;stroke:#cc1f1a;stroke-width:2;stroke-opacity:1" />
     <polygon
        id="polygon38"
-       points="487.764,235 497.764,240 487.764,245 490.264,240 "
+       points="487.764,245 490.264,240 487.764,235 497.764,240 "
        style="fill:#cc1f1a;fill-opacity:1;fill-rule:evenodd;stroke:#cc1f1a;stroke-width:2;stroke-opacity:1" />
   </g>
   <g
-     id="g46">
+     id="g46"
+     transform="translate(-0.55007003,-5.3999999)">
     <line
        id="line42"
        y2="260"
@@ -165,11 +254,12 @@
        style="fill:none;stroke:#cc1f1a;stroke-width:2;stroke-opacity:1" />
     <polygon
        id="polygon44"
-       points="487.764,255 497.764,260 487.764,265 490.264,260 "
+       points="487.764,265 490.264,260 487.764,255 497.764,260 "
        style="fill:#cc1f1a;fill-opacity:1;fill-rule:evenodd;stroke:#cc1f1a;stroke-width:2;stroke-opacity:1" />
   </g>
   <g
-     id="g52">
+     id="g52"
+     transform="translate(-0.55007003,-5.3999999)">
     <line
        id="line48"
        y2="282.798"
@@ -179,15 +269,49 @@
        style="fill:none;stroke:#cc1f1a;stroke-width:2;stroke-opacity:1" />
     <polygon
        id="polygon50"
-       points="482.843,278.727 493.858,280.643 485.717,288.305 486.675,282.798 "
+       points="485.717,288.305 486.675,282.798 482.843,278.727 493.858,280.643 "
        style="fill:#cc1f1a;fill-opacity:1;fill-rule:evenodd;stroke:#cc1f1a;stroke-width:2;stroke-opacity:1" />
   </g>
   <image
-     sodipodi:absref="/home/mike/git.bootlin.com/training-materials/slides/sysdev-kernel-building/iso-example.png"
+     sodipodi:absref="/home/mike/training-materials/slides/sysdev-kernel-building/iso-example.png"
      xlink:href="iso-example.png"
-     x="503.45999"
-     y="210.78799"
-     width="290.18701"
+     id="image54"
      height="83.2836"
-     id="image54" />
+     width="290.18701"
+     y="205.388"
+     x="502.90991" />
+  <text
+     id="text4-8"
+     y="377.64575"
+     x="347.36755"
+     style="font-style:normal;font-weight:normal;font-size:12.80000019px;font-family:'Latin Modern Sans';text-anchor:start;fill:#cc1f1a;fill-opacity:1;stroke:none;stroke-width:1"
+     font-size="12.8">
+    <tspan
+       style="stroke-width:1"
+       id="tspan2-8"
+       y="377.64575"
+       x="347.36755" />
+  </text>
+  <text
+     xml:space="preserve"
+     style="font-style:normal;font-weight:normal;font-size:11.84652233px;line-height:125%;font-family:Sans;-inkscape-font-specification:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.50932288px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     x="351.30515"
+     y="347.72122"
+     id="text876"><tspan
+       sodipodi:role="line"
+       id="tspan874"
+       x="351.30515"
+       y="347.72122"
+       style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:11.84652233px;font-family:'Latin Modern Sans';-inkscape-font-specification:'Latin Modern Sans, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.50932288px">Values in resulting .config file </tspan></text>
+  <text
+     xml:space="preserve"
+     style="font-style:normal;font-weight:normal;font-size:11.84652233px;line-height:125%;font-family:Sans;-inkscape-font-specification:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.50932288px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     x="528.09039"
+     y="347.62589"
+     id="text876-8"><tspan
+       sodipodi:role="line"
+       id="tspan874-9"
+       x="528.09039"
+       y="347.62589"
+       style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:11.84652233px;font-family:'Latin Modern Sans';-inkscape-font-specification:'Latin Modern Sans, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.50932288px">Parameter values as displayed in make xconfig</tspan></text>
 </svg>
diff --git a/slides/sysdev-linux-intro-modules/sysdev-linux-intro-modules.tex b/slides/sysdev-linux-intro-modules/sysdev-linux-intro-modules.tex
index 216830c5..c582900a 100644
--- a/slides/sysdev-linux-intro-modules/sysdev-linux-intro-modules.tex
+++ b/slides/sysdev-linux-intro-modules/sysdev-linux-intro-modules.tex
@@ -144,7 +144,7 @@ $ dmesg
   \frametitle{Useful reading}
   \begin{columns}
     \column{0.7\textwidth}
-    Linux Kernel in a Nutshell, Dec 2006
+    Linux Kernel in a Nutshell, Dec. 2006
     \begin{itemize}
     \item By Greg Kroah-Hartman, O'Reilly\\
       \url{http://www.kroah.com/lkn/}
@@ -154,7 +154,7 @@ $ dmesg
       Great companion to the printed book for easy electronic searches!\\
       Available as single PDF file on
       \url{https://bootlin.com/community/kernel/lkn/}
-    \item Our rating: 2 stars
+    \item Getting old but still containing useful content.
     \end{itemize}
     \column{0.3\textwidth}
     \includegraphics[width=\textwidth]{slides/sysdev-linux-intro-modules/linux-kernel-in-a-nutshell.jpg}




More information about the training-materials-updates mailing list