]> git.webhop.me Git - bs-cst-neutrino-hd.git/commitdiff
systemtools: add target hd-idle to spin-down HDD's
authorMarkham <markham001@gmx.de>
Sun, 29 Nov 2015 13:57:22 +0000 (14:57 +0100)
committerMarkham <markham001@gmx.de>
Sun, 29 Nov 2015 13:57:22 +0000 (14:57 +0100)
Makefile
doc/config.example
make/applications.mk
make/archives.mk
make/versions.mk

index 6c6c43f1905bda211ab30e54029e74de3cae56ce..f0d9664f40509fd0b307677708d41af7af970559 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -176,6 +176,11 @@ applications:
        else \
                true; \
        fi
+       if [ $(HD_IDLE) = "yes" ]; then \
+               $(MAKE) $(D)/hd-idle; \
+       else \
+               true; \
+       fi
        if [ $(LCD4LINUX) = "yes" ]; then \
                $(MAKE) $(D)/lcd4linux; \
        else \
index 624b9f96fc877aa60ce6b30ead937ad9dd584b56..0038a77aa311d937bba490dbf8fb251573055cc0 100755 (executable)
@@ -54,10 +54,11 @@ CST_DRIVER_VERSION=master
 CST_FFMPEG_VERSION=ffmpeg-head
 
 ###########################################################################################
+### SYSTEMTOOLS
 ###########################################################################################
 
-
-
+# if you want to build hd-idle (optional), define HD_IDLE=yes:
+HD_IDLE=no
 
 
 ###########################################################################################
index 2bbe057de6a8866965f9818bd725188ff24ad67b..0d586d3a204ce9f5ecc01cb043b8d213b8c4ffe0 100755 (executable)
@@ -238,6 +238,17 @@ $(D)/autofs: $(ARCHIVE)/autofs-4.1.4.tar.bz2 | $(TARGETPREFIX)
        $(REMOVE)/autofs-4.1.4
        touch $@
 
+$(D)/hd-idle: $(ARCHIVE)/hd-idle-$(HD_IDLE_VER).tgz | $(TARGETPREFIX)
+       $(UNTAR)/hd-idle-$(HD_IDLE_VER).tgz
+       set -e; cd $(BUILD_TMP)/hd-idle && \
+       export CC=$(TARGET)-gcc && \
+       $(BUILDENV) \
+       $(MAKE) all
+       $(TARGET)-strip $(BUILD_TMP)/hd-idle/hd-idle; \
+       cp -a $(BUILD_TMP)/hd-idle/hd-idle  $(TARGETPREFIX)/sbin/hd-idle; \
+       $(REMOVE)/hd-idle-$(HD_IDLE_VER)
+       touch $@
+
 #  NOTE:
 #  gdb built for target or local-PC
 $(D)/gdb: $(ARCHIVE)/gdb-7.3.1.tar.bz2 | $(TARGETPREFIX)
index 1ec4d226e7241f37e000da528d66d5030a9bb038..b0ba3e45e3ff3fac3800a54ddd854da6628ee38a 100755 (executable)
@@ -211,6 +211,9 @@ $(ARCHIVE)/flex-$(FLEX_VER).tar.gz:
 $(ARCHIVE)/unfs3-$(UNFS3_VER).tar.gz:
        $(WGET) ftp://ftp.tw.freebsd.org/pub/ports/distfiles/unfs3-$(UNFS3_VER).tar.gz
 
+$(ARCHIVE)/hd-idle-$(HD_IDLE_VER).tgz:
+       $(WGET) http://sources.openelec.tv/mirror/hd-idle/hd-idle-$(HD_IDLE_VER).tgz
+
 $(ARCHIVE)/crosstool-1.16.0-downloads.tar.bz2:
        $(WGET) http://www.fhloston-paradise.de/crosstool-ng-1.16.0.tar.bz2
        $(WGET) http://www.fhloston-paradise.de/eglibc-2_13.tar.bz2
index a7e3198353fbc9930b69240d5ce47aaa0da02a7f..4d5cf3041c4871c215fd6c89679e3182e1a2c412 100644 (file)
@@ -11,9 +11,12 @@ E2FSPROGS_VER=1.42.13
 # C library for parsing XML
 EXPAT_VER = 2.1.0
 
-#  FLEX (the fast lexical analyser)
+# FLEX (the fast lexical analyser)
 FLEX_VER=2.5.35
 
+# hd-idle is a utility program for spinning-down external disks after a period of idle time
+HD_IDLE_VER=1.04
+
 # libjpeg-turbo; a derivative of libjpeg for x86 and x86-64 processors which uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression and decompression
 JPEG_TURBO_VER = 1.4.2