[bootlin/training-materials updates] master: slides/buildroot-new-packages: replace iostat by iodine (9ec10863)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat Mar 11 12:15:42 CET 2023


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

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

commit 9ec10863cf55605d58241ab18f830ed219cc6c7e
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date:   Sat Mar 11 12:15:42 2023 +0100

    slides/buildroot-new-packages: replace iostat by iodine
    
    iostat is no longer in Buildroot.
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>


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

9ec10863cf55605d58241ab18f830ed219cc6c7e
 .../buildroot-new-packages.tex                     | 27 ++++++++++++----------
 1 file changed, 15 insertions(+), 12 deletions(-)

diff --git a/slides/buildroot-new-packages/buildroot-new-packages.tex b/slides/buildroot-new-packages/buildroot-new-packages.tex
index 37069d72..e6bc00b6 100644
--- a/slides/buildroot-new-packages/buildroot-new-packages.tex
+++ b/slides/buildroot-new-packages/buildroot-new-packages.tex
@@ -897,22 +897,25 @@ LINUX_INSTALL_IMAGES = YES
   \end{itemize}
 \end{frame}
 
-\begin{frame}[fragile]{Describing actions: {\tt iostat.mk} example}
+\begin{frame}[fragile]{Describing actions: {\tt iodine.mk} example}
   \begin{block}{}
     \begin{minted}[fontsize=\scriptsize]{make}
-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"
+IODINE_VERSION = 0.7.0
+IODINE_SITE = http://code.kryo.se/iodine
+IODINE_DEPENDENCIES = zlib
+IODINE_LICENSE = MIT
+IODINE_LICENSE_FILES = README
+
+IODINE_CFLAGS = $(TARGET_CFLAGS)
+[...]
+
+define IODINE_BUILD_CMDS
+        $(TARGET_CONFIGURE_OPTS) CFLAGS="$(IODINE_CFLAGS)" \
+                $(MAKE) ARCH=$(BR2_ARCH) -C $(@D)
 endef
 
-define IOSTAT_INSTALL_TARGET_CMDS
-        $(INSTALL) -D -m 0755 $(IOSTAT_DIR)/iostat \
-                $(TARGET_DIR)/usr/bin/iostat
+define IODINE_INSTALL_TARGET_CMDS
+        $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install DESTDIR="$(TARGET_DIR)" prefix=/usr
 endef
 
 $(eval $(generic-package))




More information about the training-materials-updates mailing list