[bootlin/training-materials updates] master: Makefile: fixup generation of single chapter slides (ee5599fe)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat Nov 14 15:07:57 CET 2020

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


commit ee5599fee043947d490ebab95da804d1e6edd971
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date:   Sat Nov 14 15:07:57 2020 +0100

    Makefile: fixup generation of single chapter slides
    When running "make sysdev-realtime-slides.pdf", one expects to build
    just the realtime chapter. However, this was no longer working.
    Indeed, we extract the prefix, here "sysdev" to determine the training
    course. But in fact the variable containing the list of all slides for
    the embedded Linux course is EMBEDDED_LINUX_SLIDES, not SYSDEV_SLIDES,
    so we need to accomodate for that.
    Also, the UPPERCASE macro needs to convert "-" to "_", so that
    lowercase embedded-linux because EMBEDDED_LINUX in uppercase.
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>


 Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index f21d641a..4095aec8 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ INKSCAPE_PDF_OPT = -A
 # Needed macros
-UPPERCASE = $(shell echo $1 | tr "[:lower:]" "[:upper:]")
+UPPERCASE = $(shell echo $1 | tr "[:lower:]-" "[:upper:]_")
 define sep
@@ -94,6 +94,11 @@ SLIDES_CHAPTERS      = $($(call UPPERCASE, $(subst  -,_, $(SLIDES_TRAINING)))_SL
 SLIDES_COMMON_AFTER  = common/slide-footer.tex
 SLIDES_TRAINING      = $(firstword $(subst -, ,  $(SLIDES)))
+ifeq ($(SLIDES_TRAINING),sysdev)
+SLIDES_TRAINING = embedded-linux
+else ifeq ($(SLIDES_TRAINING),kernel)
+SLIDES_TRAINING = linux-kernel
 # We might be building multiple chapters that share a common
 # prefix. In this case, we want to build them in the order they are
 # listed in the <training>_SLIDES variable that corresponds to the

More information about the training-materials-updates mailing list