[bootlin/training-materials updates] master: Fix Elixir macro used in U-Boot lab (b1cc6652)

Michael Opdenacker michael.opdenacker at bootlin.com
Thu Oct 1 09:44:54 CEST 2020


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

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

commit b1cc6652cdfd551bd3ee21d68f2f47bf2fe8ccc9
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Thu Oct 1 09:44:54 2020 +0200

    Fix Elixir macro used in U-Boot lab
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


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

b1cc6652cdfd551bd3ee21d68f2f47bf2fe8ccc9
 common/common.sty                    | 1 +
 labs/sysdev-u-boot/sysdev-u-boot.tex | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/common/common.sty b/common/common.sty
index 488d5016..ac55bf70 100644
--- a/common/common.sty
+++ b/common/common.sty
@@ -4,6 +4,7 @@
 \newcommand\projdir[2]{\href{https://elixir.bootlin.com/#1/latest/source/#2/}{\codelink{#2/}}}
 \newcommand\projfile[2]{\href{https://elixir.bootlin.com/#1/latest/source/#2}{\codelink{#2}}}
 \newcommand\projsym[2]{\href{https://elixir.bootlin.com/#1/latest/ident/#2}{\codelink{#2}}}
+\newcommand\projconfig[2]{\href{https://elixir.bootlin.com/#1/latest/K/ident/#2}{\codelink{#2}}}
 
 % Linux Elixir commands
 \newcommand\kfunc[1]{\href{https://elixir.bootlin.com/linux/latest/ident/#1}{\codelink{#1()}}}
diff --git a/labs/sysdev-u-boot/sysdev-u-boot.tex b/labs/sysdev-u-boot/sysdev-u-boot.tex
index fe23d585..bc1486a8 100644
--- a/labs/sysdev-u-boot/sysdev-u-boot.tex
+++ b/labs/sysdev-u-boot/sysdev-u-boot.tex
@@ -109,11 +109,11 @@ look like:
   bootloader at offset \code{0x0} in the NAND flash.
 \item Offset \code{0x40000} for the second stage bootloader is decided
   by the first stage bootloader. This can be changed modifying the
-  value of \projsym{u-boot}{CONFIG_SYS_NAND_U_BOOT_OFFS} in
+  value of \projconfig{u-boot}{CONFIG_SYS_NAND_U_BOOT_OFFS} in
   \projfile{u-boot}{include/configs/sama5d3_xplained.h} in U-Boot
   sources.
 \item Offset \code{0x140000} of the U-Boot environment is decided by
-  U-Boot's configuration (\projsym{u-boot}{CONFIG_ENV_OFFSET}).
+  U-Boot's configuration (\projconfig{u-boot}{CONFIG_ENV_OFFSET}).
 \end{itemize}
 
 \section{Configuring and compiling U-Boot}




More information about the training-materials-updates mailing list