From: Markham Date: Sun, 29 Nov 2015 13:57:22 +0000 (+0100) Subject: systemtools: add target hd-idle to spin-down HDD's X-Git-Url: https://git.webhop.me/?a=commitdiff_plain;h=3cb7f7267300c9352e6b7c413bc4c1c346dae486;p=bs-cst-neutrino-hd.git systemtools: add target hd-idle to spin-down HDD's --- diff --git a/Makefile b/Makefile index 6c6c43f..f0d9664 100755 --- 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 \ diff --git a/doc/config.example b/doc/config.example index 624b9f9..0038a77 100755 --- a/doc/config.example +++ b/doc/config.example @@ -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 ########################################################################################### diff --git a/make/applications.mk b/make/applications.mk index 2bbe057..0d586d3 100755 --- a/make/applications.mk +++ b/make/applications.mk @@ -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) diff --git a/make/archives.mk b/make/archives.mk index 1ec4d22..b0ba3e4 100755 --- a/make/archives.mk +++ b/make/archives.mk @@ -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 diff --git a/make/versions.mk b/make/versions.mk index a7e3198..4d5cf30 100644 --- a/make/versions.mk +++ b/make/versions.mk @@ -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