[bootlin/training-materials updates] master: slides/buildroot-new-packages: replace eeprog.mk example (b6808c36)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Apr 15 08:29:14 CEST 2020


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

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

commit b6808c36531af7dabaa7afd58735ec3e41cdee71
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date:   Wed Apr 15 08:29:14 2020 +0200

    slides/buildroot-new-packages: replace eeprog.mk example
    
    eeprog no longer exists in Buildroot, so replace with an example from
    iostat.mk.
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>


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

b6808c36531af7dabaa7afd58735ec3e41cdee71
 .../buildroot-new-packages.tex                     | 24 ++++++++++++----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/slides/buildroot-new-packages/buildroot-new-packages.tex b/slides/buildroot-new-packages/buildroot-new-packages.tex
index 7c20b49c..744cb7f5 100644
--- a/slides/buildroot-new-packages/buildroot-new-packages.tex
+++ b/slides/buildroot-new-packages/buildroot-new-packages.tex
@@ -893,20 +893,22 @@ LINUX_INSTALL_IMAGES = YES
   \end{itemize}
 \end{frame}
 
-\begin{frame}[fragile]{Describing actions: example (1)}
-  \begin{block}{eeprog.mk}
+\begin{frame}[fragile]{Describing actions: {\tt iostat.mk} example}
+  \begin{block}{}
     \begin{minted}[fontsize=\scriptsize]{make}
-EEPROG_VERSION = 0.7.6
-EEPROG_SITE = http://www.codesink.org/download
-EEPROG_LICENSE = GPL-2.0+
-EEPROG_LICENSE_FILES = eeprog.c
-
-define EEPROG_BUILD_CMDS
-        $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
+IOSTAT_VERSION = 2.2
+IOSTAT_SITE = http://linuxinsight.com/sites/default/files
+IOSTAT_LICENSE = GPL
+IOSTAT_LICENSE_FILES = LICENSE
+
+define IOSTAT_BUILD_CMDS
+        $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
+                CFLAGS="$(TARGET_CFLAGS) -DHZ=100"
 endef
 
-define EEPROG_INSTALL_TARGET_CMDS
-        $(INSTALL) -m 0755 -D $(@D)/eeprog $(TARGET_DIR)/usr/bin/eeprog
+define IOSTAT_INSTALL_TARGET_CMDS
+        $(INSTALL) -D -m 0755 $(IOSTAT_DIR)/iostat \
+                $(TARGET_DIR)/usr/bin/iostat
 endef
 
 $(eval $(generic-package))




More information about the training-materials-updates mailing list