[bootlin/training-materials updates] master: Makefile: move per-training description in mk/*.mk files (a9373ec4)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Thu Apr 25 12:12:57 CEST 2019


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

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

commit a9373ec46f4bd48bc83af6fc27aa56a05cb6002b
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date:   Thu Apr 25 10:42:54 2019 +0200

    Makefile: move per-training description in mk/*.mk files
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>


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

a9373ec46f4bd48bc83af6fc27aa56a05cb6002b
 Makefile        | 327 +-------------------------------------------------------
 mk/autotools.mk |  15 +++
 mk/boottime.mk  |  31 ++++++
 mk/buildroot.mk |  34 ++++++
 mk/kernel.mk    |  75 +++++++++++++
 mk/sysdev-4d.mk |  57 ++++++++++
 mk/sysdev.mk    |  61 +++++++++++
 mk/yocto.mk     |  42 ++++++++
 8 files changed, 316 insertions(+), 326 deletions(-)

diff --git a/Makefile b/Makefile
index b9767395..4cc311df 100644
--- a/Makefile
+++ b/Makefile
@@ -13,332 +13,7 @@ define sep
 
 endef
 
-# List of slides for the different courses
-
-KERNEL_SLIDES = \
-		first-slides \
-		about-us \
-		course-information-title \
-		beagleboneblack-board \
-		kernel-shopping-list \
-		course-information \
-		setup-lab \
-		kernel-introduction-title \
-		sysdev-linux-intro-features \
-		kernel-embedded-linux-usage-title \
-		sysdev-linux-intro-sources \
-		kernel-source-code-download-lab \
-		kernel-source-code-title \
-		kernel-source-code-drivers \
-		kernel-source-code-layout \
-		kernel-source-code-management \
-		kernel-source-code-exploring-lab \
-		sysdev-kernel-building \
-		kernel-board-setup-kernel-compiling-and-booting-labs \
-		sysdev-linux-intro-modules \
-		kernel-driver-development-modules \
-		kernel-driver-development-lab-modules \
-		kernel-driver-development-general-apis \
-		kernel-device-model \
-		kernel-i2c \
-		kernel-pinmuxing \
-		kernel-frameworks \
-		sysdev-device-files \
-		kernel-frameworks2 \
-		kernel-input \
-		kernel-driver-development-memory \
-		kernel-driver-development-io-memory \
-		kernel-driver-development-lab-io-memory \
-		kernel-misc-subsystem \
-		kernel-driver-development-processes \
-		kernel-driver-development-sleeping \
-		kernel-driver-development-interrupts \
-		kernel-driver-development-lab-interrupts \
-		kernel-driver-development-concurrency \
-		kernel-driver-development-lab-locking \
-		kernel-driver-development-debugging \
-		kernel-driver-development-lab-debugging \
-		kernel-porting-title \
-		kernel-porting-content \
-		kernel-power-management-title \
-		kernel-power-management-content \
-		kernel-development-process-title \
-		sysdev-linux-intro-versioning \
-		kernel-contribution \
-		kernel-resources-title \
-		kernel-resources-references \
-		last-slides \
-		kernel-backup-slides-title \
-		kernel-driver-development-dma \
-		kernel-driver-development-mmap \
-		kernel-git-title \
-		kernel-git-content \
-		kernel-git-lab
-
-SYSDEV_SLIDES = \
-		first-slides \
-		about-us \
-		course-information-title \
-		xplained-board \
-		sysdev-shopping-list \
-		course-information \
-		sysdev-intro \
-		sysdev-dev-environment \
-		setup-lab \
-		sysdev-toolchains-title \
-		sysdev-toolchains-definition \
-		sysdev-toolchains-c-libraries-title \
-		c-libraries \
-		sysdev-toolchains-options \
-		sysdev-toolchains-obtaining \
-		sysdev-toolchains-lab \
-		sysdev-bootloaders-title \
-		sysdev-bootloaders-sequence \
-		sysdev-bootloaders-u-boot \
-		sysdev-bootloaders-lab \
-		sysdev-linux-intro-title \
-		sysdev-linux-intro-features \
-		sysdev-linux-intro-versioning \
-		sysdev-linux-intro-sources \
-		sysdev-linux-tarballs-and-patches \
-		sysdev-linux-intro-lab-sources \
-		sysdev-kernel-building \
-		sysdev-linux-intro-lab-cross-compilation \
-		sysdev-linux-intro-modules \
-		sysdev-root-filesystem-title \
-		sysdev-root-filesystem-principles \
-		initramfs \
-		sysdev-root-filesystem-contents \
-		sysdev-root-filesystem-device-files \
-		sysdev-device-files \
-		sysdev-root-filesystem-virtual-fs \
-		sysdev-root-filesystem-minimal \
-		boot-sequence-initramfs \
-		sysdev-busybox \
-		sysdev-block-filesystems \
-		sysdev-flash-filesystems \
-		sysdev-embedded-linux \
-		sysdev-application-development \
-		sysdev-realtime \
-		sysdev-references \
-		last-slides
-
-SYSDEV_4D_SLIDES = \
-		first-slides \
-		about-us \
-		course-information-title \
-		discovery-board \
-		sysdev-shopping-list-stm32 \
-		course-information \
-		sysdev-intro \
-		sysdev-dev-environment \
-		setup-lab \
-		sysdev-toolchains-title \
-		sysdev-toolchains-definition \
-		sysdev-toolchains-c-libraries-title \
-		c-libraries \
-		sysdev-toolchains-options \
-		sysdev-toolchains-obtaining \
-		sysdev-toolchains-lab \
-		sysdev-bootloaders-title \
-		sysdev-bootloaders-sequence \
-		sysdev-bootloaders-u-boot \
-		sysdev-bootloaders-lab \
-		sysdev-linux-intro-title \
-		sysdev-linux-intro-features \
-		sysdev-linux-intro-versioning \
-		sysdev-linux-intro-sources \
-		sysdev-linux-tarballs-and-patches \
-		sysdev-linux-intro-lab-sources \
-		sysdev-kernel-building \
-		sysdev-linux-intro-lab-cross-compilation \
-		sysdev-linux-intro-modules \
-		sysdev-root-filesystem-title \
-		sysdev-root-filesystem-principles \
-		initramfs \
-		sysdev-root-filesystem-contents \
-		sysdev-root-filesystem-device-files \
-		sysdev-device-files \
-		sysdev-root-filesystem-virtual-fs \
-		sysdev-root-filesystem-minimal \
-		boot-sequence-initramfs \
-		sysdev-busybox \
-		sysdev-block-filesystems \
-		sysdev-embedded-linux \
-		sysdev-application-development \
-		sysdev-references \
-		last-slides
-
-BOOTTIME_SLIDES = \
-		first-slides \
-		thanks-atmel \
-		about-us \
-		course-information-title \
-		sama5d3-board \
-		boottime-course-outline \
-		boottime-principles \
-		boottime-measuring \
-		boottime-filesystems \
-		boottime-init-scripts \
-		boottime-c-libraries-title \
-		c-libraries \
-		boottime-init-scripts2 \
-		initramfs \
-		boot-sequence-initramfs \
-		boottime-init-scripts3 \
-		boottime-application \
-		boottime-kernel \
-		boottime-bootloader \
-		boottime-hardware-init \
-
-
-YOCTO_SLIDES    = \
-		first-slides \
-		about-us \
-		course-information-title \
-		beagleboneblack-board \
-		yocto-course-outline \
-		course-information \
-		setup-lab \
-		buildroot-yocto-introduction \
-		yocto-overview \
-		yocto-basics \
-		yocto-build-lab \
-		yocto-advanced \
-		yocto-advanced-lab \
-		yocto-recipe-basics \
-		yocto-recipe-basics-lab \
-		yocto-recipe-advanced \
-		yocto-layer \
-		yocto-layer-lab \
-		yocto-bsp \
-		yocto-bsp-lab \
-		yocto-layer-distro \
-		yocto-image \
-		yocto-image-lab \
-		yocto-licensing \
-		yocto-recipe-extra \
-		yocto-sdk \
-		yocto-sdk-lab \
-		yocto-runtime-package-management \
-		yocto-resources \
-		last-slides
-
-BUILDROOT_SLIDES = \
-		first-slides \
-		about-us \
-		course-information-title \
-		beagleboneblack-board \
-		course-information \
-		setup-lab \
-		buildroot-yocto-introduction \
-		buildroot-introduction \
-		buildroot-build \
-		buildroot-tree \
-		buildroot-toolchain \
-		buildroot-kernel \
-		buildroot-rootfs \
-		buildroot-download \
-		buildroot-make \
-		buildroot-new-packages \
-		buildroot-advanced-packages \
-		buildroot-analysis \
-		buildroot-advanced \
-		buildroot-appdev \
-		buildroot-internals \
-		buildroot-support-contribution \
-		buildroot-whats-new \
-		buildroot-acknowledgements \
-		last-slides
-
-AUTOTOOLS_SLIDES = first-slides \
-		about-us \
-		course-information-title \
-		course-information \
-		setup-lab \
-		autotools-usage \
-		autotools-basics \
-		autotools-advanced \
-		autotools-references \
-		last-slides
-
-# List of labs for the different courses
-
-SYSDEV_LABS   = setup \
-		sysdev-toolchain \
-		sysdev-u-boot \
-		sysdev-kernel-fetch-and-patch \
-		sysdev-kernel-cross-compiling \
-		sysdev-tinysystem \
-		sysdev-block-filesystems \
-		sysdev-flash-filesystems \
-		sysdev-thirdparty \
-		sysdev-buildroot \
-		sysdev-application-development \
-		sysdev-application-debugging \
-		sysdev-real-time \
-
-SYSDEV_4D_LABS = setup \
-		sysdev-toolchain \
-		sysdev-u-boot-stm32 \
-		sysdev-kernel-fetch-and-patch \
-		sysdev-kernel-cross-compiling-stm32 \
-		sysdev-tinysystem \
-		sysdev-block-filesystems-stm32 \
-		sysdev-thirdparty \
-		sysdev-buildroot \
-		sysdev-application-development \
-		sysdev-application-debugging \
-
-KERNEL_LABS   = setup \
-		kernel-sources-download \
-		kernel-sources-exploring \
-		kernel-board-setup \
-		kernel-compiling-and-nfs-booting \
-		kernel-module-simple \
-		kernel-i2c-device-model \
-		kernel-i2c-communication \
-		kernel-i2c-input-interface \
-		kernel-serial-iomem \
-		kernel-serial-output \
-		kernel-serial-interrupt \
-		kernel-locking \
-		kernel-debugging \
-		kernel-git \
-
-BOOTTIME_LABS = boottime-install \
-		boottime-getting-started \
-		boottime-measuring \
-		boottime-setup \
-		boottime-init-scripts \
-		boottime-application \
-		boottime-kernel \
-		boottime-bootloader \
-		boottime-results \
-
-YOCTO_LABS    = setup \
-		yocto-first-build \
-		yocto-advanced-configuration \
-		yocto-add-application \
-		yocto-layer \
-		yocto-extend-recipe \
-		yocto-custom-machine \
-		yocto-custom-image \
-		yocto-sdk \
-		yocto-sdk-eclipse \
-
-BUILDROOT_LABS = setup \
-		buildroot-basic \
-		buildroot-rootfs \
-		buildroot-new-packages \
-		buildroot-advanced-packages \
-		buildroot-advanced \
-		buildroot-appdev
-
-AUTOTOOLS_LABS = setup \
-		autotools-usage \
-		autotools-basics \
-		autotools-advanced
+include $(wildcard mk/*.mk)
 
 # Output directory
 OUTDIR   = $(PWD)/out
diff --git a/mk/autotools.mk b/mk/autotools.mk
new file mode 100644
index 00000000..6f9ff261
--- /dev/null
+++ b/mk/autotools.mk
@@ -0,0 +1,15 @@
+AUTOTOOLS_SLIDES = first-slides \
+		about-us \
+		course-information-title \
+		course-information \
+		setup-lab \
+		autotools-usage \
+		autotools-basics \
+		autotools-advanced \
+		autotools-references \
+		last-slides
+
+AUTOTOOLS_LABS = setup \
+		autotools-usage \
+		autotools-basics \
+		autotools-advanced
diff --git a/mk/boottime.mk b/mk/boottime.mk
new file mode 100644
index 00000000..797a0589
--- /dev/null
+++ b/mk/boottime.mk
@@ -0,0 +1,31 @@
+BOOTTIME_SLIDES = \
+		first-slides \
+		thanks-atmel \
+		about-us \
+		course-information-title \
+		sama5d3-board \
+		boottime-course-outline \
+		boottime-principles \
+		boottime-measuring \
+		boottime-filesystems \
+		boottime-init-scripts \
+		boottime-c-libraries-title \
+		c-libraries \
+		boottime-init-scripts2 \
+		initramfs \
+		boot-sequence-initramfs \
+		boottime-init-scripts3 \
+		boottime-application \
+		boottime-kernel \
+		boottime-bootloader \
+		boottime-hardware-init \
+
+BOOTTIME_LABS = boottime-install \
+		boottime-getting-started \
+		boottime-measuring \
+		boottime-setup \
+		boottime-init-scripts \
+		boottime-application \
+		boottime-kernel \
+		boottime-bootloader \
+		boottime-results
diff --git a/mk/buildroot.mk b/mk/buildroot.mk
new file mode 100644
index 00000000..05ccbf06
--- /dev/null
+++ b/mk/buildroot.mk
@@ -0,0 +1,34 @@
+BUILDROOT_SLIDES = \
+		first-slides \
+		about-us \
+		course-information-title \
+		beagleboneblack-board \
+		course-information \
+		setup-lab \
+		buildroot-yocto-introduction \
+		buildroot-introduction \
+		buildroot-build \
+		buildroot-tree \
+		buildroot-toolchain \
+		buildroot-kernel \
+		buildroot-rootfs \
+		buildroot-download \
+		buildroot-make \
+		buildroot-new-packages \
+		buildroot-advanced-packages \
+		buildroot-analysis \
+		buildroot-advanced \
+		buildroot-appdev \
+		buildroot-internals \
+		buildroot-support-contribution \
+		buildroot-whats-new \
+		buildroot-acknowledgements \
+		last-slides
+
+BUILDROOT_LABS = setup \
+		buildroot-basic \
+		buildroot-rootfs \
+		buildroot-new-packages \
+		buildroot-advanced-packages \
+		buildroot-advanced \
+		buildroot-appdev
diff --git a/mk/kernel.mk b/mk/kernel.mk
new file mode 100644
index 00000000..5a46e5a4
--- /dev/null
+++ b/mk/kernel.mk
@@ -0,0 +1,75 @@
+KERNEL_SLIDES = \
+		first-slides \
+		about-us \
+		course-information-title \
+		beagleboneblack-board \
+		kernel-shopping-list \
+		course-information \
+		setup-lab \
+		kernel-introduction-title \
+		sysdev-linux-intro-features \
+		kernel-embedded-linux-usage-title \
+		sysdev-linux-intro-sources \
+		kernel-source-code-download-lab \
+		kernel-source-code-title \
+		kernel-source-code-drivers \
+		kernel-source-code-layout \
+		kernel-source-code-management \
+		kernel-source-code-exploring-lab \
+		sysdev-kernel-building \
+		kernel-board-setup-kernel-compiling-and-booting-labs \
+		sysdev-linux-intro-modules \
+		kernel-driver-development-modules \
+		kernel-driver-development-lab-modules \
+		kernel-driver-development-general-apis \
+		kernel-device-model \
+		kernel-i2c \
+		kernel-pinmuxing \
+		kernel-frameworks \
+		sysdev-device-files \
+		kernel-frameworks2 \
+		kernel-input \
+		kernel-driver-development-memory \
+		kernel-driver-development-io-memory \
+		kernel-driver-development-lab-io-memory \
+		kernel-misc-subsystem \
+		kernel-driver-development-processes \
+		kernel-driver-development-sleeping \
+		kernel-driver-development-interrupts \
+		kernel-driver-development-lab-interrupts \
+		kernel-driver-development-concurrency \
+		kernel-driver-development-lab-locking \
+		kernel-driver-development-debugging \
+		kernel-driver-development-lab-debugging \
+		kernel-porting-title \
+		kernel-porting-content \
+		kernel-power-management-title \
+		kernel-power-management-content \
+		kernel-development-process-title \
+		sysdev-linux-intro-versioning \
+		kernel-contribution \
+		kernel-resources-title \
+		kernel-resources-references \
+		last-slides \
+		kernel-backup-slides-title \
+		kernel-driver-development-dma \
+		kernel-driver-development-mmap \
+		kernel-git-title \
+		kernel-git-content \
+		kernel-git-lab
+
+KERNEL_LABS   = setup \
+		kernel-sources-download \
+		kernel-sources-exploring \
+		kernel-board-setup \
+		kernel-compiling-and-nfs-booting \
+		kernel-module-simple \
+		kernel-i2c-device-model \
+		kernel-i2c-communication \
+		kernel-i2c-input-interface \
+		kernel-serial-iomem \
+		kernel-serial-output \
+		kernel-serial-interrupt \
+		kernel-locking \
+		kernel-debugging \
+		kernel-git
diff --git a/mk/sysdev-4d.mk b/mk/sysdev-4d.mk
new file mode 100644
index 00000000..21656c70
--- /dev/null
+++ b/mk/sysdev-4d.mk
@@ -0,0 +1,57 @@
+SYSDEV_4D_SLIDES = \
+		first-slides \
+		about-us \
+		course-information-title \
+		discovery-board \
+		sysdev-shopping-list-stm32 \
+		course-information \
+		sysdev-intro \
+		sysdev-dev-environment \
+		setup-lab \
+		sysdev-toolchains-title \
+		sysdev-toolchains-definition \
+		sysdev-toolchains-c-libraries-title \
+		c-libraries \
+		sysdev-toolchains-options \
+		sysdev-toolchains-obtaining \
+		sysdev-toolchains-lab \
+		sysdev-bootloaders-title \
+		sysdev-bootloaders-sequence \
+		sysdev-bootloaders-u-boot \
+		sysdev-bootloaders-lab \
+		sysdev-linux-intro-title \
+		sysdev-linux-intro-features \
+		sysdev-linux-intro-versioning \
+		sysdev-linux-intro-sources \
+		sysdev-linux-tarballs-and-patches \
+		sysdev-linux-intro-lab-sources \
+		sysdev-kernel-building \
+		sysdev-linux-intro-lab-cross-compilation \
+		sysdev-linux-intro-modules \
+		sysdev-root-filesystem-title \
+		sysdev-root-filesystem-principles \
+		initramfs \
+		sysdev-root-filesystem-contents \
+		sysdev-root-filesystem-device-files \
+		sysdev-device-files \
+		sysdev-root-filesystem-virtual-fs \
+		sysdev-root-filesystem-minimal \
+		boot-sequence-initramfs \
+		sysdev-busybox \
+		sysdev-block-filesystems \
+		sysdev-embedded-linux \
+		sysdev-application-development \
+		sysdev-references \
+		last-slides
+
+SYSDEV_4D_LABS = setup \
+		sysdev-toolchain \
+		sysdev-u-boot-stm32 \
+		sysdev-kernel-fetch-and-patch \
+		sysdev-kernel-cross-compiling-stm32 \
+		sysdev-tinysystem \
+		sysdev-block-filesystems-stm32 \
+		sysdev-thirdparty \
+		sysdev-buildroot \
+		sysdev-application-development \
+		sysdev-application-debugging
diff --git a/mk/sysdev.mk b/mk/sysdev.mk
new file mode 100644
index 00000000..8ca7535a
--- /dev/null
+++ b/mk/sysdev.mk
@@ -0,0 +1,61 @@
+SYSDEV_SLIDES = \
+		first-slides \
+		about-us \
+		course-information-title \
+		xplained-board \
+		sysdev-shopping-list \
+		course-information \
+		sysdev-intro \
+		sysdev-dev-environment \
+		setup-lab \
+		sysdev-toolchains-title \
+		sysdev-toolchains-definition \
+		sysdev-toolchains-c-libraries-title \
+		c-libraries \
+		sysdev-toolchains-options \
+		sysdev-toolchains-obtaining \
+		sysdev-toolchains-lab \
+		sysdev-bootloaders-title \
+		sysdev-bootloaders-sequence \
+		sysdev-bootloaders-u-boot \
+		sysdev-bootloaders-lab \
+		sysdev-linux-intro-title \
+		sysdev-linux-intro-features \
+		sysdev-linux-intro-versioning \
+		sysdev-linux-intro-sources \
+		sysdev-linux-tarballs-and-patches \
+		sysdev-linux-intro-lab-sources \
+		sysdev-kernel-building \
+		sysdev-linux-intro-lab-cross-compilation \
+		sysdev-linux-intro-modules \
+		sysdev-root-filesystem-title \
+		sysdev-root-filesystem-principles \
+		initramfs \
+		sysdev-root-filesystem-contents \
+		sysdev-root-filesystem-device-files \
+		sysdev-device-files \
+		sysdev-root-filesystem-virtual-fs \
+		sysdev-root-filesystem-minimal \
+		boot-sequence-initramfs \
+		sysdev-busybox \
+		sysdev-block-filesystems \
+		sysdev-flash-filesystems \
+		sysdev-embedded-linux \
+		sysdev-application-development \
+		sysdev-realtime \
+		sysdev-references \
+		last-slides
+
+SYSDEV_LABS   = setup \
+		sysdev-toolchain \
+		sysdev-u-boot \
+		sysdev-kernel-fetch-and-patch \
+		sysdev-kernel-cross-compiling \
+		sysdev-tinysystem \
+		sysdev-block-filesystems \
+		sysdev-flash-filesystems \
+		sysdev-thirdparty \
+		sysdev-buildroot \
+		sysdev-application-development \
+		sysdev-application-debugging \
+		sysdev-real-time
diff --git a/mk/yocto.mk b/mk/yocto.mk
new file mode 100644
index 00000000..5c9129ec
--- /dev/null
+++ b/mk/yocto.mk
@@ -0,0 +1,42 @@
+YOCTO_SLIDES    = \
+		first-slides \
+		about-us \
+		course-information-title \
+		beagleboneblack-board \
+		yocto-course-outline \
+		course-information \
+		setup-lab \
+		buildroot-yocto-introduction \
+		yocto-overview \
+		yocto-basics \
+		yocto-build-lab \
+		yocto-advanced \
+		yocto-advanced-lab \
+		yocto-recipe-basics \
+		yocto-recipe-basics-lab \
+		yocto-recipe-advanced \
+		yocto-layer \
+		yocto-layer-lab \
+		yocto-bsp \
+		yocto-bsp-lab \
+		yocto-layer-distro \
+		yocto-image \
+		yocto-image-lab \
+		yocto-licensing \
+		yocto-recipe-extra \
+		yocto-sdk \
+		yocto-sdk-lab \
+		yocto-runtime-package-management \
+		yocto-resources \
+		last-slides
+
+YOCTO_LABS    = setup \
+		yocto-first-build \
+		yocto-advanced-configuration \
+		yocto-add-application \
+		yocto-layer \
+		yocto-extend-recipe \
+		yocto-custom-machine \
+		yocto-custom-image \
+		yocto-sdk \
+		yocto-sdk-eclipse




More information about the training-materials-updates mailing list