[FE training-materials-updates] yocto: slides: update minted lang from C to sh

Antoine Ténart antoine.tenart at free-electrons.com
Wed Jun 8 15:50:42 CEST 2016


Repository : git://git.free-electrons.com/training-materials.git
On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=4d90a4a42e0a74bd09d378212edfdf02d7eebd0d

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

commit 4d90a4a42e0a74bd09d378212edfdf02d7eebd0d
Author: Antoine Tenart <antoine.tenart at free-electrons.com>
Date:   Wed Jun 8 11:42:17 2016 +0200

    yocto: slides: update minted lang from C to sh
    
    Signed-off-by: Antoine Tenart <antoine.tenart at free-electrons.com>


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

4d90a4a42e0a74bd09d378212edfdf02d7eebd0d
 slides/yocto-advanced/yocto-advanced.tex               |  4 ++--
 slides/yocto-bsp/yocto-bsp.tex                         | 10 +++++-----
 slides/yocto-image/yocto-image.tex                     |  4 ++--
 slides/yocto-layer-distro/yocto-layer-distro.tex       |  2 +-
 slides/yocto-recipe-advanced/yocto-recipe-advanced.tex |  8 ++++----
 slides/yocto-recipe-basics/yocto-recipe-basics.tex     | 18 +++++++++---------
 slides/yocto-recipe-extra/yocto-recipe-extra.tex       |  6 +++---
 7 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/slides/yocto-advanced/yocto-advanced.tex b/slides/yocto-advanced/yocto-advanced.tex
index 419aca8..4ab1201 100644
--- a/slides/yocto-advanced/yocto-advanced.tex
+++ b/slides/yocto-advanced/yocto-advanced.tex
@@ -323,7 +323,7 @@ $ ./scripts/sstate-cache-management.sh --remove-duplicated -d \
         \item First it tries locations from the \code{PREMIRRORS} variable,
           usually set by the distribution layer. Poky uses:
           \begin{block}{}
-            \begin{minted}[fontsize=\small]{c}
+            \begin{minted}[fontsize=\small]{sh}
 PREMIRRORS_prepend = "\
      git://.*/.* http://www.yoctoproject.org/sources/ \n \
      ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
@@ -335,7 +335,7 @@ PREMIRRORS_prepend = "\
       \end{itemize}
     \item Use the \code{own-mirrors} class to set your mirrors:
           \begin{block}{}
-            \begin{minted}[fontsize=\small]{c}
+            \begin{minted}[fontsize=\small]{sh}
 INHERIT += "own-mirrors"
 SOURCE_MIRROR_URL = "http://example.com/my-source-mirror"
             \end{minted}
diff --git a/slides/yocto-bsp/yocto-bsp.tex b/slides/yocto-bsp/yocto-bsp.tex
index 2946204..b5f3fd7 100644
--- a/slides/yocto-bsp/yocto-bsp.tex
+++ b/slides/yocto-bsp/yocto-bsp.tex
@@ -155,7 +155,7 @@
 \begin{frame}[fragile]
   \frametitle{\code{conf/machine/include/cfa10036.inc}}
   \begin{block}{}
-    \begin{minted}[fontsize=\footnotesize]{c}
+    \begin{minted}[fontsize=\footnotesize]{sh}
 # Common definitions for cfa-10036 boards
 include conf/machine/include/mxs-base.inc
 
@@ -182,7 +182,7 @@ MACHINE_FEATURES = "usbgadget usbhost vfat"
 
 \begin{frame}[fragile]{\code{conf/machine/cfa10057.conf}}
   \begin{block}{}
-    \begin{minted}[fontsize=\tiny]{c}
+    \begin{minted}[fontsize=\tiny]{sh}
 #@TYPE: Machine
 #@NAME: Crystalfontz CFA-10057
 #@SOC: i.MX28
@@ -266,7 +266,7 @@ $ wic create mkefidisk -e core-image-base
 \begin{frame}[fragile]
   \frametitle{Formfactor example}
   \begin{block}{}
-    \begin{minted}{c}
+    \begin{minted}{sh}
 HAVE_TOUCHSCREEN=1
 HAVE_KEYBOARD=1
 
@@ -372,7 +372,7 @@ DISPLAY_SUBPIXEL_ORDER=vrgb
           using the \code{.cfg} extension. It is the best practice
           when adding new features:
           \begin{block}{}
-            \begin{minted}{c}
+            \begin{minted}{sh}
 SRC_URI += "file://defconfig        \
             file://nand-support.cfg \
             file://ethernet-support.cfg"
@@ -473,7 +473,7 @@ SRC_URI += "file://defconfig        \
       configuration fragments to use.
     \item Simple example, \code{features/smp.scc}
       \begin{block}{}
-        \begin{minted}{c}
+        \begin{minted}{sh}
 define KFEATURE_DESCRIPTION "Enable SMP"
 
 kconf hardware smp.cfg
diff --git a/slides/yocto-image/yocto-image.tex b/slides/yocto-image/yocto-image.tex
index 11040b6..64e1484 100644
--- a/slides/yocto-image/yocto-image.tex
+++ b/slides/yocto-image/yocto-image.tex
@@ -71,7 +71,7 @@
 \begin{frame}[fragile]
   \frametitle{Example of an image}
   \begin{block}{}
-    \begin{minted}{c}
+    \begin{minted}{sh}
 require recipes-core/images/core-image-minimal.bb
 
 DESCRIPTION = "Example image"
@@ -119,7 +119,7 @@ LICENSE = "MIT"
   \frametitle{Example}
   \code{meta/recipes-core/packagegroups/packagegroup-core-nfs.bb}:
   \begin{block}{}
-    \begin{minted}{c}
+    \begin{minted}{sh}
 DESCRIPTION = "NFS package groups"
 LICENSE = "MIT"
 PR = "r2"
diff --git a/slides/yocto-layer-distro/yocto-layer-distro.tex b/slides/yocto-layer-distro/yocto-layer-distro.tex
index c3aad1f..f0df5ec 100644
--- a/slides/yocto-layer-distro/yocto-layer-distro.tex
+++ b/slides/yocto-layer-distro/yocto-layer-distro.tex
@@ -49,7 +49,7 @@
       your distro configuration.
   \end{itemize}
   \begin{block}{}
-    \begin{minted}[fontsize=\small]{c}
+    \begin{minted}[fontsize=\small]{sh}
 require conf/distro/poky.conf
 
 DISTRO = "distro"
diff --git a/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex b/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
index ad00ffc..e2525b8 100644
--- a/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
+++ b/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
@@ -77,7 +77,7 @@
 \begin{frame}[fragile]
   \frametitle{Hello world append file}
   \begin{block}{}
-    \begin{minted}{c}
+    \begin{minted}{sh}
 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
 
 SRC_URI += "file://custom-modification-0.patch \
@@ -226,7 +226,7 @@ SRC_URI += "file://custom-modification-0.patch \
 \begin{frame}[fragile]
   \frametitle{Example: use the autotools class}
   \begin{block}{}
-    \begin{minted}[fontsize=\tiny]{c}
+    \begin{minted}[fontsize=\tiny]{sh}
 DESCRIPTION = "Print a friendly, customizable greeting"
 HOMEPAGE = "https://www.gnu.org/software/hello/"
 PRIORITY = "optional"
@@ -283,7 +283,7 @@ inherits autotools
 \begin{frame}[fragile]
   \frametitle{Example: use the useradd class}
   \begin{block}{}
-    \begin{minted}[fontsize=\tiny]{c}
+    \begin{minted}[fontsize=\tiny]{sh}
 DESCRIPTION = "useradd class usage example"
 PRIORITY = "optional"
 SECTION = "examples"
@@ -335,7 +335,7 @@ $ bitbake -c devshell <recipe>
     \item To understand what a change in a recipe implies, you can
       activate build history in \code{local.conf}:
       \begin{block}{}
-        \begin{minted}{c}
+        \begin{minted}{sh}
 INHERIT += "buildhistory"
 BUILDHISTORY_COMMIT = "1"
         \end{minted}
diff --git a/slides/yocto-recipe-basics/yocto-recipe-basics.tex b/slides/yocto-recipe-basics/yocto-recipe-basics.tex
index e0fb466..c5ada18 100644
--- a/slides/yocto-recipe-basics/yocto-recipe-basics.tex
+++ b/slides/yocto-recipe-basics/yocto-recipe-basics.tex
@@ -291,7 +291,7 @@ LIC_FILES_CHKSUM =  \
     \item Syntax of a task:
   \end{itemize}
   \begin{block}{}
-    \begin{minted}{c}
+    \begin{minted}{sh}
 do_task() {
     action0
     action1
@@ -307,7 +307,7 @@ do_task() {
     \item Example:
   \end{itemize}
   \begin{block}{}
-    \begin{minted}[fontsize=\small]{c}
+    \begin{minted}[fontsize=\small]{sh}
 do_compile() {
     ${CC} ${CFLAGS} ${LDFLAGS} -o hello ${WORKDIR}/hello.c
 }
@@ -326,7 +326,7 @@ do_install() {
     \item Or using a Makefile:
   \end{itemize}
   \begin{block}{}
-    \begin{minted}{c}
+    \begin{minted}{sh}
 do_compile() {
     oe_runmake
 }
@@ -343,7 +343,7 @@ do_install() {
   \frametitle{Modifying existing tasks}
   Tasks can be extended with \code{_prepend} or \code{_append}
   \begin{block}{}
-    \begin{minted}{c}
+    \begin{minted}{sh}
 do_install_append() {
     install -d ${D}${sysconfdir}
     install -m 0755 hello.conf ${D}${sysconfdir}
@@ -356,7 +356,7 @@ do_install_append() {
   \frametitle{Adding new tasks}
   Tasks can be added with \code{addtask}
   \begin{block}{}
-    \begin{minted}{c}
+    \begin{minted}{sh}
 do_mkimage () {
     uboot-mkimage ...
 }
@@ -371,7 +371,7 @@ addtask mkimage after do_compile before do_install
 \begin{frame}[fragile]
   \frametitle{Hello world recipe}
   \begin{block}{}
-    \begin{minted}[fontsize=\small]{c}
+    \begin{minted}[fontsize=\small]{sh}
 DESCRIPTION = "Hello world program"
 HOMEPAGE = "http://example.net/helloworld/"
 PRIORITY = "optional"
@@ -397,7 +397,7 @@ do_install() {
 \begin{frame}[fragile]
   \frametitle{tar.inc}
   \begin{block}{}
-    \begin{minted}{c}
+    \begin{minted}{sh}
 SUMMARY = "GNU file archiving program"
 HOMEPAGE = "http://www.gnu.org/software/tar/"
 SECTION = "base"
@@ -416,7 +416,7 @@ do_install() { ... }
 \begin{frame}[fragile]
   \frametitle{tar\_1.17.bb}
   \begin{block}{}
-    \begin{minted}[fontsize=\small]{c}
+    \begin{minted}[fontsize=\small]{sh}
 require tar.inc
 
 LICENSE = "GPLv2"
@@ -433,7 +433,7 @@ SRC_URI[md5sum] = "c6c4f1c075dbf0f75c29737faa58f290"
 \begin{frame}[fragile]
   \frametitle{tar\_1.26.bb}
   \begin{block}{}
-    \begin{minted}[fontsize=\small]{c}
+    \begin{minted}[fontsize=\small]{sh}
 require tar.inc
 
 LICENSE = "GPLv3"
diff --git a/slides/yocto-recipe-extra/yocto-recipe-extra.tex b/slides/yocto-recipe-extra/yocto-recipe-extra.tex
index 5286357..1ce008a 100644
--- a/slides/yocto-recipe-extra/yocto-recipe-extra.tex
+++ b/slides/yocto-recipe-extra/yocto-recipe-extra.tex
@@ -18,7 +18,7 @@
   \begin{itemize}
     \item The \code{kexec tools} provides \code{kexec} and \code{kdump}:
     \begin{block}{}
-    \begin{minted}{c}
+    \begin{minted}{sh}
 require kexec-tools.inc
 export LDFLAGS = "-L${STAGING_LIBDIR}"
 EXTRA_OECONF = " --with-zlib=yes"
@@ -71,7 +71,7 @@ FILES_kdump = "${sbindir}/kdump"
 \begin{frame}[fragile]
   \frametitle{Example: from \code{ConnMan}}
   \begin{block}{}
-  \begin{minted}{c}
+  \begin{minted}{sh}
 PACKAGECONFIG ??= "wifi openvpn"
 
 PACKAGECONFIG[wifi] = "--enable-wifi,            \
@@ -101,7 +101,7 @@ PACKAGECONFIG[openvpn] = "--enable-openvpn --with-openvpn=...,    \
       \code{falseval} is used.
     \item Example:
       \begin{block}{}
-      \begin{minted}[fontsize=\tiny]{c}
+      \begin{minted}[fontsize=\tiny]{sh}
 PACKAGECONFIG ??= "                                                       \
     ${@base_contains('DISTRO_FEATURES', 'wifi','wifi', '', d)}            \
     ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluetooth', '', d)}  \




More information about the training-materials-updates mailing list